Skip to contentSkip to conversation

Bluetooth: LL privacy allow RPA

PATCH In review Sathish Narasimman 3 participants 4 messages Apr 5, 2021 – Apr 6, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Bluetooth: LL privacy allow RPA

allow RPA to add bd address to whitelist

---
 net/bluetooth/hci_request.c | 4 ++++
 1 file changed, 4 insertions(+)
net/bluetooth/hci_request.c +4 -0
index 0d78122342d5..560b74d421a8 100644
@@ -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
Signature · 1 line
2.17.1
#2 lore raw
In reply to Sathish Narasimman

Hi,

Quoted 12 lines · On Monday, 5 April 2021 16:30:41 CEST Sathish Narasimman wrote:

allow RPA to add bd address to whitelist

---
 net/bluetooth/hci_request.c | 4 ++++
 1 file changed, 4 insertions(+)
net/bluetooth/hci_request.c +0 -0
index 0d78122342d5..560b74d421a8 100644

net/bluetooth/hci_request.c static u8 update_white_list(struct hci_request *req) · line 856

Quoted 10 lines
net/bluetooth/hci_request.c +4 -0
@@ -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

I'm bit confused by this patch. Why add RPA to whitelist if LL privacy is in use?

Signature · 2 lines
pozdrawiam
Szymon Janc
maintainer
#3 lore raw

Hi Szymon,

Quoted 15 lines
Quoted 15 lines

allow RPA to add bd address to whitelist

---
net/bluetooth/hci_request.c | 4 ++++

1 file changed, 4 insertions(+)
net/bluetooth/hci_request.c +0 -0
index 0d78122342d5..560b74d421a8 100644
@@ -847,6 +847,10 @@ static u8 update_white_list(struct hci_request *req)
 	 */
 	bool allow_rpa = hdev->suspended;
 
Quoted 10 lines

net/bluetooth/hci_request.c static u8 update_white_list(struct hci_request *req) · line 856

Quoted 7 lines
net/bluetooth/hci_request.c +4 -0
+	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

I'm bit confused by this patch. Why add RPA to whitelist if LL privacy is in use?

if link layer privacy is enabled and the IRK programmed into the resolving list, we are now allowed to add the device to the white list.

Regards

Marcel