From 7a215cc00e0f59bebfe1923cbf218a30b781e158 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Mon, 7 Aug 2023 15:07:12 +0200 Subject: [PATCH] modules: hostap: Update POSIX_MAX_FDS default Since hostap Kconfig move to sdk-nrf repository, the default for POSIX_MAX_FDS set in the supplicant's Kconfig takes precedence over the default set in sdk-nrf originally. This causes issues with Zephyr samples running with default setting for this config, as supplicant sets this config very tight. I propose to increase the default value set by supplicant, to leave a few FDS entries for the applications to use. Otherwise, every single socket-based sample will need to override this config in its prj.conf file. Signed-off-by: Robert Lubos --- drivers/wifi/nrf700x/Kconfig.nrf700x | 3 --- modules/hostap/Kconfig | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/wifi/nrf700x/Kconfig.nrf700x b/drivers/wifi/nrf700x/Kconfig.nrf700x index 70282f7b159a..e19159753233 100644 --- a/drivers/wifi/nrf700x/Kconfig.nrf700x +++ b/drivers/wifi/nrf700x/Kconfig.nrf700x @@ -311,9 +311,6 @@ config HEAP_MEM_POOL_SIZE config SYSTEM_WORKQUEUE_STACK_SIZE default 4096 -config POSIX_MAX_FDS - default 16 - config NET_TX_STACK_SIZE default 4096 diff --git a/modules/hostap/Kconfig b/modules/hostap/Kconfig index 85ddc14fbe0e..2e45147792a8 100644 --- a/modules/hostap/Kconfig +++ b/modules/hostap/Kconfig @@ -121,7 +121,8 @@ config POSIX_MAX_FDS # l2_packet - 1 # ctrl_iface - 2 * socketpairs = 4(local and global) # z_wpa_event_sock - 1 socketpair = 2 - default 7 if !POSIX_API + # Remaining left for the applications running in default configuration + default 16 if !POSIX_API config BSS_MAX_IDLE_TIME int "BSS max idle timeout in seconds"