From: Lorenzo Bianconi Date: Sat, 9 May 2020 21:40:05 +0000 (+0200) Subject: mt76: mt7615: usb: cancel ps work stopping the vif X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=da9e36ca163166fc6e53a69866b85a4ed2a273f9;p=linux.git mt76: mt7615: usb: cancel ps work stopping the vif Cancel possible power_save work before stopping the mt7663u interface Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/usb.c b/drivers/net/wireless/mediatek/mt76/mt7615/usb.c index 01d60c02512e9..d742533196221 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/usb.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/usb.c @@ -51,6 +51,7 @@ static void mt7663u_stop(struct ieee80211_hw *hw) struct mt7615_dev *dev = hw->priv; clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); + cancel_work_sync(&phy->ps_work); cancel_delayed_work_sync(&phy->scan_work); cancel_delayed_work_sync(&phy->mac_work); mt76u_stop_tx(&dev->mt76);