]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: support beacon statistics for BSS client
authorJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jan 2015 20:41:29 +0000 (21:41 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 1 Mar 2015 14:55:11 +0000 (16:55 +0200)
commit33cef9256342f200a708211958cec9c44406631d
tree376512af3ea5f674a3c758b5b5c7dc689029f2d5
parent3c118cdb9cd8c8425320f5153054250c5b93d8c0
iwlwifi: mvm: support beacon statistics for BSS client

Report the average beacon signal and the number of received beacons as
measured by the firmware.

Since the firmware just counts, and doesn't reset the counter at all,
clear it in the firmware whenever we associate. However, accumulate it
over firmware restart.

Since clearing the statistics in the firmware will also clear the ones
for the radio statistics, add those to the accumulator when cleared.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/rx.c
drivers/net/wireless/iwlwifi/mvm/utils.c