Skip to content

Commit a60e59b

Browse files
committed
Bluetooth: Controller: Fix assertion using BT_CTLR_LOW_LAT_ULL_DONE
BT_CTLR_LOW_LAT_ULL_DONE is used to reduce CPU usage in LLL context by delegating the done event dequeue to ULL_HIGH context. Building a HCI Controller with BT_CTLR_LOW_LAT_ULL_DONE had assertion when used with BlueZ stack. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent 7da64e7 commit a60e59b

File tree

1 file changed

+3
-5
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/lll

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,6 @@ int lll_done(void *param)
525525
param = event.curr.param;
526526
event.curr.param = NULL;
527527

528-
#if defined(CONFIG_BT_CTLR_LOW_LAT_ULL_DONE)
529-
done_inc();
530-
#endif /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
531-
532528
if (param) {
533529
ull = HDR_LLL2ULL(param);
534530
} else {
@@ -549,7 +545,9 @@ int lll_done(void *param)
549545

550546
#if !defined(CONFIG_BT_CTLR_LOW_LAT_ULL_DONE)
551547
ull_prepare_dequeue(TICKER_USER_ID_LLL);
552-
#endif /* !CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
548+
#else /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
549+
done_inc();
550+
#endif /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
553551

554552
#if defined(CONFIG_BT_CTLR_JIT_SCHEDULING)
555553
struct event_done_extra *extra;

0 commit comments

Comments
 (0)