summaryrefslogtreecommitdiff
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-17 16:12:22 +0300
committerJohannes Berg <johannes.berg@intel.com>2015-01-08 17:28:13 +0300
commita76b1942a10293a94edf3c93c23a6231b63532f5 (patch)
tree8466ac5d17e9316211abdd0cbf99974919e2e328 /include/net/cfg80211.h
parent319090bf6c75e3ad42a8c74973be5e78ae4f948f (diff)
downloadlinux-a76b1942a10293a94edf3c93c23a6231b63532f5.tar.xz
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 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 91c133626c32..ef26ce16b058 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -987,6 +987,9 @@ struct sta_bss_parameters {
* @nonpeer_pm: non-peer mesh STA power save mode
* @expected_throughput: expected throughput in kbps (including 802.11 headers)
* towards this station.
+ * @rx_beacon: number of beacons received from this peer
+ * @rx_beacon_signal_avg: signal strength average (in dBm) for beacons received
+ * from this peer
*/
struct station_info {
u32 filled;
@@ -1026,6 +1029,9 @@ struct station_info {
enum nl80211_mesh_power_mode nonpeer_pm;
u32 expected_throughput;
+
+ u64 rx_beacon;
+ u8 rx_beacon_signal_avg;
};
/**