diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-06-11 10:18:27 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-06-23 08:28:19 -0400 |
commit | ee10f2c779b28c1d6e87ac3e1bbb1aa8b62fa891 (patch) | |
tree | 03619136498fe1a91731bad32ac70592168ce230 /net/mac80211/trace.h | |
parent | 7adc3e4664bc5bd382fa181e6a4506f5b5b583d8 (diff) |
mac80211: protect TDLS discovery session
After sending a TDLS discovery-request, we expect a reply to arrive on
the AP's channel. We must stay on the channel (no PSM, scan, etc.), since
a TDLS setup-response is a direct packet not buffered by the AP.
Add a new mac80211 driver callback to allow discovery session protection.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r-- | net/mac80211/trace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index cfe1a0688b5c..02ac535d1274 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h | |||
@@ -1330,6 +1330,13 @@ DEFINE_EVENT(local_sdata_evt, drv_mgd_prepare_tx, | |||
1330 | TP_ARGS(local, sdata) | 1330 | TP_ARGS(local, sdata) |
1331 | ); | 1331 | ); |
1332 | 1332 | ||
1333 | DEFINE_EVENT(local_sdata_evt, drv_mgd_protect_tdls_discover, | ||
1334 | TP_PROTO(struct ieee80211_local *local, | ||
1335 | struct ieee80211_sub_if_data *sdata), | ||
1336 | |||
1337 | TP_ARGS(local, sdata) | ||
1338 | ); | ||
1339 | |||
1333 | DECLARE_EVENT_CLASS(local_chanctx, | 1340 | DECLARE_EVENT_CLASS(local_chanctx, |
1334 | TP_PROTO(struct ieee80211_local *local, | 1341 | TP_PROTO(struct ieee80211_local *local, |
1335 | struct ieee80211_chanctx *ctx), | 1342 | struct ieee80211_chanctx *ctx), |