]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6c1367a0b14801626a81df63ceb38c038fe8485
treeb96f4808c3f17f2f560db9569ca2b08dba9eab67
parentcc41af80af8547d77bed1494649992d301ebbaea
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