From ec1e66ebd80802099f42019830b20e25d1903f87 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 23 Dec 2019 18:02:09 +0530 Subject: [PATCH] Bluetooth: controller: Add Kconfig option for parameter checking Added Kconfig option to conditionally compile in HCI command parameter validation code. When building a combined host plus controller application, only validations in the host at the top level close to the API caller is sufficient. The controller validations are included in controller only builds. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 1afb8ea5ac2..ec9b624f31b 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -704,6 +704,13 @@ config BT_CTLR_SW_SWITCH_SINGLE_TIMER PPI channels for the controller, resulting in 4 channels less left for other uses +config BT_CTLR_PARAM_CHECK + bool "Enable HCI Command Parameter checking" + default y if BT_HCI_RAW + help + Enable code checking HCI Command Parameters. This is not needed in + combined host plus controller builds, saving some code space. + if BT_CONN config BT_CTLR_FAST_ENC