Skip to content

Commit

Permalink
drivers: wifi: Send user timeout to FW
Browse files Browse the repository at this point in the history
User can configure watchdog timer using Kconfig and this needs to be
sent to FW. This is primarily needed for crowded channel where RPU can
stay awake for more than 10s.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Aug 20, 2024
1 parent c1f96fe commit d816543
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nrf_wifi/fw_if/umac_if/src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ enum nrf_wifi_status umac_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
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;
#ifdef CONFIG_NRF_WIFI_RPU_RECOVERY
umac_cmd_data->watchdog_timer_val = (CONFIG_NRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS) / 1000;
#else
/* Disable watchdog */
umac_cmd_data->watchdog_timer_val = 0xFFFFFF;
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */

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

0 comments on commit d816543

Please sign in to comment.