]> 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)
commitdabc5e389ec1c51945b94c5b8aa3cc2e8b976de4
tree07089bfcc9473b7ea89af3f10086cde76802ca1a
parenta36d25cebde4ba24ebfe224ea92d38fc6212dc51
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