linux/drivers/net/wireless/ath
Michal Kazior 587f7031f3 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>
2015-05-29 17:34:45 +03:00
..
ar5523 mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
ath5k mac80211: extend get_tkip_seq to all keys 2015-05-06 13:29:59 +02:00
ath6kl Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
ath9k ath10k: 2015-05-24 23:23:01 -04:00
ath10k ath10k: handle cycle counter wraparound 2015-05-29 17:34:45 +03:00
carl9170 mac80211: make LED trigger names const 2015-05-05 14:21:55 +02:00
wcn36xx Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2015-04-14 09:50:27 -07:00
wil6210 wil6210: fix format specifier for dma_addr_t 2015-05-22 13:30:08 +03:00
ath.h ath9k: Add a new debug flag for FFT spectral scan 2015-05-09 16:46:08 +03:00
debug.c
dfs_pattern_detector.c Merge ath-next from ath.git 2015-04-28 14:44:19 +03:00
dfs_pattern_detector.h ath: introduce chirp parameter used by DFS 2015-03-05 15:55:16 +02:00
dfs_pri_detector.c ath: enhance radar detection by looking up chirp 2015-03-05 15:55:35 +02:00
dfs_pri_detector.h
hw.c
Kconfig ath: Add support for tracing 2014-10-02 14:23:14 -04:00
key.c
main.c ath: Fix smatch warning 2014-10-07 14:48:37 -04:00
Makefile ath: Add support for tracing 2014-10-02 14:23:14 -04:00
reg.h
regd_common.h
regd.c ath: use CTL region from cfg80211 if unset in EEPROM 2014-10-23 14:02:06 -04:00
regd.h
spectral_common.h ath10k: add spectral scan feature 2014-08-04 09:07:54 +03:00
trace.c ath: Add support for tracing 2014-10-02 14:23:14 -04:00
trace.h ath: Add support for tracing 2014-10-02 14:23:14 -04:00