From 2120beebf411885abcf3c2e1a8f5c3865375d27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Wed, 9 Aug 2017 13:39:35 +0200 Subject: [PATCH] Kconfig: Move BT_WAIT_NOP into subsys/bluetooth/host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CONFIG_BT_WAIT_NOP define is used only by zephyr/subsys/bluetooth/host/hci_core.c. It is also the only config in drivers/bluetooth that is in use when BT_CONTROLLER is enabled. Moving it into the bluetooth subsystem allows us to restructure the drivers/kconfig code such that the entire Bluetooth driver menu option is omitted when the BT_CONTROLLER is enabled. Moving it will also mean that all configs in drivers/bluetooth will now be related to configuring the source code in drivers/bluetooth. Signed-off-by: Sebastian Bøe --- drivers/bluetooth/Kconfig | 9 --------- subsys/bluetooth/host/Kconfig | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index cf0c7bad626..7200784deba 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -29,15 +29,6 @@ config BT_NRF51_PM Power Management support for Nordic BLE nRF51 chip. Allows to enable, disable the chip and handle wakeups. -config BT_WAIT_NOP - bool "Wait for \"NOP\" Command Complete event during init" - depends on BT_HCI - help - Some controllers emit a Command Complete event for the NOP - opcode to indicate that they're ready to receive commands. - This option should be selected if the controller used - exhibits such behavior. - endmenu endif # BT diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index cdb64823b13..f08f0dca0b8 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -62,6 +62,15 @@ config BT_HCI_TX_PRIO int default 7 +config BT_WAIT_NOP + bool "Wait for \"NOP\" Command Complete event during init" + depends on BT_HCI + help + Some controllers emit a Command Complete event for the NOP + opcode to indicate that they're ready to receive commands. + This option should be selected if the controller used + exhibits such behavior. + # Headroom that the driver needs for sending and receiving buffers. # Add a new 'default' entry for each new driver. config BT_HCI_RESERVE