Skip to content

Commit 9eb5f85

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: Reserve an additional node rx for Ext. Initiator
Reserve an additional node rx buffer when Extended Initiator is supported as the received ADV_EXT_IND PDU is being buffered in the auxiliary channel scanning instance and is only released/flushed in the done event of the initiating auxiliary channel radio event. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 2367551 commit 9eb5f85

File tree

1 file changed

+7
-1
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+7
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,15 @@
181181
#define BT_CTLR_MAX_CONNECTABLE 1
182182
#endif
183183
#define BT_CTLR_MAX_CONN CONFIG_BT_MAX_CONN
184+
#if defined(CONFIG_BT_CTLR_ADV_EXT) && defined(CONFIG_BT_CENTRAL)
185+
#define BT_CTLR_ADV_EXT_RX_CNT 1
186+
#else
187+
#define BT_CTLR_ADV_EXT_RX_CNT 0
188+
#endif
184189
#else
185190
#define BT_CTLR_MAX_CONNECTABLE 0
186191
#define BT_CTLR_MAX_CONN 0
192+
#define BT_CTLR_ADV_EXT_RX_CNT 0
187193
#endif
188194

189195
#if !defined(TICKER_USER_LLL_VENDOR_OPS)
@@ -285,7 +291,7 @@ static struct {
285291
/* No. of node rx for LLL to ULL.
286292
* Reserve 3, 1 for adv data, 1 for scan response and 1 for empty PDU reception.
287293
*/
288-
#define PDU_RX_CNT (CONFIG_BT_CTLR_RX_BUFFERS + 3)
294+
#define PDU_RX_CNT (3 + BT_CTLR_ADV_EXT_RX_CNT + CONFIG_BT_CTLR_RX_BUFFERS)
289295

290296
/* Part sum of LLL to ULL and ULL to LL/HCI thread node rx count.
291297
* Will be used below in allocating node rx pool.

0 commit comments

Comments
 (0)