Bluetooth: Fix: LL PRivacy BLE device fails to connect
authorSathish Narasimman <nsathish41@gmail.com>
Thu, 29 Oct 2020 07:48:21 +0000 (13:18 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 9 Nov 2020 12:40:29 +0000 (13:40 +0100)
commit1fb17dfc258ff6208f7873cc7b8e40e27515d2d5
tree45e1c4ce32baf1cf7dd75326a1b576eec828233d
parent1996d9cad6ad4882a79464e9fb941a68c693f8fc
Bluetooth: Fix: LL PRivacy BLE device fails to connect

When adding device to white list the device is added to resolving list
also. It has to be added only when HCI_ENABLE_LL_PRIVACY flag is set.
HCI_ENABLE_LL_PRIVACY flag has to be tested before adding/deleting devices
to resolving list. use_ll_privacy macro is used only to check if controller
supports LL_Privacy.

https://bugzilla.kernel.org/show_bug.cgi?id=209745

Fixes: 0eee35bdfa3b ("Bluetooth: Update resolving list when updating whitelist")
Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c