Skip to content

Commit 1291e4b

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Fix initialization of lazy_active
Fix initialization of CIS lazy_active event count used when first CIS event is active. Now initialization for first and any subsequent CISes made active. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent afd48e0 commit 1291e4b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn_iso.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,10 @@ void ull_conn_iso_start(struct ll_conn *conn, uint16_t cis_handle,
851851
*/
852852
if (cig->state == CIG_STATE_ACTIVE) {
853853
#if !defined(CONFIG_BT_CTLR_JIT_SCHEDULING)
854+
/* Initialize CIS event lazy at CIS create */
855+
cis->lll.lazy_active = 0U;
856+
857+
/* Deferred fill CIS event lazy value at CIS create */
854858
cis_lazy_fill(cis);
855859
#else /* CONFIG_BT_CTLR_JIT_SCHEDULING */
856860
/* Set CIS active in already active CIG */
@@ -996,6 +1000,9 @@ void ull_conn_iso_start(struct ll_conn *conn, uint16_t cis_handle,
9961000
}
9971001

9981002
ticks_slot = cig->ull.ticks_slot + ticks_slot_overhead;
1003+
1004+
/* Initialize CIS event lazy at CIS create */
1005+
cis->lll.lazy_active = 0U;
9991006
#endif /* !CONFIG_BT_CTLR_JIT_SCHEDULING */
10001007

10011008
/* Start CIS peripheral CIG ticker */
@@ -1014,11 +1021,6 @@ void ull_conn_iso_start(struct ll_conn *conn, uint16_t cis_handle,
10141021
/* Set CIG and the first CIS state as active */
10151022
cig->state = CIG_STATE_ACTIVE;
10161023
cis->lll.active = 1U;
1017-
1018-
#if !defined(CONFIG_BT_CTLR_JIT_SCHEDULING)
1019-
/* CIS event lazy at CIS create */
1020-
cis->lll.lazy_active = 0U;
1021-
#endif /* !CONFIG_BT_CTLR_JIT_SCHEDULING */
10221024
}
10231025

10241026
#if !defined(CONFIG_BT_CTLR_JIT_SCHEDULING)

0 commit comments

Comments
 (0)