Bluetooth: Check for matching IRK when looking for paired LE devices
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Mar 2015 08:52:08 +0000 (10:52 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Mar 2015 14:54:23 +0000 (15:54 +0100)
commit4ba9faf35f6e49964ca6ed88fb0090cc4c727bf3
tree6c7c3bb1bad7c779ca7194c8c9d40a0790194c33
parent87c8b28d291de9999e9da2ef5d4165861983eb83
Bluetooth: Check for matching IRK when looking for paired LE devices

If we're given an RPA when checking whether we're paired or not, we
should consult the local RPA storage whether there's a matching IRK.
This we we ensure that hci_bdaddr_is_paired() gives the right result
even when trying to pair a second time with the same device with an RPA.

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