From cccfea24c1a56c75b3f0980dcd9e74783d6bca5f Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Fri, 11 Sep 2020 15:15:33 +0200 Subject: [PATCH] Bluetooth: controller: Fix Kconfig dependencies for PHY options Fix Kconfig dependencies for enabling the controller PHY options for LE 2M Phy and LE Coded Phy. These options should be selectable without connections enabled when extended advertising has been enabled. The issue affects out-of-tree controllers that wish to use the BT_CTLR_PHY_CODED and BT_CTLR_PHY_2M options. Signed-off-by: Joakim Andersson --- subsys/bluetooth/controller/Kconfig | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index c22b8c5f9e7..f8ecfc05d6e 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -338,20 +338,6 @@ config BT_CTLR_PHY select BT_CTLR_EXT_REJ_IND default y -config BT_CTLR_PHY_2M - bool "2Mbps PHY Support" - depends on BT_CTLR_PHY && BT_CTLR_PHY_2M_SUPPORT - default y - help - Enable support for Bluetooth 5.0 2Mbps PHY in the Controller. - -config BT_CTLR_PHY_CODED - bool "Coded PHY Support" - depends on BT_CTLR_PHY && BT_CTLR_PHY_CODED_SUPPORT - default y - help - Enable support for Bluetooth 5.0 Coded PHY in the Controller. - config BT_CTLR_MIN_USED_CHAN bool "Minimum Number of Used Channels" depends on BT_CTLR_MIN_USED_CHAN_SUPPORT @@ -369,6 +355,20 @@ config BT_CTLR_CONN_RSSI endif # BT_CONN +config BT_CTLR_PHY_2M + bool "2Mbps PHY Support" + depends on (BT_CTLR_PHY || BT_CTLR_ADV_EXT) && BT_CTLR_PHY_2M_SUPPORT + default y + help + Enable support for Bluetooth 5.0 2Mbps PHY in the Controller. + +config BT_CTLR_PHY_CODED + bool "Coded PHY Support" + depends on (BT_CTLR_PHY || BT_CTLR_ADV_EXT) && BT_CTLR_PHY_CODED_SUPPORT + default y + help + Enable support for Bluetooth 5.0 Coded PHY in the Controller. + config BT_CTLR_CHAN_SEL_2 bool "Channel Selection Algorithm #2" depends on (BT_CONN || BT_CTLR_ADV_PERIODIC) && BT_CTLR_CHAN_SEL_2_SUPPORT