From: Sathish Narasimman Date: Mon, 5 Apr 2021 14:30:41 +0000 (+0530) Subject: Bluetooth: LL privacy allow RPA X-Git-Tag: accepted/tizen/unified/20230118.172025~7335^2~197^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ce85ada0a05e21a5386ba5c417c52ab00fcd0d1;p=platform%2Fkernel%2Flinux-rpi.git Bluetooth: LL privacy allow RPA allow RPA to add bd address to whitelist Signed-off-by: Sathish Narasimman Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 0d78122..560b74d 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