Bluetooth: hci_sync: Don't make a periodic advertising set connectable
Subsystems (2)
PATCH 1/1 Bluetooth: hci_sync: Don't make a periodic advertising set connectable
From: Michal Dzik <[email protected]>
An advertising instance without MGMT_ADV_FLAG_CONNECTABLE follows the global connectable setting, and so does the instance of a broadcast source, which create_big_sync() starts with no flag but MGMT_ADV_FLAG_SEC_2M. Whenever the adapter is connectable, e.g. while it is discoverable, the set is configured as connectable extended advertising, and the controller rejects enabling periodic advertising on it with Command Disallowed ([Vol 4] Part E, Section 7.8.63), so the broadcast source fails to start:
Bluetooth: hci0: Opcode 0x2040 failed: -16
Bluetooth: hci0: Unable to create BIG: -16
Don't let the global connectable setting make an instance with periodic advertising connectable.
--- net/bluetooth/hci_sync.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
net/bluetooth/hci_sync.c +4 -2
@@ -1519,10 +1519,12 @@ int hci_setup_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance) flags =hci_adv_instance_flags (hdev, instance);/* If the "connectable" instance flag was not set, then choose between -* ADV_IND and ADV_NONCONN_IND based on the global connectable setting. +* ADV_IND and ADV_NONCONN_IND based on the global connectable setting, +* unless the instance carries periodic advertising, which can only be +* enabled on a non-connectable advertising set. */ connectable = (flags &MGMT_ADV_FLAG_CONNECTABLE ) || -mgmt_get_connectable (hdev); + (mgmt_get_connectable (hdev) && !(adv && adv->periodic));if (!is_advertising_allowed (hdev, connectable)) {if (instance)
base-commit: 4fe38719e6738feaa90486e36b0790dd5d960a96
Signature · 1 line
2.43.0
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/series/1218953/
---Test result---
Test Summary:
CheckPatch PASS 0.60 seconds VerifyFixes PASS 0.07 seconds VerifySignedoff PASS 0.07 seconds GitLint PASS 0.23 seconds SubjectPrefix PASS 0.07 seconds BuildKernel PASS 30.56 seconds CheckAllWarning PASS 34.87 seconds CheckSparse PASS 38.23 seconds BuildKernel32 PASS 30.81 seconds CheckKernelLLVM PASS 32.52 seconds TestRunnerSetup PASS 746.53 seconds TestRunner_l2cap-tester PASS 14.78 seconds TestRunner_iso-tester PASS 13.14 seconds TestRunner_bnep-tester PASS 3.12 seconds TestRunner_mgmt-tester PASS 89.14 seconds TestRunner_rfcomm-tester PASS 4.44 seconds TestRunner_sco-tester PASS 5.58 seconds TestRunner_ioctl-tester PASS 4.64 seconds TestRunner_mesh-tester PASS 4.50 seconds TestRunner_smp-tester PASS 4.34 seconds TestRunner_userchan-tester PASS 3.19 seconds TestRunner_6lowpan-tester PASS 4.41 seconds IncrementalBuild PASS 28.29 seconds
https://github.com/bluez/bluetooth-next/pull/1198
---
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 11 lines · On Sun, 22 Nov 2026 21:14:12 +0100 you wrote:
From: Michal Dzik <[email protected]>
An advertising instance without
MGMT_ADV_FLAG_CONNECTABLEfollows the global connectable setting, and so does the instance of a broadcast source, whichcreate_big_sync()starts with no flag butMGMT_ADV_FLAG_SEC_2M. Whenever the adapter is connectable, e.g. while it is discoverable, the set is configured as connectable extended advertising, and the controller rejects enabling periodic advertising on it with Command Disallowed ([Vol 4] Part E, Section 7.8.63), so the broadcast source fails to start:
Quoted 1 line
[...]
Here is the summary with links:
- Bluetooth: hci_sync: Don't make a periodic advertising set connectable
https://git.kernel.org/bluetooth/bluetooth-next/c/592031ccf61e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html