Skip to content

Commit 092347c

Browse files
ajayparidajhedberg
authored andcommitted
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: Ajay Parida <ajay.parida@nordicsemi.no>
1 parent 028eec2 commit 092347c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

drivers/wifi/nrf_wifi/Kconfig.nrfwifi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,4 +934,14 @@ config NRF_WIFI_DYNAMIC_ED
934934
help
935935
This option enables support for proprietary algorithm to
936936
enhance performance in high-traffic channels.
937+
938+
config NRF_WIFI_TWT_SETUP_TIMEOUT_MS
939+
int "TWT setup timeout (ms)"
940+
range 100 10000
941+
default 250
942+
help
943+
Timeout duration (in milliseconds) for the TWT setup procedure.
944+
The STA will transmit a TWT setup request every 100 milliseconds,
945+
continuing until this timeout value is reached. If no response is
946+
received before the timeout expires, the TWT setup is considered failed.
937947
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
@@ -564,6 +564,7 @@ int nrf_wifi_set_twt(const struct device *dev,
564564

565565
twt_info.dialog_token = twt_params->dialog_token;
566566
twt_info.twt_wake_ahead_duration = twt_params->setup.twt_wake_ahead_duration;
567+
twt_info.twt_req_timeout = CONFIG_NRF_WIFI_TWT_SETUP_TIMEOUT_MS;
567568

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

0 commit comments

Comments
 (0)