diff mbox series

[BlueZ,1/6] shared/bass: Fix clearing BIS sync index

Message ID 20241220143106.27443-2-iulia.tanasescu@nxp.com
State New
Headers show
Series bass: Handle Modify Source opcode | expand

Commit Message

Iulia Tanasescu Dec. 20, 2024, 2:31 p.m. UTC
This fixes bt_bass_clear_bis_sync by checking the bitmask which contains
synced BIS indeces, instead of the mask holding pending BISes.
---
 src/shared/bass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/shared/bass.c b/src/shared/bass.c
index d99a140a1..1ab1a0a44 100644
--- a/src/shared/bass.c
+++ b/src/shared/bass.c
@@ -1819,7 +1819,7 @@  int bt_bass_clear_bis_sync(struct bt_bcast_src *bcast_src, uint8_t bis)
 				&bcast_src->subgroup_data[i];
 		uint32_t bitmask = 1 << (bis - 1);
 
-		if (sgrp->pending_bis_sync & bitmask) {
+		if (sgrp->bis_sync & bitmask) {
 			sgrp->bis_sync &= ~bitmask;
 
 			iov = bass_parse_bcast_src(bcast_src);