summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorSathish Narasimman <sathish.narasimman@intel.com>2021-04-05 17:30:41 +0300
committerMarcel Holtmann <marcel@holtmann.org>2021-04-06 11:48:15 +0300
commit8ce85ada0a05e21a5386ba5c417c52ab00fcd0d1 (patch)
tree46d8cafc7cec268bc00633e38a26e0b5164883a8 /net/bluetooth/hci_request.c
parentabb638b311da86eba61c4b2be8eb13375a56b7be (diff)
downloadlinux-8ce85ada0a05e21a5386ba5c417c52ab00fcd0d1.tar.xz
Bluetooth: LL privacy allow RPA
allow RPA to add bd address to whitelist Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index 0d78122342d5..560b74d421a8 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -847,6 +847,10 @@ static u8 update_white_list(struct hci_request *req)
*/
bool allow_rpa = hdev->suspended;
+ if (use_ll_privacy(hdev) &&
+ hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY))
+ allow_rpa = true;
+
/* Go through the current white list programmed into the
* controller one by one and check if that address is still
* in the list of pending connections or list of devices to