[PATCH ath-next v5 03/12] wifi: ath10k: shorten the recovery timeout to 10 seconds

From: Kang Yang

Date: Wed Dec 02 2026 - 01:09:32 EST


A recovery that does not complete within ATH10K_RECOVERY_TIMEOUT_HZ
(20 s) marks the device WEDGED. Some platforms configure suspend
watchdogs as low as 25 seconds, so a recovery stuck during suspend can
consume nearly all of that budget before the device enters
ATH10K_STATE_WEDGED. That leaves insufficient time for blocked callers
to exit and for the driver to complete the WEDGED transition and shut
down.

Reduce the timeout to 10 seconds.

Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00288-QCARMSWPZ-1
Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00189

Signed-off-by: Kang Yang <kang.yang@xxxxxxxxxxxxxxxx>
---
drivers/net/wireless/ath/ath10k/core.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
index 2e100dd246e2..3e4d19289de1 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -87,7 +87,8 @@
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER)
#define ATH10K_ITER_RESUME_FLAGS (IEEE80211_IFACE_ITER_RESUME_ALL |\
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER)
-#define ATH10K_RECOVERY_TIMEOUT_HZ (20 * HZ)
+/* Keep well under the 25s suspend watchdog some platforms configure. */
+#define ATH10K_RECOVERY_TIMEOUT_HZ (10 * HZ)

struct ath10k;


--
2.34.1