[PATCH] wifi: mt76: mt7925: skip WoW START when unassociated

JB Tsai jb.tsai at mediatek.com
Thu Oct 15 23:22:03 PDT 2026


From: "allen.chien" <yung-lun.chien at mediatek.com>

Modify the suspend condition when not connected, to resolve the issue
of Wi-Fi failing to enter low power mode.

Signed-off-by: allen.chien <yung-lun.chien at mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
index 26cdb3f0a98a..924b650fcb2b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
@@ -305,6 +305,15 @@ void mt7925_mcu_set_suspend_iter(void *priv, u8 *mac,
 	for (i = 0; i < wowlan->n_patterns; i++)
 		mt7925_mcu_set_wow_pattern(phy->dev, vif, i, suspend,
 					   &wowlan->patterns[i]);
+	/*
+	 * An unassociated STA has no link to sleep from or wake to, so
+	 * skip the WoW ctrl for it on both suspend and resume, unless a
+	 * Net Detect schedule is configured (ND needs WoW to keep
+	 * scanning while disconnected).
+	 */
+	if (vif->type == NL80211_IFTYPE_STATION &&
+	    !vif->cfg.assoc && !wowlan->nd_config)
+		return;
 	mt7925_connac_mcu_set_wow_ctrl(phy, vif, suspend, wowlan);
 }
 
-- 
2.45.2




More information about the Linux-mediatek mailing list