mt7603: defer unconditional hw reset to stop call

Makes repeated down/up calls more reliable

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2017-05-25 21:44:10 +02:00
parent dda684912e
commit 6fdf3a700f
+2 -1
View File
@@ -26,9 +26,9 @@ mt7603_start(struct ieee80211_hw *hw)
{
struct mt7603_dev *dev = hw->priv;
mt7603_mac_watchdog_reset(dev);
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mac_work,
MT7603_WATCHDOG_TIME);
mt7603_mac_start(dev);
set_bit(MT76_STATE_RUNNING, &dev->mt76.state);
return 0;
@@ -41,6 +41,7 @@ mt7603_stop(struct ieee80211_hw *hw)
clear_bit(MT76_STATE_RUNNING, &dev->mt76.state);
cancel_delayed_work_sync(&dev->mac_work);
mt7603_mac_watchdog_reset(dev);
mt7603_mac_stop(dev);
}