From 9a2be89557ec8537b3348c956ecf2e9a90dcef24 Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Fri, 15 Oct 2021 14:14:16 +0200 Subject: [PATCH] kconfig: bluetooth: experimental settings now uses select EXPERIMENTAL With the introduction of `EXPERIMENTAL` and `WARN_EXPERIMENTAL` in Zephyr all subsys/bluetooth and drivers/bluetooth/hci settings having `[EXPERIMENTAL]` in their prompt has has been updated to include `select EXPERIMENTAL` so that developers can enable warnings when experimental features are enabled. Signed-off-by: Torsten Rasmussen --- drivers/bluetooth/hci/Kconfig | 1 + subsys/bluetooth/Kconfig.adv | 3 +++ subsys/bluetooth/Kconfig.iso | 2 ++ subsys/bluetooth/audio/Kconfig | 3 ++- subsys/bluetooth/controller/Kconfig | 8 ++++++++ subsys/bluetooth/controller/Kconfig.df | 3 ++- subsys/bluetooth/host/Kconfig | 6 ++++++ subsys/bluetooth/host/Kconfig.gatt | 1 + subsys/bluetooth/mesh/Kconfig | 1 + subsys/bluetooth/services/ots/Kconfig | 1 + 10 files changed, 27 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index c9ea0ede759..d3315bd6eea 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -25,6 +25,7 @@ config BT_H5 bool "H:5 UART [EXPERIMENTAL]" select UART_INTERRUPT_DRIVEN select BT_UART + select EXPERIMENTAL depends on SERIAL help Bluetooth three-wire (H:5) UART driver. Implementation of HCI diff --git a/subsys/bluetooth/Kconfig.adv b/subsys/bluetooth/Kconfig.adv index 72f1a49414a..b051935db37 100644 --- a/subsys/bluetooth/Kconfig.adv +++ b/subsys/bluetooth/Kconfig.adv @@ -16,6 +16,7 @@ config BT_LIM_ADV_TIMEOUT config BT_EXT_ADV bool "Extended Advertising and Scanning support [EXPERIMENTAL]" + select EXPERIMENTAL help Select this to enable Extended Advertising API support. This enables support for advertising with multiple advertising sets, @@ -45,6 +46,7 @@ config BT_EXT_ADV_MAX_ADV_SET config BT_PER_ADV bool "Periodic Advertising and Scanning support [EXPERIMENTAL]" + select EXPERIMENTAL help Select this to enable Periodic Advertising API support. This allows the device to send advertising data periodically at deterministic @@ -54,6 +56,7 @@ config BT_PER_ADV config BT_PER_ADV_SYNC bool "Periodic advertising sync support [EXPERIMENTAL]" depends on BT_OBSERVER + select EXPERIMENTAL help Select this to enable Periodic Advertising Sync API support. Syncing with a periodic advertiser allows the device to periodically diff --git a/subsys/bluetooth/Kconfig.iso b/subsys/bluetooth/Kconfig.iso index 73322c08082..3e5d7a39f0b 100644 --- a/subsys/bluetooth/Kconfig.iso +++ b/subsys/bluetooth/Kconfig.iso @@ -12,6 +12,7 @@ config BT_ISO_UNICAST bool "Bluetooth Isochronous Channel Unicast Support [EXPERIMENTAL]" depends on BT_CONN select BT_ISO + select EXPERIMENTAL help This option enables support for Bluetooth Broadcast Isochronous channels. @@ -34,6 +35,7 @@ config BT_ISO_SYNC_RECEIVER select BT_ISO_BROADCAST select BT_OBSERVER select BT_PER_ADV_SYNC + select EXPERIMENTAL help This option enables support for the Bluetooth Isochronous Synchronized Receiver. diff --git a/subsys/bluetooth/audio/Kconfig b/subsys/bluetooth/audio/Kconfig index c5dd80f479f..a2c164c2ce0 100644 --- a/subsys/bluetooth/audio/Kconfig +++ b/subsys/bluetooth/audio/Kconfig @@ -7,7 +7,8 @@ # menuconfig BT_AUDIO - bool "Bluetooth Audio support [Experimental]" + bool "Bluetooth Audio support [EXPERIMENTAL]" + select EXPERIMENTAL help This option enables Bluetooth Audio support. The specific features that are available may depend on other features diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 46f8fcdf5da..3b642cd9c04 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -454,6 +454,7 @@ config BT_CTLR_ADV_EXT config BT_CTLR_ADV_EXT prompt "LE Advertising Extensions [EXPERIMENTAL]" if BT_LL_SW_SPLIT + select EXPERIMENTAL if BT_LL_SW_SPLIT if BT_CTLR_ADV_EXT @@ -490,6 +491,7 @@ config BT_CTLR_ADV_PERIODIC config BT_CTLR_ADV_PERIODIC bool "LE Periodic Advertising in Advertising State [EXPERIMENTAL]" if BT_LL_SW_SPLIT + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_SYNC_PERIODIC bool "LE Periodic Advertising in Synchronization State" if !BT_LL_SW_SPLIT @@ -502,6 +504,7 @@ config BT_CTLR_SYNC_PERIODIC config BT_CTLR_SYNC_PERIODIC bool "LE Periodic Advertising in Synchronization State [EXPERIMENTAL]" if BT_LL_SW_SPLIT + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_SYNC_PERIODIC_ADV_LIST bool "LE Periodic Advertiser List support" @@ -538,6 +541,7 @@ config BT_CTLR_ADV_ISO config BT_CTLR_ADV_ISO bool "LE Broadcast Isochronous Channel advertising [EXPERIMENTAL]" if BT_LL_SW_SPLIT + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_SYNC_ISO bool "LE Broadcast Isochronous Channel advertising sync" if !BT_LL_SW_SPLIT @@ -550,6 +554,7 @@ config BT_CTLR_SYNC_ISO config BT_CTLR_SYNC_ISO bool "LE Broadcast Isochronous Channel advertising sync [EXPERIMENTAL]" if BT_LL_SW_SPLIT + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_BROADCAST_ISO bool @@ -584,6 +589,7 @@ endif # BT_CTLR_ADV_EXT config BT_CTLR_SET_HOST_FEATURE bool "LE Set Host Feature Command [EXPERIMENTAL]" + select EXPERIMENTAL help Enables optional LE Set Host Feature Command @@ -597,6 +603,7 @@ config BT_CTLR_CENTRAL_ISO config BT_CTLR_CENTRAL_ISO bool "LE Connected Isochronous Stream Central [EXPERIMENTAL]" if BT_LL_SW_SPLIT select BT_CTLR_SET_HOST_FEATURE + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_PERIPHERAL_ISO bool "LE Connected Isochronous Stream Peripheral" if !BT_LL_SW_SPLIT @@ -608,6 +615,7 @@ config BT_CTLR_PERIPHERAL_ISO config BT_CTLR_PERIPHERAL_ISO bool "LE Connected Isochronous Stream Peripheral [EXPERIMENTAL]" if BT_LL_SW_SPLIT select BT_CTLR_SET_HOST_FEATURE + select EXPERIMENTAL if BT_LL_SW_SPLIT config BT_CTLR_CONN_ISO bool diff --git a/subsys/bluetooth/controller/Kconfig.df b/subsys/bluetooth/controller/Kconfig.df index d2e90af6be5..bc2e16a6c39 100644 --- a/subsys/bluetooth/controller/Kconfig.df +++ b/subsys/bluetooth/controller/Kconfig.df @@ -30,8 +30,9 @@ config BT_CTLR_CTEINLINE_SUPPORT bool menuconfig BT_CTLR_DF - bool "LE Direction Finding [Experimental]" + bool "LE Direction Finding [EXPERIMENTAL]" depends on BT_CTLR_DF_SUPPORT + select EXPERIMENTAL help Enable support for Bluetooth 5.1 Direction Finding diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 52b0c27b85f..38be04ebb05 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -551,6 +551,7 @@ config BT_ID_MAX config BT_DF bool "Enable Direction Finding support [EXPERIMENTAL]" + select EXPERIMENTAL help Enable support for Bluetooth 5.1 Direction Finding. It will allow to: get information about antennae, configure @@ -752,6 +753,7 @@ config BT_BREDR select BT_CENTRAL select BT_SMP select BT_L2CAP_DYNAMIC_CHANNEL + select EXPERIMENTAL help This option enables Bluetooth BR/EDR support @@ -766,6 +768,7 @@ config BT_MAX_SCO_CONN config BT_RFCOMM bool "Bluetooth RFCOMM protocol support [EXPERIMENTAL]" + select EXPERIMENTAL help This option enables Bluetooth RFCOMM support @@ -782,17 +785,20 @@ config BT_HFP_HF bool "Bluetooth Handsfree profile HF Role support [EXPERIMENTAL]" depends on PRINTK select BT_RFCOMM + select EXPERIMENTAL help This option enables Bluetooth HF support config BT_AVDTP bool "Bluetooth AVDTP protocol support [EXPERIMENTAL]" + select EXPERIMENTAL help This option enables Bluetooth AVDTP support config BT_A2DP bool "Bluetooth A2DP Profile [EXPERIMENTAL]" select BT_AVDTP + select EXPERIMENTAL help This option enables the A2DP profile diff --git a/subsys/bluetooth/host/Kconfig.gatt b/subsys/bluetooth/host/Kconfig.gatt index 29e5d62b030..8e22a77b570 100644 --- a/subsys/bluetooth/host/Kconfig.gatt +++ b/subsys/bluetooth/host/Kconfig.gatt @@ -27,6 +27,7 @@ config BT_ATT_PREPARE_COUNT config BT_EATT bool "Enhanced ATT Bearers support [EXPERIMENTAL]" depends on BT_L2CAP_ECRED + select EXPERIMENTAL help This option enables support for Enhanced ATT bearers support. When enabled additional L2CAP channels can be connected as bearers enabling diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index 9ec8c02326b..257833427e6 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -69,6 +69,7 @@ config BT_MESH_PROVISIONER config BT_MESH_CDB bool "Mesh Configuration Database [EXPERIMENTAL]" default y if BT_MESH_PROVISIONER + select EXPERIMENTAL if BT_MESH_CDB diff --git a/subsys/bluetooth/services/ots/Kconfig b/subsys/bluetooth/services/ots/Kconfig index 78aa32ae4ca..c211bee2627 100644 --- a/subsys/bluetooth/services/ots/Kconfig +++ b/subsys/bluetooth/services/ots/Kconfig @@ -8,6 +8,7 @@ config BT_OTS select BT_L2CAP_DYNAMIC_CHANNEL select BT_GATT_DYNAMIC_DB select BT_SMP + select EXPERIMENTAL help Enable Object Transfer Service.