Skip to content

Commit

Permalink
mt76: mt7603: fix tx status HT rate validation
Browse files Browse the repository at this point in the history
Use the correct variable in the check. Fixes an uninitialized variable warning

Reported-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Fixes: c8846e1015022 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Mar 3, 2019
1 parent 669bc49 commit 2ed9382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7603/mac.c
Expand Up @@ -1072,7 +1072,7 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta,
case MT_PHY_TYPE_HT:
final_rate_flags |= IEEE80211_TX_RC_MCS;
final_rate &= GENMASK(5, 0);
if (i > 15)
if (final_rate > 15)
return false;
break;
default:
Expand Down

0 comments on commit 2ed9382

Please sign in to comment.