From 3b4ca5b09e2c009350437414aa6292d02e9f7c51 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 May 2021 19:46:23 +0200 Subject: [PATCH] mt76: mt7615: avoid use of ieee80211_tx_info_clear_status It overwrites mt76_tx_cb data in the skb Signed-off-by: Felix Fietkau --- mt7615/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7615/mac.c b/mt7615/mac.c index 7bdf3378..7153f1da 100644 --- a/mt7615/mac.c +++ b/mt7615/mac.c @@ -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; }