bap: Update default sync_factor
cover bap: Update default sync_factor
Formula for extended advertising interval set by kernel for Bcast:
interval = (qos->bcast.out.interval / 1250) * qos->bcast.sync_factor; sync_interval = interval * 4;
According to CORE SPECIFICATION Version 5.4 | Vol 4, Part E page 2451, the extended advertising interval should be at least 0x20 (32). Thus, interval should be at least 8. If qos->bcast.out.interval = 7500, it follows that the sync_factor should be at least 2.
Vlad Pruteanu (1):
bap: Update default sync_factor
profiles/audio/bap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.1
PATCH 1/1 bap: Update default sync_factor
Formula for extended advertising interval set by kernel for Bcast:
interval = (qos->bcast.out.interval / 1250) * qos->bcast.sync_factor; sync_interval = interval * 4;
According to CORE SPECIFICATION Version 5.4 | Vol 4, Part E page 2451, the extended advertising interval should be at least 0x20 (32). Thus, interval should be at least 8. If qos->bcast.out.interval = 7500, it follows that the sync_factor should be at least 2.
--- profiles/audio/bap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
profiles/audio/bap.c +4 -1
@@ -871,7 +871,10 @@ static struct bap_setup *setup_new(struct bap_ep *ep)/* Mark BIG and BIS to be auto assigned */ setup->qos.bcast.big =BT_ISO_QOS_BIG_UNSET ; setup->qos.bcast.bis =BT_ISO_QOS_BIS_UNSET ; - setup->qos.bcast.sync_factor =0x01 ; +/* sync_factor should be >=2 to avoid invalid extended +* advertising interval value +*/ + setup->qos.bcast.sync_factor =0x02 ; setup->qos.bcast.sync_timeout =BT_ISO_SYNC_TIMEOUT ; setup->qos.bcast.timeout =BT_ISO_SYNC_TIMEOUT ; setup->qos_parser = setup_parse_bcast_qos;
Signature · 1 line
2.40.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=874045
---Test result---
Test Summary:
CheckPatch PASS 0.37 seconds GitLint PASS 0.45 seconds BuildEll PASS 24.64 seconds BluezMake PASS 1684.44 seconds MakeCheck PASS 13.09 seconds MakeDistcheck PASS 179.75 seconds CheckValgrind PASS 253.39 seconds CheckSmatch PASS 356.90 seconds bluezmakeextell PASS 120.30 seconds IncrementalBuild PASS 1451.44 seconds ScanBuild PASS 1014.48 seconds
---
Regards,
Linux Bluetooth