]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: sdio: fix transmitting packet hangs
authorYN Chen <yn.chen@mediatek.com>
Fri, 22 Jul 2022 21:59:23 +0000 (05:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Oct 2022 10:38:09 +0000 (12:38 +0200)
[ Upstream commit 250b1827205846ff346a76044955cb79d4963f70 ]

Fix transmitting packets hangs with continuing to pull the pending packet
from mac80211 queues when receiving Tx status notification from the device.

Fixes: aac5104bf631 ("mt76: sdio: do not run mt76_txq_schedule directly")
Acked-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: YN Chen <yn.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/sdio.c

index ece4e4bb94a11ea23952e899e68c629a5ce104d7..0ec308f99af5a52e72c0ea000482725d225ba1ea 100644 (file)
@@ -485,7 +485,7 @@ static void mt76s_status_worker(struct mt76_worker *w)
        } while (nframes > 0);
 
        if (resched)
-               mt76_worker_schedule(&dev->sdio.txrx_worker);
+               mt76_worker_schedule(&dev->tx_worker);
 }
 
 static void mt76s_tx_status_data(struct work_struct *work)