From 7b2d166559041c560fb849afff24e700921fb027 Mon Sep 17 00:00:00 2001 From: Sean Wang Date: Tue, 12 May 2020 21:39:13 +0200 Subject: [PATCH] mt76: mt7663: fix the usage WoW with net detect support mt7615_mcu_sched_scan_enable should be taken along with mt7615_mcu_sched_scan_req to have proper scan plans initialization. Fixes: bd39bd2f00c3 ("mt76: mt7663: introduce WoW with net detect support") Co-developed-by: Wan-Feng Jiang Signed-off-by: Wan-Feng Jiang Co-developed-by: Soul Huang Signed-off-by: Soul Huang Signed-off-by: Sean Wang Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- mt7615/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7615/mcu.c b/mt7615/mcu.c index d8da0764..14c2b5d7 100644 --- a/mt7615/mcu.c +++ b/mt7615/mcu.c @@ -3437,8 +3437,8 @@ mt7615_mcu_set_wow_ctrl(struct mt7615_phy *phy, struct ieee80211_vif *vif, if (wowlan->nd_config) { mt7615_mcu_sched_scan_req(phy, vif, wowlan->nd_config); req.wow_ctrl_tlv.trigger |= BIT(5); + mt7615_mcu_sched_scan_enable(phy, vif, suspend); } - mt7615_mcu_sched_scan_enable(phy, vif, suspend); if (mt76_is_mmio(&dev->mt76)) req.wow_ctrl_tlv.wakeup_hif = 2;