diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2015-05-25 12:06:18 (GMT) |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-05-29 14:34:45 (GMT) |
commit | 587f7031f303bae561caecb0d5b23ba4d2585522 (patch) | |
tree | 72b3dfbb049d0f83e754aebdb3a425099263e5ed /COPYING | |
parent | 0936ea3f8d4b5d6cc769123faf12f8a6affde918 (diff) | |
download | linux-587f7031f303bae561caecb0d5b23ba4d2585522.tar.xz |
ath10k: handle cycle counter wraparound
When QCA988X cycle counter HW register wraps
around it resets to 0x7fffffff instead of 0. All
other cycle counter related registers are divided
by 2 so they never wraparound themselves. QCA61X4
has a uniform CC and it wraparounds in a regular
fashion though.
Worst case wraparound time is approx 24 seconds
(2**31 / 88MHz). Since scan channel visit times
are max 5 seconds (offchannel case) it is
guaranteed there's been at most 1 wraparound and
it is possible to compute survey active time
value. It is, however, impossible to determine the
point at which Rx Clear Count has been divided by
two so it is not reported upon wraparound.
This fixes some occasional incorrect survey data
on QCA988X as some channels (depending on how/when
scan/offchannel requests were requested) would
have approx 24 sec active time which wasn't
actually the case.
This should improve hostapd ACS a little bit.
Reported-by: Srinivasa Duvvuri <sduvvuri@chromium.org>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions