Skip to content

Commit

Permalink
mt76: mt7603: fix invalid fallback rates
Browse files Browse the repository at this point in the history
Only decrement the rate index on duplicate rates if it is not already 0

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jul 12, 2019
1 parent 3d43dd8 commit 0ce4682
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mt7603/mac.c
Expand Up @@ -639,6 +639,9 @@ void mt7603_wtbl_set_rates(struct mt7603_dev *dev, struct mt7603_sta *sta,
IEEE80211_TX_RC_40_MHZ_WIDTH)
continue;

if (!rates[i].idx)
continue;

rates[i].idx--;
}

Expand Down

0 comments on commit 0ce4682

Please sign in to comment.