From eeb29e8397e883f02024316175f379bbc6970aa5 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 21 Jan 2016 11:35:42 +0100 Subject: [PATCH] drivers/nble: Fix overwriting default Kconfig values NBLE defaults (eg for BLUETOOTH_MAX_PAIRED) were not limited to !BLUETOOTH and resulted in overwriting BLUETOOTH defaults. Change-Id: I1e4a90c00c15252bb3db927b42641f9a479f4aa6 Signed-off-by: Szymon Janc --- drivers/nble/Kconfig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/nble/Kconfig b/drivers/nble/Kconfig index dd0782ebf57..3bb01aa7663 100644 --- a/drivers/nble/Kconfig +++ b/drivers/nble/Kconfig @@ -16,9 +16,7 @@ # limitations under the License. # -# These BLUETOOTH_* dependencies are redefined here since we can't use -# net/bluetooth/KConfig (which depend on CONFIG_BLUETOOTH) -# +if !BLUETOOTH config BLUETOOTH_PERIPHERAL bool default n @@ -42,7 +40,6 @@ config BLUETOOTH_MAX_PAIRED config NBLE bool "Support for custom Nordic Semiconductor BLE protocol" default n - depends on !BLUETOOTH select BLUETOOTH_PERIPHERAL select BLUETOOTH_CENTRAL select BLUETOOTH_GATT_CLIENT @@ -52,3 +49,4 @@ config NBLE LE chips with a custom firmware. The API for this is a subset of the normal Bluetooth API (include/bluetooth/*.h). This driver can only be enabled if CONFIG_BLUETOOTH has not been enabled. +endif