blob: e1a30a2af3f2f6a9b4186898792d34953228ee91 [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From 5e93bc87cfd7465cca293e65daa73230d1a63dbc Mon Sep 17 00:00:00 2001
developer05f3b2b2024-08-19 19:17:34 +08002From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Tue, 13 Aug 2024 18:55:00 +0800
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 186/193] mtk: mt76: do not report ACK when TXS is lost
developer05f3b2b2024-08-19 19:17:34 +08005
6Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
7---
8 tx.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11diff --git a/tx.c b/tx.c
developer1f55fcf2024-10-17 14:52:33 +080012index 6f594fa..a6b8c8f 100644
developer05f3b2b2024-08-19 19:17:34 +080013--- a/tx.c
14+++ b/tx.c
15@@ -100,7 +100,8 @@ __mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, u8 flags,
16 return;
17
18 /* Tx status can be unreliable. if it fails, mark the frame as ACKed */
19- if (flags & MT_TX_CB_TXS_FAILED) {
20+ if ((flags & MT_TX_CB_TXS_FAILED) &&
21+ (dev->drv->drv_flags & MT_DRV_SW_RX_AIRTIME)) {
22 info->status.rates[0].count = 0;
23 info->status.rates[0].idx = -1;
24 info->flags |= IEEE80211_TX_STAT_ACK;
25--
developerd0c89452024-10-11 16:53:27 +0800262.45.2
developer05f3b2b2024-08-19 19:17:34 +080027