Commit 092347cd authored by Ajay Parida's avatar Ajay Parida Committed by Johan Hedberg
Browse files

driver: nrf_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.

Signed-off-by: default avatarAjay Parida <ajay.parida@nordicsemi.no>
parent 028eec23
Loading
Loading
Loading
Loading
+10 −0
Changes for drivers/wifi/nrf_wifi/Kconfig.nrfwifi: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -934,4 +934,14 @@ config NRF_WIFI_DYNAMIC_ED
	help
	  This option enables support for proprietary algorithm to
	  enhance performance in high-traffic channels.

config NRF_WIFI_TWT_SETUP_TIMEOUT_MS
	int "TWT setup timeout (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.
endif # WIFI_NRF70
+1 −0
Changes for drivers/wifi/nrf_wifi/src/wifi_mgmt.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -564,6 +564,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_MS;

		status = nrf_wifi_sys_fmac_twt_setup(rpu_ctx_zep->rpu_ctx,
					   vif_ctx_zep->vif_idx,