Skip to content

Commit 1e6c69b

Browse files
andrzej-kaczmareknashif
authored andcommitted
Bluetooth: Controller: Update BT_CTLR_ADV_EXT_RX_CNT for ea and df
We need more RX nodes when scanning either extended/periodic advertising trains and CTE samples so pudate those values based on observer and DF features enabled. The number of nodes for non-DF allows to scan complete chain for each aux scan set (assuming max data length and optimal fragmentation by advertiser), for DF it allows to scan max possible PDUs and CTE samples. Signed-off-by: Andrzej Kaczmarek <[email protected]>
1 parent 11da89c commit 1e6c69b

File tree

1 file changed

+11
-4
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+11
-4
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,21 @@
208208
#define BT_CTLR_MAX_CONNECTABLE 1
209209
#endif
210210
#define BT_CTLR_MAX_CONN CONFIG_BT_MAX_CONN
211+
#else
212+
#define BT_CTLR_MAX_CONNECTABLE 0
213+
#define BT_CTLR_MAX_CONN 0
214+
#endif
215+
211216
#if defined(CONFIG_BT_CTLR_ADV_EXT) && defined(CONFIG_BT_OBSERVER)
212-
#define BT_CTLR_ADV_EXT_RX_CNT 1
217+
#if defined(CONFIG_BT_CTLR_DF_CTE_RX)
218+
/* Note: Need node for PDU and CTE sample */
219+
#define BT_CTLR_ADV_EXT_RX_CNT (CONFIG_BT_CTLR_SCAN_AUX_SET * \
220+
CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX * 2)
213221
#else
214-
#define BT_CTLR_ADV_EXT_RX_CNT 0
222+
/* Note: Assume up to 7 PDUs per advertising train (max data length) */
223+
#define BT_CTLR_ADV_EXT_RX_CNT (CONFIG_BT_CTLR_SCAN_AUX_SET * 7)
215224
#endif
216225
#else
217-
#define BT_CTLR_MAX_CONNECTABLE 0
218-
#define BT_CTLR_MAX_CONN 0
219226
#define BT_CTLR_ADV_EXT_RX_CNT 0
220227
#endif
221228

0 commit comments

Comments
 (0)