Commit f4635f66 authored by Felix Fietkau's avatar Felix Fietkau

mt76: mt7615: fix invalid fallback rates

Only decrement the rate index on duplicate rates if it is not already 0
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 1f5581df
...@@ -503,6 +503,9 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta, ...@@ -503,6 +503,9 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta,
IEEE80211_TX_RC_160_MHZ_WIDTH)) IEEE80211_TX_RC_160_MHZ_WIDTH))
continue; continue;
if (!rates[i].idx)
continue;
rates[i].idx--; rates[i].idx--;
} }
......
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