From b71eb71de72f2c688c114f6cd8809dd11522bc2f Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Tue, 1 Oct 2019 16:10:05 +0530 Subject: [PATCH] Bluetooth: controller: Fix Kconfig conditional optionals Fix Kconfig conditional include of Minimum Channels Used and Channel Selection Algorithm #2. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/Kconfig | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index a09a78d97d3..49ba3968148 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -324,15 +324,6 @@ config BT_CTLR_PHY select BT_CTLR_EXT_REJ_IND default y if SOC_COMPATIBLE_NRF52X || BT_CTLR_PHY_2M_NRF -endif # BT_CONN - -config BT_CTLR_CHAN_SEL_2 - bool "Channel Selection Algorithm #2" - default y - help - Enable support for Bluetooth 5.0 LE Channel Selection Algorithm #2 in - the Controller. - config BT_CTLR_MIN_USED_CHAN bool "Minimum Number of Used Channels" default y @@ -340,6 +331,16 @@ config BT_CTLR_MIN_USED_CHAN Enable support for Bluetooth 5.0 Minimum Number of Used Channels Procedure in the Controller. +endif # BT_CONN + +config BT_CTLR_CHAN_SEL_2 + bool "Channel Selection Algorithm #2" + depends on BT_CONN || BT_CTLR_ADV_EXT + default y + help + Enable support for Bluetooth 5.0 LE Channel Selection Algorithm #2 in + the Controller. + config BT_CTLR_ADV_EXT bool "LE Advertising Extensions" select BT_CTLR_SCAN_REQ_NOTIFY