From aa81a644173ac6139ee885c93145a5e5d925446c Mon Sep 17 00:00:00 2001 From: Jan Beran Date: Tue, 25 Aug 2026 09:43:39 +0200 Subject: [PATCH] fix(kconfig): use 'n' instead of '0'/'false' for bool defaults Bool symbols in nimble, BTDM, and two examples used invalid default literals. The parser already falls back to 'n'; set that explicitly. Co-authored-by: Cursor --- components/bt/controller/esp32/Kconfig.in | 2 +- components/bt/host/nimble/Kconfig.in | 2 +- examples/peripherals/twai/twai_utils/main/Kconfig.projbuild | 2 +- examples/wifi/scan/main/Kconfig.projbuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/bt/controller/esp32/Kconfig.in b/components/bt/controller/esp32/Kconfig.in index 9b1f39a9fbf..0aa61c0c1a8 100644 --- a/components/bt/controller/esp32/Kconfig.in +++ b/components/bt/controller/esp32/Kconfig.in @@ -177,7 +177,7 @@ config BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT config BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT_EFF bool default BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT if BTDM_CTRL_MODE_BR_EDR_ONLY || BTDM_CTRL_MODE_BTDM - default 0 + default n config BTDM_CTRL_BLE_MAX_CONN_EFF diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index 7bce09a4487..02fdfcdda28 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -1452,7 +1452,7 @@ menu "NimBLE Mesh" config BT_NIMBLE_MESH_PROVISIONER bool "Enable BLE mesh provisioner" - default 0 + default n depends on BT_NIMBLE_MESH help Enable mesh provisioner. diff --git a/examples/peripherals/twai/twai_utils/main/Kconfig.projbuild b/examples/peripherals/twai/twai_utils/main/Kconfig.projbuild index ca20ab0b34c..fa5fbd8b3fc 100644 --- a/examples/peripherals/twai/twai_utils/main/Kconfig.projbuild +++ b/examples/peripherals/twai/twai_utils/main/Kconfig.projbuild @@ -6,7 +6,7 @@ menu "TWAI Configuration" config EXAMPLE_ENABLE_TWAI_FD bool "Enable TWAI-FD Support" depends on SOC_TWAI_FD_SUPPORTED - default false + default n help Enable TWAI-FD (Flexible Data-rate) support. Allows up to 64 bytes of data per frame and dual bit rates. diff --git a/examples/wifi/scan/main/Kconfig.projbuild b/examples/wifi/scan/main/Kconfig.projbuild index cd5d264b703..7284127a9d6 100644 --- a/examples/wifi/scan/main/Kconfig.projbuild +++ b/examples/wifi/scan/main/Kconfig.projbuild @@ -9,7 +9,7 @@ menu "Example Configuration" config EXAMPLE_USE_SCAN_CHANNEL_BITMAP bool "Scan only non overlapping channels using Channel bitmap" - default 0 + default n help Enable this to scan only the non overlapping channels i.e 1,6,11 by mentioning a channel bitmap in scan config. If you wish to scan a different set of specific channels, please edit the channel_list