Skip to content

Commit 681127f

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Fix allocations for chain reception
Do not implicitly allocate Rx buffers for maximum chain PDU reception. Instead let applications increase as required the Kconfig CONFIG_BT_CTLR_RX_BUFFERS. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 0eee702 commit 681127f

File tree

1 file changed

+5
-6
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+5
-6
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,12 @@
223223
/* Note: Need node for PDU and CTE sample */
224224
#define BT_CTLR_ADV_EXT_RX_CNT (CONFIG_BT_CTLR_SCAN_AUX_SET * \
225225
CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX * 2)
226-
#else
227-
/* Note: Assume up to 7 PDUs per advertising train (max data length) */
228-
#define BT_CTLR_ADV_EXT_RX_CNT (CONFIG_BT_CTLR_SCAN_AUX_SET * 7)
229-
#endif /* CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX */
230-
#else
226+
#else /* !CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX */
227+
#define BT_CTLR_ADV_EXT_RX_CNT 1
228+
#endif /* !CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX */
229+
#else /* !CONFIG_BT_CTLR_ADV_EXT || !CONFIG_BT_OBSERVER */
231230
#define BT_CTLR_ADV_EXT_RX_CNT 0
232-
#endif /* CONFIG_BT_CTLR_ADV_EXT && CONFIG_BT_OBSERVER */
231+
#endif /* !CONFIG_BT_CTLR_ADV_EXT || !CONFIG_BT_OBSERVER */
233232

234233
#if !defined(TICKER_USER_LLL_VENDOR_OPS)
235234
#define TICKER_USER_LLL_VENDOR_OPS 0

0 commit comments

Comments
 (0)