Skip to content

Commit

Permalink
mt7603: mac: stop netdev queues during watchdog reset
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Jul 17, 2017
1 parent 8a649c3 commit 8dee788
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mt7603_mac.c
Expand Up @@ -1129,6 +1129,7 @@ void mt7603_mac_watchdog_reset(struct mt7603_dev *dev)
u32 mask = dev->irqmask;
int i;

ieee80211_stop_queues(dev->mt76.hw);
set_bit(MT76_RESET, &dev->mt76.state);

tasklet_disable(&dev->tx_tasklet);
Expand Down Expand Up @@ -1167,6 +1168,7 @@ void mt7603_mac_watchdog_reset(struct mt7603_dev *dev)
tasklet_enable(&dev->pre_tbtt_tasklet);
napi_enable(&dev->mt76.napi[0]);
napi_enable(&dev->mt76.napi[1]);
ieee80211_wake_queues(dev->mt76.hw);
}

static bool mt7603_rx_dma_busy(struct mt7603_dev *dev)
Expand Down

0 comments on commit 8dee788

Please sign in to comment.