mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
mac80211: Fixed bug in mesh portal paths
commit 5d618cb81a upstream.
Paths to mesh portals were being timed out immediately after each use in
intermediate forwarding nodes. mppath->exp_time is set to the expiration time
so assigning it to jiffies was marking the path as expired.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fb0f7048cf
commit
dde24b6c58
@@ -1514,7 +1514,6 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
|
||||
mpp_path_add(mesh_hdr->eaddr2, hdr->addr4, sdata);
|
||||
} else {
|
||||
spin_lock_bh(&mppath->state_lock);
|
||||
mppath->exp_time = jiffies;
|
||||
if (compare_ether_addr(mppath->mpp, hdr->addr4) != 0)
|
||||
memcpy(mppath->mpp, hdr->addr4, ETH_ALEN);
|
||||
spin_unlock_bh(&mppath->state_lock);
|
||||
|
||||
Reference in New Issue
Block a user