Skip to content

Commit 42701fd

Browse files
MaochenWang1kartben
authored andcommitted
hostap: update the default heap size for hostap
As kernel heap is used for hostap, which replaced libc heap, then no need to consider the MBEDTLS_ENABLE_HEAP case. For enterprise case, mbedtls will use MBEDTLS_HEAP or libc heap to allocate memory, instead of the kernel heap. Modify the heap size for enterprise case to have necessary memory. Signed-off-by: Maochen Wang <[email protected]>
1 parent f9901e8 commit 42701fd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/hostap/Kconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ config WIFI_NM_WPA_SUPPLICANT
2424
if WIFI_NM_WPA_SUPPLICANT
2525

2626
config HEAP_MEM_POOL_ADD_SIZE_HOSTAP
27-
def_int 85000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE && !MBEDTLS_ENABLE_HEAP
28-
def_int 85000 if WIFI_NM_HOSTAPD_AP
29-
def_int 40000 if WIFI_NM_WPA_SUPPLICANT_AP
30-
# 8192 for MbedTLS heap
31-
def_int 21808 if MBEDTLS_ENABLE_HEAP
27+
def_int 66560 if WIFI_NM_HOSTAPD_AP
28+
def_int 41808 if WIFI_NM_WPA_SUPPLICANT_AP || WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
3229
# 30K is mandatory, but might need more for long duration use cases
3330
def_int 30000
3431

0 commit comments

Comments
 (0)