Skip to content

Commit 1f4ca01

Browse files
Thalleykartben
authored andcommitted
Bluetooth: BAP: Fix BIS_Sync value in update_recv_state_base
The BASE doesn't affect the BIS sync value, and should thus not change it. This fixes a bug where the broadcast sink may prematurely set the BIS sync value to e.g. 1 before actually syncing to the BIG. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 6dce233 commit 1f4ca01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

subsys/bluetooth/audio/bap_broadcast_sink.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,9 @@ static void update_recv_state_base(const struct bt_bap_broadcast_sink *sink,
542542
mod_src_param.num_subgroups = sink->subgroup_count;
543543
for (uint8_t i = 0U; i < sink->subgroup_count; i++) {
544544
struct bt_bap_bass_subgroup *subgroup_param = &mod_src_param.subgroups[i];
545-
const struct bt_bap_broadcast_sink_subgroup *sink_subgroup = &sink->subgroups[i];
546545

547-
/* Set the bis_sync value to the indexes available per subgroup */
548-
subgroup_param->bis_sync = sink_subgroup->bis_indexes & sink->indexes_bitfield;
546+
/* Leave the bis_sync unchanged */
547+
subgroup_param->bis_sync = recv_state->subgroups[i].bis_sync;
549548
}
550549

551550
err = bt_bap_scan_delegator_mod_src(&mod_src_param);

0 commit comments

Comments
 (0)