Bluetooth: Allow l2cap_chan_check_security() to be used for LE links.
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 14 May 2013 10:25:37 +0000 (13:25 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:32 +0000 (07:05 -0800)
commita17de2fe02b1853f115a841bf707f6a75bc6da22
treefcafef2ab8d2e61cb60a23277c54a182165a0e18
parentbf20fd4ec1d39df78e31fd7c7a4066f69b8bcd8a
Bluetooth: Allow l2cap_chan_check_security() to be used for LE links.

With connection oriented L2CAP channels some code paths will be shared
with BR/EDR links. It is therefore necessary to allow the
l2cap_chan_check_security function to be usable also for LE links in
addition to BR/EDR ones. This means that smp_conn_security() needs to be
called instead of hci_conn_security() in the case of an LE link.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c