Bluetooth: controller: Fix CIS restart state de-initialization
When a CIS is terminated, the associated link pool must be de- initialized to be ready for next creation of the corresponding instance in memory. Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
parent
6e2dea3e41
commit
44030a9da7
1 changed files with 6 additions and 0 deletions
|
@ -543,6 +543,7 @@ static int init_reset(void)
|
|||
cis = ll_conn_iso_stream_get(handle);
|
||||
cis->cis_id = 0;
|
||||
cis->group = NULL;
|
||||
cis->lll.link_tx_free = NULL;
|
||||
}
|
||||
|
||||
conn_accept_timeout = CONN_ACCEPT_TIMEOUT_DEFAULT;
|
||||
|
@ -962,6 +963,11 @@ static void cis_tx_lll_flush(void *param)
|
|||
(void **)&tx);
|
||||
}
|
||||
|
||||
LL_ASSERT(!lll->link_tx_free);
|
||||
link = memq_deinit(&lll->memq_tx.head, &lll->memq_tx.tail);
|
||||
LL_ASSERT(link);
|
||||
lll->link_tx_free = link;
|
||||
|
||||
/* Resume CIS teardown in ULL_HIGH context */
|
||||
mfys[cig->lll.handle].param = &cig->lll;
|
||||
ret = mayfly_enqueue(TICKER_USER_ID_LLL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue