Skip to content

Commit 72a2be3

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 72a2be3

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 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,6 +545,8 @@ int lll_done(void *param)
549545

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

554552
#if defined(CONFIG_BT_CTLR_JIT_SCHEDULING)

0 commit comments

Comments
 (0)