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 <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-09-11 15:15:33 +02:00 committed by Ioannis Glaropoulos
commit cccfea24c1

View file

@ -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