ath9k: implement channel utilization stats for survey
authorFelix Fietkau <nbd@openwrt.org>
Sun, 10 Oct 2010 16:21:52 +0000 (18:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:21 +0000 (15:04 -0400)
commit3430098ae463e31ab16926ac3eb295368a3ca5d9
tree9a0ffbd469bfce751ddc30e09efdbfe69353bd75
parentcac4220b2e93e6344f987581d52d5bd71ff2cc0e
ath9k: implement channel utilization stats for survey

Results for the active channel are updated whenever a new survey dump
is requested, the old data is kept to allow multiple processes to
make their own channel utilization averages.
All other channels only contain the data for the last time that the
hardware was on the channel, i.e. the last scan result or other
off-channel activity.
Running a background scan does not clear the data for the active
channel.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c