Skip to content

Commit

Permalink
hostap: update the default heap size for hostap
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MaochenWang1 authored and kartben committed Jan 2, 2025
1 parent f9901e8 commit 42701fd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/hostap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ config WIFI_NM_WPA_SUPPLICANT
if WIFI_NM_WPA_SUPPLICANT

config HEAP_MEM_POOL_ADD_SIZE_HOSTAP
def_int 85000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE && !MBEDTLS_ENABLE_HEAP
def_int 85000 if WIFI_NM_HOSTAPD_AP
def_int 40000 if WIFI_NM_WPA_SUPPLICANT_AP
# 8192 for MbedTLS heap
def_int 21808 if MBEDTLS_ENABLE_HEAP
def_int 66560 if WIFI_NM_HOSTAPD_AP
def_int 41808 if WIFI_NM_WPA_SUPPLICANT_AP || WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
# 30K is mandatory, but might need more for long duration use cases
def_int 30000

Expand Down

0 comments on commit 42701fd

Please sign in to comment.