mt7603: poll for rate update completion before setting sta->wcid.tx_rate_set for the first time

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-06-17 10:54:51 +02:00
parent 271a9998f9
commit f30fa6c56c
+3
View File
@@ -535,6 +535,9 @@ void mt7603_wtbl_set_rates(struct mt7603_dev *dev, struct mt7603_sta *sta)
MT_WTBL_UPDATE_RATE_UPDATE |
MT_WTBL_UPDATE_TX_COUNT_CLEAR);
if (!sta->wcid.tx_rate_set)
mt76_poll(dev, MT_WTBL_UPDATE, MT_WTBL_UPDATE_BUSY, 0, 5000);
sta->rate_count = count;
sta->wcid.tx_rate_set = true;
}