Bluetooth: controller: split: Fix radio abort race condition
When aborting radio event, there is a possibility that the packet timer would start the radio while the packet timer is being reset. Hence, perform a second radio state disable with packet timers uninitialised. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
20e385e675
commit
6f7f5153db
1 changed files with 3 additions and 0 deletions
|
@ -576,6 +576,9 @@ static void isr_abort(void *param)
|
|||
ticker_stop(TICKER_INSTANCE_ID_CTLR, TICKER_USER_ID_LLL,
|
||||
TICKER_ID_SCAN_STOP, NULL, NULL);
|
||||
|
||||
/* Under race conditions, radio could get started while entering ISR */
|
||||
radio_disable();
|
||||
|
||||
isr_cleanup(param);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue