From e16882f0cdf62387162c26126fc7fc5e822d90ca Mon Sep 17 00:00:00 2001 From: SumeetSingh19 Date: Thu, 18 Jan 2024 17:05:52 +0530 Subject: [PATCH] fix(nimble): allow auto connection and observer role --- components/bt/host/nimble/Kconfig.in | 11 +++++++++++ components/bt/host/nimble/nimble | 2 +- .../bt/host/nimble/port/include/esp_nimble_cfg.h | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index df2c193d84..e1fde4d0d3 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -201,6 +201,17 @@ config BT_NIMBLE_LL_CFG_FEAT_LE_ENCRYPTION help Enable encryption connection +config BT_NIMBLE_SM_SC_LVL + int "Security level" + depends on BT_NIMBLE_SECURITY_ENABLE + default 0 + help + LE Security Mode 1 Levels: + 1. No Security + 2. Unauthenticated pairing with encryption + 3. Authenticated pairing with encryption + 4. Authenticated LE Secure Connections pairing with encryption using a 128-bit strength encryption key. + config BT_NIMBLE_DEBUG bool "Enable extra runtime asserts and host debugging" default n diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 31335a5a4f..f9adf083d8 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 31335a5a4fd0e063edc086d3c268399404db3bfd +Subproject commit f9adf083d8d3c81c86ae1094d0d4450862fa4b04 diff --git a/components/bt/host/nimble/port/include/esp_nimble_cfg.h b/components/bt/host/nimble/port/include/esp_nimble_cfg.h index 8942eeb506..49b93c870b 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -844,7 +844,7 @@ #ifndef MYNEWT_VAL_BLE_SM_SC_LVL -#define MYNEWT_VAL_BLE_SM_SC_LVL (0) +#define MYNEWT_VAL_BLE_SM_SC_LVL CONFIG_BT_NIMBLE_SM_SC_LVL #endif #ifndef MYNEWT_VAL_BLE_SM_SC_ONLY