Skip to content

Commit

Permalink
drivers: wifi: Add a config option for AP dead detection timeout
Browse files Browse the repository at this point in the history
This is handy esp. in crowded channel environments to avoid false AP
dead detections, the default is chosen accordingly.

Implements SHEL-2689.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Apr 19, 2024
1 parent efeb2b5 commit 1562987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/wifi/nrf700x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,11 @@ config NRF_WIFI_OP_BAND
1 - 2.4GHz
2 - 5GHz
3 - All ( 2.4GHz and 5GHz )

config NRF_WIFI_AP_DEAD_DETECT_TIMEOUT
int "Access point dead detection timeout in seconds"
range 1 30
default 20
help
The number of seconds after which AP is declared dead if no beacons
are received from the AP. Used to detect AP silently going down e.g., power off.
1 change: 1 addition & 0 deletions drivers/wifi/nrf700x/osal/fw_if/umac_if/src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ enum nrf_wifi_status umac_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
#ifdef CONFIG_NRF700X_TCP_IP_CHECKSUM_OFFLOAD
umac_cmd_data->tcp_ip_checksum_offload = 1;
#endif /* CONFIG_NRF700X_TCP_IP_CHECKSUM_OFFLOAD */
umac_cmd_data->discon_timeout = CONFIG_NRF_WIFI_AP_DEAD_DETECT_TIMEOUT;

nrf_wifi_osal_log_dbg(fmac_dev_ctx->fpriv->opriv, "RPU LPM type: %s\n",
umac_cmd_data->sys_params.sleep_enable == 2 ? "HW" :
Expand Down

0 comments on commit 1562987

Please sign in to comment.