summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorHenning Rogge <hrogge@gmail.com>2016-02-03 13:58:37 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 09:04:35 +0100
commitab1c7906b0bead549065a3a2def5aeda21818c99 (patch)
tree46bc0624697c12e809b80a6bd3a4c489e8272a88 /net/mac80211/rx.c
parentbf5a70e105820eb214d3f33376cf6a3011d2e20c (diff)
downloadblackbird-obmc-linux-ab1c7906b0bead549065a3a2def5aeda21818c99.tar.gz
blackbird-obmc-linux-ab1c7906b0bead549065a3a2def5aeda21818c99.zip
mac80211: let unused MPP table entries timeout
Remember the last time when a mpp table entry is used for rx or tx and remove them after MESH_PATH_EXPIRE time. Acked-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 44192143ebdf..91279576f4a7 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2311,6 +2311,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
spin_lock_bh(&mppath->state_lock);
if (!ether_addr_equal(mppath->mpp, mpp_addr))
memcpy(mppath->mpp, mpp_addr, ETH_ALEN);
+ mppath->exp_time = jiffies;
spin_unlock_bh(&mppath->state_lock);
}
rcu_read_unlock();
OpenPOWER on IntegriCloud