summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-05-29 13:00:39 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-12-03 16:51:16 +0100
commit5378bc5622a9c221cb472ce86a5024290d6353c2 (patch)
tree5d7c42e53315e6e04e4648617d722582a2d5a0ce /include
parentBluetooth: Add mgmt_set_secure_conn support for any LE adapter (diff)
downloadlinux-5378bc5622a9c221cb472ce86a5024290d6353c2.tar.xz
linux-5378bc5622a9c221cb472ce86a5024290d6353c2.zip
Bluetooth: Update LTK lookup to correctly deal with SC LTKs
LTKs derived from Secure Connections based pairing are symmetric, i.e. they should match both master and slave role. This patch updates the LTK lookup functions to ignore the desired role when dealing with SC LTKs. Furthermore, with Secure Connections the EDiv and Rand values are not used and should always be set to zero. This patch updates the LTK lookup to first use the bdaddr as key and then do the necessary verifications of EDiv and Rand based on whether the found LTK is for SC or not. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions