From 237f7eb92a14fb492f626d241a5f46121ccbf447 Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Tue, 3 Mar 2020 23:08:34 +0530 Subject: [PATCH] NimBLE: Fix check for static random address & add MSYS_1 in menuconfig (v3.3) --- components/bt/Kconfig | 10 ++++++++++ components/nimble/port/include/esp_nimble_cfg.h | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index aa24c8bf5c..a90402ac84 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -1556,6 +1556,16 @@ menu Bluetooth low-priority event buffers, then an incoming advertising report will get dropped + config NIMBLE_MSYS1_BLOCK_COUNT + int "MSYS_1 Block Count" + depends on NIMBLE_ENABLED + default 12 + help + MSYS is a system level mbuf registry. For prepare write & prepare + responses MBUFs are allocated out of msys_1 pool. For NIMBLE_MESH + enabled cases, this block count is increased by 8 than user defined + count. + config NIMBLE_HS_FLOW_CTRL bool "Enable Host Flow control" depends on NIMBLE_ENABLED diff --git a/components/nimble/port/include/esp_nimble_cfg.h b/components/nimble/port/include/esp_nimble_cfg.h index 6719c27fb3..7bc749ccab 100644 --- a/components/nimble/port/include/esp_nimble_cfg.h +++ b/components/nimble/port/include/esp_nimble_cfg.h @@ -15,9 +15,9 @@ /*** kernel/os */ #ifndef MYNEWT_VAL_MSYS_1_BLOCK_COUNT #ifdef CONFIG_NIMBLE_MESH -#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (20) +#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (CONFIG_NIMBLE_MSYS1_BLOCK_COUNT + 8) #else -#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (12) +#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT CONFIG_NIMBLE_MSYS1_BLOCK_COUNT #endif #endif