Thread (5 messages) 5 messages, 2 authors, 2017-02-08
STALE3406d

[PATCH v2 3/3] mac80211: clear failure average upon mesh path deactivation

From: Rajkumar Manoharan <hidden>
Date: 2017-01-31 20:11:12
Subsystem: mac80211, the rest · Maintainers: Johannes Berg, Linus Torvalds

Mesh moving average should be cleared, whenever mesh paths
to the given station are deactivated due to bad link. It makes
path deactivation logic more robust by considering more tx
status before terminating mesh link.

Signed-off-by: Rajkumar Manoharan <redacted>
---
v2:
 * removed paths_deactivated check
 * updated commit log

 net/mac80211/mesh_pathtbl.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index f0e6175a9821..bab443e5284d 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -537,6 +537,7 @@ void mesh_plink_broken(struct sta_info *sta)
 				WLAN_REASON_MESH_PATH_DEST_UNREACHABLE, bcast);
 		}
 	}
+	sta->mesh->fail_avg = 0;
 out:
 	rhashtable_walk_stop(&iter);
 	rhashtable_walk_exit(&iter);
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help