OSDN Git Service

mt76: mt7615: avoid use of ieee80211_tx_info_clear_status
authorFelix Fietkau <nbd@nbd.name>
Fri, 7 May 2021 17:46:23 +0000 (19:46 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 17 Jun 2021 16:33:45 +0000 (18:33 +0200)
It overwrites mt76_tx_cb data in the skb

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c

index 7bdf337..7153f1d 100644 (file)
@@ -1389,7 +1389,7 @@ static bool mt7615_mac_add_txs_skb(struct mt7615_dev *dev,
                struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 
                if (!mt7615_fill_txs(dev, sta, info, txs_data)) {
-                       ieee80211_tx_info_clear_status(info);
+                       info->status.rates[0].count = 0;
                        info->status.rates[0].idx = -1;
                }