Skip to content

Commit f9901e8

Browse files
MaochenWang1kartben
authored andcommitted
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 <[email protected]>
1 parent 8b403ba commit f9901e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subsys/net/lib/sockets/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ if NET_SOCKETPAIR
332332

333333
config NET_SOCKETPAIR_BUFFER_SIZE
334334
int "Size of the intermediate buffer, in bytes"
335-
default 4096 if WIFI_NM_WPA_SUPPLICANT
335+
default 1024 if WIFI_NM_WPA_SUPPLICANT
336336
default 64
337337
range 1 4096
338338
help
@@ -363,7 +363,8 @@ if NET_SOCKETPAIR_HEAP
363363

364364
config HEAP_MEM_POOL_ADD_SIZE_SOCKETPAIR
365365
int
366-
default 32000 if WIFI_NM_WPA_SUPPLICANT
366+
default 13696 if WIFI_NM_HOSTAPD_AP
367+
default 9120 if WIFI_NM_WPA_SUPPLICANT
367368
default 256
368369

369370
endif # NET_SOCKETPAIR_HEAP

0 commit comments

Comments
 (0)