Skip to content

Commit d720032

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: Fix assertion establishing Peripheral ISO
Fix assertion observed establishing subsequent Peripheral ISO connection due to a race between the new CIS context being acquired into a CIG and LLL getting a CIS sorted by CIS offset in that CIG. Get only active CISes from the CIG in the LLL prepare. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent 0ef1d98 commit d720032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn_iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ ull_conn_iso_lll_stream_sorted_get_by_group(struct lll_conn_iso_group *cig_lll,
345345
cis = ll_conn_iso_stream_get(handle);
346346

347347
/* Match CIS contexts associated with the CIG */
348-
if (cis->group == cig) {
348+
if ((cis->group == cig) && (cis->lll.active == 1U)) {
349349
if (cis_curr && (cis->lll.offset <= cis_offset_curr)) {
350350
/* Skip already returned CISes with offsets less
351351
* than the current CIS.

0 commit comments

Comments
 (0)