mac80211: Decouple fail_avg stats used by mesh from rate control algorithm.
authorJavier Cardona <javier@cozybit.com>
Tue, 18 Aug 2009 00:15:55 +0000 (17:15 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:36:02 +0000 (11:36 -0400)
commitbfc32e6a9559d3e30925929cd9a9df7498f325db
treef0e5f1bdf902fe463fa994d44cafcab39b357380
parent92ed48e5230e8f5906dda0cc31715b3b7e3fe303
mac80211: Decouple fail_avg stats used by mesh from rate control algorithm.

Mesh uses the tx failure average to compute the (m)path metric.  This used to
be done inside the rate control module.  This patch breaks the dependency
between the mesh stack and the rate control algorithm.  Mesh will now work
independently of the chosen rate control algorithm.

The mesh stack keeps a moving average of the average transmission losses for
each mesh peer station.  If the fail average exceeds a certain threshold, the
peer link is marked as broken.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/rc80211_minstrel.c
net/mac80211/rc80211_pid_algo.c