Skip to content

Commit 652d81b

Browse files
committed
[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 <[email protected]>
1 parent aa34a56 commit 652d81b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

drivers/wifi/nrf_wifi/Kconfig.nrfwifi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,4 +807,15 @@ config NRF70_PASSIVE_SCAN_ONLY
807807
help
808808
Enable this configuration to force passive scan on all channels.
809809
This will override application-specified scan type.
810+
811+
config NRF_WIFI_TWT_SETUP_TIMEOUT
812+
int "TWT setup request timeout in ms"
813+
range 100 10000
814+
default 250
815+
help
816+
Timeout duration (in milliseconds) for the TWT setup procedure
817+
The STA will transmit a TWT setup request every 100 milliseconds,
818+
continuing until this timeout value is reached. If no response is received
819+
before the timeout expires, the TWT setup is considered failed.
820+
Note: This is only build time parameter, runtime configuration not supported.
810821
endif # WIFI_NRF70

drivers/wifi/nrf_wifi/src/wifi_mgmt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ int nrf_wifi_set_twt(const struct device *dev,
568568

569569
twt_info.dialog_token = twt_params->dialog_token;
570570
twt_info.twt_wake_ahead_duration = twt_params->setup.twt_wake_ahead_duration;
571+
twt_info.twt_req_timeout = CONFIG_NRF_WIFI_TWT_SETUP_TIMEOUT;
571572

572573
status = nrf_wifi_fmac_twt_setup(rpu_ctx_zep->rpu_ctx,
573574
vif_ctx_zep->vif_idx,

0 commit comments

Comments
 (0)