aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-11-15 20:58:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-18 14:22:20 -0500
commit86107fd170bc379869250eb7e1bd393a3a70e8ae (patch)
tree579ee24be87e94246450420f4de57d8eda942848 /include/linux/nl80211.h
parenteef39befaae2a1559efe197d795c376a317af2af (diff)
nl80211/mac80211: Report signal average
Extend nl80211 to report an exponential weighted moving average (EWMA) of the signal value. Since the signal value usually fluctuates between different packets, an average can be more useful than the value of the last packet. This uses the recently added generic EWMA library function. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r--include/linux/nl80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 037b4e498890..1ce3775e9e26 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1161,6 +1161,7 @@ enum nl80211_rate_info {
1161 * @__NL80211_STA_INFO_AFTER_LAST: internal 1161 * @__NL80211_STA_INFO_AFTER_LAST: internal
1162 * @NL80211_STA_INFO_MAX: highest possible station info attribute 1162 * @NL80211_STA_INFO_MAX: highest possible station info attribute
1163 * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 1163 * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
1164 * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
1164 * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 1165 * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
1165 * containing info as possible, see &enum nl80211_sta_info_txrate. 1166 * containing info as possible, see &enum nl80211_sta_info_txrate.
1166 * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station) 1167 * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station)
@@ -1178,6 +1179,7 @@ enum nl80211_sta_info {
1178 NL80211_STA_INFO_PLID, 1179 NL80211_STA_INFO_PLID,
1179 NL80211_STA_INFO_PLINK_STATE, 1180 NL80211_STA_INFO_PLINK_STATE,
1180 NL80211_STA_INFO_SIGNAL, 1181 NL80211_STA_INFO_SIGNAL,
1182 NL80211_STA_INFO_SIGNAL_AVG,
1181 NL80211_STA_INFO_TX_BITRATE, 1183 NL80211_STA_INFO_TX_BITRATE,
1182 NL80211_STA_INFO_RX_PACKETS, 1184 NL80211_STA_INFO_RX_PACKETS,
1183 NL80211_STA_INFO_TX_PACKETS, 1185 NL80211_STA_INFO_TX_PACKETS,