From f9901e8e9be8b91d537f4d1953bfa5c8c1347577 Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Thu, 19 Dec 2024 18:33:39 +0800 Subject: [PATCH] net: sockets: change socketpair related buffer and heap size Latest supplicant uses 1K buffer size for sending control message via socketpair, so reducing the NET_SOCKETPAIR_BUFFER_SIZE to save memory footprint. There are 4 socketpairs for supplicant only case, and 6 socketpairs for hostapd case, update the heap size correspondingly. Signed-off-by: Maochen Wang --- subsys/net/lib/sockets/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subsys/net/lib/sockets/Kconfig b/subsys/net/lib/sockets/Kconfig index b2fb9eb5739..0669846a963 100644 --- a/subsys/net/lib/sockets/Kconfig +++ b/subsys/net/lib/sockets/Kconfig @@ -332,7 +332,7 @@ if NET_SOCKETPAIR config NET_SOCKETPAIR_BUFFER_SIZE int "Size of the intermediate buffer, in bytes" - default 4096 if WIFI_NM_WPA_SUPPLICANT + default 1024 if WIFI_NM_WPA_SUPPLICANT default 64 range 1 4096 help @@ -363,7 +363,8 @@ if NET_SOCKETPAIR_HEAP config HEAP_MEM_POOL_ADD_SIZE_SOCKETPAIR int - default 32000 if WIFI_NM_WPA_SUPPLICANT + default 13696 if WIFI_NM_HOSTAPD_AP + default 9120 if WIFI_NM_WPA_SUPPLICANT default 256 endif # NET_SOCKETPAIR_HEAP