From fde17f739a3efebcc480bc76f4373a69ca242320 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Fri, 25 Jul 2025 19:42:08 +0530 Subject: [PATCH 1/6] [nrf fromtree] drivers: nrf_wifi: Fix the issue of delayed keepalive Supplicant sends keepalive on timer expiry but due to driver + nRF70 delays it is delayed to the AP, meanwhile some APs disconnect due to lack of keepalive. Set the processing delay to 700ms (based on tests) to fix. Signed-off-by: Chaitanya Tata (cherry picked from commit 7fe693029f43755e3eaf0d7545f31d71398691df) --- drivers/wifi/nrf_wifi/src/wpa_supp_if.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/wifi/nrf_wifi/src/wpa_supp_if.c b/drivers/wifi/nrf_wifi/src/wpa_supp_if.c index 1ef412df7f7..21f7600ca80 100644 --- a/drivers/wifi/nrf_wifi/src/wpa_supp_if.c +++ b/drivers/wifi/nrf_wifi/src/wpa_supp_if.c @@ -1807,6 +1807,11 @@ int nrf_wifi_supp_get_capa(void *if_priv, struct wpa_driver_capa *capa) capa->extended_capa_mask = rpu_ctx_zep->extended_capa_mask; capa->extended_capa_len = rpu_ctx_zep->extended_capa_len; } + /* Based on testing, this works to fix the disconnection due to delayed + * keepalive to the AP + */ + capa->driver_tx_processing_delay_ms = 1000; + out: k_mutex_unlock(&vif_ctx_zep->vif_lock); return status; From a48f41e62346fd3672b139e84a699edf9f40eb13 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Thu, 31 Jul 2025 17:28:09 +0530 Subject: [PATCH 2/6] Revert "[nrf fromlist] manifest: hostap: Update revision of hostap" This reverts commit d9cd01cc980045d7d8a142046d9ab5af4791f86f. Signed-off-by: Chaitanya Tata --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 157ee35fc4d..94e1638cb45 100644 --- a/west.yml +++ b/west.yml @@ -281,7 +281,7 @@ manifest: - hal - name: hostap path: modules/lib/hostap - revision: e7feee399bb6ebd185067e512873869c5556e24c + revision: e942f86e865d5b24bbbe8b0c333f030cbbe62bfb - name: liblc3 revision: 48bbd3eacd36e99a57317a0a4867002e0b09e183 path: modules/lib/liblc3 From deef1b5caa3d9382376d740b414be468996e13d1 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 15 Jul 2025 13:34:44 +0530 Subject: [PATCH 3/6] [nrf fromtree] manifest: hostap: Pull support to dump keys Helps in debugging crypto issues. Signed-off-by: Chaitanya Tata (cherry picked from commit 7fbb0fda6cd6588a1da5a407518e8a3518053a83) --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 94e1638cb45..c4c3f8ceda5 100644 --- a/west.yml +++ b/west.yml @@ -281,7 +281,7 @@ manifest: - hal - name: hostap path: modules/lib/hostap - revision: e942f86e865d5b24bbbe8b0c333f030cbbe62bfb + revision: 7fda615fcccd577af7339b4198400c39ac14f8f8 - name: liblc3 revision: 48bbd3eacd36e99a57317a0a4867002e0b09e183 path: modules/lib/liblc3 From 5037e7edfb4eee1d85abf346da7b64f5032a007d Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Fri, 25 Jul 2025 19:42:06 +0530 Subject: [PATCH 4/6] [nrf fromtree] manifest: hostap: Pull feature to add driver processing delay to capa Pull the feature to add driver processing delay to the driver capabilities. Useful to customize for sending keepalive. Signed-off-by: Chaitanya Tata (cherry picked from commit d51127ddc3ae777ba0316d277b0eab8d0be7ea7d) --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index c4c3f8ceda5..41fa45c8693 100644 --- a/west.yml +++ b/west.yml @@ -281,7 +281,7 @@ manifest: - hal - name: hostap path: modules/lib/hostap - revision: 7fda615fcccd577af7339b4198400c39ac14f8f8 + revision: c55683ce514953277be5566fceb38c4c2485f1e1 - name: liblc3 revision: 48bbd3eacd36e99a57317a0a4867002e0b09e183 path: modules/lib/liblc3 From c0a1154125e82cd21be04e2965f1baa88f0937de Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Thu, 31 Jul 2025 17:40:48 +0530 Subject: [PATCH 5/6] [nrf fromlist] net: l2: wifi: Fix the default keepalive value 30s is too aggressive for most APs, and hostapd also uses 5mins as the default value. Upstream PR #: 93920 Signed-off-by: Chaitanya Tata --- subsys/net/l2/wifi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/net/l2/wifi/Kconfig b/subsys/net/l2/wifi/Kconfig index 7728678cc97..49d061c7439 100644 --- a/subsys/net/l2/wifi/Kconfig +++ b/subsys/net/l2/wifi/Kconfig @@ -158,7 +158,7 @@ endif # WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE config WIFI_MGMT_BSS_MAX_IDLE_TIME int "BSS max idle timeout in seconds" range 0 64000 - default 30 + default 300 help As per 802.11-2020: 11.21.13 BSS max idle period management If dot11WirelessManagementImplemented is true, dot11BSSMaxIdlePeriod is From 7bb4f80f5beca2e7093f4b16d3778503b103de7d Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Thu, 31 Jul 2025 17:42:03 +0530 Subject: [PATCH 6/6] [nrf fromlist] drivers: nrf_wifi: Fix the interoperability issues With few APs we have seen unexplained disconnections and sending keepalive often solves the problem, so, to fix interoperability reduce the keepalive period to 30s. Upstream PR #: 93920 Signed-off-by: Chaitanya Tata --- drivers/wifi/nrf_wifi/Kconfig.nrfwifi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/wifi/nrf_wifi/Kconfig.nrfwifi b/drivers/wifi/nrf_wifi/Kconfig.nrfwifi index af3e7827dcb..4b3bb0d41ca 100644 --- a/drivers/wifi/nrf_wifi/Kconfig.nrfwifi +++ b/drivers/wifi/nrf_wifi/Kconfig.nrfwifi @@ -840,7 +840,7 @@ if NRF_WIFI_FEAT_KEEPALIVE config NRF_WIFI_KEEPALIVE_PERIOD_S int "Keepalive period in seconds" range 30 3600 - default 60 + default 30 help Keepalive period in seconds to send keepalive packets to the AP. endif