Skip to content

Commit ebb75b1

Browse files
derenKalle Valo
authored andcommitted
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: bd1e3e7 ("mt76: introduce packet_id idr") Signed-off-by: Deren Wu <deren.wu@mediatek.com> Acked-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/7e3784949c0b29a00465966b89fdb0192bd0298e.1637593492.git.deren.wu@mediatek.com
1 parent 6e53d6d commit ebb75b1

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/mediatek/mt76

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid,
173173
if (!(cb->flags & MT_TX_CB_DMA_DONE))
174174
continue;
175175

176-
if (!time_is_after_jiffies(cb->jiffies +
176+
if (time_is_after_jiffies(cb->jiffies +
177177
MT_TX_STATUS_SKB_TIMEOUT))
178178
continue;
179179
}

0 commit comments

Comments
 (0)