]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix L2CAP security check
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Jun 2011 12:37:35 +0000 (15:37 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 13 Jun 2011 17:28:52 +0000 (14:28 -0300)
commita41199330f4eeca55f691a75eedab50d5d451941
tree07089bfcc9473b7ea89af3f10086cde76802ca1a
parent109ed87278b896e2d7886c31d4b3867675d75ae5
Bluetooth: Fix L2CAP security check

With older userspace versions (using hciops) it might not have the
key type to check if the key has sufficient security for any security
level so it is necessary to check the return of hci_conn_auth to make
sure the connection is authenticated

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_conn.c