From 57985805854de2752fde1518b99171bd448a6726 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 11 Jul 2026 20:46:30 +0200 Subject: [PATCH 1/2] wireless/bluetooth/nimble: make transport ACL buffer count configurable The controller<->host ACL pool was hardcoded to 10 buffers (~6 KiB with the 251-byte ACL size). Expose NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT and NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT (default 10) so RAM-constrained single-connection peripherals can lower it. Signed-off-by: raiden00pl --- wireless/bluetooth/nimble/Kconfig | 12 ++++++++++++ wireless/bluetooth/nimble/include/syscfg/syscfg.h | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/wireless/bluetooth/nimble/Kconfig b/wireless/bluetooth/nimble/Kconfig index b679ec6bdf8..9be1030bef8 100644 --- a/wireless/bluetooth/nimble/Kconfig +++ b/wireless/bluetooth/nimble/Kconfig @@ -219,6 +219,18 @@ config NIMBLE_MSYS_2_BLOCK_SIZE int "NimBLE MSYS_2 block size" default 0 +config NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT + int "NimBLE transport ACL buffer count (controller to host)" + default 10 + ---help--- + Number of ACL buffers in the transport pool. + +config NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT + int "NimBLE transport ACL buffer count (host to controller)" + default 10 + ---help--- + Number of ACL buffers in the transport pool. + endmenu # "NimBLE memory configuration" config NIMBLE_PORTING_EXAMPLE diff --git a/wireless/bluetooth/nimble/include/syscfg/syscfg.h b/wireless/bluetooth/nimble/include/syscfg/syscfg.h index a10f5f3d3b4..22f93a5fab4 100644 --- a/wireless/bluetooth/nimble/include/syscfg/syscfg.h +++ b/wireless/bluetooth/nimble/include/syscfg/syscfg.h @@ -57,8 +57,8 @@ /* Transport configuration */ -#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (10) -#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (10) +#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (CONFIG_NIMBLE_TRANSPORT_ACL_FROM_HS_COUNT) +#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (CONFIG_NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT) #define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE (251) #define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT (4) #define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT (16) From 29c5d3475e8fd4978e88ca6827e9457710a9731d Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 14 Jul 2026 10:55:07 +0200 Subject: [PATCH 2/2] codespell: ignore ANS error ignore ANS codespell error. ANS -> Alert Notification Service in bLE Signed-off-by: raiden00pl --- .codespell-ignore-lines | 1 + 1 file changed, 1 insertion(+) diff --git a/.codespell-ignore-lines b/.codespell-ignore-lines index 92f702a35d5..5902decaee2 100644 --- a/.codespell-ignore-lines +++ b/.codespell-ignore-lines @@ -13,3 +13,4 @@ MUSIC("betwee"), MUSIC("doom"), MUSIC("the_da"), MUSIC("shawn"), MUSIC("messag"), MUSIC("count2"), MUSIC("ddtbl3"), MUSIC("ampie"), MUSIC("tense"), MUSIC("shawn3"), MUSIC("openin"), MUSIC("evil"), +/* ANS service */