bluetooth: controller: BT_CTLR_CONN_RSSI as a shared controller opt

Use a helper config BT_CTLR_CONN_RSSI_SUPPORT so that it is only
enabled when supported by the controller.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
Rubin Gerritsen 2020-08-27 08:55:41 +02:00 committed by Carles Cufí
commit 69867a48db
2 changed files with 11 additions and 6 deletions

View file

@ -51,9 +51,11 @@ config BT_CTLR_DTM_HCI_SUPPORT
config BT_CTLR_SMI_SUPPORT
bool
config BT_CTLR_CONN_RSSI_SUPPORT
bool
config BT_CTLR
bool "Bluetooth Controller"
select BT_CTLR_CONN_RSSI if BT_CONN && BT_HCI_RAW
help
Enables support for SoC native controller implementations.
@ -352,6 +354,13 @@ config BT_CTLR_MIN_USED_CHAN
Enable support for Bluetooth 5.0 Minimum Number of Used Channels
Procedure in the Controller.
config BT_CTLR_CONN_RSSI
bool "Connection RSSI"
depends on BT_CTLR_CONN_RSSI_SUPPORT
default y if BT_HCI_RAW
help
Enable connection RSSI measurement.
endif # BT_CONN
config BT_CTLR_CHAN_SEL_2

View file

@ -27,6 +27,7 @@ config BT_LLL_VENDOR_NORDIC
select BT_CTLR_CHAN_SEL_2_SUPPORT
select BT_CTLR_MIN_USED_CHAN_SUPPORT
select BT_CTLR_DTM_HCI_SUPPORT
select BT_CTLR_CONN_RSSI_SUPPORT
select BT_CTLR_XTAL_ADVANCED_SUPPORT
select BT_CTLR_SCHED_ADVANCED_SUPPORT
@ -374,11 +375,6 @@ config BT_CTLR_TX_RETRY_DISABLE
would happen in the next connection event instead of repeated retries
in the current connection event.
config BT_CTLR_CONN_RSSI
bool "Connection RSSI"
help
Enable connection RSSI measurement.
config BT_CTLR_CONN_RSSI_EVENT
bool "Connection RSSI event"
depends on BT_CTLR_CONN_RSSI