mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: set rate idx -1 after last reported status rate
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -751,6 +751,11 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta,
|
||||
info->status.rates[1].count = 0;
|
||||
} else {
|
||||
for (i = 0; i < ARRAY_SIZE(info->status.rates); i++) {
|
||||
if (!count) {
|
||||
info->status.rates[i].idx = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
info->status.rates[i] = sta->rates[i];
|
||||
info->status.rates[i].count = min_t(int, count, MT7603_RATE_RETRY);
|
||||
count -= MT7603_RATE_RETRY;
|
||||
|
||||
Reference in New Issue
Block a user