Skip to content

Commit 4362eda

Browse files
cvinayakjhedberg
authored andcommitted
Bluetooth: controller: Fix missing re-initialization of ret_cb
Fix missing re-initialization of ret_cb to TICKER_STATUS_BUSY before every new call to ticker interface functions' with operation's callback. One issue was undirected advertisement disable to return failure status in the scan_adv sample. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent b523520 commit 4362eda

File tree

1 file changed

+2
-0
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+2
-0
lines changed

subsys/bluetooth/controller/ll_sw/ctrl.c

+2
Original file line numberDiff line numberDiff line change
@@ -8147,6 +8147,7 @@ static u32_t role_disable(u8_t ticker_id_primary, u8_t ticker_id_stop)
81478147
_radio.ticker_id_stop = ticker_id_primary;
81488148

81498149
/* Step 1: Is Primary started? Stop the Primary ticker */
8150+
ret_cb = TICKER_STATUS_BUSY;
81508151
ret = ticker_stop(RADIO_TICKER_INSTANCE_ID_RADIO,
81518152
RADIO_TICKER_USER_ID_APP, ticker_id_primary,
81528153
ticker_if_done, (void *)&ret_cb);
@@ -8357,6 +8358,7 @@ u32_t radio_adv_enable(u16_t interval, u8_t chl_map, u8_t filter_policy)
83578358
goto failure_cleanup;
83588359
}
83598360

8361+
ret_cb = TICKER_STATUS_BUSY;
83608362
ret =
83618363
ticker_start(RADIO_TICKER_INSTANCE_ID_RADIO,
83628364
RADIO_TICKER_USER_ID_APP,

0 commit comments

Comments
 (0)