]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Look up RPA for connection requests with Identity Address
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 19:41:36 +0000 (21:41 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 19:48:55 +0000 (11:48 -0800)
commita7575da23587b2a5f433a736175781bc9375255f
treeea42ec1d266e1248dc6cc5e965768ec0a2e7609c
parente9c2f8fd6cf8823c7ee169165e8f1d7c5ee368ad
Bluetooth: Look up RPA for connection requests with Identity Address

We need to check whether there's a matching IRK and RPA when we're
requested to connect to a remote LE device based on its Identity
Address. This patch updates the hci_connect_le function to do an extra
call to hci_find_irk_by_addr and uses the RPA if it's cached. This is
particularly important once we start exposing the Identity Address to
user space instead of the RPA in events such as Device Connected and
Device Found.

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