diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-17 08:12:22 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-08 09:28:13 -0500 |
commit | a76b1942a10293a94edf3c93c23a6231b63532f5 (patch) | |
tree | 8466ac5d17e9316211abdd0cbf99974919e2e328 /include/net/cfg80211.h | |
parent | 319090bf6c75e3ad42a8c74973be5e78ae4f948f (diff) |
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.h | 6 |
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 { | |||
987 | * @nonpeer_pm: non-peer mesh STA power save mode | 987 | * @nonpeer_pm: non-peer mesh STA power save mode |
988 | * @expected_throughput: expected throughput in kbps (including 802.11 headers) | 988 | * @expected_throughput: expected throughput in kbps (including 802.11 headers) |
989 | * towards this station. | 989 | * towards this station. |
990 | * @rx_beacon: number of beacons received from this peer | ||
991 | * @rx_beacon_signal_avg: signal strength average (in dBm) for beacons received | ||
992 | * from this peer | ||
990 | */ | 993 | */ |
991 | struct station_info { | 994 | struct station_info { |
992 | u32 filled; | 995 | u32 filled; |
@@ -1026,6 +1029,9 @@ struct station_info { | |||
1026 | enum nl80211_mesh_power_mode nonpeer_pm; | 1029 | enum nl80211_mesh_power_mode nonpeer_pm; |
1027 | 1030 | ||
1028 | u32 expected_throughput; | 1031 | u32 expected_throughput; |
1032 | |||
1033 | u64 rx_beacon; | ||
1034 | u8 rx_beacon_signal_avg; | ||
1029 | }; | 1035 | }; |
1030 | 1036 | ||
1031 | /** | 1037 | /** |