2 #define TRACE_SYSTEM cfg80211
4 #if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ)
5 #define __RDEV_OPS_TRACE
7 #include <linux/tracepoint.h>
9 #include <linux/rtnetlink.h>
10 #include <net/cfg80211.h>
13 #define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN)
14 #define MAC_ASSIGN(entry_mac, given_mac) do { \
16 memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \
18 memset(__entry->entry_mac, 0, ETH_ALEN); \
20 #define MAC_PR_FMT "%pM"
21 #define MAC_PR_ARG(entry_mac) (__entry->entry_mac)
23 #define WIPHY_ENTRY MAC_ENTRY(wiphy_mac)
24 #define WIPHY_ASSIGN MAC_ASSIGN(wiphy_mac, wiphy->perm_addr)
25 #define WIPHY_PR_FMT "wiphy " MAC_PR_FMT
26 #define WIPHY_PR_ARG MAC_PR_ARG(wiphy_mac)
28 #define WDEV_ENTRY __field(u32, id)
29 #define WDEV_ASSIGN (__entry->id) = (wdev ? wdev->identifier : 0)
30 #define WDEV_PR_FMT ", wdev id: %u"
31 #define WDEV_PR_ARG (__entry->id)
33 #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \
34 MAC_ENTRY(netdev_addr) \
36 #define NETDEV_ASSIGN \
38 memcpy(__entry->name, netdev->name, IFNAMSIZ); \
39 MAC_ASSIGN(netdev_addr, netdev->dev_addr); \
40 (__entry->ifindex) = (netdev->ifindex); \
42 #define NETDEV_PR_FMT ", netdev - name: %s, addr: " MAC_PR_FMT \
44 #define NETDEV_PR_ARG (__entry->name), MAC_PR_ARG(netdev_addr), \
47 #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \
48 __field(u16, dot11MeshConfirmTimeout) \
49 __field(u16, dot11MeshHoldingTimeout) \
50 __field(u16, dot11MeshMaxPeerLinks) \
51 __field(u8, dot11MeshMaxRetries) \
52 __field(u8, dot11MeshTTL) \
53 __field(u8, element_ttl) \
54 __field(bool, auto_open_plinks) \
55 __field(u32, dot11MeshNbrOffsetMaxNeighbor) \
56 __field(u8, dot11MeshHWMPmaxPREQretries) \
57 __field(u32, path_refresh_time) \
58 __field(u32, dot11MeshHWMPactivePathTimeout) \
59 __field(u16, min_discovery_timeout) \
60 __field(u16, dot11MeshHWMPpreqMinInterval) \
61 __field(u16, dot11MeshHWMPperrMinInterval) \
62 __field(u16, dot11MeshHWMPnetDiameterTraversalTime) \
63 __field(u8, dot11MeshHWMPRootMode) \
64 __field(u16, dot11MeshHWMPRannInterval) \
65 __field(bool, dot11MeshGateAnnouncementProtocol) \
66 __field(bool, dot11MeshForwarding) \
67 __field(s32, rssi_threshold) \
68 __field(u16, ht_opmode) \
69 __field(u32, dot11MeshHWMPactivePathToRootTimeout) \
70 __field(u16, dot11MeshHWMProotInterval) \
71 __field(u16, dot11MeshHWMPconfirmationInterval)
72 #define MESH_CFG_ASSIGN \
74 __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \
75 __entry->dot11MeshConfirmTimeout = \
76 conf->dot11MeshConfirmTimeout; \
77 __entry->dot11MeshHoldingTimeout = \
78 conf->dot11MeshHoldingTimeout; \
79 __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \
80 __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \
81 __entry->dot11MeshTTL = conf->dot11MeshTTL; \
82 __entry->element_ttl = conf->element_ttl; \
83 __entry->auto_open_plinks = conf->auto_open_plinks; \
84 __entry->dot11MeshNbrOffsetMaxNeighbor = \
85 conf->dot11MeshNbrOffsetMaxNeighbor; \
86 __entry->dot11MeshHWMPmaxPREQretries = \
87 conf->dot11MeshHWMPmaxPREQretries; \
88 __entry->path_refresh_time = conf->path_refresh_time; \
89 __entry->dot11MeshHWMPactivePathTimeout = \
90 conf->dot11MeshHWMPactivePathTimeout; \
91 __entry->min_discovery_timeout = conf->min_discovery_timeout; \
92 __entry->dot11MeshHWMPpreqMinInterval = \
93 conf->dot11MeshHWMPpreqMinInterval; \
94 __entry->dot11MeshHWMPperrMinInterval = \
95 conf->dot11MeshHWMPperrMinInterval; \
96 __entry->dot11MeshHWMPnetDiameterTraversalTime = \
97 conf->dot11MeshHWMPnetDiameterTraversalTime; \
98 __entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \
99 __entry->dot11MeshHWMPRannInterval = \
100 conf->dot11MeshHWMPRannInterval; \
101 __entry->dot11MeshGateAnnouncementProtocol = \
102 conf->dot11MeshGateAnnouncementProtocol; \
103 __entry->dot11MeshForwarding = conf->dot11MeshForwarding; \
104 __entry->rssi_threshold = conf->rssi_threshold; \
105 __entry->ht_opmode = conf->ht_opmode; \
106 __entry->dot11MeshHWMPactivePathToRootTimeout = \
107 conf->dot11MeshHWMPactivePathToRootTimeout; \
108 __entry->dot11MeshHWMProotInterval = \
109 conf->dot11MeshHWMProotInterval; \
110 __entry->dot11MeshHWMPconfirmationInterval = \
111 conf->dot11MeshHWMPconfirmationInterval; \
114 #define CHAN_ENTRY __field(enum ieee80211_band, band) \
115 __field(u16, center_freq)
116 #define CHAN_ASSIGN(chan) \
119 __entry->band = chan->band; \
120 __entry->center_freq = chan->center_freq; \
123 __entry->center_freq = 0; \
126 #define CHAN_PR_FMT ", band: %d, freq: %u"
127 #define CHAN_PR_ARG __entry->band, __entry->center_freq
129 #define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \
130 __field(u32, control_freq) \
131 __field(u32, width) \
132 __field(u32, center_freq1) \
133 __field(u32, center_freq2)
134 #define CHAN_DEF_ASSIGN(chandef) \
136 if ((chandef) && (chandef)->chan) { \
137 __entry->band = (chandef)->chan->band; \
138 __entry->control_freq = \
139 (chandef)->chan->center_freq; \
140 __entry->width = (chandef)->width; \
141 __entry->center_freq1 = (chandef)->center_freq1;\
142 __entry->center_freq2 = (chandef)->center_freq2;\
145 __entry->control_freq = 0; \
146 __entry->width = 0; \
147 __entry->center_freq1 = 0; \
148 __entry->center_freq2 = 0; \
151 #define CHAN_DEF_PR_FMT \
152 ", band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u"
153 #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \
154 __entry->width, __entry->center_freq1, \
155 __entry->center_freq2
157 #define SINFO_ENTRY __field(int, generation) \
158 __field(u32, connected_time) \
159 __field(u32, inactive_time) \
160 __field(u32, rx_bytes) \
161 __field(u32, tx_bytes) \
162 __field(u32, rx_packets) \
163 __field(u32, tx_packets) \
164 __field(u32, tx_retries) \
165 __field(u32, tx_failed) \
166 __field(u32, rx_dropped_misc) \
167 __field(u32, beacon_loss_count) \
170 __field(u8, plink_state)
171 #define SINFO_ASSIGN \
173 __entry->generation = sinfo->generation; \
174 __entry->connected_time = sinfo->connected_time; \
175 __entry->inactive_time = sinfo->inactive_time; \
176 __entry->rx_bytes = sinfo->rx_bytes; \
177 __entry->tx_bytes = sinfo->tx_bytes; \
178 __entry->rx_packets = sinfo->rx_packets; \
179 __entry->tx_packets = sinfo->tx_packets; \
180 __entry->tx_retries = sinfo->tx_retries; \
181 __entry->tx_failed = sinfo->tx_failed; \
182 __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \
183 __entry->beacon_loss_count = sinfo->beacon_loss_count; \
184 __entry->llid = sinfo->llid; \
185 __entry->plid = sinfo->plid; \
186 __entry->plink_state = sinfo->plink_state; \
189 #define BOOL_TO_STR(bo) (bo) ? "true" : "false"
191 /*************************************************************
193 *************************************************************/
195 TRACE_EVENT(rdev_suspend,
196 TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow),
201 __field(bool, disconnect)
202 __field(bool, magic_pkt)
203 __field(bool, gtk_rekey_failure)
204 __field(bool, eap_identity_req)
205 __field(bool, four_way_handshake)
206 __field(bool, rfkill_release)
207 __field(bool, valid_wow)
212 __entry->any = wow->any;
213 __entry->disconnect = wow->disconnect;
214 __entry->magic_pkt = wow->magic_pkt;
215 __entry->gtk_rekey_failure = wow->gtk_rekey_failure;
216 __entry->eap_identity_req = wow->eap_identity_req;
217 __entry->four_way_handshake = wow->four_way_handshake;
218 __entry->rfkill_release = wow->rfkill_release;
219 __entry->valid_wow = true;
221 __entry->valid_wow = false;
224 TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, "
225 "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, "
226 "four way handshake: %d, rfkill release: %d.",
227 WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)",
228 __entry->any, __entry->disconnect, __entry->magic_pkt,
229 __entry->gtk_rekey_failure, __entry->eap_identity_req,
230 __entry->four_way_handshake, __entry->rfkill_release)
233 TRACE_EVENT(rdev_return_int,
234 TP_PROTO(struct wiphy *wiphy, int ret),
244 TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret)
247 TRACE_EVENT(rdev_scan,
248 TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request),
249 TP_ARGS(wiphy, request),
256 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
259 DECLARE_EVENT_CLASS(wiphy_only_evt,
260 TP_PROTO(struct wiphy *wiphy),
268 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
271 DEFINE_EVENT(wiphy_only_evt, rdev_resume,
272 TP_PROTO(struct wiphy *wiphy),
276 DEFINE_EVENT(wiphy_only_evt, rdev_return_void,
277 TP_PROTO(struct wiphy *wiphy),
281 DEFINE_EVENT(wiphy_only_evt, rdev_get_ringparam,
282 TP_PROTO(struct wiphy *wiphy),
286 DEFINE_EVENT(wiphy_only_evt, rdev_get_antenna,
287 TP_PROTO(struct wiphy *wiphy),
291 DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll,
292 TP_PROTO(struct wiphy *wiphy),
296 DECLARE_EVENT_CLASS(wiphy_enabled_evt,
297 TP_PROTO(struct wiphy *wiphy, bool enabled),
298 TP_ARGS(wiphy, enabled),
301 __field(bool, enabled)
305 __entry->enabled = enabled;
307 TP_printk(WIPHY_PR_FMT ", %senabled ",
308 WIPHY_PR_ARG, __entry->enabled ? "" : "not ")
311 DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup,
312 TP_PROTO(struct wiphy *wiphy, bool enabled),
313 TP_ARGS(wiphy, enabled)
316 TRACE_EVENT(rdev_add_virtual_intf,
317 TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type),
318 TP_ARGS(wiphy, name, type),
321 __string(vir_intf_name, name ? name : "<noname>")
322 __field(enum nl80211_iftype, type)
326 __assign_str(vir_intf_name, name ? name : "<noname>");
327 __entry->type = type;
329 TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d",
330 WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type)
333 DECLARE_EVENT_CLASS(wiphy_wdev_evt,
334 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
335 TP_ARGS(wiphy, wdev),
344 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
347 DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev,
348 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
352 DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf,
353 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
357 TRACE_EVENT(rdev_change_virtual_intf,
358 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
359 enum nl80211_iftype type),
360 TP_ARGS(wiphy, netdev, type),
364 __field(enum nl80211_iftype, type)
369 __entry->type = type;
371 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", type: %d",
372 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type)
375 DECLARE_EVENT_CLASS(key_handle,
376 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
377 bool pairwise, const u8 *mac_addr),
378 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr),
383 __field(u8, key_index)
384 __field(bool, pairwise)
389 MAC_ASSIGN(mac_addr, mac_addr);
390 __entry->key_index = key_index;
391 __entry->pairwise = pairwise;
393 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT,
394 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
395 BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr))
398 DEFINE_EVENT(key_handle, rdev_add_key,
399 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
400 bool pairwise, const u8 *mac_addr),
401 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
404 DEFINE_EVENT(key_handle, rdev_get_key,
405 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
406 bool pairwise, const u8 *mac_addr),
407 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
410 DEFINE_EVENT(key_handle, rdev_del_key,
411 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
412 bool pairwise, const u8 *mac_addr),
413 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
416 TRACE_EVENT(rdev_set_default_key,
417 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
418 bool unicast, bool multicast),
419 TP_ARGS(wiphy, netdev, key_index, unicast, multicast),
423 __field(u8, key_index)
424 __field(bool, unicast)
425 __field(bool, multicast)
430 __entry->key_index = key_index;
431 __entry->unicast = unicast;
432 __entry->multicast = multicast;
434 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s",
435 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
436 BOOL_TO_STR(__entry->unicast),
437 BOOL_TO_STR(__entry->multicast))
440 TRACE_EVENT(rdev_set_default_mgmt_key,
441 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index),
442 TP_ARGS(wiphy, netdev, key_index),
446 __field(u8, key_index)
451 __entry->key_index = key_index;
453 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u",
454 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index)
457 TRACE_EVENT(rdev_start_ap,
458 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
459 struct cfg80211_ap_settings *settings),
460 TP_ARGS(wiphy, netdev, settings),
465 __field(int, beacon_interval)
466 __field(int, dtim_period)
467 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
468 __field(enum nl80211_hidden_ssid, hidden_ssid)
469 __field(u32, wpa_ver)
470 __field(bool, privacy)
471 __field(enum nl80211_auth_type, auth_type)
472 __field(int, inactivity_timeout)
477 CHAN_DEF_ASSIGN(&settings->chandef);
478 __entry->beacon_interval = settings->beacon_interval;
479 __entry->dtim_period = settings->dtim_period;
480 __entry->hidden_ssid = settings->hidden_ssid;
481 __entry->wpa_ver = settings->crypto.wpa_versions;
482 __entry->privacy = settings->privacy;
483 __entry->auth_type = settings->auth_type;
484 __entry->inactivity_timeout = settings->inactivity_timeout;
485 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
486 memcpy(__entry->ssid, settings->ssid, settings->ssid_len);
488 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", AP settings - ssid: %s, "
489 CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, "
490 "hidden ssid: %d, wpa versions: %u, privacy: %s, "
491 "auth type: %d, inactivity timeout: %d",
492 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG,
493 __entry->beacon_interval, __entry->dtim_period,
494 __entry->hidden_ssid, __entry->wpa_ver,
495 BOOL_TO_STR(__entry->privacy), __entry->auth_type,
496 __entry->inactivity_timeout)
499 TRACE_EVENT(rdev_change_beacon,
500 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
501 struct cfg80211_beacon_data *info),
502 TP_ARGS(wiphy, netdev, info),
506 __dynamic_array(u8, head, info ? info->head_len : 0)
507 __dynamic_array(u8, tail, info ? info->tail_len : 0)
508 __dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0)
509 __dynamic_array(u8, proberesp_ies,
510 info ? info->proberesp_ies_len : 0)
511 __dynamic_array(u8, assocresp_ies,
512 info ? info->assocresp_ies_len : 0)
513 __dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0)
520 memcpy(__get_dynamic_array(head), info->head,
523 memcpy(__get_dynamic_array(tail), info->tail,
525 if (info->beacon_ies)
526 memcpy(__get_dynamic_array(beacon_ies),
527 info->beacon_ies, info->beacon_ies_len);
528 if (info->proberesp_ies)
529 memcpy(__get_dynamic_array(proberesp_ies),
531 info->proberesp_ies_len);
532 if (info->assocresp_ies)
533 memcpy(__get_dynamic_array(assocresp_ies),
535 info->assocresp_ies_len);
536 if (info->probe_resp)
537 memcpy(__get_dynamic_array(probe_resp),
538 info->probe_resp, info->probe_resp_len);
541 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
544 DECLARE_EVENT_CLASS(wiphy_netdev_evt,
545 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
546 TP_ARGS(wiphy, netdev),
555 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
558 DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap,
559 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
560 TP_ARGS(wiphy, netdev)
563 DEFINE_EVENT(wiphy_netdev_evt, rdev_get_et_stats,
564 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
565 TP_ARGS(wiphy, netdev)
568 DEFINE_EVENT(wiphy_netdev_evt, rdev_sched_scan_stop,
569 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
570 TP_ARGS(wiphy, netdev)
573 DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data,
574 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
575 TP_ARGS(wiphy, netdev)
578 DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config,
579 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
580 TP_ARGS(wiphy, netdev)
583 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh,
584 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
585 TP_ARGS(wiphy, netdev)
588 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss,
589 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
590 TP_ARGS(wiphy, netdev)
593 DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa,
594 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
595 TP_ARGS(wiphy, netdev)
598 DECLARE_EVENT_CLASS(station_add_change,
599 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
600 struct station_parameters *params),
601 TP_ARGS(wiphy, netdev, mac, params),
606 __field(u32, sta_flags_mask)
607 __field(u32, sta_flags_set)
608 __field(u32, sta_modify_mask)
609 __field(int, listen_interval)
611 __field(u8, plink_action)
612 __field(u8, plink_state)
613 __field(u8, uapsd_queues)
614 __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap))
619 MAC_ASSIGN(sta_mac, mac);
620 __entry->sta_flags_mask = params->sta_flags_mask;
621 __entry->sta_flags_set = params->sta_flags_set;
622 __entry->sta_modify_mask = params->sta_modify_mask;
623 __entry->listen_interval = params->listen_interval;
624 __entry->aid = params->aid;
625 __entry->plink_action = params->plink_action;
626 __entry->plink_state = params->plink_state;
627 __entry->uapsd_queues = params->uapsd_queues;
628 memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap));
630 memcpy(__entry->ht_capa, params->ht_capa,
631 sizeof(struct ieee80211_ht_cap));
633 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT
634 ", station flags mask: %u, station flags set: %u, "
635 "station modify mask: %u, listen interval: %d, aid: %u, "
636 "plink action: %u, plink state: %u, uapsd queues: %u",
637 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
638 __entry->sta_flags_mask, __entry->sta_flags_set,
639 __entry->sta_modify_mask, __entry->listen_interval,
640 __entry->aid, __entry->plink_action, __entry->plink_state,
641 __entry->uapsd_queues)
644 DEFINE_EVENT(station_add_change, rdev_add_station,
645 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
646 struct station_parameters *params),
647 TP_ARGS(wiphy, netdev, mac, params)
650 DEFINE_EVENT(station_add_change, rdev_change_station,
651 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
652 struct station_parameters *params),
653 TP_ARGS(wiphy, netdev, mac, params)
656 DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt,
657 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
658 TP_ARGS(wiphy, netdev, mac),
667 MAC_ASSIGN(sta_mac, mac);
669 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
670 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac))
673 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_station,
674 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
675 TP_ARGS(wiphy, netdev, mac)
678 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station,
679 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
680 TP_ARGS(wiphy, netdev, mac)
683 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath,
684 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
685 TP_ARGS(wiphy, netdev, mac)
688 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer,
689 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
690 TP_ARGS(wiphy, netdev, mac)
693 TRACE_EVENT(rdev_dump_station,
694 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx,
696 TP_ARGS(wiphy, netdev, idx, mac),
706 MAC_ASSIGN(sta_mac, mac);
709 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d",
710 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
714 TRACE_EVENT(rdev_return_int_station_info,
715 TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo),
716 TP_ARGS(wiphy, ret, sinfo),
727 TP_printk(WIPHY_PR_FMT ", returned %d" ,
728 WIPHY_PR_ARG, __entry->ret)
731 DECLARE_EVENT_CLASS(mpath_evt,
732 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
734 TP_ARGS(wiphy, netdev, dst, next_hop),
744 MAC_ASSIGN(dst, dst);
745 MAC_ASSIGN(next_hop, next_hop);
747 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT,
748 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst),
749 MAC_PR_ARG(next_hop))
752 DEFINE_EVENT(mpath_evt, rdev_add_mpath,
753 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
755 TP_ARGS(wiphy, netdev, dst, next_hop)
758 DEFINE_EVENT(mpath_evt, rdev_change_mpath,
759 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
761 TP_ARGS(wiphy, netdev, dst, next_hop)
764 DEFINE_EVENT(mpath_evt, rdev_get_mpath,
765 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
767 TP_ARGS(wiphy, netdev, dst, next_hop)
770 TRACE_EVENT(rdev_dump_mpath,
771 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx,
772 u8 *dst, u8 *next_hop),
773 TP_ARGS(wiphy, netdev, idx, dst, next_hop),
784 MAC_ASSIGN(dst, dst);
785 MAC_ASSIGN(next_hop, next_hop);
788 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d, destination: "
789 MAC_PR_FMT ", next hop: " MAC_PR_FMT,
790 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst),
791 MAC_PR_ARG(next_hop))
794 TRACE_EVENT(rdev_return_int_mpath_info,
795 TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo),
796 TP_ARGS(wiphy, ret, pinfo),
800 __field(int, generation)
802 __field(u32, frame_qlen)
805 __field(u32, exptime)
806 __field(u32, discovery_timeout)
807 __field(u8, discovery_retries)
813 __entry->generation = pinfo->generation;
814 __entry->filled = pinfo->filled;
815 __entry->frame_qlen = pinfo->frame_qlen;
816 __entry->sn = pinfo->sn;
817 __entry->metric = pinfo->metric;
818 __entry->exptime = pinfo->exptime;
819 __entry->discovery_timeout = pinfo->discovery_timeout;
820 __entry->discovery_retries = pinfo->discovery_retries;
821 __entry->flags = pinfo->flags;
823 TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, "
824 "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u,"
825 " discovery timeout: %u, discovery retries: %u, flags: %u",
826 WIPHY_PR_ARG, __entry->ret, __entry->generation,
827 __entry->filled, __entry->frame_qlen, __entry->sn,
828 __entry->metric, __entry->exptime, __entry->discovery_timeout,
829 __entry->discovery_retries, __entry->flags)
832 TRACE_EVENT(rdev_return_int_mesh_config,
833 TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf),
834 TP_ARGS(wiphy, ret, conf),
845 TP_printk(WIPHY_PR_FMT ", returned: %d",
846 WIPHY_PR_ARG, __entry->ret)
849 TRACE_EVENT(rdev_update_mesh_config,
850 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask,
851 const struct mesh_config *conf),
852 TP_ARGS(wiphy, netdev, mask, conf),
863 __entry->mask = mask;
865 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mask: %u",
866 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask)
869 TRACE_EVENT(rdev_join_mesh,
870 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
871 const struct mesh_config *conf,
872 const struct mesh_setup *setup),
873 TP_ARGS(wiphy, netdev, conf, setup),
884 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT,
885 WIPHY_PR_ARG, NETDEV_PR_ARG)
888 TRACE_EVENT(rdev_change_bss,
889 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
890 struct bss_parameters *params),
891 TP_ARGS(wiphy, netdev, params),
895 __field(int, use_cts_prot)
896 __field(int, use_short_preamble)
897 __field(int, use_short_slot_time)
898 __field(int, ap_isolate)
899 __field(int, ht_opmode)
904 __entry->use_cts_prot = params->use_cts_prot;
905 __entry->use_short_preamble = params->use_short_preamble;
906 __entry->use_short_slot_time = params->use_short_slot_time;
907 __entry->ap_isolate = params->ap_isolate;
908 __entry->ht_opmode = params->ht_opmode;
910 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", use cts prot: %d, "
911 "use short preamble: %d, use short slot time: %d, "
912 "ap isolate: %d, ht opmode: %d",
913 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot,
914 __entry->use_short_preamble, __entry->use_short_slot_time,
915 __entry->ap_isolate, __entry->ht_opmode)
918 TRACE_EVENT(rdev_set_txq_params,
919 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
920 struct ieee80211_txq_params *params),
921 TP_ARGS(wiphy, netdev, params),
925 __field(enum nl80211_ac, ac)
934 __entry->ac = params->ac;
935 __entry->txop = params->txop;
936 __entry->cwmin = params->cwmin;
937 __entry->cwmax = params->cwmax;
938 __entry->aifs = params->aifs;
940 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u",
941 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop,
942 __entry->cwmin, __entry->cwmax, __entry->aifs)
945 TRACE_EVENT(rdev_libertas_set_mesh_channel,
946 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
947 struct ieee80211_channel *chan),
948 TP_ARGS(wiphy, netdev, chan),
959 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT CHAN_PR_FMT, WIPHY_PR_ARG,
960 NETDEV_PR_ARG, CHAN_PR_ARG)
963 TRACE_EVENT(rdev_set_monitor_channel,
964 TP_PROTO(struct wiphy *wiphy,
965 struct cfg80211_chan_def *chandef),
966 TP_ARGS(wiphy, chandef),
973 CHAN_DEF_ASSIGN(chandef);
975 TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT,
976 WIPHY_PR_ARG, CHAN_DEF_PR_ARG)
979 TRACE_EVENT(rdev_auth,
980 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
981 struct cfg80211_auth_request *req),
982 TP_ARGS(wiphy, netdev, req),
987 __field(enum nl80211_auth_type, auth_type)
993 MAC_ASSIGN(bssid, req->bss->bssid);
995 memset(__entry->bssid, 0, ETH_ALEN);
996 __entry->auth_type = req->auth_type;
998 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT,
999 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type,
1003 TRACE_EVENT(rdev_assoc,
1004 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1005 struct cfg80211_assoc_request *req),
1006 TP_ARGS(wiphy, netdev, req),
1011 MAC_ENTRY(prev_bssid)
1012 __field(bool, use_mfp)
1019 MAC_ASSIGN(bssid, req->bss->bssid);
1021 memset(__entry->bssid, 0, ETH_ALEN);
1022 MAC_ASSIGN(prev_bssid, req->prev_bssid);
1023 __entry->use_mfp = req->use_mfp;
1024 __entry->flags = req->flags;
1026 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1027 ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u",
1028 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1029 MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp),
1033 TRACE_EVENT(rdev_deauth,
1034 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1035 struct cfg80211_deauth_request *req),
1036 TP_ARGS(wiphy, netdev, req),
1041 __field(u16, reason_code)
1046 MAC_ASSIGN(bssid, req->bssid);
1047 __entry->reason_code = req->reason_code;
1049 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u",
1050 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1051 __entry->reason_code)
1054 TRACE_EVENT(rdev_disassoc,
1055 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1056 struct cfg80211_disassoc_request *req),
1057 TP_ARGS(wiphy, netdev, req),
1062 __field(u16, reason_code)
1063 __field(bool, local_state_change)
1069 MAC_ASSIGN(bssid, req->bss->bssid);
1071 memset(__entry->bssid, 0, ETH_ALEN);
1072 __entry->reason_code = req->reason_code;
1073 __entry->local_state_change = req->local_state_change;
1075 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1076 ", reason: %u, local state change: %s",
1077 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1078 __entry->reason_code,
1079 BOOL_TO_STR(__entry->local_state_change))
1082 TRACE_EVENT(rdev_mgmt_tx_cancel_wait,
1083 TP_PROTO(struct wiphy *wiphy,
1084 struct wireless_dev *wdev, u64 cookie),
1085 TP_ARGS(wiphy, wdev, cookie),
1089 __field(u64, cookie)
1094 __entry->cookie = cookie;
1096 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu ",
1097 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1100 TRACE_EVENT(rdev_set_power_mgmt,
1101 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1102 bool enabled, int timeout),
1103 TP_ARGS(wiphy, netdev, enabled, timeout),
1107 __field(bool, enabled)
1108 __field(int, timeout)
1113 __entry->enabled = enabled;
1114 __entry->timeout = timeout;
1116 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", %senabled, timeout: %d ",
1117 WIPHY_PR_ARG, NETDEV_PR_ARG,
1118 __entry->enabled ? "" : "not ", __entry->timeout)
1121 TRACE_EVENT(rdev_connect,
1122 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1123 struct cfg80211_connect_params *sme),
1124 TP_ARGS(wiphy, netdev, sme),
1129 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
1130 __field(enum nl80211_auth_type, auth_type)
1131 __field(bool, privacy)
1132 __field(u32, wpa_versions)
1138 MAC_ASSIGN(bssid, sme->bssid);
1139 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
1140 memcpy(__entry->ssid, sme->ssid, sme->ssid_len);
1141 __entry->auth_type = sme->auth_type;
1142 __entry->privacy = sme->privacy;
1143 __entry->wpa_versions = sme->crypto.wpa_versions;
1144 __entry->flags = sme->flags;
1146 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1147 ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, "
1149 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid,
1150 __entry->auth_type, BOOL_TO_STR(__entry->privacy),
1151 __entry->wpa_versions, __entry->flags)
1154 TRACE_EVENT(rdev_set_cqm_rssi_config,
1155 TP_PROTO(struct wiphy *wiphy,
1156 struct net_device *netdev, s32 rssi_thold,
1158 TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst),
1162 __field(s32, rssi_thold)
1163 __field(u32, rssi_hyst)
1168 __entry->rssi_thold = rssi_thold;
1169 __entry->rssi_hyst = rssi_hyst;
1171 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT
1172 ", rssi_thold: %d, rssi_hyst: %u ",
1173 WIPHY_PR_ARG, NETDEV_PR_ARG,
1174 __entry->rssi_thold, __entry->rssi_hyst)
1177 TRACE_EVENT(rdev_set_cqm_txe_config,
1178 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate,
1179 u32 pkts, u32 intvl),
1180 TP_ARGS(wiphy, netdev, rate, pkts, intvl),
1191 __entry->rate = rate;
1192 __entry->pkts = pkts;
1193 __entry->intvl = intvl;
1195 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u",
1196 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts,
1200 TRACE_EVENT(rdev_disconnect,
1201 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1203 TP_ARGS(wiphy, netdev, reason_code),
1207 __field(u16, reason_code)
1212 __entry->reason_code = reason_code;
1214 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG,
1215 NETDEV_PR_ARG, __entry->reason_code)
1218 TRACE_EVENT(rdev_join_ibss,
1219 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1220 struct cfg80211_ibss_params *params),
1221 TP_ARGS(wiphy, netdev, params),
1226 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
1231 MAC_ASSIGN(bssid, params->bssid);
1232 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
1233 memcpy(__entry->ssid, params->ssid, params->ssid_len);
1235 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s",
1236 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid)
1239 TRACE_EVENT(rdev_set_wiphy_params,
1240 TP_PROTO(struct wiphy *wiphy, u32 changed),
1241 TP_ARGS(wiphy, changed),
1244 __field(u32, changed)
1248 __entry->changed = changed;
1250 TP_printk(WIPHY_PR_FMT ", changed: %u",
1251 WIPHY_PR_ARG, __entry->changed)
1254 DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power,
1255 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1256 TP_ARGS(wiphy, wdev)
1259 TRACE_EVENT(rdev_set_tx_power,
1260 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1261 enum nl80211_tx_power_setting type, int mbm),
1262 TP_ARGS(wiphy, wdev, type, mbm),
1266 __field(enum nl80211_tx_power_setting, type)
1272 __entry->type = type;
1275 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", type: %d, mbm: %d",
1276 WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm)
1279 TRACE_EVENT(rdev_return_int_int,
1280 TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill),
1281 TP_ARGS(wiphy, func_ret, func_fill),
1284 __field(int, func_ret)
1285 __field(int, func_fill)
1289 __entry->func_ret = func_ret;
1290 __entry->func_fill = func_fill;
1292 TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d",
1293 WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill)
1296 #ifdef CONFIG_NL80211_TESTMODE
1297 TRACE_EVENT(rdev_testmode_cmd,
1298 TP_PROTO(struct wiphy *wiphy),
1306 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
1309 TRACE_EVENT(rdev_testmode_dump,
1310 TP_PROTO(struct wiphy *wiphy),
1318 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
1320 #endif /* CONFIG_NL80211_TESTMODE */
1322 TRACE_EVENT(rdev_set_bitrate_mask,
1323 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1324 const u8 *peer, const struct cfg80211_bitrate_mask *mask),
1325 TP_ARGS(wiphy, netdev, peer, mask),
1334 MAC_ASSIGN(peer, peer);
1336 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
1337 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
1340 TRACE_EVENT(rdev_mgmt_frame_register,
1341 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1342 u16 frame_type, bool reg),
1343 TP_ARGS(wiphy, wdev, frame_type, reg),
1347 __field(u16, frame_type)
1353 __entry->frame_type = frame_type;
1356 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", frame_type: %u, reg: %s ",
1357 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type,
1358 __entry->reg ? "true" : "false")
1361 TRACE_EVENT(rdev_return_int_tx_rx,
1362 TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx),
1363 TP_ARGS(wiphy, ret, tx, rx),
1376 TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u",
1377 WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx)
1380 TRACE_EVENT(rdev_return_void_tx_rx,
1381 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max,
1382 u32 rx, u32 rx_max),
1383 TP_ARGS(wiphy, tx, tx_max, rx, rx_max),
1387 __field(u32, tx_max)
1389 __field(u32, rx_max)
1394 __entry->tx_max = tx_max;
1396 __entry->rx_max = rx_max;
1398 TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
1399 WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx,
1403 DECLARE_EVENT_CLASS(tx_rx_evt,
1404 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1405 TP_ARGS(wiphy, rx, tx),
1416 TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ",
1417 WIPHY_PR_ARG, __entry->tx, __entry->rx)
1420 DEFINE_EVENT(tx_rx_evt, rdev_set_ringparam,
1421 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1422 TP_ARGS(wiphy, rx, tx)
1425 DEFINE_EVENT(tx_rx_evt, rdev_set_antenna,
1426 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1427 TP_ARGS(wiphy, rx, tx)
1430 TRACE_EVENT(rdev_sched_scan_start,
1431 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1432 struct cfg80211_sched_scan_request *request),
1433 TP_ARGS(wiphy, netdev, request),
1442 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT,
1443 WIPHY_PR_ARG, NETDEV_PR_ARG)
1446 TRACE_EVENT(rdev_tdls_mgmt,
1447 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1448 u8 *peer, u8 action_code, u8 dialog_token,
1449 u16 status_code, const u8 *buf, size_t len),
1450 TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code,
1456 __field(u8, action_code)
1457 __field(u8, dialog_token)
1458 __field(u16, status_code)
1459 __dynamic_array(u8, buf, len)
1464 MAC_ASSIGN(peer, peer);
1465 __entry->action_code = action_code;
1466 __entry->dialog_token = dialog_token;
1467 __entry->status_code = status_code;
1468 memcpy(__get_dynamic_array(buf), buf, len);
1470 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", action_code: %u, "
1471 "dialog_token: %u, status_code: %u, buf: %#.2x ",
1472 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer),
1473 __entry->action_code, __entry->dialog_token,
1474 __entry->status_code, ((u8 *)__get_dynamic_array(buf))[0])
1477 TRACE_EVENT(rdev_dump_survey,
1478 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx),
1479 TP_ARGS(wiphy, netdev, idx),
1490 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d",
1491 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx)
1494 TRACE_EVENT(rdev_return_int_survey_info,
1495 TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info),
1496 TP_ARGS(wiphy, ret, info),
1501 __field(u64, channel_time)
1502 __field(u64, channel_time_busy)
1503 __field(u64, channel_time_ext_busy)
1504 __field(u64, channel_time_rx)
1505 __field(u64, channel_time_tx)
1506 __field(u32, filled)
1511 CHAN_ASSIGN(info->channel);
1513 __entry->channel_time = info->channel_time;
1514 __entry->channel_time_busy = info->channel_time_busy;
1515 __entry->channel_time_ext_busy = info->channel_time_ext_busy;
1516 __entry->channel_time_rx = info->channel_time_rx;
1517 __entry->channel_time_tx = info->channel_time_tx;
1518 __entry->filled = info->filled;
1519 __entry->noise = info->noise;
1521 TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT
1522 ", channel time: %llu, channel time busy: %llu, "
1523 "channel time extension busy: %llu, channel time rx: %llu, "
1524 "channel time tx: %llu, filled: %u, noise: %d",
1525 WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG,
1526 __entry->channel_time, __entry->channel_time_busy,
1527 __entry->channel_time_ext_busy, __entry->channel_time_rx,
1528 __entry->channel_time_tx, __entry->filled, __entry->noise)
1531 TRACE_EVENT(rdev_tdls_oper,
1532 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1533 u8 *peer, enum nl80211_tdls_operation oper),
1534 TP_ARGS(wiphy, netdev, peer, oper),
1539 __field(enum nl80211_tdls_operation, oper)
1544 MAC_ASSIGN(peer, peer);
1545 __entry->oper = oper;
1547 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", oper: %d",
1548 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper)
1551 DECLARE_EVENT_CLASS(rdev_pmksa,
1552 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1553 struct cfg80211_pmksa *pmksa),
1554 TP_ARGS(wiphy, netdev, pmksa),
1563 MAC_ASSIGN(bssid, pmksa->bssid);
1565 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT,
1566 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid))
1569 TRACE_EVENT(rdev_probe_client,
1570 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1572 TP_ARGS(wiphy, netdev, peer),
1581 MAC_ASSIGN(peer, peer);
1583 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT,
1584 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
1587 DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa,
1588 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1589 struct cfg80211_pmksa *pmksa),
1590 TP_ARGS(wiphy, netdev, pmksa)
1593 DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa,
1594 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1595 struct cfg80211_pmksa *pmksa),
1596 TP_ARGS(wiphy, netdev, pmksa)
1599 TRACE_EVENT(rdev_remain_on_channel,
1600 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1601 struct ieee80211_channel *chan,
1602 unsigned int duration),
1603 TP_ARGS(wiphy, wdev, chan, duration),
1608 __field(unsigned int, duration)
1614 __entry->duration = duration;
1616 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", duration: %u",
1617 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration)
1620 TRACE_EVENT(rdev_return_int_cookie,
1621 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
1622 TP_ARGS(wiphy, ret, cookie),
1626 __field(u64, cookie)
1631 __entry->cookie = cookie;
1633 TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu",
1634 WIPHY_PR_ARG, __entry->ret, __entry->cookie)
1637 TRACE_EVENT(rdev_cancel_remain_on_channel,
1638 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
1639 TP_ARGS(wiphy, wdev, cookie),
1643 __field(u64, cookie)
1648 __entry->cookie = cookie;
1650 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu",
1651 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1654 TRACE_EVENT(rdev_mgmt_tx,
1655 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1656 struct ieee80211_channel *chan, bool offchan,
1657 unsigned int wait, bool no_cck, bool dont_wait_for_ack),
1658 TP_ARGS(wiphy, wdev, chan, offchan, wait, no_cck, dont_wait_for_ack),
1663 __field(bool, offchan)
1664 __field(unsigned int, wait)
1665 __field(bool, no_cck)
1666 __field(bool, dont_wait_for_ack)
1672 __entry->offchan = offchan;
1673 __entry->wait = wait;
1674 __entry->no_cck = no_cck;
1675 __entry->dont_wait_for_ack = dont_wait_for_ack;
1677 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", offchan: %s,"
1678 " wait: %u, no cck: %s, dont wait for ack: %s",
1679 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG,
1680 BOOL_TO_STR(__entry->offchan), __entry->wait,
1681 BOOL_TO_STR(__entry->no_cck),
1682 BOOL_TO_STR(__entry->dont_wait_for_ack))
1685 TRACE_EVENT(rdev_set_noack_map,
1686 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1688 TP_ARGS(wiphy, netdev, noack_map),
1692 __field(u16, noack_map)
1697 __entry->noack_map = noack_map;
1699 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", noack_map: %u",
1700 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map)
1703 TRACE_EVENT(rdev_get_et_sset_count,
1704 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int sset),
1705 TP_ARGS(wiphy, netdev, sset),
1714 __entry->sset = sset;
1716 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %d",
1717 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset)
1720 TRACE_EVENT(rdev_get_et_strings,
1721 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 sset),
1722 TP_ARGS(wiphy, netdev, sset),
1731 __entry->sset = sset;
1733 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %u",
1734 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset)
1737 DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel,
1738 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1739 TP_ARGS(wiphy, wdev)
1742 TRACE_EVENT(rdev_return_chandef,
1743 TP_PROTO(struct wiphy *wiphy, int ret,
1744 struct cfg80211_chan_def *chandef),
1745 TP_ARGS(wiphy, ret, chandef),
1754 CHAN_DEF_ASSIGN(chandef);
1756 CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL);
1759 TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT ", ret: %d",
1760 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret)
1763 DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device,
1764 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1765 TP_ARGS(wiphy, wdev)
1768 DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device,
1769 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1770 TP_ARGS(wiphy, wdev)
1773 /*************************************************************
1774 * cfg80211 exported functions traces *
1775 *************************************************************/
1777 TRACE_EVENT(cfg80211_return_bool,
1786 TP_printk("returned %s", BOOL_TO_STR(__entry->ret))
1789 DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt,
1790 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1791 TP_ARGS(netdev, macaddr),
1798 MAC_ASSIGN(macaddr, macaddr);
1800 TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
1801 NETDEV_PR_ARG, MAC_PR_ARG(macaddr))
1804 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate,
1805 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1806 TP_ARGS(netdev, macaddr)
1809 DECLARE_EVENT_CLASS(netdev_evt_only,
1810 TP_PROTO(struct net_device *netdev),
1818 TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG)
1821 DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth,
1822 TP_PROTO(struct net_device *netdev),
1826 TRACE_EVENT(cfg80211_send_rx_assoc,
1827 TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss),
1828 TP_ARGS(netdev, bss),
1836 MAC_ASSIGN(bssid, bss->bssid);
1837 CHAN_ASSIGN(bss->channel);
1839 TP_printk(NETDEV_PR_FMT MAC_PR_FMT CHAN_PR_FMT,
1840 NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG)
1843 DEFINE_EVENT(netdev_evt_only, __cfg80211_send_deauth,
1844 TP_PROTO(struct net_device *netdev),
1848 DEFINE_EVENT(netdev_evt_only, __cfg80211_send_disassoc,
1849 TP_PROTO(struct net_device *netdev),
1853 DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_deauth,
1854 TP_PROTO(struct net_device *netdev),
1858 DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_disassoc,
1859 TP_PROTO(struct net_device *netdev),
1863 DECLARE_EVENT_CLASS(netdev_mac_evt,
1864 TP_PROTO(struct net_device *netdev, const u8 *mac),
1865 TP_ARGS(netdev, mac),
1872 MAC_ASSIGN(mac, mac)
1874 TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
1875 NETDEV_PR_ARG, MAC_PR_ARG(mac))
1878 DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout,
1879 TP_PROTO(struct net_device *netdev, const u8 *mac),
1880 TP_ARGS(netdev, mac)
1883 DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout,
1884 TP_PROTO(struct net_device *netdev, const u8 *mac),
1885 TP_ARGS(netdev, mac)
1888 TRACE_EVENT(cfg80211_michael_mic_failure,
1889 TP_PROTO(struct net_device *netdev, const u8 *addr,
1890 enum nl80211_key_type key_type, int key_id, const u8 *tsc),
1891 TP_ARGS(netdev, addr, key_type, key_id, tsc),
1895 __field(enum nl80211_key_type, key_type)
1896 __field(int, key_id)
1901 MAC_ASSIGN(addr, addr);
1902 __entry->key_type = key_type;
1903 __entry->key_id = key_id;
1904 memcpy(__entry->tsc, tsc, 6);
1906 TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm",
1907 NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type,
1908 __entry->key_id, __entry->tsc)
1911 TRACE_EVENT(cfg80211_ready_on_channel,
1912 TP_PROTO(struct wireless_dev *wdev, u64 cookie,
1913 struct ieee80211_channel *chan,
1914 unsigned int duration),
1915 TP_ARGS(wdev, cookie, chan, duration),
1918 __field(u64, cookie)
1920 __field(unsigned int, duration)
1924 __entry->cookie = cookie;
1926 __entry->duration = duration;
1928 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u",
1929 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG,
1933 TRACE_EVENT(cfg80211_ready_on_channel_expired,
1934 TP_PROTO(struct wireless_dev *wdev, u64 cookie,
1935 struct ieee80211_channel *chan),
1936 TP_ARGS(wdev, cookie, chan),
1939 __field(u64, cookie)
1944 __entry->cookie = cookie;
1947 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT,
1948 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG)
1951 TRACE_EVENT(cfg80211_new_sta,
1952 TP_PROTO(struct net_device *netdev, const u8 *mac_addr,
1953 struct station_info *sinfo),
1954 TP_ARGS(netdev, mac_addr, sinfo),
1962 MAC_ASSIGN(mac_addr, mac_addr);
1965 TP_printk(NETDEV_PR_FMT MAC_PR_FMT,
1966 NETDEV_PR_ARG, MAC_PR_ARG(mac_addr))
1969 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta,
1970 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1971 TP_ARGS(netdev, macaddr)
1974 TRACE_EVENT(cfg80211_rx_mgmt,
1975 TP_PROTO(struct wireless_dev *wdev, int freq, int sig_mbm),
1976 TP_ARGS(wdev, freq, sig_mbm),
1980 __field(int, sig_mbm)
1984 __entry->freq = freq;
1985 __entry->sig_mbm = sig_mbm;
1987 TP_printk(WDEV_PR_FMT ", freq: %d, sig mbm: %d",
1988 WDEV_PR_ARG, __entry->freq, __entry->sig_mbm)
1991 TRACE_EVENT(cfg80211_mgmt_tx_status,
1992 TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack),
1993 TP_ARGS(wdev, cookie, ack),
1996 __field(u64, cookie)
2001 __entry->cookie = cookie;
2004 TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s",
2005 WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack))
2008 TRACE_EVENT(cfg80211_cqm_rssi_notify,
2009 TP_PROTO(struct net_device *netdev,
2010 enum nl80211_cqm_rssi_threshold_event rssi_event),
2011 TP_ARGS(netdev, rssi_event),
2014 __field(enum nl80211_cqm_rssi_threshold_event, rssi_event)
2018 __entry->rssi_event = rssi_event;
2020 TP_printk(NETDEV_PR_FMT ", rssi event: %d",
2021 NETDEV_PR_ARG, __entry->rssi_event)
2024 TRACE_EVENT(cfg80211_reg_can_beacon,
2025 TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef),
2026 TP_ARGS(wiphy, chandef),
2033 CHAN_DEF_ASSIGN(chandef);
2035 TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT,
2036 WIPHY_PR_ARG, CHAN_DEF_PR_ARG)
2039 TRACE_EVENT(cfg80211_ch_switch_notify,
2040 TP_PROTO(struct net_device *netdev,
2041 struct cfg80211_chan_def *chandef),
2042 TP_ARGS(netdev, chandef),
2049 CHAN_DEF_ASSIGN(chandef);
2051 TP_printk(NETDEV_PR_FMT CHAN_DEF_PR_FMT,
2052 NETDEV_PR_ARG, CHAN_DEF_PR_ARG)
2055 DECLARE_EVENT_CLASS(cfg80211_rx_evt,
2056 TP_PROTO(struct net_device *netdev, const u8 *addr),
2057 TP_ARGS(netdev, addr),
2064 MAC_ASSIGN(addr, addr);
2066 TP_printk(NETDEV_PR_FMT MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr))
2069 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_ibss_joined,
2070 TP_PROTO(struct net_device *netdev, const u8 *addr),
2071 TP_ARGS(netdev, addr)
2074 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame,
2075 TP_PROTO(struct net_device *netdev, const u8 *addr),
2076 TP_ARGS(netdev, addr)
2079 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame,
2080 TP_PROTO(struct net_device *netdev, const u8 *addr),
2081 TP_ARGS(netdev, addr)
2084 TRACE_EVENT(cfg80211_probe_status,
2085 TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie,
2087 TP_ARGS(netdev, addr, cookie, acked),
2091 __field(u64, cookie)
2092 __field(bool, acked)
2096 MAC_ASSIGN(addr, addr);
2097 __entry->cookie = cookie;
2098 __entry->acked = acked;
2100 TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", cookie: %llu, acked: %s",
2101 NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie,
2102 BOOL_TO_STR(__entry->acked))
2105 TRACE_EVENT(cfg80211_cqm_pktloss_notify,
2106 TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets),
2107 TP_ARGS(netdev, peer, num_packets),
2111 __field(u32, num_packets)
2115 MAC_ASSIGN(peer, peer);
2116 __entry->num_packets = num_packets;
2118 TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u",
2119 NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets)
2122 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify,
2123 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
2124 TP_ARGS(netdev, macaddr)
2127 TRACE_EVENT(cfg80211_pmksa_candidate_notify,
2128 TP_PROTO(struct net_device *netdev, int index, const u8 *bssid,
2130 TP_ARGS(netdev, index, bssid, preauth),
2135 __field(bool, preauth)
2139 __entry->index = index;
2140 MAC_ASSIGN(bssid, bssid);
2141 __entry->preauth = preauth;
2143 TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s",
2144 NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid),
2145 BOOL_TO_STR(__entry->preauth))
2148 TRACE_EVENT(cfg80211_report_obss_beacon,
2149 TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len,
2150 int freq, int sig_dbm),
2151 TP_ARGS(wiphy, frame, len, freq, sig_dbm),
2155 __field(int, sig_dbm)
2159 __entry->freq = freq;
2160 __entry->sig_dbm = sig_dbm;
2162 TP_printk(WIPHY_PR_FMT ", freq: %d, sig_dbm: %d",
2163 WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm)
2166 TRACE_EVENT(cfg80211_tdls_oper_request,
2167 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer,
2168 enum nl80211_tdls_operation oper, u16 reason_code),
2169 TP_ARGS(wiphy, netdev, peer, oper, reason_code),
2174 __field(enum nl80211_tdls_operation, oper)
2175 __field(u16, reason_code)
2180 MAC_ASSIGN(peer, peer);
2181 __entry->oper = oper;
2182 __entry->reason_code = reason_code;
2184 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u",
2185 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper,
2186 __entry->reason_code)
2189 TRACE_EVENT(cfg80211_scan_done,
2190 TP_PROTO(struct cfg80211_scan_request *request, bool aborted),
2191 TP_ARGS(request, aborted),
2193 __field(u32, n_channels)
2194 __dynamic_array(u8, ie, request ? request->ie_len : 0)
2195 __array(u32, rates, IEEE80211_NUM_BANDS)
2196 __field(u32, wdev_id)
2197 MAC_ENTRY(wiphy_mac)
2198 __field(bool, no_cck)
2199 __field(bool, aborted)
2203 memcpy(__get_dynamic_array(ie), request->ie,
2205 memcpy(__entry->rates, request->rates,
2206 IEEE80211_NUM_BANDS);
2207 __entry->wdev_id = request->wdev ?
2208 request->wdev->identifier : 0;
2210 MAC_ASSIGN(wiphy_mac,
2211 request->wiphy->perm_addr);
2212 __entry->no_cck = request->no_cck;
2214 __entry->aborted = aborted;
2216 TP_printk("aborted: %s", BOOL_TO_STR(__entry->aborted))
2219 DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_results,
2220 TP_PROTO(struct wiphy *wiphy),
2224 DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_stopped,
2225 TP_PROTO(struct wiphy *wiphy),
2229 TRACE_EVENT(cfg80211_get_bss,
2230 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
2231 const u8 *bssid, const u8 *ssid, size_t ssid_len,
2232 u16 capa_mask, u16 capa_val),
2233 TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, capa_mask, capa_val),
2238 __dynamic_array(u8, ssid, ssid_len)
2239 __field(u16, capa_mask)
2240 __field(u16, capa_val)
2244 CHAN_ASSIGN(channel);
2245 MAC_ASSIGN(bssid, bssid);
2246 memcpy(__get_dynamic_array(ssid), ssid, ssid_len);
2247 __entry->capa_mask = capa_mask;
2248 __entry->capa_val = capa_val;
2250 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT MAC_PR_FMT ", buf: %#.2x, "
2251 "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG, CHAN_PR_ARG,
2252 MAC_PR_ARG(bssid), ((u8 *)__get_dynamic_array(ssid))[0],
2253 __entry->capa_mask, __entry->capa_val)
2256 TRACE_EVENT(cfg80211_inform_bss_frame,
2257 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
2258 struct ieee80211_mgmt *mgmt, size_t len,
2260 TP_ARGS(wiphy, channel, mgmt, len, signal),
2264 __dynamic_array(u8, mgmt, len)
2265 __field(s32, signal)
2269 CHAN_ASSIGN(channel);
2271 memcpy(__get_dynamic_array(mgmt), mgmt, len);
2272 __entry->signal = signal;
2274 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT "signal: %d",
2275 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal)
2278 DECLARE_EVENT_CLASS(cfg80211_bss_evt,
2279 TP_PROTO(struct cfg80211_bss *pub),
2286 MAC_ASSIGN(bssid, pub->bssid);
2287 CHAN_ASSIGN(pub->channel);
2289 TP_printk(MAC_PR_FMT CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG)
2292 DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss,
2293 TP_PROTO(struct cfg80211_bss *pub),
2297 TRACE_EVENT(cfg80211_return_uint,
2298 TP_PROTO(unsigned int ret),
2301 __field(unsigned int, ret)
2306 TP_printk("ret: %d", __entry->ret)
2309 TRACE_EVENT(cfg80211_return_u32,
2318 TP_printk("ret: %u", __entry->ret)
2321 #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
2323 #undef TRACE_INCLUDE_PATH
2324 #define TRACE_INCLUDE_PATH .
2325 #undef TRACE_INCLUDE_FILE
2326 #define TRACE_INCLUDE_FILE trace
2327 #include <trace/define_trace.h>