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 SINFO_ENTRY __field(int, generation) \
130 __field(u32, connected_time) \
131 __field(u32, inactive_time) \
132 __field(u32, rx_bytes) \
133 __field(u32, tx_bytes) \
134 __field(u32, rx_packets) \
135 __field(u32, tx_packets) \
136 __field(u32, tx_retries) \
137 __field(u32, tx_failed) \
138 __field(u32, rx_dropped_misc) \
139 __field(u32, beacon_loss_count) \
142 __field(u8, plink_state)
143 #define SINFO_ASSIGN \
145 __entry->generation = sinfo->generation; \
146 __entry->connected_time = sinfo->connected_time; \
147 __entry->inactive_time = sinfo->inactive_time; \
148 __entry->rx_bytes = sinfo->rx_bytes; \
149 __entry->tx_bytes = sinfo->tx_bytes; \
150 __entry->rx_packets = sinfo->rx_packets; \
151 __entry->tx_packets = sinfo->tx_packets; \
152 __entry->tx_retries = sinfo->tx_retries; \
153 __entry->tx_failed = sinfo->tx_failed; \
154 __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \
155 __entry->beacon_loss_count = sinfo->beacon_loss_count; \
156 __entry->llid = sinfo->llid; \
157 __entry->plid = sinfo->plid; \
158 __entry->plink_state = sinfo->plink_state; \
161 #define BOOL_TO_STR(bo) (bo) ? "true" : "false"
163 /*************************************************************
165 *************************************************************/
167 TRACE_EVENT(rdev_suspend,
168 TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow),
173 __field(bool, disconnect)
174 __field(bool, magic_pkt)
175 __field(bool, gtk_rekey_failure)
176 __field(bool, eap_identity_req)
177 __field(bool, four_way_handshake)
178 __field(bool, rfkill_release)
179 __field(bool, valid_wow)
184 __entry->any = wow->any;
185 __entry->disconnect = wow->disconnect;
186 __entry->magic_pkt = wow->magic_pkt;
187 __entry->gtk_rekey_failure = wow->gtk_rekey_failure;
188 __entry->eap_identity_req = wow->eap_identity_req;
189 __entry->four_way_handshake = wow->four_way_handshake;
190 __entry->rfkill_release = wow->rfkill_release;
191 __entry->valid_wow = true;
193 __entry->valid_wow = false;
196 TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, "
197 "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, "
198 "four way handshake: %d, rfkill release: %d.",
199 WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)",
200 __entry->any, __entry->disconnect, __entry->magic_pkt,
201 __entry->gtk_rekey_failure, __entry->eap_identity_req,
202 __entry->four_way_handshake, __entry->rfkill_release)
205 TRACE_EVENT(rdev_return_int,
206 TP_PROTO(struct wiphy *wiphy, int ret),
216 TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret)
219 TRACE_EVENT(rdev_scan,
220 TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request),
221 TP_ARGS(wiphy, request),
228 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
231 DECLARE_EVENT_CLASS(wiphy_only_evt,
232 TP_PROTO(struct wiphy *wiphy),
240 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
243 DEFINE_EVENT(wiphy_only_evt, rdev_resume,
244 TP_PROTO(struct wiphy *wiphy),
248 DEFINE_EVENT(wiphy_only_evt, rdev_return_void,
249 TP_PROTO(struct wiphy *wiphy),
253 DEFINE_EVENT(wiphy_only_evt, rdev_get_ringparam,
254 TP_PROTO(struct wiphy *wiphy),
258 DEFINE_EVENT(wiphy_only_evt, rdev_get_antenna,
259 TP_PROTO(struct wiphy *wiphy),
263 DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll,
264 TP_PROTO(struct wiphy *wiphy),
268 DECLARE_EVENT_CLASS(wiphy_enabled_evt,
269 TP_PROTO(struct wiphy *wiphy, bool enabled),
270 TP_ARGS(wiphy, enabled),
273 __field(bool, enabled)
277 __entry->enabled = enabled;
279 TP_printk(WIPHY_PR_FMT ", %senabled ",
280 WIPHY_PR_ARG, __entry->enabled ? "" : "not ")
283 DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup,
284 TP_PROTO(struct wiphy *wiphy, bool enabled),
285 TP_ARGS(wiphy, enabled)
288 TRACE_EVENT(rdev_add_virtual_intf,
289 TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type),
290 TP_ARGS(wiphy, name, type),
293 __string(vir_intf_name, name ? name : "<noname>")
294 __field(enum nl80211_iftype, type)
298 __assign_str(vir_intf_name, name ? name : "<noname>");
299 __entry->type = type;
301 TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d",
302 WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type)
305 DECLARE_EVENT_CLASS(wiphy_wdev_evt,
306 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
307 TP_ARGS(wiphy, wdev),
316 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
319 DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev,
320 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
324 DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf,
325 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
329 TRACE_EVENT(rdev_change_virtual_intf,
330 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
331 enum nl80211_iftype type),
332 TP_ARGS(wiphy, netdev, type),
336 __field(enum nl80211_iftype, type)
341 __entry->type = type;
343 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", type: %d",
344 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type)
347 DECLARE_EVENT_CLASS(key_handle,
348 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
349 bool pairwise, const u8 *mac_addr),
350 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr),
355 __field(u8, key_index)
356 __field(bool, pairwise)
361 MAC_ASSIGN(mac_addr, mac_addr);
362 __entry->key_index = key_index;
363 __entry->pairwise = pairwise;
365 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT,
366 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
367 BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr))
370 DEFINE_EVENT(key_handle, rdev_add_key,
371 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
372 bool pairwise, const u8 *mac_addr),
373 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
376 DEFINE_EVENT(key_handle, rdev_get_key,
377 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
378 bool pairwise, const u8 *mac_addr),
379 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
382 DEFINE_EVENT(key_handle, rdev_del_key,
383 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
384 bool pairwise, const u8 *mac_addr),
385 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
388 TRACE_EVENT(rdev_set_default_key,
389 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
390 bool unicast, bool multicast),
391 TP_ARGS(wiphy, netdev, key_index, unicast, multicast),
395 __field(u8, key_index)
396 __field(bool, unicast)
397 __field(bool, multicast)
402 __entry->key_index = key_index;
403 __entry->unicast = unicast;
404 __entry->multicast = multicast;
406 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s",
407 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
408 BOOL_TO_STR(__entry->unicast),
409 BOOL_TO_STR(__entry->multicast))
412 TRACE_EVENT(rdev_set_default_mgmt_key,
413 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index),
414 TP_ARGS(wiphy, netdev, key_index),
418 __field(u8, key_index)
423 __entry->key_index = key_index;
425 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u",
426 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index)
429 TRACE_EVENT(rdev_start_ap,
430 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
431 struct cfg80211_ap_settings *settings),
432 TP_ARGS(wiphy, netdev, settings),
437 __field(int, beacon_interval)
438 __field(int, dtim_period)
439 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
440 __field(enum nl80211_hidden_ssid, hidden_ssid)
441 __field(u32, wpa_ver)
442 __field(bool, privacy)
443 __field(enum nl80211_auth_type, auth_type)
444 __field(int, inactivity_timeout)
449 CHAN_ASSIGN(settings->channel);
450 __entry->beacon_interval = settings->beacon_interval;
451 __entry->dtim_period = settings->dtim_period;
452 __entry->hidden_ssid = settings->hidden_ssid;
453 __entry->wpa_ver = settings->crypto.wpa_versions;
454 __entry->privacy = settings->privacy;
455 __entry->auth_type = settings->auth_type;
456 __entry->inactivity_timeout = settings->inactivity_timeout;
457 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
458 memcpy(__entry->ssid, settings->ssid, settings->ssid_len);
460 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", AP settings - ssid: %s, "
461 CHAN_PR_FMT ", beacon interval: %d, dtim period: %d, "
462 "hidden ssid: %d, wpa versions: %u, privacy: %s, "
463 "auth type: %d, inactivity timeout: %d",
464 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_PR_ARG,
465 __entry->beacon_interval, __entry->dtim_period,
466 __entry->hidden_ssid, __entry->wpa_ver,
467 BOOL_TO_STR(__entry->privacy), __entry->auth_type,
468 __entry->inactivity_timeout)
471 TRACE_EVENT(rdev_change_beacon,
472 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
473 struct cfg80211_beacon_data *info),
474 TP_ARGS(wiphy, netdev, info),
478 __dynamic_array(u8, head, info ? info->head_len : 0)
479 __dynamic_array(u8, tail, info ? info->tail_len : 0)
480 __dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0)
481 __dynamic_array(u8, proberesp_ies,
482 info ? info->proberesp_ies_len : 0)
483 __dynamic_array(u8, assocresp_ies,
484 info ? info->assocresp_ies_len : 0)
485 __dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0)
492 memcpy(__get_dynamic_array(head), info->head,
495 memcpy(__get_dynamic_array(tail), info->tail,
497 if (info->beacon_ies)
498 memcpy(__get_dynamic_array(beacon_ies),
499 info->beacon_ies, info->beacon_ies_len);
500 if (info->proberesp_ies)
501 memcpy(__get_dynamic_array(proberesp_ies),
503 info->proberesp_ies_len);
504 if (info->assocresp_ies)
505 memcpy(__get_dynamic_array(assocresp_ies),
507 info->assocresp_ies_len);
508 if (info->probe_resp)
509 memcpy(__get_dynamic_array(probe_resp),
510 info->probe_resp, info->probe_resp_len);
513 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
516 DECLARE_EVENT_CLASS(wiphy_netdev_evt,
517 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
518 TP_ARGS(wiphy, netdev),
527 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
530 DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap,
531 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
532 TP_ARGS(wiphy, netdev)
535 DEFINE_EVENT(wiphy_netdev_evt, rdev_get_et_stats,
536 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
537 TP_ARGS(wiphy, netdev)
540 DEFINE_EVENT(wiphy_netdev_evt, rdev_sched_scan_stop,
541 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
542 TP_ARGS(wiphy, netdev)
545 DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data,
546 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
547 TP_ARGS(wiphy, netdev)
550 DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config,
551 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
552 TP_ARGS(wiphy, netdev)
555 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh,
556 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
557 TP_ARGS(wiphy, netdev)
560 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss,
561 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
562 TP_ARGS(wiphy, netdev)
565 DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa,
566 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
567 TP_ARGS(wiphy, netdev)
570 DECLARE_EVENT_CLASS(station_add_change,
571 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
572 struct station_parameters *params),
573 TP_ARGS(wiphy, netdev, mac, params),
578 __field(u32, sta_flags_mask)
579 __field(u32, sta_flags_set)
580 __field(u32, sta_modify_mask)
581 __field(int, listen_interval)
583 __field(u8, plink_action)
584 __field(u8, plink_state)
585 __field(u8, uapsd_queues)
586 __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap))
591 MAC_ASSIGN(sta_mac, mac);
592 __entry->sta_flags_mask = params->sta_flags_mask;
593 __entry->sta_flags_set = params->sta_flags_set;
594 __entry->sta_modify_mask = params->sta_modify_mask;
595 __entry->listen_interval = params->listen_interval;
596 __entry->aid = params->aid;
597 __entry->plink_action = params->plink_action;
598 __entry->plink_state = params->plink_state;
599 __entry->uapsd_queues = params->uapsd_queues;
600 memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap));
602 memcpy(__entry->ht_capa, params->ht_capa,
603 sizeof(struct ieee80211_ht_cap));
605 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT
606 ", station flags mask: %u, station flags set: %u, "
607 "station modify mask: %u, listen interval: %d, aid: %u, "
608 "plink action: %u, plink state: %u, uapsd queues: %u",
609 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
610 __entry->sta_flags_mask, __entry->sta_flags_set,
611 __entry->sta_modify_mask, __entry->listen_interval,
612 __entry->aid, __entry->plink_action, __entry->plink_state,
613 __entry->uapsd_queues)
616 DEFINE_EVENT(station_add_change, rdev_add_station,
617 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
618 struct station_parameters *params),
619 TP_ARGS(wiphy, netdev, mac, params)
622 DEFINE_EVENT(station_add_change, rdev_change_station,
623 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
624 struct station_parameters *params),
625 TP_ARGS(wiphy, netdev, mac, params)
628 DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt,
629 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
630 TP_ARGS(wiphy, netdev, mac),
639 MAC_ASSIGN(sta_mac, mac);
641 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
642 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac))
645 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_station,
646 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
647 TP_ARGS(wiphy, netdev, mac)
650 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station,
651 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
652 TP_ARGS(wiphy, netdev, mac)
655 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath,
656 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
657 TP_ARGS(wiphy, netdev, mac)
660 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer,
661 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
662 TP_ARGS(wiphy, netdev, mac)
665 TRACE_EVENT(rdev_dump_station,
666 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx,
668 TP_ARGS(wiphy, netdev, idx, mac),
678 MAC_ASSIGN(sta_mac, mac);
681 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d",
682 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
686 TRACE_EVENT(rdev_return_int_station_info,
687 TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo),
688 TP_ARGS(wiphy, ret, sinfo),
699 TP_printk(WIPHY_PR_FMT ", returned %d" ,
700 WIPHY_PR_ARG, __entry->ret)
703 DECLARE_EVENT_CLASS(mpath_evt,
704 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
706 TP_ARGS(wiphy, netdev, dst, next_hop),
716 MAC_ASSIGN(dst, dst);
717 MAC_ASSIGN(next_hop, next_hop);
719 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT,
720 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst),
721 MAC_PR_ARG(next_hop))
724 DEFINE_EVENT(mpath_evt, rdev_add_mpath,
725 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
727 TP_ARGS(wiphy, netdev, dst, next_hop)
730 DEFINE_EVENT(mpath_evt, rdev_change_mpath,
731 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
733 TP_ARGS(wiphy, netdev, dst, next_hop)
736 DEFINE_EVENT(mpath_evt, rdev_get_mpath,
737 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
739 TP_ARGS(wiphy, netdev, dst, next_hop)
742 TRACE_EVENT(rdev_dump_mpath,
743 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx,
744 u8 *dst, u8 *next_hop),
745 TP_ARGS(wiphy, netdev, idx, dst, next_hop),
756 MAC_ASSIGN(dst, dst);
757 MAC_ASSIGN(next_hop, next_hop);
760 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d, destination: "
761 MAC_PR_FMT ", next hop: " MAC_PR_FMT,
762 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst),
763 MAC_PR_ARG(next_hop))
766 TRACE_EVENT(rdev_return_int_mpath_info,
767 TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo),
768 TP_ARGS(wiphy, ret, pinfo),
772 __field(int, generation)
774 __field(u32, frame_qlen)
777 __field(u32, exptime)
778 __field(u32, discovery_timeout)
779 __field(u8, discovery_retries)
785 __entry->generation = pinfo->generation;
786 __entry->filled = pinfo->filled;
787 __entry->frame_qlen = pinfo->frame_qlen;
788 __entry->sn = pinfo->sn;
789 __entry->metric = pinfo->metric;
790 __entry->exptime = pinfo->exptime;
791 __entry->discovery_timeout = pinfo->discovery_timeout;
792 __entry->discovery_retries = pinfo->discovery_retries;
793 __entry->flags = pinfo->flags;
795 TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, "
796 "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u,"
797 " discovery timeout: %u, discovery retries: %u, flags: %u",
798 WIPHY_PR_ARG, __entry->ret, __entry->generation,
799 __entry->filled, __entry->frame_qlen, __entry->sn,
800 __entry->metric, __entry->exptime, __entry->discovery_timeout,
801 __entry->discovery_retries, __entry->flags)
804 TRACE_EVENT(rdev_return_int_mesh_config,
805 TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf),
806 TP_ARGS(wiphy, ret, conf),
817 TP_printk(WIPHY_PR_FMT ", returned: %d",
818 WIPHY_PR_ARG, __entry->ret)
821 TRACE_EVENT(rdev_update_mesh_config,
822 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask,
823 const struct mesh_config *conf),
824 TP_ARGS(wiphy, netdev, mask, conf),
835 __entry->mask = mask;
837 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mask: %u",
838 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask)
841 TRACE_EVENT(rdev_join_mesh,
842 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
843 const struct mesh_config *conf,
844 const struct mesh_setup *setup),
845 TP_ARGS(wiphy, netdev, conf, setup),
856 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT,
857 WIPHY_PR_ARG, NETDEV_PR_ARG)
860 TRACE_EVENT(rdev_change_bss,
861 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
862 struct bss_parameters *params),
863 TP_ARGS(wiphy, netdev, params),
867 __field(int, use_cts_prot)
868 __field(int, use_short_preamble)
869 __field(int, use_short_slot_time)
870 __field(int, ap_isolate)
871 __field(int, ht_opmode)
876 __entry->use_cts_prot = params->use_cts_prot;
877 __entry->use_short_preamble = params->use_short_preamble;
878 __entry->use_short_slot_time = params->use_short_slot_time;
879 __entry->ap_isolate = params->ap_isolate;
880 __entry->ht_opmode = params->ht_opmode;
882 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", use cts prot: %d, "
883 "use short preamble: %d, use short slot time: %d, "
884 "ap isolate: %d, ht opmode: %d",
885 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot,
886 __entry->use_short_preamble, __entry->use_short_slot_time,
887 __entry->ap_isolate, __entry->ht_opmode)
890 TRACE_EVENT(rdev_set_txq_params,
891 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
892 struct ieee80211_txq_params *params),
893 TP_ARGS(wiphy, netdev, params),
897 __field(enum nl80211_ac, ac)
906 __entry->ac = params->ac;
907 __entry->txop = params->txop;
908 __entry->cwmin = params->cwmin;
909 __entry->cwmax = params->cwmax;
910 __entry->aifs = params->aifs;
912 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u",
913 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop,
914 __entry->cwmin, __entry->cwmax, __entry->aifs)
917 TRACE_EVENT(rdev_libertas_set_mesh_channel,
918 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
919 struct ieee80211_channel *chan),
920 TP_ARGS(wiphy, netdev, chan),
931 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT CHAN_PR_FMT, WIPHY_PR_ARG,
932 NETDEV_PR_ARG, CHAN_PR_ARG)
935 TRACE_EVENT(rdev_set_monitor_channel,
936 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *chan,
937 enum nl80211_channel_type chan_type),
938 TP_ARGS(wiphy, chan, chan_type),
942 __field(enum nl80211_channel_type, chan_type)
947 __entry->chan_type = chan_type;
949 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT ", channel type : %d",
950 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->chan_type)
953 TRACE_EVENT(rdev_auth,
954 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
955 struct cfg80211_auth_request *req),
956 TP_ARGS(wiphy, netdev, req),
961 __field(enum nl80211_auth_type, auth_type)
967 MAC_ASSIGN(bssid, req->bss->bssid);
969 memset(__entry->bssid, 0, ETH_ALEN);
970 __entry->auth_type = req->auth_type;
972 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT,
973 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type,
977 TRACE_EVENT(rdev_assoc,
978 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
979 struct cfg80211_assoc_request *req),
980 TP_ARGS(wiphy, netdev, req),
985 MAC_ENTRY(prev_bssid)
986 __field(bool, use_mfp)
993 MAC_ASSIGN(bssid, req->bss->bssid);
995 memset(__entry->bssid, 0, ETH_ALEN);
996 MAC_ASSIGN(prev_bssid, req->prev_bssid);
997 __entry->use_mfp = req->use_mfp;
998 __entry->flags = req->flags;
1000 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1001 ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u",
1002 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1003 MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp),
1007 TRACE_EVENT(rdev_deauth,
1008 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1009 struct cfg80211_deauth_request *req),
1010 TP_ARGS(wiphy, netdev, req),
1015 __field(u16, reason_code)
1020 MAC_ASSIGN(bssid, req->bssid);
1021 __entry->reason_code = req->reason_code;
1023 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u",
1024 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1025 __entry->reason_code)
1028 TRACE_EVENT(rdev_disassoc,
1029 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1030 struct cfg80211_disassoc_request *req),
1031 TP_ARGS(wiphy, netdev, req),
1036 __field(u16, reason_code)
1037 __field(bool, local_state_change)
1043 MAC_ASSIGN(bssid, req->bss->bssid);
1045 memset(__entry->bssid, 0, ETH_ALEN);
1046 __entry->reason_code = req->reason_code;
1047 __entry->local_state_change = req->local_state_change;
1049 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1050 ", reason: %u, local state change: %s",
1051 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
1052 __entry->reason_code,
1053 BOOL_TO_STR(__entry->local_state_change))
1056 TRACE_EVENT(rdev_mgmt_tx_cancel_wait,
1057 TP_PROTO(struct wiphy *wiphy,
1058 struct wireless_dev *wdev, u64 cookie),
1059 TP_ARGS(wiphy, wdev, cookie),
1063 __field(u64, cookie)
1068 __entry->cookie = cookie;
1070 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu ",
1071 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1074 TRACE_EVENT(rdev_set_power_mgmt,
1075 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1076 bool enabled, int timeout),
1077 TP_ARGS(wiphy, netdev, enabled, timeout),
1081 __field(bool, enabled)
1082 __field(int, timeout)
1087 __entry->enabled = enabled;
1088 __entry->timeout = timeout;
1090 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", %senabled, timeout: %d ",
1091 WIPHY_PR_ARG, NETDEV_PR_ARG,
1092 __entry->enabled ? "" : "not ", __entry->timeout)
1095 TRACE_EVENT(rdev_connect,
1096 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1097 struct cfg80211_connect_params *sme),
1098 TP_ARGS(wiphy, netdev, sme),
1103 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
1104 __field(enum nl80211_auth_type, auth_type)
1105 __field(bool, privacy)
1106 __field(u32, wpa_versions)
1112 MAC_ASSIGN(bssid, sme->bssid);
1113 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
1114 memcpy(__entry->ssid, sme->ssid, sme->ssid_len);
1115 __entry->auth_type = sme->auth_type;
1116 __entry->privacy = sme->privacy;
1117 __entry->wpa_versions = sme->crypto.wpa_versions;
1118 __entry->flags = sme->flags;
1120 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
1121 ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, "
1123 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid,
1124 __entry->auth_type, BOOL_TO_STR(__entry->privacy),
1125 __entry->wpa_versions, __entry->flags)
1128 TRACE_EVENT(rdev_set_cqm_rssi_config,
1129 TP_PROTO(struct wiphy *wiphy,
1130 struct net_device *netdev, s32 rssi_thold,
1132 TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst),
1136 __field(s32, rssi_thold)
1137 __field(u32, rssi_hyst)
1142 __entry->rssi_thold = rssi_thold;
1143 __entry->rssi_hyst = rssi_hyst;
1145 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT
1146 ", rssi_thold: %d, rssi_hyst: %u ",
1147 WIPHY_PR_ARG, NETDEV_PR_ARG,
1148 __entry->rssi_thold, __entry->rssi_hyst)
1151 TRACE_EVENT(rdev_set_cqm_txe_config,
1152 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate,
1153 u32 pkts, u32 intvl),
1154 TP_ARGS(wiphy, netdev, rate, pkts, intvl),
1165 __entry->rate = rate;
1166 __entry->pkts = pkts;
1167 __entry->intvl = intvl;
1169 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u",
1170 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts,
1174 TRACE_EVENT(rdev_disconnect,
1175 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1177 TP_ARGS(wiphy, netdev, reason_code),
1181 __field(u16, reason_code)
1186 __entry->reason_code = reason_code;
1188 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG,
1189 NETDEV_PR_ARG, __entry->reason_code)
1192 TRACE_EVENT(rdev_join_ibss,
1193 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1194 struct cfg80211_ibss_params *params),
1195 TP_ARGS(wiphy, netdev, params),
1200 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
1205 MAC_ASSIGN(bssid, params->bssid);
1206 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
1207 memcpy(__entry->ssid, params->ssid, params->ssid_len);
1209 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s",
1210 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid)
1213 TRACE_EVENT(rdev_set_wiphy_params,
1214 TP_PROTO(struct wiphy *wiphy, u32 changed),
1215 TP_ARGS(wiphy, changed),
1218 __field(u32, changed)
1222 __entry->changed = changed;
1224 TP_printk(WIPHY_PR_FMT ", changed: %u",
1225 WIPHY_PR_ARG, __entry->changed)
1228 DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power,
1229 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1230 TP_ARGS(wiphy, wdev)
1233 TRACE_EVENT(rdev_set_tx_power,
1234 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1235 enum nl80211_tx_power_setting type, int mbm),
1236 TP_ARGS(wiphy, wdev, type, mbm),
1240 __field(enum nl80211_tx_power_setting, type)
1246 __entry->type = type;
1249 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", type: %d, mbm: %d",
1250 WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm)
1253 TRACE_EVENT(rdev_return_int_int,
1254 TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill),
1255 TP_ARGS(wiphy, func_ret, func_fill),
1258 __field(int, func_ret)
1259 __field(int, func_fill)
1263 __entry->func_ret = func_ret;
1264 __entry->func_fill = func_fill;
1266 TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d",
1267 WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill)
1270 #ifdef CONFIG_NL80211_TESTMODE
1271 TRACE_EVENT(rdev_testmode_cmd,
1272 TP_PROTO(struct wiphy *wiphy),
1280 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
1283 TRACE_EVENT(rdev_testmode_dump,
1284 TP_PROTO(struct wiphy *wiphy),
1292 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
1294 #endif /* CONFIG_NL80211_TESTMODE */
1296 TRACE_EVENT(rdev_set_bitrate_mask,
1297 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1298 const u8 *peer, const struct cfg80211_bitrate_mask *mask),
1299 TP_ARGS(wiphy, netdev, peer, mask),
1308 MAC_ASSIGN(peer, peer);
1310 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
1311 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
1314 TRACE_EVENT(rdev_mgmt_frame_register,
1315 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1316 u16 frame_type, bool reg),
1317 TP_ARGS(wiphy, wdev, frame_type, reg),
1321 __field(u16, frame_type)
1327 __entry->frame_type = frame_type;
1330 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", frame_type: %u, reg: %s ",
1331 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type,
1332 __entry->reg ? "true" : "false")
1335 TRACE_EVENT(rdev_return_int_tx_rx,
1336 TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx),
1337 TP_ARGS(wiphy, ret, tx, rx),
1350 TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u",
1351 WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx)
1354 TRACE_EVENT(rdev_return_void_tx_rx,
1355 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max,
1356 u32 rx, u32 rx_max),
1357 TP_ARGS(wiphy, tx, tx_max, rx, rx_max),
1361 __field(u32, tx_max)
1363 __field(u32, rx_max)
1368 __entry->tx_max = tx_max;
1370 __entry->rx_max = rx_max;
1372 TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
1373 WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx,
1377 DECLARE_EVENT_CLASS(tx_rx_evt,
1378 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1379 TP_ARGS(wiphy, rx, tx),
1390 TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ",
1391 WIPHY_PR_ARG, __entry->tx, __entry->rx)
1394 DEFINE_EVENT(tx_rx_evt, rdev_set_ringparam,
1395 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1396 TP_ARGS(wiphy, rx, tx)
1399 DEFINE_EVENT(tx_rx_evt, rdev_set_antenna,
1400 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1401 TP_ARGS(wiphy, rx, tx)
1404 TRACE_EVENT(rdev_sched_scan_start,
1405 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1406 struct cfg80211_sched_scan_request *request),
1407 TP_ARGS(wiphy, netdev, request),
1416 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT,
1417 WIPHY_PR_ARG, NETDEV_PR_ARG)
1420 TRACE_EVENT(rdev_tdls_mgmt,
1421 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1422 u8 *peer, u8 action_code, u8 dialog_token,
1423 u16 status_code, const u8 *buf, size_t len),
1424 TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code,
1430 __field(u8, action_code)
1431 __field(u8, dialog_token)
1432 __field(u16, status_code)
1433 __dynamic_array(u8, buf, len)
1438 MAC_ASSIGN(peer, peer);
1439 __entry->action_code = action_code;
1440 __entry->dialog_token = dialog_token;
1441 __entry->status_code = status_code;
1442 memcpy(__get_dynamic_array(buf), buf, len);
1444 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", action_code: %u, "
1445 "dialog_token: %u, status_code: %u, buf: %#.2x ",
1446 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer),
1447 __entry->action_code, __entry->dialog_token,
1448 __entry->status_code, ((u8 *)__get_dynamic_array(buf))[0])
1451 TRACE_EVENT(rdev_dump_survey,
1452 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx),
1453 TP_ARGS(wiphy, netdev, idx),
1464 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d",
1465 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx)
1468 TRACE_EVENT(rdev_return_int_survey_info,
1469 TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info),
1470 TP_ARGS(wiphy, ret, info),
1475 __field(u64, channel_time)
1476 __field(u64, channel_time_busy)
1477 __field(u64, channel_time_ext_busy)
1478 __field(u64, channel_time_rx)
1479 __field(u64, channel_time_tx)
1480 __field(u32, filled)
1485 CHAN_ASSIGN(info->channel);
1487 __entry->channel_time = info->channel_time;
1488 __entry->channel_time_busy = info->channel_time_busy;
1489 __entry->channel_time_ext_busy = info->channel_time_ext_busy;
1490 __entry->channel_time_rx = info->channel_time_rx;
1491 __entry->channel_time_tx = info->channel_time_tx;
1492 __entry->filled = info->filled;
1493 __entry->noise = info->noise;
1495 TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT
1496 ", channel time: %llu, channel time busy: %llu, "
1497 "channel time extension busy: %llu, channel time rx: %llu, "
1498 "channel time tx: %llu, filled: %u, noise: %d",
1499 WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG,
1500 __entry->channel_time, __entry->channel_time_busy,
1501 __entry->channel_time_ext_busy, __entry->channel_time_rx,
1502 __entry->channel_time_tx, __entry->filled, __entry->noise)
1505 TRACE_EVENT(rdev_tdls_oper,
1506 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1507 u8 *peer, enum nl80211_tdls_operation oper),
1508 TP_ARGS(wiphy, netdev, peer, oper),
1513 __field(enum nl80211_tdls_operation, oper)
1518 MAC_ASSIGN(peer, peer);
1519 __entry->oper = oper;
1521 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", oper: %d",
1522 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper)
1525 DECLARE_EVENT_CLASS(rdev_pmksa,
1526 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1527 struct cfg80211_pmksa *pmksa),
1528 TP_ARGS(wiphy, netdev, pmksa),
1537 MAC_ASSIGN(bssid, pmksa->bssid);
1539 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT,
1540 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid))
1543 TRACE_EVENT(rdev_probe_client,
1544 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1546 TP_ARGS(wiphy, netdev, peer),
1555 MAC_ASSIGN(peer, peer);
1557 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT,
1558 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
1561 DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa,
1562 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1563 struct cfg80211_pmksa *pmksa),
1564 TP_ARGS(wiphy, netdev, pmksa)
1567 DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa,
1568 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1569 struct cfg80211_pmksa *pmksa),
1570 TP_ARGS(wiphy, netdev, pmksa)
1573 TRACE_EVENT(rdev_remain_on_channel,
1574 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1575 struct ieee80211_channel *chan,
1576 enum nl80211_channel_type channel_type, unsigned int duration),
1577 TP_ARGS(wiphy, wdev, chan, channel_type, duration),
1582 __field(enum nl80211_channel_type, channel_type)
1583 __field(unsigned int, duration)
1589 __entry->channel_type = channel_type;
1590 __entry->duration = duration;
1592 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", channel type: %d, duration: %u",
1593 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->channel_type,
1597 TRACE_EVENT(rdev_return_int_cookie,
1598 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
1599 TP_ARGS(wiphy, ret, cookie),
1603 __field(u64, cookie)
1608 __entry->cookie = cookie;
1610 TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu",
1611 WIPHY_PR_ARG, __entry->ret, __entry->cookie)
1614 TRACE_EVENT(rdev_cancel_remain_on_channel,
1615 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
1616 TP_ARGS(wiphy, wdev, cookie),
1620 __field(u64, cookie)
1625 __entry->cookie = cookie;
1627 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu",
1628 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1631 TRACE_EVENT(rdev_mgmt_tx,
1632 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
1633 struct ieee80211_channel *chan, bool offchan,
1634 enum nl80211_channel_type channel_type,
1635 bool channel_type_valid, unsigned int wait, bool no_cck,
1636 bool dont_wait_for_ack),
1637 TP_ARGS(wiphy, wdev, chan, offchan, channel_type, channel_type_valid,
1638 wait, no_cck, dont_wait_for_ack),
1643 __field(bool, offchan)
1644 __field(enum nl80211_channel_type, channel_type)
1645 __field(bool, channel_type_valid)
1646 __field(unsigned int, wait)
1647 __field(bool, no_cck)
1648 __field(bool, dont_wait_for_ack)
1654 __entry->offchan = offchan;
1655 __entry->channel_type = channel_type;
1656 __entry->channel_type_valid = channel_type_valid;
1657 __entry->wait = wait;
1658 __entry->no_cck = no_cck;
1659 __entry->dont_wait_for_ack = dont_wait_for_ack;
1661 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", offchan: %s, "
1662 "channel type: %d, channel type valid: %s, wait: %u, "
1663 "no cck: %s, dont wait for ack: %s",
1664 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG,
1665 BOOL_TO_STR(__entry->offchan), __entry->channel_type,
1666 BOOL_TO_STR(__entry->channel_type_valid), __entry->wait,
1667 BOOL_TO_STR(__entry->no_cck),
1668 BOOL_TO_STR(__entry->dont_wait_for_ack))
1671 TRACE_EVENT(rdev_set_noack_map,
1672 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
1674 TP_ARGS(wiphy, netdev, noack_map),
1678 __field(u16, noack_map)
1683 __entry->noack_map = noack_map;
1685 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", noack_map: %u",
1686 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map)
1689 TRACE_EVENT(rdev_get_et_sset_count,
1690 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int sset),
1691 TP_ARGS(wiphy, netdev, sset),
1700 __entry->sset = sset;
1702 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %d",
1703 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset)
1706 TRACE_EVENT(rdev_get_et_strings,
1707 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 sset),
1708 TP_ARGS(wiphy, netdev, sset),
1717 __entry->sset = sset;
1719 TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %u",
1720 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset)
1723 DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel,
1724 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1725 TP_ARGS(wiphy, wdev)
1728 TRACE_EVENT(rdev_return_channel,
1729 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *chan,
1730 enum nl80211_channel_type type),
1731 TP_ARGS(wiphy, chan, type),
1735 __field(enum nl80211_channel_type, type)
1740 __entry->type = type;
1742 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT ", channel type: %d",
1743 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->type)
1746 DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device,
1747 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1748 TP_ARGS(wiphy, wdev)
1751 DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device,
1752 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
1753 TP_ARGS(wiphy, wdev)
1756 /*************************************************************
1757 * cfg80211 exported functions traces *
1758 *************************************************************/
1760 TRACE_EVENT(cfg80211_return_bool,
1769 TP_printk("returned %s", BOOL_TO_STR(__entry->ret))
1772 DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt,
1773 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1774 TP_ARGS(netdev, macaddr),
1781 MAC_ASSIGN(macaddr, macaddr);
1783 TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
1784 NETDEV_PR_ARG, MAC_PR_ARG(macaddr))
1787 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate,
1788 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1789 TP_ARGS(netdev, macaddr)
1792 DECLARE_EVENT_CLASS(netdev_evt_only,
1793 TP_PROTO(struct net_device *netdev),
1801 TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG)
1804 DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth,
1805 TP_PROTO(struct net_device *netdev),
1809 TRACE_EVENT(cfg80211_send_rx_assoc,
1810 TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss),
1811 TP_ARGS(netdev, bss),
1819 MAC_ASSIGN(bssid, bss->bssid);
1820 CHAN_ASSIGN(bss->channel);
1822 TP_printk(NETDEV_PR_FMT MAC_PR_FMT CHAN_PR_FMT,
1823 NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG)
1826 DEFINE_EVENT(netdev_evt_only, __cfg80211_send_deauth,
1827 TP_PROTO(struct net_device *netdev),
1831 DEFINE_EVENT(netdev_evt_only, __cfg80211_send_disassoc,
1832 TP_PROTO(struct net_device *netdev),
1836 DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_deauth,
1837 TP_PROTO(struct net_device *netdev),
1841 DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_disassoc,
1842 TP_PROTO(struct net_device *netdev),
1846 DECLARE_EVENT_CLASS(netdev_mac_evt,
1847 TP_PROTO(struct net_device *netdev, const u8 *mac),
1848 TP_ARGS(netdev, mac),
1855 MAC_ASSIGN(mac, mac)
1857 TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
1858 NETDEV_PR_ARG, MAC_PR_ARG(mac))
1861 DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout,
1862 TP_PROTO(struct net_device *netdev, const u8 *mac),
1863 TP_ARGS(netdev, mac)
1866 DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout,
1867 TP_PROTO(struct net_device *netdev, const u8 *mac),
1868 TP_ARGS(netdev, mac)
1871 TRACE_EVENT(cfg80211_michael_mic_failure,
1872 TP_PROTO(struct net_device *netdev, const u8 *addr,
1873 enum nl80211_key_type key_type, int key_id, const u8 *tsc),
1874 TP_ARGS(netdev, addr, key_type, key_id, tsc),
1878 __field(enum nl80211_key_type, key_type)
1879 __field(int, key_id)
1884 MAC_ASSIGN(addr, addr);
1885 __entry->key_type = key_type;
1886 __entry->key_id = key_id;
1887 memcpy(__entry->tsc, tsc, 6);
1889 TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm",
1890 NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type,
1891 __entry->key_id, __entry->tsc)
1894 TRACE_EVENT(cfg80211_ready_on_channel,
1895 TP_PROTO(struct wireless_dev *wdev, u64 cookie,
1896 struct ieee80211_channel *chan,
1897 enum nl80211_channel_type channel_type, unsigned int duration),
1898 TP_ARGS(wdev, cookie, chan, channel_type, duration),
1901 __field(u64, cookie)
1903 __field(enum nl80211_channel_type, channel_type)
1904 __field(unsigned int, duration)
1908 __entry->cookie = cookie;
1910 __entry->channel_type = channel_type;
1911 __entry->duration = duration;
1913 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", channel type: %d, duration: %u",
1914 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG,
1915 __entry->channel_type, __entry->duration)
1918 TRACE_EVENT(cfg80211_ready_on_channel_expired,
1919 TP_PROTO(struct wireless_dev *wdev, u64 cookie,
1920 struct ieee80211_channel *chan,
1921 enum nl80211_channel_type channel_type),
1922 TP_ARGS(wdev, cookie, chan, channel_type),
1925 __field(u64, cookie)
1927 __field(enum nl80211_channel_type, channel_type)
1931 __entry->cookie = cookie;
1933 __entry->channel_type = channel_type;
1935 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", channel type: %d",
1936 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG,
1937 __entry->channel_type)
1940 TRACE_EVENT(cfg80211_new_sta,
1941 TP_PROTO(struct net_device *netdev, const u8 *mac_addr,
1942 struct station_info *sinfo),
1943 TP_ARGS(netdev, mac_addr, sinfo),
1951 MAC_ASSIGN(mac_addr, mac_addr);
1954 TP_printk(NETDEV_PR_FMT MAC_PR_FMT,
1955 NETDEV_PR_ARG, MAC_PR_ARG(mac_addr))
1958 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta,
1959 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
1960 TP_ARGS(netdev, macaddr)
1963 TRACE_EVENT(cfg80211_rx_mgmt,
1964 TP_PROTO(struct wireless_dev *wdev, int freq, int sig_mbm),
1965 TP_ARGS(wdev, freq, sig_mbm),
1969 __field(int, sig_mbm)
1973 __entry->freq = freq;
1974 __entry->sig_mbm = sig_mbm;
1976 TP_printk(WDEV_PR_FMT ", freq: %d, sig mbm: %d",
1977 WDEV_PR_ARG, __entry->freq, __entry->sig_mbm)
1980 TRACE_EVENT(cfg80211_mgmt_tx_status,
1981 TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack),
1982 TP_ARGS(wdev, cookie, ack),
1985 __field(u64, cookie)
1990 __entry->cookie = cookie;
1993 TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s",
1994 WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack))
1997 TRACE_EVENT(cfg80211_cqm_rssi_notify,
1998 TP_PROTO(struct net_device *netdev,
1999 enum nl80211_cqm_rssi_threshold_event rssi_event),
2000 TP_ARGS(netdev, rssi_event),
2003 __field(enum nl80211_cqm_rssi_threshold_event, rssi_event)
2007 __entry->rssi_event = rssi_event;
2009 TP_printk(NETDEV_PR_FMT ", rssi event: %d",
2010 NETDEV_PR_ARG, __entry->rssi_event)
2013 TRACE_EVENT(cfg80211_can_beacon_sec_chan,
2014 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
2015 enum nl80211_channel_type channel_type),
2016 TP_ARGS(wiphy, channel, channel_type),
2020 __field(enum nl80211_channel_type, channel_type)
2024 CHAN_ASSIGN(channel);
2025 __entry->channel_type = channel_type;
2027 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT ", channel_type: %d",
2028 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->channel_type)
2031 TRACE_EVENT(cfg80211_ch_switch_notify,
2032 TP_PROTO(struct net_device *netdev, int freq,
2033 enum nl80211_channel_type type),
2034 TP_ARGS(netdev, freq, type),
2038 __field(enum nl80211_channel_type, type)
2042 __entry->freq = freq;
2043 __entry->type = type;
2045 TP_printk(NETDEV_PR_FMT ", freq: %d, type: %d", NETDEV_PR_ARG,
2046 __entry->freq, __entry->type)
2049 DECLARE_EVENT_CLASS(cfg80211_rx_evt,
2050 TP_PROTO(struct net_device *netdev, const u8 *addr),
2051 TP_ARGS(netdev, addr),
2058 MAC_ASSIGN(addr, addr);
2060 TP_printk(NETDEV_PR_FMT MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr))
2063 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_ibss_joined,
2064 TP_PROTO(struct net_device *netdev, const u8 *addr),
2065 TP_ARGS(netdev, addr)
2068 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame,
2069 TP_PROTO(struct net_device *netdev, const u8 *addr),
2070 TP_ARGS(netdev, addr)
2073 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame,
2074 TP_PROTO(struct net_device *netdev, const u8 *addr),
2075 TP_ARGS(netdev, addr)
2078 TRACE_EVENT(cfg80211_probe_status,
2079 TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie,
2081 TP_ARGS(netdev, addr, cookie, acked),
2085 __field(u64, cookie)
2086 __field(bool, acked)
2090 MAC_ASSIGN(addr, addr);
2091 __entry->cookie = cookie;
2092 __entry->acked = acked;
2094 TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", cookie: %llu, acked: %s",
2095 NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie,
2096 BOOL_TO_STR(__entry->acked))
2099 TRACE_EVENT(cfg80211_cqm_pktloss_notify,
2100 TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets),
2101 TP_ARGS(netdev, peer, num_packets),
2105 __field(u32, num_packets)
2109 MAC_ASSIGN(peer, peer);
2110 __entry->num_packets = num_packets;
2112 TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u",
2113 NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets)
2116 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify,
2117 TP_PROTO(struct net_device *netdev, const u8 *macaddr),
2118 TP_ARGS(netdev, macaddr)
2121 TRACE_EVENT(cfg80211_pmksa_candidate_notify,
2122 TP_PROTO(struct net_device *netdev, int index, const u8 *bssid,
2124 TP_ARGS(netdev, index, bssid, preauth),
2129 __field(bool, preauth)
2133 __entry->index = index;
2134 MAC_ASSIGN(bssid, bssid);
2135 __entry->preauth = preauth;
2137 TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s",
2138 NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid),
2139 BOOL_TO_STR(__entry->preauth))
2142 TRACE_EVENT(cfg80211_report_obss_beacon,
2143 TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len,
2144 int freq, int sig_dbm),
2145 TP_ARGS(wiphy, frame, len, freq, sig_dbm),
2149 __field(int, sig_dbm)
2153 __entry->freq = freq;
2154 __entry->sig_dbm = sig_dbm;
2156 TP_printk(WIPHY_PR_FMT ", freq: %d, sig_dbm: %d",
2157 WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm)
2160 TRACE_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),
2168 __field(enum nl80211_tdls_operation, oper)
2169 __field(u16, reason_code)
2174 MAC_ASSIGN(peer, peer);
2175 __entry->oper = oper;
2176 __entry->reason_code = reason_code;
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)
2183 TRACE_EVENT(cfg80211_scan_done,
2184 TP_PROTO(struct cfg80211_scan_request *request, bool aborted),
2185 TP_ARGS(request, aborted),
2187 __field(u32, n_channels)
2188 __dynamic_array(u8, ie, request ? request->ie_len : 0)
2189 __array(u32, rates, IEEE80211_NUM_BANDS)
2190 __field(u32, wdev_id)
2191 MAC_ENTRY(wiphy_mac)
2192 __field(bool, no_cck)
2193 __field(bool, aborted)
2197 memcpy(__get_dynamic_array(ie), request->ie,
2199 memcpy(__entry->rates, request->rates,
2200 IEEE80211_NUM_BANDS);
2201 __entry->wdev_id = request->wdev ?
2202 request->wdev->identifier : 0;
2204 MAC_ASSIGN(wiphy_mac,
2205 request->wiphy->perm_addr);
2206 __entry->no_cck = request->no_cck;
2208 __entry->aborted = aborted;
2210 TP_printk("aborted: %s", BOOL_TO_STR(__entry->aborted))
2213 DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_results,
2214 TP_PROTO(struct wiphy *wiphy),
2218 DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_stopped,
2219 TP_PROTO(struct wiphy *wiphy),
2223 TRACE_EVENT(cfg80211_get_bss,
2224 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
2225 const u8 *bssid, const u8 *ssid, size_t ssid_len,
2226 u16 capa_mask, u16 capa_val),
2227 TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, capa_mask, capa_val),
2232 __dynamic_array(u8, ssid, ssid_len)
2233 __field(u16, capa_mask)
2234 __field(u16, capa_val)
2238 CHAN_ASSIGN(channel);
2239 MAC_ASSIGN(bssid, bssid);
2240 memcpy(__get_dynamic_array(ssid), ssid, ssid_len);
2241 __entry->capa_mask = capa_mask;
2242 __entry->capa_val = capa_val;
2244 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT MAC_PR_FMT ", buf: %#.2x, "
2245 "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG, CHAN_PR_ARG,
2246 MAC_PR_ARG(bssid), ((u8 *)__get_dynamic_array(ssid))[0],
2247 __entry->capa_mask, __entry->capa_val)
2250 TRACE_EVENT(cfg80211_inform_bss_frame,
2251 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
2252 struct ieee80211_mgmt *mgmt, size_t len,
2254 TP_ARGS(wiphy, channel, mgmt, len, signal),
2258 __dynamic_array(u8, mgmt, len)
2259 __field(s32, signal)
2263 CHAN_ASSIGN(channel);
2265 memcpy(__get_dynamic_array(mgmt), mgmt, len);
2266 __entry->signal = signal;
2268 TP_printk(WIPHY_PR_FMT CHAN_PR_FMT "signal: %d",
2269 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal)
2272 DECLARE_EVENT_CLASS(cfg80211_bss_evt,
2273 TP_PROTO(struct cfg80211_bss *pub),
2280 MAC_ASSIGN(bssid, pub->bssid);
2281 CHAN_ASSIGN(pub->channel);
2283 TP_printk(MAC_PR_FMT CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG)
2286 DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss,
2287 TP_PROTO(struct cfg80211_bss *pub),
2291 TRACE_EVENT(cfg80211_return_uint,
2292 TP_PROTO(unsigned int ret),
2295 __field(unsigned int, ret)
2300 TP_printk("ret: %d", __entry->ret)
2303 TRACE_EVENT(cfg80211_return_u32,
2312 TP_printk("ret: %u", __entry->ret)
2315 #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
2317 #undef TRACE_INCLUDE_PATH
2318 #define TRACE_INCLUDE_PATH .
2319 #undef TRACE_INCLUDE_FILE
2320 #define TRACE_INCLUDE_FILE trace
2321 #include <trace/define_trace.h>