From bf6437f78b7b16576ee2ece39691f6f1ff9f8f54 Mon Sep 17 00:00:00 2001 From: Ajay Parida Date: Mon, 11 Aug 2025 17:40:58 +0530 Subject: [PATCH 1/2] [nrf noup] net: wifi: TWT setup duration Build time configuration option to set TWT setup duration. If AP does not respond to TWT setup request for this period, STA will timeout and report setup failure. It's a v2.9.0 release branch update. Signed-off-by: Ajay Parida --- drivers/wifi/nrf_wifi/Kconfig.nrfwifi | 11 +++++++++++ drivers/wifi/nrf_wifi/src/wifi_mgmt.c | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/wifi/nrf_wifi/Kconfig.nrfwifi b/drivers/wifi/nrf_wifi/Kconfig.nrfwifi index 45a22b7e7fa..63ee807ecd0 100644 --- a/drivers/wifi/nrf_wifi/Kconfig.nrfwifi +++ b/drivers/wifi/nrf_wifi/Kconfig.nrfwifi @@ -807,4 +807,15 @@ config NRF70_PASSIVE_SCAN_ONLY help Enable this configuration to force passive scan on all channels. This will override application-specified scan type. + +config NRF_WIFI_TWT_SETUP_TIMEOUT + int "TWT setup request timeout in ms" + range 100 10000 + default 250 + help + Timeout duration (in milliseconds) for the TWT setup procedure. + The STA will transmit a TWT setup request every 100 milliseconds, + continuing until this timeout value is reached. If no response is received + before the timeout expires, the TWT setup is considered failed. + Note: This is only build time parameter, runtime configuration not supported. endif # WIFI_NRF70 diff --git a/drivers/wifi/nrf_wifi/src/wifi_mgmt.c b/drivers/wifi/nrf_wifi/src/wifi_mgmt.c index 5effb759fa4..6090ba0ffb4 100644 --- a/drivers/wifi/nrf_wifi/src/wifi_mgmt.c +++ b/drivers/wifi/nrf_wifi/src/wifi_mgmt.c @@ -568,6 +568,7 @@ int nrf_wifi_set_twt(const struct device *dev, twt_info.dialog_token = twt_params->dialog_token; twt_info.twt_wake_ahead_duration = twt_params->setup.twt_wake_ahead_duration; + twt_info.twt_req_timeout = CONFIG_NRF_WIFI_TWT_SETUP_TIMEOUT; status = nrf_wifi_fmac_twt_setup(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, From fe8aba3d895330d2b38c4ccada9ba5404a11663a Mon Sep 17 00:00:00 2001 From: Ajay Parida Date: Tue, 12 Aug 2025 19:52:18 +0530 Subject: [PATCH 2/2] [nrf noup] manifest: Update revision of nrf_wifi Pull TWT timeout changes. It's a v2.9.0 release branch manifest update, not intended for upstream. Signed-off-by: Ajay Parida --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 88163be4dd9..c545c31df10 100644 --- a/west.yml +++ b/west.yml @@ -304,7 +304,7 @@ manifest: revision: 3cfca0192ff84da919e9bc7978bcc2239cd6a395 path: modules/bsim_hw_models/nrf_hw_models - name: nrf_wifi - revision: f6b950a3b5c0187fe499b0e518426d5bf88b7e68 + revision: pull/67/head path: modules/lib/nrf_wifi - name: open-amp revision: b735edbc739ad59156eb55bb8ce2583d74537719