diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-07 20:49:00 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-06-17 19:33:47 +0300 |
commit | 1d85dc67c4c720c8332f869965fe8091c757cc0d (patch) | |
tree | 5027c0a60397e840aa1c78b70aef1a46b288619e /drivers/net/wireless/mediatek/mt76/mt7603 | |
parent | 7172534f63c493462f5bb96e3eb7fa03d889560e (diff) | |
download | linux-1d85dc67c4c720c8332f869965fe8091c757cc0d.tar.xz |
mt76: mt7603: avoid use of ieee80211_tx_info_clear_status
It overwrites mt76_tx_cb data in the skb
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7603')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c index fbceb07c5f37..4e76f9868b9b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c @@ -1213,7 +1213,7 @@ mt7603_mac_add_txs_skb(struct mt7603_dev *dev, struct mt7603_sta *sta, int pid, struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); if (!mt7603_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; } |