Bluetooth: hci_sync: allow advertise when scan without RPA
Subsystems (4)
v2 cover Bluetooth: hci_sync: allow advertise when scan without RPA
This patch allows the device to keep advertising during active scan when ll privacy is enabled, if the device is not using privacy mode.
Changes in v2:
- Modify title to reduce length within limit
Changes in v1:
- Check privacy flag when disable advertising
Zhengping Jiang (1):
Bluetooth: hci_sync: allow advertise when scan without RPA
net/bluetooth/hci_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.37.2.789.g6183377224-goog
PATCH v2 1/1 Bluetooth: hci_sync: allow advertise when scan without RPA
Address resolution will be paused during active scan to allow any advertising reports reach the host. If LL privacy is enabled, advertising will rely on the controller to generate new RPA.
If host is not using RPA, there is no need to stop advertising during active scan because there is no need to generate RPA in the controller.
---
Changes in v2:
- Modify title to reduce length within limit
Changes in v1:
- Check privacy flag when disable advertising
net/bluetooth/hci_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_sync.c +1 -1
@@ -5351,7 +5351,7 @@ static int hci_active_scan_sync(struct hci_dev *hdev, uint16_t interval)/* Pause advertising since active scanning disables address resolution * which advertising depend on in order to generate its RPAs. */ -if (use_ll_privacy (hdev)) { +if (use_ll_privacy (hdev) &&hci_dev_test_flag (hdev,HCI_PRIVACY )) { err =hci_pause_advertising_sync (hdev);if (err) {bt_dev_err (hdev,"pause advertising failed: %d" , err);
Signature · 1 line
2.37.2.789.g6183377224-goog
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=676717
---Test result---
Test Summary:
CheckPatch PASS 0.85 seconds GitLint PASS 0.46 seconds SubjectPrefix PASS 0.31 seconds BuildKernel PASS 41.10 seconds BuildKernel32 PASS 35.42 seconds Incremental Build with patchesPASS 53.59 seconds TestRunner: Setup PASS 595.31 seconds TestRunner: l2cap-tester PASS 19.10 seconds TestRunner: iso-tester PASS 18.90 seconds TestRunner: bnep-tester PASS 7.27 seconds TestRunner: mgmt-tester PASS 117.60 seconds TestRunner: rfcomm-tester PASS 11.28 seconds TestRunner: sco-tester PASS 10.98 seconds TestRunner: smp-tester PASS 10.82 seconds TestRunner: userchan-tester PASS 7.66 seconds
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 10 lines · On Tue, 13 Sep 2022 16:37:14 -0700 you wrote:
This patch allows the device to keep advertising during active scan when ll privacy is enabled, if the device is not using privacy mode.
Changes in v2:
- Modify title to reduce length within limitChanges in v1:
- Check privacy flag when disable advertising[...]
Here is the summary with links:
- [kernel,v2,1/1] Bluetooth: hci_sync: allow advertise when scan without RPA
https://git.kernel.org/bluetooth/bluetooth-next/c/9afc675edeeb
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html