mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
mt76: mt7603: 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
f4635f66da
commit
820e4da174
1 changed files with 3 additions and 0 deletions
|
|
@ -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--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue