]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit6fdf658c9a0e51e6663f2769f6d310c2843a862b
tree07089bfcc9473b7ea89af3f10086cde76802ca1a
parent7f4f0572df6c8eaa6a587bc212b0806ff37380dd
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