Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9e3091b authored by Andrey Yurovsky's avatar Andrey Yurovsky Committed by John W. Linville
Browse files

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: default avatarAndrey Yurovsky <andrey@cozybit.com>
Signed-off-by: default avatarJavier Cardona <javier@cozybit.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fe583434
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)