]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: use DECLARE_EWMA for ave_beacon_signal
authorJohannes Berg <johannes.berg@intel.com>
Fri, 28 Aug 2015 08:52:54 +0000 (10:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:21:26 +0000 (15:21 +0200)
commit338c17ae311e6b5a439573a4043fd2d9237cd1d5
tree3383987c5faa4975b424e1eb5fa6e1b8e29678c8
parent8ec6d97871f37e4743678ea4a455bd59580aa0f4
mac80211: use DECLARE_EWMA for ave_beacon_signal

It doesn't seem problematic to change the weight for the average
beacon signal from 3 to 4, so use DECLARE_EWMA. This also makes
the code easier to maintain since bugs like the one fixed in the
previous patch can't happen as easily.

With a fix from Avraham Stern to invert the sign since EMWA uses
unsigned values only.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c