From b53016f8393e0672866c699bbc4ad8e9d4b0c9d7 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Wed, 29 May 2024 01:27:04 +0530 Subject: [PATCH 1/2] modules: hostap: Optimze stack size Based on few tests, it was observed that WPA supplicant's maximum usage for connection and disconnection is 4360. This would save ~4K which is huge as we have a crunch for RAM. Signed-off-by: Chaitanya Tata --- modules/hostap/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hostap/Kconfig b/modules/hostap/Kconfig index 679399849498..b23b4d5fe38d 100644 --- a/modules/hostap/Kconfig +++ b/modules/hostap/Kconfig @@ -65,7 +65,7 @@ config WPA_SUPP_MGD_IFACES_PREFIXES config WPA_SUPP_THREAD_STACK_SIZE int "Stack size for wpa_supplicant thread" - default 8192 + default 5200 config WPA_SUPP_WQ_STACK_SIZE int "Stack size for wpa_supplicant workqueue" From 81c5e82ac0e81e6f9eb9b3822d835a1a7a430b85 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Wed, 29 May 2024 01:54:03 +0530 Subject: [PATCH 2/2] Revert "samples: wifi: sta: Fix RAM overflow for nRF52840" This reverts commit 9d7bca3602ce3c50f3fae93169c1cd1d9b79b14e. Default stack size is now reduced, so, this override isn't needed. Signed-off-by: Chaitanya Tata --- samples/wifi/sta/sample.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/wifi/sta/sample.yaml b/samples/wifi/sta/sample.yaml index e6da30aa3fb7..ab874918b2c8 100644 --- a/samples/wifi/sta/sample.yaml +++ b/samples/wifi/sta/sample.yaml @@ -29,7 +29,6 @@ tests: extra_configs: - CONFIG_NET_TX_STACK_SIZE=3700 - CONFIG_NET_RX_STACK_SIZE=3700 - - CONFIG_WPA_SUPP_THREAD_STACK_SIZE=6144 tags: ci_build sysbuild sample.nrf7001_eks.sta: sysbuild: true @@ -42,7 +41,6 @@ tests: extra_configs: - CONFIG_NET_TX_STACK_SIZE=3700 - CONFIG_NET_RX_STACK_SIZE=3700 - - CONFIG_WPA_SUPP_THREAD_STACK_SIZE=6144 tags: ci_build sysbuild sample.nrf7002_eb.thingy53.sta: sysbuild: true