Skip to content

Commit f642feb

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Increased thread context operation queue count
When ticker job is disabled inside radio events then all advertising, scanning, and slave latency cancel ticker operations will be deferred, requiring increased ticker thread context operation queue count. Relates to #32430. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent f9dd4c2 commit f642feb

File tree

1 file changed

+10
-3
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+10
-3
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,20 @@
9595
#if defined(CONFIG_BT_CTLR_LOW_LAT) && \
9696
(CONFIG_BT_CTLR_LLL_PRIO == CONFIG_BT_CTLR_ULL_LOW_PRIO)
9797
#define TICKER_USER_LLL_OPS (3 + TICKER_USER_LLL_VENDOR_OPS + 1)
98-
#else
98+
/* NOTE: When ticker job is disabled inside radio events then all advertising,
99+
* scanning, and slave latency cancel ticker operations will be deferred,
100+
* requiring increased ticker thread context operation queue count.
101+
*/
102+
#define TICKER_USER_THREAD_OPS (BT_CTLR_ADV_SET + BT_CTLR_SCAN_SET + \
103+
BT_CTLR_CONN_MAX + \
104+
TICKER_USER_THREAD_VENDOR_OPS + 1)
105+
#else /* !CONFIG_BT_CTLR_LOW_LAT */
99106
#define TICKER_USER_LLL_OPS (2 + TICKER_USER_LLL_VENDOR_OPS + 1)
100-
#endif /* CONFIG_BT_CTLR_LOW_LAT */
107+
#define TICKER_USER_THREAD_OPS (1 + TICKER_USER_THREAD_VENDOR_OPS + 1)
108+
#endif /* !CONFIG_BT_CTLR_LOW_LAT */
101109

102110
#define TICKER_USER_ULL_HIGH_OPS (3 + TICKER_USER_ULL_HIGH_VENDOR_OPS + 1)
103111
#define TICKER_USER_ULL_LOW_OPS (1 + 1)
104-
#define TICKER_USER_THREAD_OPS (1 + TICKER_USER_THREAD_VENDOR_OPS + 1)
105112

106113
#if defined(CONFIG_BT_BROADCASTER)
107114
#define BT_ADV_TICKER_NODES ((TICKER_ID_ADV_LAST) - (TICKER_ID_ADV_STOP) + 1)

0 commit comments

Comments
 (0)