From f86f1f30a97ca2b905093cc14d17d04ab6cf3f6f Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Thu, 12 Dec 2024 15:29:32 +0800 Subject: [PATCH] samples: wifi: shell: use MBEDTLS_ENABLE_HEAP for RW612 For the latest upstream, if MBEDTLS_ENABLE_HEAP is not enabled, it will default select MBEDTLS_PSA_STATIC_KEY_SLOTS, and consume extra SRAM for about 35KB. Therefore, default enable MBEDTLS_ENABLE_HEAP. Signed-off-by: Maochen Wang --- samples/net/wifi/shell/boards/overlay_hostap_rw612.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/net/wifi/shell/boards/overlay_hostap_rw612.conf b/samples/net/wifi/shell/boards/overlay_hostap_rw612.conf index eb79c28e55dc7d..79fa9b7ed39171 100644 --- a/samples/net/wifi/shell/boards/overlay_hostap_rw612.conf +++ b/samples/net/wifi/shell/boards/overlay_hostap_rw612.conf @@ -25,7 +25,9 @@ CONFIG_ENTROPY_GENERATOR=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y CONFIG_MBEDTLS_ENTROPY_C=y CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=8192 -CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=80000 +# mbedtls heap for enterprise case +CONFIG_MBEDTLS_ENABLE_HEAP=y +CONFIG_MBEDTLS_HEAP_SIZE=69952 #priority CONFIG_WIFI_NM_WPA_SUPPLICANT_WQ_PRIO=3