From a4a1be0cf95821dd6b8bd087a2ea50840d9bd09d Mon Sep 17 00:00:00 2001 From: Sumeet Singh Date: Tue, 5 Nov 2024 21:30:52 +0530 Subject: [PATCH] feat(nimble): Added ways to enable/disable some menuconfig options at runtime --- components/bt/host/nimble/port/include/esp_nimble_cfg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 8359e87fa6..327aa3fae7 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -810,7 +810,7 @@ #define MYNEWT_VAL_BLE_HS_SYSINIT_STAGE (200) #endif -#if CONFIG_BT_NIMBLE_EATT_CHAN_NUM +#if CONFIG_BT_NIMBLE_EATT_CHAN_NUM > CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM #define MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM (CONFIG_BT_NIMBLE_EATT_CHAN_NUM) #else #ifndef CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM @@ -954,7 +954,11 @@ #endif #ifndef MYNEWT_VAL_BLE_SM_SC_ONLY +#ifdef CONFIG_BT_NIMBLE_SM_SC_ONLY #define MYNEWT_VAL_BLE_SM_SC_ONLY (CONFIG_BT_NIMBLE_SM_SC_ONLY) +#else +#define MYNEWT_VAL_BLE_SM_SC_ONLY (0) +#endif #endif