aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/trace.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-11-16 15:49:57 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-19 09:47:32 -0500
commit3475b0946bd2057497628790d4b4fce4bfdcc304 (patch)
tree182cdbcfffa95409a1a6973e28ba0fa41cdf4bb0 /net/wireless/trace.h
parent90b9e446fbb64630c72cab48c007d7081aec2533 (diff)
cfg80211: Add TDLS event to allow drivers to request operations
The NL80211_CMD_TDLS_OPER command was previously used only for userspace request for the kernel code to perform TDLS operations. However, there are also cases where the driver may need to request operations from userspace, e.g., when using security on the AP path. Add a new cfg80211 function for generating a TDLS operation event for drivers to request a new link to be set up (NL80211_TDLS_SETUP) or an existing link to be torn down (NL80211_TDLS_TEARDOWN). Drivers can optionally use these events, e.g., based on noticing data traffic being sent to a peer station that is seen with good signal strength. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r--net/wireless/trace.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index 8e03c6382a8a..f264c20a7090 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -2157,6 +2157,29 @@ TRACE_EVENT(cfg80211_report_obss_beacon,
2157 WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm) 2157 WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm)
2158); 2158);
2159 2159
2160TRACE_EVENT(cfg80211_tdls_oper_request,
2161 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer,
2162 enum nl80211_tdls_operation oper, u16 reason_code),
2163 TP_ARGS(wiphy, netdev, peer, oper, reason_code),
2164 TP_STRUCT__entry(
2165 WIPHY_ENTRY
2166 NETDEV_ENTRY
2167 MAC_ENTRY(peer)
2168 __field(enum nl80211_tdls_operation, oper)
2169 __field(u16, reason_code)
2170 ),
2171 TP_fast_assign(
2172 WIPHY_ASSIGN;
2173 NETDEV_ASSIGN;
2174 MAC_ASSIGN(peer, peer);
2175 __entry->oper = oper;
2176 __entry->reason_code = reason_code;
2177 ),
2178 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u",
2179 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper,
2180 __entry->reason_code)
2181 );
2182
2160TRACE_EVENT(cfg80211_scan_done, 2183TRACE_EVENT(cfg80211_scan_done,
2161 TP_PROTO(struct cfg80211_scan_request *request, bool aborted), 2184 TP_PROTO(struct cfg80211_scan_request *request, bool aborted),
2162 TP_ARGS(request, aborted), 2185 TP_ARGS(request, aborted),