Skip to content
Commit 3eb0928f authored by Manoharan, Rajkumar's avatar Manoharan, Rajkumar Committed by Johannes Berg
Browse files

mac80211: use DECLARE_EWMA for mesh_fail_avg



As moving average is not considering fractional part, it will
get stuck at the same level after certain state. For example,
with current values, it can get stuck at 96. Fortunately the
current threshold 95%, but if it were increased to 96 or more
mesh paths would never be deactivated. Fix failure average
movement by using EWMA helpers, which does take into account
fractional parts.

Signed-off-by: default avatarRajkumar Manoharan <rmanohar@qca.qualcomm.com>
[johannes: pick a larger EWMA factor for more precision with
 the limited range that we will feed into it, adjust to new API]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8d70eeb8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment