From fa187f5cf06895af9a0aca87d039ca1f25887e4e Mon Sep 17 00:00:00 2001 From: Deren Wu Date: Mon, 22 Nov 2021 22:25:44 +0800 Subject: [PATCH] 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 Signed-off-by: Felix Fietkau --- tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 11719ef0..6b8c9dc8 100644 --- a/tx.c +++ b/tx.c @@ -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)) continue; - if (!time_is_after_jiffies(cb->jiffies + + if (time_is_after_jiffies(cb->jiffies + MT_TX_STATUS_SKB_TIMEOUT)) continue; }