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 <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-12-23 18:02:09 +05:30 committed by Alberto Escolar
commit ec1e66ebd8

View file

@ -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