Skip to content

Commit

Permalink
mac80211: Only process mesh PREPs with equal seq number if metric is …
Browse files Browse the repository at this point in the history
…better.

This fixes routing loops in PREP propagation and is in accordance with Draft
11, Section: 11C.9.8.4.

Signed-off-by: Fabrice Deyber <fabricedeyber@agilemesh.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Fabrice Deyber authored and John W. Linville committed May 11, 2011
1 parent fd5999c commit 9b76b1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/mac80211/mesh_hwmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata,
(mpath->flags & MESH_PATH_SN_VALID)) {
if (SN_GT(mpath->sn, orig_sn) ||
(mpath->sn == orig_sn &&
action == MPATH_PREQ &&
new_metric >= mpath->metric)) {
process = false;
fresh_info = false;
Expand Down

0 comments on commit 9b76b1e

Please sign in to comment.