summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-17 14:12:22 +0100
committerJohannes Berg <johannes.berg@intel.com>2015-01-08 15:28:13 +0100
commita76b1942a10293a94edf3c93c23a6231b63532f5 (patch)
tree8466ac5d17e9316211abdd0cbf99974919e2e328 /net
parent319090bf6c75e3ad42a8c74973be5e78ae4f948f (diff)
downloadop-kernel-dev-a76b1942a10293a94edf3c93c23a6231b63532f5.zip
op-kernel-dev-a76b1942a10293a94edf3c93c23a6231b63532f5.tar.gz
cfg80211: add nl80211 beacon-only statistics
Add these two values: * BEACON_RX: number of beacons received from this peer * BEACON_SIGNAL_AVG: signal strength average for beacons only These can then be used for Android Lollipop's statistics request. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 68faf8a..42b968a1 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3768,6 +3768,8 @@ static int nl80211_send_station(struct sk_buff *msg, u32 cmd, u32 portid,
PUT_SINFO(T_OFFSET, t_offset, u64);
PUT_SINFO(RX_DROP_MISC, rx_dropped_misc, u64);
+ PUT_SINFO(BEACON_RX, rx_beacon, u64);
+ PUT_SINFO(BEACON_SIGNAL_AVG, rx_beacon_signal_avg, u8);
#undef PUT_SINFO
nla_nest_end(msg, sinfoattr);
OpenPOWER on IntegriCloud