]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Bluetooth: LL privacy allow RPA
authorSathish Narasimman <sathish.narasimman@intel.com>
Mon, 5 Apr 2021 14:30:41 +0000 (20:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:21:08 +0000 (10:21 +0200)
[ Upstream commit 8ce85ada0a05e21a5386ba5c417c52ab00fcd0d1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_request.c

index 2405e1ffebbd5dcf60f8f578f58a12f7967d5d55..eb4c1c18eb012ee3b8b2e3ca57d6f12a1bf39741 100644 (file)
@@ -842,6 +842,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