diff options
author | Henning Rogge <hrogge@gmail.com> | 2016-02-03 13:58:37 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-02-24 09:04:35 +0100 |
commit | ab1c7906b0bead549065a3a2def5aeda21818c99 (patch) | |
tree | 46bc0624697c12e809b80a6bd3a4c489e8272a88 /net/mac80211/rx.c | |
parent | bf5a70e105820eb214d3f33376cf6a3011d2e20c (diff) | |
download | blackbird-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.c | 1 |
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(); |