From 85e9a0fa17f5e8c7e5a80674c110b2e9b3b68762 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Thu, 15 Jun 2017 15:48:20 +0800 Subject: [PATCH] component/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT 1. For now, some security related functions used in classic Bluetooth are controlled by "SMP_ENABLE". This commit fixes the dependency. 2. The two options, "CLASSIC_BT_ENABLED" and "SMP_ENABLED" The two options will be decoupled in the future. --- components/bt/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 33dc94445..fd805bd7f 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -28,6 +28,8 @@ config CLASSIC_BT_ENABLED bool "Classic Bluetooth" depends on BLUEDROID_ENABLED default n + help + For now this option needs "SMP_ENABLE" to be set to yes config BT_DRAM_RELEASE bool "Release DRAM from Classic BT controller" @@ -52,8 +54,8 @@ config GATTC_ENABLE help This option can be close when the app work only on gatt server mode -config SMP_ENABLE - bool "Include BT security module(SMP)" +config BLE_SMP_ENABLE + bool "Include BLE security module(SMP)" depends on BLUEDROID_ENABLED default y help @@ -112,6 +114,11 @@ config BT_HCI_UART_BAUDRATE help UART Baudrate for HCI. Please use standard baudrate. +config SMP_ENABLE + bool + depends on BLUEDROID_ENABLED + default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE + # Memory reserved at start of DRAM for Bluetooth stack config BT_RESERVE_DRAM hex