cfg80211: expand per-station byte counters to 64bit
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Mon, 4 Feb 2013 11:53:11 +0000 (13:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 4 Feb 2013 17:57:22 +0000 (18:57 +0100)
commit42745e039312ab4672c60ec584651f0c74e8264f
tree36c9593c931239d2c9ab4c0edc307506647525dc
parent682bd38b8ac1fa3e84e84cddd1f1d7eeebce1212
cfg80211: expand per-station byte counters to 64bit

In per-station statistics, present 32bit counters are too small
for practical purposes - with gigabit speeds, it get overlapped
every few seconds.

Expand counters in the struct station_info to be 64-bit.
Driver can still fill only 32-bit and indicate in @filled
only bits like STATION_INFO_[TR]X_BYTES; in case driver provides
full 64-bit counter, it should also set in @filled
bit STATION_INFO_[TR]RX_BYTES64

Netlink sends both 32-bit and 64-bit counters, if present, to not
break userspace.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
[change to also have 32-bit counters if driver advertises 64-bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c