Bluetooth: Fix using RPA when address has been resolved
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 30 Aug 2021 20:55:37 +0000 (13:55 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 21:14:55 +0000 (23:14 +0200)
commitd850bf086280fcd07ed6bf3d0cd88ad41869779b
treee0d456763d1be2e8c89b8cd46061989e83f9c786
parent4ec4d63b8b295bdb91545732fd1fbe646d5d1299
Bluetooth: Fix using RPA when address has been resolved

When connecting to a device using an RPA if the address has been
resolved by the controller (types 0x02 and 0x03) the identity address
shall be used as the actual RPA in the advertisement won't be visible
to the host.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c
net/bluetooth/l2cap_core.c