aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-12-02 05:12:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-07 16:09:12 -0500
commit541a45a142df281c974d74eac2066138fc107b23 (patch)
treeb96f4808c3f17f2f560db9569ca2b08dba9eab67 /include/linux/nl80211.h
parent22de94de7de78b8de2fb1f2df5aa85b5556cfcfd (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. -- v2: fix ABI breakage and change factor to be a power of 2. 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 410a06ea551b..8e28053ea423 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1191,6 +1191,7 @@ enum nl80211_rate_info {
1191 * station) 1191 * station)
1192 * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) 1192 * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station)
1193 * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) 1193 * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station)
1194 * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
1194 */ 1195 */
1195enum nl80211_sta_info { 1196enum nl80211_sta_info {
1196 __NL80211_STA_INFO_INVALID, 1197 __NL80211_STA_INFO_INVALID,
@@ -1206,6 +1207,7 @@ enum nl80211_sta_info {
1206 NL80211_STA_INFO_TX_PACKETS, 1207 NL80211_STA_INFO_TX_PACKETS,
1207 NL80211_STA_INFO_TX_RETRIES, 1208 NL80211_STA_INFO_TX_RETRIES,
1208 NL80211_STA_INFO_TX_FAILED, 1209 NL80211_STA_INFO_TX_FAILED,
1210 NL80211_STA_INFO_SIGNAL_AVG,
1209 1211
1210 /* keep last */ 1212 /* keep last */
1211 __NL80211_STA_INFO_AFTER_LAST, 1213 __NL80211_STA_INFO_AFTER_LAST,