mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user