Skip to content

Commit

Permalink
mt7603: defer unconditional hw reset to stop call
Browse files Browse the repository at this point in the history
Makes repeated down/up calls more reliable

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed May 25, 2017
1 parent dda6849 commit 6fdf3a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mt7603_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit 6fdf3a7

Please sign in to comment.