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)
commit1ebfcc1f5884509925522ab76c17db9befe0aac9
treeea42ec1d266e1248dc6cc5e965768ec0a2e7609c
parent6cfc9988bd3e5d2931365da76db9b5a7334494b6
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