OSDN Git Service

mac80211: fix mesh fail_avg check
authorManoharan, Rajkumar <rmanohar@qca.qualcomm.com>
Wed, 15 Feb 2017 20:46:50 +0000 (12:46 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Mar 2017 08:21:46 +0000 (09:21 +0100)
commitfe56c9c17b09769691e8b91747b32aa2555bef35
tree835f117b1b17c3ab4b3c1cfb5d13ed55aa0ce549
parent75b99bc300463e65f87c90425704c2688489f963
mac80211: fix mesh fail_avg check

Mesh failure average never be more than 100. Only in case of
fixed path, average will be more than threshold limit (95%).
With recent EWMA changes it may go upto 99 as it is scaled to
100. It make sense to return maximum metric when average is
greater than threshold limit.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c