diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-04-13 20:09:33 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-21 11:42:20 +0200 |
commit | 6929d1d747b3934df3b0b2bb8af31b3f1f539ae4 (patch) | |
tree | 41fa62a64a675b6fd7607f1811f45b5a3974a656 /drivers/net/wireless/mediatek/mt76/mt7603/mac.c | |
parent | 2b9ea5a8cf1bdc82f494da5a90191aa8b042980d (diff) | |
download | linux-stable-6929d1d747b3934df3b0b2bb8af31b3f1f539ae4.tar.gz linux-stable-6929d1d747b3934df3b0b2bb8af31b3f1f539ae4.tar.bz2 linux-stable-6929d1d747b3934df3b0b2bb8af31b3f1f539ae4.zip |
mt76: flush tx status queue on DMA reset
After DMA reset, tx status information for queued frames will never arrive.
Flush the queue to free skbs immediately instead of waiting for a timeout
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7603/mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c index e3a9dd6fbd87..fbceb07c5f37 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c @@ -1445,6 +1445,8 @@ static void mt7603_mac_watchdog_reset(struct mt7603_dev *dev) mt76_queue_rx_reset(dev, i); } + mt76_tx_status_check(&dev->mt76, NULL, true); + mt7603_dma_sched_reset(dev); mt7603_mac_dma_start(dev); |