This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit ed17f0a5a9d05ecdb49d099ba94e8f29335df8cf Author: Szymon Janc <[email protected]> AuthorDate: Sat Oct 10 12:39:34 2026 +0200 nimble/host: Fix Channel Sounding BLE_VERSION requirements Channel Sounding was introduced in Bluetooth Core 6.0. Add syscfg restriction and enable Channel Sounding events only if controller supports Core 6.0 or later. Assisted-by: Claude:claude-opus-5-5 --- nimble/host/src/ble_hs_startup.c | 2 +- nimble/syscfg.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs_startup.c b/nimble/host/src/ble_hs_startup.c index 2f95880be..7a74e478b 100644 --- a/nimble/host/src/ble_hs_startup.c +++ b/nimble/host/src/ble_hs_startup.c @@ -314,7 +314,7 @@ ble_hs_startup_le_set_evmask_tx(void) #endif #if MYNEWT_VAL(BLE_CHANNEL_SOUNDING) - if (version >= BLE_HCI_VER_BCS_5_4) { + if (version >= BLE_HCI_VER_BCS_6_0) { /** * Enable the following LE events: * 0x0000080000000000 LE CS Read Remote Supported Capabilities Complete event diff --git a/nimble/syscfg.yml b/nimble/syscfg.yml index f78f631b5..f4fdb4e9b 100644 --- a/nimble/syscfg.yml +++ b/nimble/syscfg.yml @@ -119,6 +119,8 @@ syscfg.defs: description: > This enables Channel Sounding feature value: 0 + restrictions: + - '(BLE_VERSION >= 60) if 1' BLE_HCI_VS: description: >
