nl80211/mac80211: Report signal average
authorBruno Randolf <br1@einfach.org>
Thu, 2 Dec 2010 10:12:43 +0000 (19:12 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Dec 2010 21:09:12 +0000 (16:09 -0500)
commit541a45a142df281c974d74eac2066138fc107b23
treeb96f4808c3f17f2f560db9569ca2b08dba9eab67
parent22de94de7de78b8de2fb1f2df5aa85b5556cfcfd
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>
include/linux/nl80211.h
include/net/cfg80211.h
net/mac80211/Kconfig
net/mac80211/cfg.c
net/mac80211/rx.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/wireless/nl80211.c