diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-06-11 17:18:20 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-06-23 14:24:55 +0200 |
commit | 17e6a59a365ac993c18f762d3a259635957f1026 (patch) | |
tree | df1184615286d6a3a4e212fb128ea72125d8d2cf /net/mac80211/iface.c | |
parent | 68885a54cd04742a2e6e10e9d3ff5976d046832e (diff) | |
download | op-kernel-dev-17e6a59a365ac993c18f762d3a259635957f1026.zip op-kernel-dev-17e6a59a365ac993c18f762d3a259635957f1026.tar.gz |
mac80211: cleanup TDLS state during failed setup
When setting up a TDLS session, register a delayed work to remove
the peer if setup times out. Prevent concurrent setups to support this
capacity.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 2a12b8a..bbf51b2 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1672,6 +1672,8 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name, ieee80211_dfs_cac_timer_work); INIT_DELAYED_WORK(&sdata->dec_tailroom_needed_wk, ieee80211_delayed_tailroom_dec); + INIT_DELAYED_WORK(&sdata->tdls_peer_del_work, + ieee80211_tdls_peer_del_work); for (i = 0; i < IEEE80211_NUM_BANDS; i++) { struct ieee80211_supported_band *sband; |