From c84d05a3fef86cc3b5c79eb57453b0865c9a8334 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 29 Oct 2015 10:02:23 +0100 Subject: [PATCH] Bluetooth: Allow to enable debugs without connection support BLUETOOTH_DEBUG and BLUETOOTH_DEBUG_HCI_CORE options are also useful for Broadcaster and Observer roles and should not depends on connection support. Change-Id: Ice1142f3dcc5d73e5460449cc1444a1345eb624a Signed-off-by: Szymon Janc --- net/bluetooth/Kconfig | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index be51bc80d39..7478e1286db 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig @@ -40,6 +40,24 @@ config BLUETOOTH_CENTRAL default n select BLUETOOTH_CONN +config BLUETOOTH_DEBUG + bool + prompt "Bluetooth LE debug support" + select STDOUT_CONSOLE + default n + help + This option enables Bluetooth debug going to standard + serial console. + +config BLUETOOTH_DEBUG_HCI_CORE + bool + prompt "Bluetooth HCI core debug" + depends on BLUETOOTH_DEBUG + default n + help + This option enables debug support for Bluetooth HCI + core. + if BLUETOOTH_PERIPHERAL || BLUETOOTH_CENTRAL config BLUETOOTH_SMP bool @@ -85,25 +103,6 @@ config BLUETOOTH_MAX_PAIRED Maximum number of paired Bluetooth devices. The minimum (and default) number is 1. -config BLUETOOTH_DEBUG - bool - prompt "Bluetooth LE debug support" - depends on BLUETOOTH - select STDOUT_CONSOLE - default n - help - This option enables Bluetooth debug going to standard - serial console. - -config BLUETOOTH_DEBUG_HCI_CORE - bool - prompt "Bluetooth HCI core debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for Bluetooth HCI - core - config BLUETOOTH_DEBUG_CONN bool prompt "Bluetooth connection debug"