net: socketpair: fix allocated number of buffers

According to `f9901e8e` and validated by testing, the supplicant only
use case only requires 4 socket pairs. 6 pairs are required for the
`hostapd` use case.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2025-04-12 14:14:05 +10:00 committed by Benjamin Cabé
commit dfabbee634

View file

@ -360,7 +360,8 @@ if NET_SOCKETPAIR_STATIC
config NET_SOCKETPAIR_MAX config NET_SOCKETPAIR_MAX
int "How many socketpairs to pre-allocate" int "How many socketpairs to pre-allocate"
default 6 if WIFI_NM_WPA_SUPPLICANT default 6 if WIFI_NM_HOSTAPD_AP
default 4 if WIFI_NM_WPA_SUPPLICANT
default 1 default 1
endif # NET_SOCKETPAIR_STATIC endif # NET_SOCKETPAIR_STATIC