Skip to content

Commit be874a2

Browse files
Thalleynashif
authored andcommitted
Bluetooth: BAP: Missing assignment to aggregated_bis_syncs
When using the add_src and mod_src APIs the aggregated_bis_syncs variable was only ever set to 0 and never updated, thus making all calls to bis_syncs_unique_or_no_pref to be true. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 819955b commit be874a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/bluetooth/audio/bap_scan_delegator.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,8 @@ static bool valid_bt_bap_scan_delegator_add_src_param(
15671567
return false;
15681568
}
15691569

1570+
aggregated_bis_syncs |= subgroup->bis_sync;
1571+
15701572
if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) {
15711573
LOG_DBG("subgroup[%u]: Invalid metadata_len: %u",
15721574
i, subgroup->metadata_len);
@@ -1678,6 +1680,8 @@ static bool valid_bt_bap_scan_delegator_mod_src_param(
16781680
return false;
16791681
}
16801682

1683+
aggregated_bis_syncs |= subgroup->bis_sync;
1684+
16811685
if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) {
16821686
LOG_DBG("subgroup[%u]: Invalid metadata_len: %u",
16831687
i, subgroup->metadata_len);

0 commit comments

Comments
 (0)