commit | 338c17ae311e6b5a439573a4043fd2d9237cd1d5 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Fri Aug 28 10:52:54 2015 +0200 |
committer | Johannes Berg <johannes.berg@intel.com> | Tue Sep 22 15:21:26 2015 +0200 |
tree | 3383987c5faa4975b424e1eb5fa6e1b8e29678c8 | |
parent | 8ec6d97871f37e4743678ea4a455bd59580aa0f4 [diff] |
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>