Commit 76352769 authored by Felix Fietkau's avatar Felix Fietkau

mt76: mt7603: fix tx status HT rate validation

Use the correct variable in the check. Fixes an uninitialized variable warning
Reported-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Fixes: c8846e10 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent a0ac8061
...@@ -1072,7 +1072,7 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta, ...@@ -1072,7 +1072,7 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta,
case MT_PHY_TYPE_HT: case MT_PHY_TYPE_HT:
final_rate_flags |= IEEE80211_TX_RC_MCS; final_rate_flags |= IEEE80211_TX_RC_MCS;
final_rate &= GENMASK(5, 0); final_rate &= GENMASK(5, 0);
if (i > 15) if (final_rate > 15)
return false; return false;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment