mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix timestamp check in tx_status
Should keep SKBs only if timeout timestamp is still after jiffies.
Otherwise, report tx status and drop it direclty.
Fixes: bd1e3e7b693c ("mt76: introduce packet_id idr")
Signed-off-by: Deren Wu <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -173,7 +173,7 @@ mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid,
|
|||||||
if (!(cb->flags & MT_TX_CB_DMA_DONE))
|
if (!(cb->flags & MT_TX_CB_DMA_DONE))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!time_is_after_jiffies(cb->jiffies +
|
if (time_is_after_jiffies(cb->jiffies +
|
||||||
MT_TX_STATUS_SKB_TIMEOUT))
|
MT_TX_STATUS_SKB_TIMEOUT))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user