Bluetooth: controller: Fix assert, reset ticker_id_prepare
Fix an assert in next role event preparation when a connection terminated during the connection event being aborted/pre-empted out by the next role event. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
b4598c19e3
commit
b380ab0251
1 changed files with 5 additions and 0 deletions
|
@ -7431,6 +7431,11 @@ static void connection_release(struct connection *conn)
|
|||
if ((_radio.state == STATE_ABORT) &&
|
||||
(_radio.ticker_id_prepare == (RADIO_TICKER_ID_FIRST_CONNECTION +
|
||||
conn->handle))) {
|
||||
/* Reset the stored ticker id in prepare phase that
|
||||
* initiated the connection event abort (pre-emption).
|
||||
*/
|
||||
_radio.ticker_id_prepare = 0;
|
||||
|
||||
ticker_status =
|
||||
ticker_stop(RADIO_TICKER_INSTANCE_ID_RADIO,
|
||||
RADIO_TICKER_USER_ID_WORKER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue