Bluetooth: mgmt: Fix limited discoverable off timeout
Subsystems (2)
PATCH 1/1 Bluetooth: mgmt: Fix limited discoverable off timeout
LIMITED_DISCOVERABLE flag is not reset from Class of Device and advertisement on limited discoverable timeout. This prevents to pass PTS test GAP/DISC/LIMM/BV-02-C
Calling set_discoverable_sync as when the limited discovery is set correctly update the Class of Device and advertisement.
--- net/bluetooth/mgmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
net/bluetooth/mgmt.c +3 -1
@@ -1045,6 +1045,8 @@ static void rpa_expired(struct work_struct *work)hci_cmd_sync_queue (hdev, rpa_expired_sync,NULL ,NULL ); } +static int set_discoverable_sync (struct hci_dev *hdev,void *data); +static void discov_off (struct work_struct *work) { struct hci_dev *hdev = container_of(work, struct hci_dev,
@@ -1063,7 +1065,7 @@ static void discov_off(struct work_struct *work)hci_dev_clear_flag (hdev,HCI_DISCOVERABLE ); hdev->discov_timeout =0 ; -hci_update_discoverable (hdev); +hci_cmd_sync_queue (hdev, set_discoverable_sync,NULL ,NULL );mgmt_new_settings (hdev);
Signature · 1 line
2.34.1
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=818709
---Test result---
Test Summary:
CheckPatch PASS 43.26 seconds GitLint PASS 40.68 seconds SubjectPrefix PASS 39.07 seconds BuildKernel PASS 27.86 seconds CheckAllWarning PASS 38.74 seconds CheckSparse PASS 76.42 seconds CheckSmatch PASS 119.42 seconds BuildKernel32 PASS 40.00 seconds TestRunnerSetup PASS 437.18 seconds TestRunner_l2cap-tester PASS 26.76 seconds TestRunner_iso-tester PASS 47.64 seconds TestRunner_bnep-tester PASS 7.90 seconds TestRunner_mgmt-tester PASS 159.16 seconds TestRunner_rfcomm-tester PASS 10.99 seconds TestRunner_sco-tester PASS 14.43 seconds TestRunner_ioctl-tester PASS 12.50 seconds TestRunner_mesh-tester PASS 10.90 seconds TestRunner_smp-tester PASS 23.59 seconds TestRunner_userchan-tester PASS 7.29 seconds IncrementalBuild PASS 29.75 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 8 lines · On Mon, 22 Jan 2024 17:59:55 +0100 you wrote:
LIMITED_DISCOVERABLEflag is not reset from Class of Device and advertisement on limited discoverable timeout. This prevents to pass PTS test GAP/DISC/LIMM/BV-02-CCalling
set_discoverable_syncas when the limited discovery is set correctly update the Class of Device and advertisement.[...]
Here is the summary with links:
- Bluetooth: mgmt: Fix limited discoverable off timeout
https://git.kernel.org/bluetooth/bluetooth-next/c/53ddef135d3a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html