linux_dsm_epyc7002/drivers/net/wireless
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
..
ath ath10k: handle cycle counter wraparound 2015-05-29 17:34:45 +03:00
b43 mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
b43legacy mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
brcm80211 ath10k: 2015-05-24 23:23:01 -04:00
cw1200 mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
hostap wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
ipw2x00 Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
iwlegacy mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
iwlwifi ath10k: 2015-05-24 23:23:01 -04:00
libertas Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
libertas_tf mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
mwifiex mwifiex: parsing aid while receiving association response 2015-05-09 16:48:15 +03:00
orinoco Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
p54 mac80211: make LED trigger names const 2015-05-05 14:21:55 +02:00
prism54
rsi
rt2x00 mac80211: extend get_tkip_seq to all keys 2015-05-06 13:29:59 +02:00
rtl818x
rtlwifi ath10k: 2015-05-24 23:23:01 -04:00
ti ath10k: 2015-05-24 23:23:01 -04:00
zd1211rw mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
adm8211.c mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
adm8211.h
airo_cs.c
airo.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-04-15 09:00:47 -07:00
airo.h
at76c50x-usb.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
at76c50x-usb.h mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
atmel_cs.c
atmel_pci.c
atmel.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
atmel.h
Kconfig
mac80211_hwsim.c mac80211_hwsim: Fix the supported VHT mcs rates 2015-05-06 14:51:27 +02:00
mac80211_hwsim.h
Makefile
mwl8k.c mac80211: remove support for IFF_PROMISC 2015-04-24 11:14:13 +02:00
ray_cs.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h