Skip to content

Commit 523f0f9

Browse files
ppryga-nordiccarlescufi
authored andcommitted
Bluetooth: Controller: df: Fix build err if scan cte rx disabled
CONFIG_BT_CTLR_DF_CTE_RX is enabled by default if CONFIG_BT_CLTR_DF is enabled and there is support for DF in given SOC. If CONFIG_BT_CTLR_DF_SCAN_CTE_RX is disabled then the CONFIG_BT_CTLR- _PER_SCAN_CTE_NUM_MAX is not available. It causes build errors if that particular configuration is used by an application. It was a case for example in split builds of direction finding connectionless TX sample application were periodic advertising was enabled but perddioc advertising sync was disabled. The commit fixes the problem. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 4f17726 commit 523f0f9

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@
219219
#endif
220220

221221
#if defined(CONFIG_BT_CTLR_ADV_EXT) && defined(CONFIG_BT_OBSERVER)
222-
#if defined(CONFIG_BT_CTLR_DF_CTE_RX)
222+
#if defined(CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX)
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)
226226
#else
227227
/* Note: Assume up to 7 PDUs per advertising train (max data length) */
228228
#define BT_CTLR_ADV_EXT_RX_CNT (CONFIG_BT_CTLR_SCAN_AUX_SET * 7)
229-
#endif
229+
#endif /* CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX */
230230
#else
231231
#define BT_CTLR_ADV_EXT_RX_CNT 0
232-
#endif /* CONFIG_BT_CTLR_DF_CTE_RX */
232+
#endif /* CONFIG_BT_CTLR_ADV_EXT && CONFIG_BT_OBSERVER */
233233

234234
#if !defined(TICKER_USER_LLL_VENDOR_OPS)
235235
#define TICKER_USER_LLL_VENDOR_OPS 0

0 commit comments

Comments
 (0)