diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2014-09-04 08:28:40 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-09-11 12:18:47 +0200 |
commit | 9d58f25b12f70f52581a5a1fdb1e59d322c4c729 (patch) | |
tree | 28740298c051b41408729bd456c6347efdb23da8 /net/mac80211/sta_info.h | |
parent | 5935839ad73583781b8bbe8d91412f6826e218a4 (diff) | |
download | linux-9d58f25b12f70f52581a5a1fdb1e59d322c4c729.tar.gz linux-9d58f25b12f70f52581a5a1fdb1e59d322c4c729.tar.bz2 linux-9d58f25b12f70f52581a5a1fdb1e59d322c4c729.zip |
mac80211: add TDLS connection timeout
Adding a timeout for tearing down a TDLS connection that
hasn't had ACKed traffic sent through it for a certain
amount of time.
Since we have no other monitoring facility to indicate the
existance (or non-existance) of a peer, this patch will
cause a peer to be considered as unavailable if for some X
time at least some Y packets have all not been ACKed.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 9dc7a9d6b0d2..42f68cb8957e 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h @@ -450,6 +450,9 @@ struct sta_info { enum ieee80211_smps_mode known_smps_mode; const struct ieee80211_cipher_scheme *cipher_scheme; + /* TDLS timeout data */ + unsigned long last_tdls_pkt_time; + /* keep last! */ struct ieee80211_sta sta; }; |