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 <[email protected]>
Signed-off-by: Wan-Feng Jiang <[email protected]>
Co-developed-by: Soul Huang <[email protected]>
Signed-off-by: Soul Huang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Sean Wang
2020-05-20 10:43:10 +02:00
committed by Felix Fietkau
parent 01e870b447
commit 7b2d166559
+1 -1
View File
@@ -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;