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 <maochen.wang@nxp.com>
This commit is contained in:
parent
8b403ba641
commit
f9901e8e9b
1 changed files with 3 additions and 2 deletions
|
@ -332,7 +332,7 @@ if NET_SOCKETPAIR
|
||||||
|
|
||||||
config NET_SOCKETPAIR_BUFFER_SIZE
|
config NET_SOCKETPAIR_BUFFER_SIZE
|
||||||
int "Size of the intermediate buffer, in bytes"
|
int "Size of the intermediate buffer, in bytes"
|
||||||
default 4096 if WIFI_NM_WPA_SUPPLICANT
|
default 1024 if WIFI_NM_WPA_SUPPLICANT
|
||||||
default 64
|
default 64
|
||||||
range 1 4096
|
range 1 4096
|
||||||
help
|
help
|
||||||
|
@ -363,7 +363,8 @@ if NET_SOCKETPAIR_HEAP
|
||||||
|
|
||||||
config HEAP_MEM_POOL_ADD_SIZE_SOCKETPAIR
|
config HEAP_MEM_POOL_ADD_SIZE_SOCKETPAIR
|
||||||
int
|
int
|
||||||
default 32000 if WIFI_NM_WPA_SUPPLICANT
|
default 13696 if WIFI_NM_HOSTAPD_AP
|
||||||
|
default 9120 if WIFI_NM_WPA_SUPPLICANT
|
||||||
default 256
|
default 256
|
||||||
|
|
||||||
endif # NET_SOCKETPAIR_HEAP
|
endif # NET_SOCKETPAIR_HEAP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue