Skip to content

Commit

Permalink
mac80211: Use correct sign for mesh active path refresh.
Browse files Browse the repository at this point in the history
On locally originated traffic, we refresh active paths after a timeout.  The
decision to do this was using the wrong sign and therefore the refresh timer
was triggered for every frame.

Signed-off-by: Andrey Yurovsky <[email protected]>
Signed-off-by: Javier Cardona <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Andrey Yurovsky authored and linvjw committed Aug 14, 2009
1 parent fe58343 commit a9e3091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mesh_hwmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ int mesh_nexthop_lookup(struct sk_buff *skb,
}

if (mpath->flags & MESH_PATH_ACTIVE) {
if (time_after(jiffies, mpath->exp_time -
if (time_after(jiffies, mpath->exp_time +
msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time))
&& !memcmp(sdata->dev->dev_addr, hdr->addr4,
ETH_ALEN)
Expand Down

0 comments on commit a9e3091

Please sign in to comment.