mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: testmode: fix tx_done accounting on enqueue failures
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -371,6 +371,12 @@ unmap:
|
||||
tx_info.buf[n].len, DMA_TO_DEVICE);
|
||||
|
||||
free:
|
||||
#ifdef CONFIG_NL80211_TESTMODE
|
||||
/* fix tx_done accounting on queue overflow */
|
||||
if (tx_info.skb == dev->test.tx_skb)
|
||||
dev->test.tx_done--;
|
||||
#endif
|
||||
|
||||
e.skb = tx_info.skb;
|
||||
e.txwi = t;
|
||||
dev->drv->tx_complete_skb(dev, qid, &e);
|
||||
|
||||
Reference in New Issue
Block a user