mt7603: set rate idx -1 after last reported status rate

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-27 14:38:18 +01:00
parent da07f63dac
commit 3344904c33
+5
View File
@@ -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;