Skip to content

Commit

Permalink
mt7603: poll for rate update completion before setting sta->wcid.tx_r…
Browse files Browse the repository at this point in the history
…ate_set for the first time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jun 17, 2016
1 parent 271a999 commit f30fa6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mt7603_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f30fa6c

Please sign in to comment.