mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
mt76: mt7615: fix invalid fallback rates
Only decrement the rate index on duplicate rates if it is not already 0 Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
1f5581dffe
commit
f4635f66da
1 changed files with 3 additions and 0 deletions
|
|
@ -503,6 +503,9 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta,
|
|||
IEEE80211_TX_RC_160_MHZ_WIDTH))
|
||||
continue;
|
||||
|
||||
if (!rates[i].idx)
|
||||
continue;
|
||||
|
||||
rates[i].idx--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue