summaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.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/tx.c
parentbf5a70e105820eb214d3f33376cf6a3011d2e20c (diff)
downloadlinux-ab1c7906b0bead549065a3a2def5aeda21818c99.tar.gz
linux-ab1c7906b0bead549065a3a2def5aeda21818c99.tar.bz2
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/tx.c')
-rw-r--r--net/mac80211/tx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index a5aa275d0434..7bb67fa9f4d2 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2173,8 +2173,11 @@ static struct sk_buff *ieee80211_build_hdr(struct ieee80211_sub_if_data *sdata,
mpp_lookup = true;
}
- if (mpp_lookup)
+ if (mpp_lookup) {
mppath = mpp_path_lookup(sdata, skb->data);
+ if (mppath)
+ mppath->exp_time = jiffies;
+ }
if (mppath && mpath)
mesh_path_del(mpath->sdata, mpath->dst);