Skip to content

Commit 07ff037

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Avoid pre-empting when extended active scanning
Avoid pre-empting scan window when extended active scanning. If a scan request has been transmitted, then avoid being pre-empted at the end of window when in continuous scanning. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent be2bd81 commit 07ff037

File tree

1 file changed

+4
-2
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/lll

1 file changed

+4
-2
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,10 @@ static int is_abort_cb(void *next, void *curr, lll_prepare_cb_t *resume_cb)
584584
* done event.
585585
*/
586586
radio_isr_set(isr_done_cleanup, lll);
587-
} else if (lll->is_aux_sched) {
588-
/* Do not abort LLL scheduled auxiliary PDU scan */
587+
} else if (lll->state || lll->is_aux_sched) {
588+
/* Do not abort scan response reception or LLL scheduled
589+
* auxiliary PDU scan.
590+
*/
589591
return 0;
590592
#endif /* CONFIG_BT_CTLR_ADV_EXT */
591593
} else {

0 commit comments

Comments
 (0)