Bluetooth: Fortify role dependency
Since the peripheral role depends on the broadcaster one, and the central role depends on the observer one, select them automatically instead of using defaults. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
c446c638f4
commit
cb8be12595
1 changed files with 2 additions and 2 deletions
|
@ -45,6 +45,7 @@ config BLUETOOTH_HCI_RAW
|
|||
|
||||
config BLUETOOTH_PERIPHERAL
|
||||
bool "Peripheral Role support"
|
||||
select BLUETOOTH_BROADCASTER
|
||||
select BLUETOOTH_CONN
|
||||
default y if BLUETOOTH_HCI_RAW
|
||||
help
|
||||
|
@ -52,6 +53,7 @@ config BLUETOOTH_PERIPHERAL
|
|||
|
||||
config BLUETOOTH_CENTRAL
|
||||
bool "Central Role support"
|
||||
select BLUETOOTH_OBSERVER
|
||||
select BLUETOOTH_CONN
|
||||
default y if BLUETOOTH_HCI_RAW
|
||||
help
|
||||
|
@ -62,7 +64,6 @@ menu "Broadcaster"
|
|||
|
||||
config BLUETOOTH_BROADCASTER
|
||||
bool "Broadcaster Role support"
|
||||
default y if BLUETOOTH_PERIPHERAL
|
||||
default y if !BLUETOOTH_OBSERVER
|
||||
help
|
||||
Select this for LE Broadcaster role support.
|
||||
|
@ -74,7 +75,6 @@ menu "Observer"
|
|||
|
||||
config BLUETOOTH_OBSERVER
|
||||
bool "Observer Role support"
|
||||
default y if BLUETOOTH_CENTRAL
|
||||
help
|
||||
Select this for LE Observer role support.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue