Bluetooth: Fix using address type from events
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 30 Aug 2021 20:55:36 +0000 (13:55 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 21:14:55 +0000 (23:14 +0200)
commit4ec4d63b8b295bdb91545732fd1fbe646d5d1299
tree6eda04c9efcf2e136a1fa9e68860cb3dd40cc738
parent1eeaa1ae79d84df025eaca363fdce3f397313647
Bluetooth: Fix using address type from events

Address types ADDR_LE_DEV_PUBLIC_RESOLVED and
ADDR_LE_DEV_RANDOM_RESOLVED shall be converted to ADDR_LE_PUBLIC and
ADDR_LE_RANDOM repectively since they are not safe to be used beyond
the scope of the events themselves.

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