diff options
author | Andrey Yurovsky <andrey@cozybit.com> | 2009-08-10 15:15:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:59 -0400 |
commit | a9e3091bf08ddea35f172549a8a21d5bd6ee6129 (patch) | |
tree | 381cf2e93a69723865fed00d63e4de32191ea574 /net/mac80211 | |
parent | fe58343461def0d376908a80cebd087b746a1483 (diff) |
mac80211: Use correct sign for mesh active path refresh.
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 <andrey@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index b54c21cf5f73..1cd1e7273085 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -791,7 +791,7 @@ int mesh_nexthop_lookup(struct sk_buff *skb, | |||
791 | } | 791 | } |
792 | 792 | ||
793 | if (mpath->flags & MESH_PATH_ACTIVE) { | 793 | if (mpath->flags & MESH_PATH_ACTIVE) { |
794 | if (time_after(jiffies, mpath->exp_time - | 794 | if (time_after(jiffies, mpath->exp_time + |
795 | msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time)) | 795 | msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time)) |
796 | && !memcmp(sdata->dev->dev_addr, hdr->addr4, | 796 | && !memcmp(sdata->dev->dev_addr, hdr->addr4, |
797 | ETH_ALEN) | 797 | ETH_ALEN) |