mirror of https://gitee.com/openkylin/linux.git
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
|
@ -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--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue