From f44146a6cdc94b1598e63d519cca96e8a699c68b Mon Sep 17 00:00:00 2001 From: Qiankun Li Date: Wed, 14 Aug 2024 11:24:24 +0800 Subject: [PATCH] samples: net: wifi: boards: rdrw612bga: Modify CONFIG_POSIX_MAX_FDS config. [Reproduce issue] 1. Connect In-STA to Ex-AP wifi connect WiFi_STA_HE_1.1.8 1234567890 3 2 2 2. Start APUT with ACS using below commands wifi ap enable nxp-AP 161 1234567890 3 3. Connect Ex-STA to APUT and verify association using ping traffic 4. Now start two TCP server zperf tcp download -I ml 5001 192.168.0.252 zperf tcp download -I up 6002 192.168.10.1 Observed behavior: ============= Second TCP server fails to start [Analysis] 1. After starting uap and a tcp server, there is only one allocatable fd resource left in the fdtable. 2. When two TCP clients try to establish a connection with the server at the same time, the second client cannot be assigned an fd, resulting in a failure. [Fix] Increase the maximum number of open file descriptors. Signed-off-by: Qiankun Li --- samples/net/wifi/boards/rd_rw612_bga.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/net/wifi/boards/rd_rw612_bga.conf b/samples/net/wifi/boards/rd_rw612_bga.conf index 585701a5b4a..ce20e13af58 100644 --- a/samples/net/wifi/boards/rd_rw612_bga.conf +++ b/samples/net/wifi/boards/rd_rw612_bga.conf @@ -22,7 +22,7 @@ CONFIG_EVENTS=y CONFIG_SYS_HEAP_AUTO=y CONFIG_HEAP_MEM_POOL_SIZE=122880 CONFIG_SCHED_MULTIQ=y -CONFIG_POSIX_MAX_FDS=20 +CONFIG_POSIX_MAX_FDS=30 CONFIG_ZVFS_OPEN_MAX=20 # shell