1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM cfg80211
5 #if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ)
6 #define __RDEV_OPS_TRACE
8 #include <linux/tracepoint.h>
10 #include <linux/rtnetlink.h>
11 #include <linux/etherdevice.h>
12 #include <net/cfg80211.h>
15 #define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN)
16 #define MAC_ASSIGN(entry_mac, given_mac) do { \
18 memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \
20 eth_zero_addr(__entry->entry_mac); \
22 #define MAC_PR_FMT "%pM"
23 #define MAC_PR_ARG(entry_mac) (__entry->entry_mac)
26 #define WIPHY_ENTRY __array(char, wiphy_name, 32)
27 #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME)
28 #define WIPHY_PR_FMT "%s"
29 #define WIPHY_PR_ARG __entry->wiphy_name
31 #define WDEV_ENTRY __field(u32, id)
32 #define WDEV_ASSIGN (__entry->id) = (!IS_ERR_OR_NULL(wdev) \
33 ? wdev->identifier : 0)
34 #define WDEV_PR_FMT "wdev(%u)"
35 #define WDEV_PR_ARG (__entry->id)
37 #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \
39 #define NETDEV_ASSIGN \
41 memcpy(__entry->name, netdev->name, IFNAMSIZ); \
42 (__entry->ifindex) = (netdev->ifindex); \
44 #define NETDEV_PR_FMT "netdev:%s(%d)"
45 #define NETDEV_PR_ARG __entry->name, __entry->ifindex
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 nl80211_band, band) \
115 __field(u32, 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 nl80211_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 #define QOS_MAP_ENTRY __field(u8, num_des) \
192 __array(u8, dscp_exception, \
193 2 * IEEE80211_QOS_MAP_MAX_EX) \
194 __array(u8, up, IEEE80211_QOS_MAP_LEN_MIN)
195 #define QOS_MAP_ASSIGN(qos_map) \
198 __entry->num_des = (qos_map)->num_des; \
199 memcpy(__entry->dscp_exception, \
200 &(qos_map)->dscp_exception, \
201 2 * IEEE80211_QOS_MAP_MAX_EX); \
202 memcpy(__entry->up, &(qos_map)->up, \
203 IEEE80211_QOS_MAP_LEN_MIN); \
205 __entry->num_des = 0; \
206 memset(__entry->dscp_exception, 0, \
207 2 * IEEE80211_QOS_MAP_MAX_EX); \
208 memset(__entry->up, 0, \
209 IEEE80211_QOS_MAP_LEN_MIN); \
213 /*************************************************************
215 *************************************************************/
217 TRACE_EVENT(rdev_suspend
,
218 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_wowlan
*wow
),
223 __field(bool, disconnect
)
224 __field(bool, magic_pkt
)
225 __field(bool, gtk_rekey_failure
)
226 __field(bool, eap_identity_req
)
227 __field(bool, four_way_handshake
)
228 __field(bool, rfkill_release
)
229 __field(bool, valid_wow
)
234 __entry
->any
= wow
->any
;
235 __entry
->disconnect
= wow
->disconnect
;
236 __entry
->magic_pkt
= wow
->magic_pkt
;
237 __entry
->gtk_rekey_failure
= wow
->gtk_rekey_failure
;
238 __entry
->eap_identity_req
= wow
->eap_identity_req
;
239 __entry
->four_way_handshake
= wow
->four_way_handshake
;
240 __entry
->rfkill_release
= wow
->rfkill_release
;
241 __entry
->valid_wow
= true;
243 __entry
->valid_wow
= false;
246 TP_printk(WIPHY_PR_FMT
", wow%s - any: %d, disconnect: %d, "
247 "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, "
248 "four way handshake: %d, rfkill release: %d.",
249 WIPHY_PR_ARG
, __entry
->valid_wow
? "" : "(Not configured!)",
250 __entry
->any
, __entry
->disconnect
, __entry
->magic_pkt
,
251 __entry
->gtk_rekey_failure
, __entry
->eap_identity_req
,
252 __entry
->four_way_handshake
, __entry
->rfkill_release
)
255 TRACE_EVENT(rdev_return_int
,
256 TP_PROTO(struct wiphy
*wiphy
, int ret
),
266 TP_printk(WIPHY_PR_FMT
", returned: %d", WIPHY_PR_ARG
, __entry
->ret
)
269 TRACE_EVENT(rdev_scan
,
270 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_scan_request
*request
),
271 TP_ARGS(wiphy
, request
),
278 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
281 DECLARE_EVENT_CLASS(wiphy_only_evt
,
282 TP_PROTO(struct wiphy
*wiphy
),
290 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
293 DEFINE_EVENT(wiphy_only_evt
, rdev_resume
,
294 TP_PROTO(struct wiphy
*wiphy
),
298 DEFINE_EVENT(wiphy_only_evt
, rdev_return_void
,
299 TP_PROTO(struct wiphy
*wiphy
),
303 DEFINE_EVENT(wiphy_only_evt
, rdev_get_antenna
,
304 TP_PROTO(struct wiphy
*wiphy
),
308 DEFINE_EVENT(wiphy_only_evt
, rdev_rfkill_poll
,
309 TP_PROTO(struct wiphy
*wiphy
),
313 DECLARE_EVENT_CLASS(wiphy_enabled_evt
,
314 TP_PROTO(struct wiphy
*wiphy
, bool enabled
),
315 TP_ARGS(wiphy
, enabled
),
318 __field(bool, enabled
)
322 __entry
->enabled
= enabled
;
324 TP_printk(WIPHY_PR_FMT
", %senabled ",
325 WIPHY_PR_ARG
, __entry
->enabled
? "" : "not ")
328 DEFINE_EVENT(wiphy_enabled_evt
, rdev_set_wakeup
,
329 TP_PROTO(struct wiphy
*wiphy
, bool enabled
),
330 TP_ARGS(wiphy
, enabled
)
333 TRACE_EVENT(rdev_add_virtual_intf
,
334 TP_PROTO(struct wiphy
*wiphy
, char *name
, enum nl80211_iftype type
),
335 TP_ARGS(wiphy
, name
, type
),
338 __string(vir_intf_name
, name
? name
: "<noname>")
339 __field(enum nl80211_iftype
, type
)
343 __assign_str(vir_intf_name
, name
? name
: "<noname>");
344 __entry
->type
= type
;
346 TP_printk(WIPHY_PR_FMT
", virtual intf name: %s, type: %d",
347 WIPHY_PR_ARG
, __get_str(vir_intf_name
), __entry
->type
)
350 DECLARE_EVENT_CLASS(wiphy_wdev_evt
,
351 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
352 TP_ARGS(wiphy
, wdev
),
361 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
, WIPHY_PR_ARG
, WDEV_PR_ARG
)
364 DECLARE_EVENT_CLASS(wiphy_wdev_cookie_evt
,
365 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
366 TP_ARGS(wiphy
, wdev
, cookie
),
375 __entry
->cookie
= cookie
;
377 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie: %lld",
378 WIPHY_PR_ARG
, WDEV_PR_ARG
,
379 (unsigned long long)__entry
->cookie
)
382 DEFINE_EVENT(wiphy_wdev_evt
, rdev_return_wdev
,
383 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
387 DEFINE_EVENT(wiphy_wdev_evt
, rdev_del_virtual_intf
,
388 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
392 TRACE_EVENT(rdev_change_virtual_intf
,
393 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
394 enum nl80211_iftype type
),
395 TP_ARGS(wiphy
, netdev
, type
),
399 __field(enum nl80211_iftype
, type
)
404 __entry
->type
= type
;
406 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", type: %d",
407 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->type
)
410 DECLARE_EVENT_CLASS(key_handle
,
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
),
418 __field(u8
, key_index
)
419 __field(bool, pairwise
)
424 MAC_ASSIGN(mac_addr
, mac_addr
);
425 __entry
->key_index
= key_index
;
426 __entry
->pairwise
= pairwise
;
428 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT
,
429 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
,
430 BOOL_TO_STR(__entry
->pairwise
), MAC_PR_ARG(mac_addr
))
433 DEFINE_EVENT(key_handle
, rdev_get_key
,
434 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
435 bool pairwise
, const u8
*mac_addr
),
436 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
)
439 DEFINE_EVENT(key_handle
, rdev_del_key
,
440 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
441 bool pairwise
, const u8
*mac_addr
),
442 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
)
445 TRACE_EVENT(rdev_add_key
,
446 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
447 bool pairwise
, const u8
*mac_addr
, u8 mode
),
448 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
, mode
),
453 __field(u8
, key_index
)
454 __field(bool, pairwise
)
460 MAC_ASSIGN(mac_addr
, mac_addr
);
461 __entry
->key_index
= key_index
;
462 __entry
->pairwise
= pairwise
;
463 __entry
->mode
= mode
;
465 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key_index: %u, "
466 "mode: %u, pairwise: %s, mac addr: " MAC_PR_FMT
,
467 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
,
468 __entry
->mode
, BOOL_TO_STR(__entry
->pairwise
),
469 MAC_PR_ARG(mac_addr
))
472 TRACE_EVENT(rdev_set_default_key
,
473 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
474 bool unicast
, bool multicast
),
475 TP_ARGS(wiphy
, netdev
, key_index
, unicast
, multicast
),
479 __field(u8
, key_index
)
480 __field(bool, unicast
)
481 __field(bool, multicast
)
486 __entry
->key_index
= key_index
;
487 __entry
->unicast
= unicast
;
488 __entry
->multicast
= multicast
;
490 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key index: %u, unicast: %s, multicast: %s",
491 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
,
492 BOOL_TO_STR(__entry
->unicast
),
493 BOOL_TO_STR(__entry
->multicast
))
496 TRACE_EVENT(rdev_set_default_mgmt_key
,
497 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
),
498 TP_ARGS(wiphy
, netdev
, key_index
),
502 __field(u8
, key_index
)
507 __entry
->key_index
= key_index
;
509 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key index: %u",
510 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
)
513 TRACE_EVENT(rdev_start_ap
,
514 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
515 struct cfg80211_ap_settings
*settings
),
516 TP_ARGS(wiphy
, netdev
, settings
),
521 __field(int, beacon_interval
)
522 __field(int, dtim_period
)
523 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
524 __field(enum nl80211_hidden_ssid
, hidden_ssid
)
525 __field(u32
, wpa_ver
)
526 __field(bool, privacy
)
527 __field(enum nl80211_auth_type
, auth_type
)
528 __field(int, inactivity_timeout
)
533 CHAN_DEF_ASSIGN(&settings
->chandef
);
534 __entry
->beacon_interval
= settings
->beacon_interval
;
535 __entry
->dtim_period
= settings
->dtim_period
;
536 __entry
->hidden_ssid
= settings
->hidden_ssid
;
537 __entry
->wpa_ver
= settings
->crypto
.wpa_versions
;
538 __entry
->privacy
= settings
->privacy
;
539 __entry
->auth_type
= settings
->auth_type
;
540 __entry
->inactivity_timeout
= settings
->inactivity_timeout
;
541 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
542 memcpy(__entry
->ssid
, settings
->ssid
, settings
->ssid_len
);
544 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", AP settings - ssid: %s, "
545 CHAN_DEF_PR_FMT
", beacon interval: %d, dtim period: %d, "
546 "hidden ssid: %d, wpa versions: %u, privacy: %s, "
547 "auth type: %d, inactivity timeout: %d",
548 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->ssid
, CHAN_DEF_PR_ARG
,
549 __entry
->beacon_interval
, __entry
->dtim_period
,
550 __entry
->hidden_ssid
, __entry
->wpa_ver
,
551 BOOL_TO_STR(__entry
->privacy
), __entry
->auth_type
,
552 __entry
->inactivity_timeout
)
555 TRACE_EVENT(rdev_change_beacon
,
556 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
557 struct cfg80211_beacon_data
*info
),
558 TP_ARGS(wiphy
, netdev
, info
),
562 __dynamic_array(u8
, head
, info
? info
->head_len
: 0)
563 __dynamic_array(u8
, tail
, info
? info
->tail_len
: 0)
564 __dynamic_array(u8
, beacon_ies
, info
? info
->beacon_ies_len
: 0)
565 __dynamic_array(u8
, proberesp_ies
,
566 info
? info
->proberesp_ies_len
: 0)
567 __dynamic_array(u8
, assocresp_ies
,
568 info
? info
->assocresp_ies_len
: 0)
569 __dynamic_array(u8
, probe_resp
, info
? info
->probe_resp_len
: 0)
576 memcpy(__get_dynamic_array(head
), info
->head
,
579 memcpy(__get_dynamic_array(tail
), info
->tail
,
581 if (info
->beacon_ies
)
582 memcpy(__get_dynamic_array(beacon_ies
),
583 info
->beacon_ies
, info
->beacon_ies_len
);
584 if (info
->proberesp_ies
)
585 memcpy(__get_dynamic_array(proberesp_ies
),
587 info
->proberesp_ies_len
);
588 if (info
->assocresp_ies
)
589 memcpy(__get_dynamic_array(assocresp_ies
),
591 info
->assocresp_ies_len
);
592 if (info
->probe_resp
)
593 memcpy(__get_dynamic_array(probe_resp
),
594 info
->probe_resp
, info
->probe_resp_len
);
597 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
, WIPHY_PR_ARG
, NETDEV_PR_ARG
)
600 DECLARE_EVENT_CLASS(wiphy_netdev_evt
,
601 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
602 TP_ARGS(wiphy
, netdev
),
611 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
, WIPHY_PR_ARG
, NETDEV_PR_ARG
)
614 DEFINE_EVENT(wiphy_netdev_evt
, rdev_stop_ap
,
615 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
616 TP_ARGS(wiphy
, netdev
)
619 DEFINE_EVENT(wiphy_netdev_evt
, rdev_set_rekey_data
,
620 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
621 TP_ARGS(wiphy
, netdev
)
624 DEFINE_EVENT(wiphy_netdev_evt
, rdev_get_mesh_config
,
625 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
626 TP_ARGS(wiphy
, netdev
)
629 DEFINE_EVENT(wiphy_netdev_evt
, rdev_leave_mesh
,
630 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
631 TP_ARGS(wiphy
, netdev
)
634 DEFINE_EVENT(wiphy_netdev_evt
, rdev_leave_ibss
,
635 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
636 TP_ARGS(wiphy
, netdev
)
639 DEFINE_EVENT(wiphy_netdev_evt
, rdev_leave_ocb
,
640 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
641 TP_ARGS(wiphy
, netdev
)
644 DEFINE_EVENT(wiphy_netdev_evt
, rdev_flush_pmksa
,
645 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
646 TP_ARGS(wiphy
, netdev
)
649 DECLARE_EVENT_CLASS(station_add_change
,
650 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
651 struct station_parameters
*params
),
652 TP_ARGS(wiphy
, netdev
, mac
, params
),
657 __field(u32
, sta_flags_mask
)
658 __field(u32
, sta_flags_set
)
659 __field(u32
, sta_modify_mask
)
660 __field(int, listen_interval
)
661 __field(u16
, capability
)
663 __field(u8
, plink_action
)
664 __field(u8
, plink_state
)
665 __field(u8
, uapsd_queues
)
667 __field(u8
, opmode_notif
)
668 __field(bool, opmode_notif_used
)
669 __array(u8
, ht_capa
, (int)sizeof(struct ieee80211_ht_cap
))
670 __array(u8
, vht_capa
, (int)sizeof(struct ieee80211_vht_cap
))
671 __array(char, vlan
, IFNAMSIZ
)
672 __dynamic_array(u8
, supported_rates
,
673 params
->supported_rates_len
)
674 __dynamic_array(u8
, ext_capab
, params
->ext_capab_len
)
675 __dynamic_array(u8
, supported_channels
,
676 params
->supported_channels_len
)
677 __dynamic_array(u8
, supported_oper_classes
,
678 params
->supported_oper_classes_len
)
683 MAC_ASSIGN(sta_mac
, mac
);
684 __entry
->sta_flags_mask
= params
->sta_flags_mask
;
685 __entry
->sta_flags_set
= params
->sta_flags_set
;
686 __entry
->sta_modify_mask
= params
->sta_modify_mask
;
687 __entry
->listen_interval
= params
->listen_interval
;
688 __entry
->aid
= params
->aid
;
689 __entry
->plink_action
= params
->plink_action
;
690 __entry
->plink_state
= params
->plink_state
;
691 __entry
->uapsd_queues
= params
->uapsd_queues
;
692 memset(__entry
->ht_capa
, 0, sizeof(struct ieee80211_ht_cap
));
694 memcpy(__entry
->ht_capa
, params
->ht_capa
,
695 sizeof(struct ieee80211_ht_cap
));
696 memset(__entry
->vht_capa
, 0, sizeof(struct ieee80211_vht_cap
));
697 if (params
->vht_capa
)
698 memcpy(__entry
->vht_capa
, params
->vht_capa
,
699 sizeof(struct ieee80211_vht_cap
));
700 memset(__entry
->vlan
, 0, sizeof(__entry
->vlan
));
702 memcpy(__entry
->vlan
, params
->vlan
->name
, IFNAMSIZ
);
703 if (params
->supported_rates
&& params
->supported_rates_len
)
704 memcpy(__get_dynamic_array(supported_rates
),
705 params
->supported_rates
,
706 params
->supported_rates_len
);
707 if (params
->ext_capab
&& params
->ext_capab_len
)
708 memcpy(__get_dynamic_array(ext_capab
),
710 params
->ext_capab_len
);
711 if (params
->supported_channels
&&
712 params
->supported_channels_len
)
713 memcpy(__get_dynamic_array(supported_channels
),
714 params
->supported_channels
,
715 params
->supported_channels_len
);
716 if (params
->supported_oper_classes
&&
717 params
->supported_oper_classes_len
)
718 memcpy(__get_dynamic_array(supported_oper_classes
),
719 params
->supported_oper_classes
,
720 params
->supported_oper_classes_len
);
721 __entry
->max_sp
= params
->max_sp
;
722 __entry
->capability
= params
->capability
;
723 __entry
->opmode_notif
= params
->opmode_notif
;
724 __entry
->opmode_notif_used
= params
->opmode_notif_used
;
726 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", station mac: " MAC_PR_FMT
727 ", station flags mask: %u, station flags set: %u, "
728 "station modify mask: %u, listen interval: %d, aid: %u, "
729 "plink action: %u, plink state: %u, uapsd queues: %u, vlan:%s",
730 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
),
731 __entry
->sta_flags_mask
, __entry
->sta_flags_set
,
732 __entry
->sta_modify_mask
, __entry
->listen_interval
,
733 __entry
->aid
, __entry
->plink_action
, __entry
->plink_state
,
734 __entry
->uapsd_queues
, __entry
->vlan
)
737 DEFINE_EVENT(station_add_change
, rdev_add_station
,
738 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
739 struct station_parameters
*params
),
740 TP_ARGS(wiphy
, netdev
, mac
, params
)
743 DEFINE_EVENT(station_add_change
, rdev_change_station
,
744 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
745 struct station_parameters
*params
),
746 TP_ARGS(wiphy
, netdev
, mac
, params
)
749 DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt
,
750 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
751 TP_ARGS(wiphy
, netdev
, mac
),
760 MAC_ASSIGN(sta_mac
, mac
);
762 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
763 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
))
766 DECLARE_EVENT_CLASS(station_del
,
767 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
768 struct station_del_parameters
*params
),
769 TP_ARGS(wiphy
, netdev
, params
),
775 __field(u16
, reason_code
)
780 MAC_ASSIGN(sta_mac
, params
->mac
);
781 __entry
->subtype
= params
->subtype
;
782 __entry
->reason_code
= params
->reason_code
;
784 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", station mac: " MAC_PR_FMT
785 ", subtype: %u, reason_code: %u",
786 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
),
787 __entry
->subtype
, __entry
->reason_code
)
790 DEFINE_EVENT(station_del
, rdev_del_station
,
791 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
792 struct station_del_parameters
*params
),
793 TP_ARGS(wiphy
, netdev
, params
)
796 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_get_station
,
797 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
798 TP_ARGS(wiphy
, netdev
, mac
)
801 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_del_mpath
,
802 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
803 TP_ARGS(wiphy
, netdev
, mac
)
806 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_set_wds_peer
,
807 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
808 TP_ARGS(wiphy
, netdev
, mac
)
811 TRACE_EVENT(rdev_dump_station
,
812 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int _idx
,
814 TP_ARGS(wiphy
, netdev
, _idx
, mac
),
824 MAC_ASSIGN(sta_mac
, mac
);
827 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", station mac: " MAC_PR_FMT
", idx: %d",
828 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
),
832 TRACE_EVENT(rdev_return_int_station_info
,
833 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct station_info
*sinfo
),
834 TP_ARGS(wiphy
, ret
, sinfo
),
845 TP_printk(WIPHY_PR_FMT
", returned %d" ,
846 WIPHY_PR_ARG
, __entry
->ret
)
849 DECLARE_EVENT_CLASS(mpath_evt
,
850 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
852 TP_ARGS(wiphy
, netdev
, dst
, next_hop
),
862 MAC_ASSIGN(dst
, dst
);
863 MAC_ASSIGN(next_hop
, next_hop
);
865 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", destination: " MAC_PR_FMT
", next hop: " MAC_PR_FMT
,
866 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(dst
),
867 MAC_PR_ARG(next_hop
))
870 DEFINE_EVENT(mpath_evt
, rdev_add_mpath
,
871 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
873 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
876 DEFINE_EVENT(mpath_evt
, rdev_change_mpath
,
877 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
879 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
882 DEFINE_EVENT(mpath_evt
, rdev_get_mpath
,
883 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
885 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
888 TRACE_EVENT(rdev_dump_mpath
,
889 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int _idx
,
890 u8
*dst
, u8
*next_hop
),
891 TP_ARGS(wiphy
, netdev
, _idx
, dst
, next_hop
),
902 MAC_ASSIGN(dst
, dst
);
903 MAC_ASSIGN(next_hop
, next_hop
);
906 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", index: %d, destination: "
907 MAC_PR_FMT
", next hop: " MAC_PR_FMT
,
908 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->idx
, MAC_PR_ARG(dst
),
909 MAC_PR_ARG(next_hop
))
912 TRACE_EVENT(rdev_get_mpp
,
913 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
915 TP_ARGS(wiphy
, netdev
, dst
, mpp
),
925 MAC_ASSIGN(dst
, dst
);
926 MAC_ASSIGN(mpp
, mpp
);
928 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", destination: " MAC_PR_FMT
929 ", mpp: " MAC_PR_FMT
, WIPHY_PR_ARG
, NETDEV_PR_ARG
,
930 MAC_PR_ARG(dst
), MAC_PR_ARG(mpp
))
933 TRACE_EVENT(rdev_dump_mpp
,
934 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int _idx
,
936 TP_ARGS(wiphy
, netdev
, _idx
, mpp
, dst
),
947 MAC_ASSIGN(dst
, dst
);
948 MAC_ASSIGN(mpp
, mpp
);
951 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", index: %d, destination: "
952 MAC_PR_FMT
", mpp: " MAC_PR_FMT
,
953 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->idx
, MAC_PR_ARG(dst
),
957 TRACE_EVENT(rdev_return_int_mpath_info
,
958 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct mpath_info
*pinfo
),
959 TP_ARGS(wiphy
, ret
, pinfo
),
963 __field(int, generation
)
965 __field(u32
, frame_qlen
)
968 __field(u32
, exptime
)
969 __field(u32
, discovery_timeout
)
970 __field(u8
, discovery_retries
)
976 __entry
->generation
= pinfo
->generation
;
977 __entry
->filled
= pinfo
->filled
;
978 __entry
->frame_qlen
= pinfo
->frame_qlen
;
979 __entry
->sn
= pinfo
->sn
;
980 __entry
->metric
= pinfo
->metric
;
981 __entry
->exptime
= pinfo
->exptime
;
982 __entry
->discovery_timeout
= pinfo
->discovery_timeout
;
983 __entry
->discovery_retries
= pinfo
->discovery_retries
;
984 __entry
->flags
= pinfo
->flags
;
986 TP_printk(WIPHY_PR_FMT
", returned %d. mpath info - generation: %d, "
987 "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u,"
988 " discovery timeout: %u, discovery retries: %u, flags: %u",
989 WIPHY_PR_ARG
, __entry
->ret
, __entry
->generation
,
990 __entry
->filled
, __entry
->frame_qlen
, __entry
->sn
,
991 __entry
->metric
, __entry
->exptime
, __entry
->discovery_timeout
,
992 __entry
->discovery_retries
, __entry
->flags
)
995 TRACE_EVENT(rdev_return_int_mesh_config
,
996 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct mesh_config
*conf
),
997 TP_ARGS(wiphy
, ret
, conf
),
1008 TP_printk(WIPHY_PR_FMT
", returned: %d",
1009 WIPHY_PR_ARG
, __entry
->ret
)
1012 TRACE_EVENT(rdev_update_mesh_config
,
1013 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u32 mask
,
1014 const struct mesh_config
*conf
),
1015 TP_ARGS(wiphy
, netdev
, mask
, conf
),
1026 __entry
->mask
= mask
;
1028 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", mask: %u",
1029 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->mask
)
1032 TRACE_EVENT(rdev_join_mesh
,
1033 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1034 const struct mesh_config
*conf
,
1035 const struct mesh_setup
*setup
),
1036 TP_ARGS(wiphy
, netdev
, conf
, setup
),
1047 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
,
1048 WIPHY_PR_ARG
, NETDEV_PR_ARG
)
1051 TRACE_EVENT(rdev_change_bss
,
1052 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1053 struct bss_parameters
*params
),
1054 TP_ARGS(wiphy
, netdev
, params
),
1058 __field(int, use_cts_prot
)
1059 __field(int, use_short_preamble
)
1060 __field(int, use_short_slot_time
)
1061 __field(int, ap_isolate
)
1062 __field(int, ht_opmode
)
1067 __entry
->use_cts_prot
= params
->use_cts_prot
;
1068 __entry
->use_short_preamble
= params
->use_short_preamble
;
1069 __entry
->use_short_slot_time
= params
->use_short_slot_time
;
1070 __entry
->ap_isolate
= params
->ap_isolate
;
1071 __entry
->ht_opmode
= params
->ht_opmode
;
1073 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", use cts prot: %d, "
1074 "use short preamble: %d, use short slot time: %d, "
1075 "ap isolate: %d, ht opmode: %d",
1076 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->use_cts_prot
,
1077 __entry
->use_short_preamble
, __entry
->use_short_slot_time
,
1078 __entry
->ap_isolate
, __entry
->ht_opmode
)
1081 TRACE_EVENT(rdev_set_txq_params
,
1082 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1083 struct ieee80211_txq_params
*params
),
1084 TP_ARGS(wiphy
, netdev
, params
),
1088 __field(enum nl80211_ac
, ac
)
1097 __entry
->ac
= params
->ac
;
1098 __entry
->txop
= params
->txop
;
1099 __entry
->cwmin
= params
->cwmin
;
1100 __entry
->cwmax
= params
->cwmax
;
1101 __entry
->aifs
= params
->aifs
;
1103 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u",
1104 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->ac
, __entry
->txop
,
1105 __entry
->cwmin
, __entry
->cwmax
, __entry
->aifs
)
1108 TRACE_EVENT(rdev_libertas_set_mesh_channel
,
1109 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1110 struct ieee80211_channel
*chan
),
1111 TP_ARGS(wiphy
, netdev
, chan
),
1122 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " CHAN_PR_FMT
, WIPHY_PR_ARG
,
1123 NETDEV_PR_ARG
, CHAN_PR_ARG
)
1126 TRACE_EVENT(rdev_set_monitor_channel
,
1127 TP_PROTO(struct wiphy
*wiphy
,
1128 struct cfg80211_chan_def
*chandef
),
1129 TP_ARGS(wiphy
, chandef
),
1136 CHAN_DEF_ASSIGN(chandef
);
1138 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
,
1139 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
)
1142 TRACE_EVENT(rdev_auth
,
1143 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1144 struct cfg80211_auth_request
*req
),
1145 TP_ARGS(wiphy
, netdev
, req
),
1150 __field(enum nl80211_auth_type
, auth_type
)
1156 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
1158 eth_zero_addr(__entry
->bssid
);
1159 __entry
->auth_type
= req
->auth_type
;
1161 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", auth type: %d, bssid: " MAC_PR_FMT
,
1162 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->auth_type
,
1166 TRACE_EVENT(rdev_assoc
,
1167 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1168 struct cfg80211_assoc_request
*req
),
1169 TP_ARGS(wiphy
, netdev
, req
),
1174 MAC_ENTRY(prev_bssid
)
1175 __field(bool, use_mfp
)
1182 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
1184 eth_zero_addr(__entry
->bssid
);
1185 MAC_ASSIGN(prev_bssid
, req
->prev_bssid
);
1186 __entry
->use_mfp
= req
->use_mfp
;
1187 __entry
->flags
= req
->flags
;
1189 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1190 ", previous bssid: " MAC_PR_FMT
", use mfp: %s, flags: %u",
1191 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1192 MAC_PR_ARG(prev_bssid
), BOOL_TO_STR(__entry
->use_mfp
),
1196 TRACE_EVENT(rdev_deauth
,
1197 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1198 struct cfg80211_deauth_request
*req
),
1199 TP_ARGS(wiphy
, netdev
, req
),
1204 __field(u16
, reason_code
)
1209 MAC_ASSIGN(bssid
, req
->bssid
);
1210 __entry
->reason_code
= req
->reason_code
;
1212 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
", reason: %u",
1213 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1214 __entry
->reason_code
)
1217 TRACE_EVENT(rdev_disassoc
,
1218 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1219 struct cfg80211_disassoc_request
*req
),
1220 TP_ARGS(wiphy
, netdev
, req
),
1225 __field(u16
, reason_code
)
1226 __field(bool, local_state_change
)
1232 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
1234 eth_zero_addr(__entry
->bssid
);
1235 __entry
->reason_code
= req
->reason_code
;
1236 __entry
->local_state_change
= req
->local_state_change
;
1238 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1239 ", reason: %u, local state change: %s",
1240 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1241 __entry
->reason_code
,
1242 BOOL_TO_STR(__entry
->local_state_change
))
1245 TRACE_EVENT(rdev_mgmt_tx_cancel_wait
,
1246 TP_PROTO(struct wiphy
*wiphy
,
1247 struct wireless_dev
*wdev
, u64 cookie
),
1248 TP_ARGS(wiphy
, wdev
, cookie
),
1252 __field(u64
, cookie
)
1257 __entry
->cookie
= cookie
;
1259 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie: %llu ",
1260 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->cookie
)
1263 TRACE_EVENT(rdev_set_power_mgmt
,
1264 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1265 bool enabled
, int timeout
),
1266 TP_ARGS(wiphy
, netdev
, enabled
, timeout
),
1270 __field(bool, enabled
)
1271 __field(int, timeout
)
1276 __entry
->enabled
= enabled
;
1277 __entry
->timeout
= timeout
;
1279 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", %senabled, timeout: %d ",
1280 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
1281 __entry
->enabled
? "" : "not ", __entry
->timeout
)
1284 TRACE_EVENT(rdev_connect
,
1285 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1286 struct cfg80211_connect_params
*sme
),
1287 TP_ARGS(wiphy
, netdev
, sme
),
1292 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
1293 __field(enum nl80211_auth_type
, auth_type
)
1294 __field(bool, privacy
)
1295 __field(u32
, wpa_versions
)
1297 MAC_ENTRY(prev_bssid
)
1302 MAC_ASSIGN(bssid
, sme
->bssid
);
1303 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
1304 memcpy(__entry
->ssid
, sme
->ssid
, sme
->ssid_len
);
1305 __entry
->auth_type
= sme
->auth_type
;
1306 __entry
->privacy
= sme
->privacy
;
1307 __entry
->wpa_versions
= sme
->crypto
.wpa_versions
;
1308 __entry
->flags
= sme
->flags
;
1309 MAC_ASSIGN(prev_bssid
, sme
->prev_bssid
);
1311 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1312 ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, "
1313 "flags: %u, previous bssid: " MAC_PR_FMT
,
1314 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), __entry
->ssid
,
1315 __entry
->auth_type
, BOOL_TO_STR(__entry
->privacy
),
1316 __entry
->wpa_versions
, __entry
->flags
, MAC_PR_ARG(prev_bssid
))
1319 TRACE_EVENT(rdev_update_connect_params
,
1320 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1321 struct cfg80211_connect_params
*sme
, u32 changed
),
1322 TP_ARGS(wiphy
, netdev
, sme
, changed
),
1326 __field(u32
, changed
)
1331 __entry
->changed
= changed
;
1333 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", parameters changed: %u",
1334 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->changed
)
1337 TRACE_EVENT(rdev_set_cqm_rssi_config
,
1338 TP_PROTO(struct wiphy
*wiphy
,
1339 struct net_device
*netdev
, s32 rssi_thold
,
1341 TP_ARGS(wiphy
, netdev
, rssi_thold
, rssi_hyst
),
1345 __field(s32
, rssi_thold
)
1346 __field(u32
, rssi_hyst
)
1351 __entry
->rssi_thold
= rssi_thold
;
1352 __entry
->rssi_hyst
= rssi_hyst
;
1354 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
1355 ", rssi_thold: %d, rssi_hyst: %u ",
1356 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
1357 __entry
->rssi_thold
, __entry
->rssi_hyst
)
1360 TRACE_EVENT(rdev_set_cqm_rssi_range_config
,
1361 TP_PROTO(struct wiphy
*wiphy
,
1362 struct net_device
*netdev
, s32 low
, s32 high
),
1363 TP_ARGS(wiphy
, netdev
, low
, high
),
1367 __field(s32
, rssi_low
)
1368 __field(s32
, rssi_high
)
1373 __entry
->rssi_low
= low
;
1374 __entry
->rssi_high
= high
;
1376 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
1377 ", range: %d - %d ",
1378 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
1379 __entry
->rssi_low
, __entry
->rssi_high
)
1382 TRACE_EVENT(rdev_set_cqm_txe_config
,
1383 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u32 rate
,
1384 u32 pkts
, u32 intvl
),
1385 TP_ARGS(wiphy
, netdev
, rate
, pkts
, intvl
),
1396 __entry
->rate
= rate
;
1397 __entry
->pkts
= pkts
;
1398 __entry
->intvl
= intvl
;
1400 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", rate: %u, packets: %u, interval: %u",
1401 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->rate
, __entry
->pkts
,
1405 TRACE_EVENT(rdev_disconnect
,
1406 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1408 TP_ARGS(wiphy
, netdev
, reason_code
),
1412 __field(u16
, reason_code
)
1417 __entry
->reason_code
= reason_code
;
1419 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", reason code: %u", WIPHY_PR_ARG
,
1420 NETDEV_PR_ARG
, __entry
->reason_code
)
1423 TRACE_EVENT(rdev_join_ibss
,
1424 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1425 struct cfg80211_ibss_params
*params
),
1426 TP_ARGS(wiphy
, netdev
, params
),
1431 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
1436 MAC_ASSIGN(bssid
, params
->bssid
);
1437 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
1438 memcpy(__entry
->ssid
, params
->ssid
, params
->ssid_len
);
1440 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
", ssid: %s",
1441 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), __entry
->ssid
)
1444 TRACE_EVENT(rdev_join_ocb
,
1445 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1446 const struct ocb_setup
*setup
),
1447 TP_ARGS(wiphy
, netdev
, setup
),
1456 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
,
1457 WIPHY_PR_ARG
, NETDEV_PR_ARG
)
1460 TRACE_EVENT(rdev_set_wiphy_params
,
1461 TP_PROTO(struct wiphy
*wiphy
, u32 changed
),
1462 TP_ARGS(wiphy
, changed
),
1465 __field(u32
, changed
)
1469 __entry
->changed
= changed
;
1471 TP_printk(WIPHY_PR_FMT
", changed: %u",
1472 WIPHY_PR_ARG
, __entry
->changed
)
1475 DEFINE_EVENT(wiphy_wdev_evt
, rdev_get_tx_power
,
1476 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1477 TP_ARGS(wiphy
, wdev
)
1480 TRACE_EVENT(rdev_set_tx_power
,
1481 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1482 enum nl80211_tx_power_setting type
, int mbm
),
1483 TP_ARGS(wiphy
, wdev
, type
, mbm
),
1487 __field(enum nl80211_tx_power_setting
, type
)
1493 __entry
->type
= type
;
1496 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", type: %u, mbm: %d",
1497 WIPHY_PR_ARG
, WDEV_PR_ARG
,__entry
->type
, __entry
->mbm
)
1500 TRACE_EVENT(rdev_return_int_int
,
1501 TP_PROTO(struct wiphy
*wiphy
, int func_ret
, int func_fill
),
1502 TP_ARGS(wiphy
, func_ret
, func_fill
),
1505 __field(int, func_ret
)
1506 __field(int, func_fill
)
1510 __entry
->func_ret
= func_ret
;
1511 __entry
->func_fill
= func_fill
;
1513 TP_printk(WIPHY_PR_FMT
", function returns: %d, function filled: %d",
1514 WIPHY_PR_ARG
, __entry
->func_ret
, __entry
->func_fill
)
1517 #ifdef CONFIG_NL80211_TESTMODE
1518 TRACE_EVENT(rdev_testmode_cmd
,
1519 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1520 TP_ARGS(wiphy
, wdev
),
1529 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT
, WIPHY_PR_ARG
, WDEV_PR_ARG
)
1532 TRACE_EVENT(rdev_testmode_dump
,
1533 TP_PROTO(struct wiphy
*wiphy
),
1541 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
1543 #endif /* CONFIG_NL80211_TESTMODE */
1545 TRACE_EVENT(rdev_set_bitrate_mask
,
1546 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1547 const u8
*peer
, const struct cfg80211_bitrate_mask
*mask
),
1548 TP_ARGS(wiphy
, netdev
, peer
, mask
),
1557 MAC_ASSIGN(peer
, peer
);
1559 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
,
1560 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
))
1563 TRACE_EVENT(rdev_mgmt_frame_register
,
1564 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1565 u16 frame_type
, bool reg
),
1566 TP_ARGS(wiphy
, wdev
, frame_type
, reg
),
1570 __field(u16
, frame_type
)
1576 __entry
->frame_type
= frame_type
;
1579 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", frame_type: 0x%.2x, reg: %s ",
1580 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->frame_type
,
1581 __entry
->reg
? "true" : "false")
1584 TRACE_EVENT(rdev_return_int_tx_rx
,
1585 TP_PROTO(struct wiphy
*wiphy
, int ret
, u32 tx
, u32 rx
),
1586 TP_ARGS(wiphy
, ret
, tx
, rx
),
1599 TP_printk(WIPHY_PR_FMT
", returned %d, tx: %u, rx: %u",
1600 WIPHY_PR_ARG
, __entry
->ret
, __entry
->tx
, __entry
->rx
)
1603 TRACE_EVENT(rdev_return_void_tx_rx
,
1604 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 tx_max
,
1605 u32 rx
, u32 rx_max
),
1606 TP_ARGS(wiphy
, tx
, tx_max
, rx
, rx_max
),
1610 __field(u32
, tx_max
)
1612 __field(u32
, rx_max
)
1617 __entry
->tx_max
= tx_max
;
1619 __entry
->rx_max
= rx_max
;
1621 TP_printk(WIPHY_PR_FMT
", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
1622 WIPHY_PR_ARG
, __entry
->tx
, __entry
->tx_max
, __entry
->rx
,
1626 DECLARE_EVENT_CLASS(tx_rx_evt
,
1627 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 rx
),
1628 TP_ARGS(wiphy
, rx
, tx
),
1639 TP_printk(WIPHY_PR_FMT
", tx: %u, rx: %u ",
1640 WIPHY_PR_ARG
, __entry
->tx
, __entry
->rx
)
1643 DEFINE_EVENT(tx_rx_evt
, rdev_set_antenna
,
1644 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 rx
),
1645 TP_ARGS(wiphy
, rx
, tx
)
1648 DECLARE_EVENT_CLASS(wiphy_netdev_id_evt
,
1649 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u64 id
),
1650 TP_ARGS(wiphy
, netdev
, id
),
1661 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", id: %llu",
1662 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->id
)
1665 DEFINE_EVENT(wiphy_netdev_id_evt
, rdev_sched_scan_start
,
1666 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u64 id
),
1667 TP_ARGS(wiphy
, netdev
, id
)
1670 DEFINE_EVENT(wiphy_netdev_id_evt
, rdev_sched_scan_stop
,
1671 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u64 id
),
1672 TP_ARGS(wiphy
, netdev
, id
)
1675 TRACE_EVENT(rdev_tdls_mgmt
,
1676 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1677 u8
*peer
, u8 action_code
, u8 dialog_token
,
1678 u16 status_code
, u32 peer_capability
,
1679 bool initiator
, const u8
*buf
, size_t len
),
1680 TP_ARGS(wiphy
, netdev
, peer
, action_code
, dialog_token
, status_code
,
1681 peer_capability
, initiator
, buf
, len
),
1686 __field(u8
, action_code
)
1687 __field(u8
, dialog_token
)
1688 __field(u16
, status_code
)
1689 __field(u32
, peer_capability
)
1690 __field(bool, initiator
)
1691 __dynamic_array(u8
, buf
, len
)
1696 MAC_ASSIGN(peer
, peer
);
1697 __entry
->action_code
= action_code
;
1698 __entry
->dialog_token
= dialog_token
;
1699 __entry
->status_code
= status_code
;
1700 __entry
->peer_capability
= peer_capability
;
1701 __entry
->initiator
= initiator
;
1702 memcpy(__get_dynamic_array(buf
), buf
, len
);
1704 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", action_code: %u, "
1705 "dialog_token: %u, status_code: %u, peer_capability: %u "
1706 "initiator: %s buf: %#.2x ",
1707 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
),
1708 __entry
->action_code
, __entry
->dialog_token
,
1709 __entry
->status_code
, __entry
->peer_capability
,
1710 BOOL_TO_STR(__entry
->initiator
),
1711 ((u8
*)__get_dynamic_array(buf
))[0])
1714 TRACE_EVENT(rdev_dump_survey
,
1715 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int _idx
),
1716 TP_ARGS(wiphy
, netdev
, _idx
),
1725 __entry
->idx
= _idx
;
1727 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", index: %d",
1728 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->idx
)
1731 TRACE_EVENT(rdev_return_int_survey_info
,
1732 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct survey_info
*info
),
1733 TP_ARGS(wiphy
, ret
, info
),
1739 __field(u64
, time_busy
)
1740 __field(u64
, time_ext_busy
)
1741 __field(u64
, time_rx
)
1742 __field(u64
, time_tx
)
1743 __field(u64
, time_scan
)
1744 __field(u32
, filled
)
1749 CHAN_ASSIGN(info
->channel
);
1751 __entry
->time
= info
->time
;
1752 __entry
->time_busy
= info
->time_busy
;
1753 __entry
->time_ext_busy
= info
->time_ext_busy
;
1754 __entry
->time_rx
= info
->time_rx
;
1755 __entry
->time_tx
= info
->time_tx
;
1756 __entry
->time_scan
= info
->time_scan
;
1757 __entry
->filled
= info
->filled
;
1758 __entry
->noise
= info
->noise
;
1760 TP_printk(WIPHY_PR_FMT
", returned: %d, " CHAN_PR_FMT
1761 ", channel time: %llu, channel time busy: %llu, "
1762 "channel time extension busy: %llu, channel time rx: %llu, "
1763 "channel time tx: %llu, scan time: %llu, filled: %u, noise: %d",
1764 WIPHY_PR_ARG
, __entry
->ret
, CHAN_PR_ARG
,
1765 __entry
->time
, __entry
->time_busy
,
1766 __entry
->time_ext_busy
, __entry
->time_rx
,
1767 __entry
->time_tx
, __entry
->time_scan
,
1768 __entry
->filled
, __entry
->noise
)
1771 TRACE_EVENT(rdev_tdls_oper
,
1772 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1773 u8
*peer
, enum nl80211_tdls_operation oper
),
1774 TP_ARGS(wiphy
, netdev
, peer
, oper
),
1779 __field(enum nl80211_tdls_operation
, oper
)
1784 MAC_ASSIGN(peer
, peer
);
1785 __entry
->oper
= oper
;
1787 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", oper: %d",
1788 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->oper
)
1791 DECLARE_EVENT_CLASS(rdev_pmksa
,
1792 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1793 struct cfg80211_pmksa
*pmksa
),
1794 TP_ARGS(wiphy
, netdev
, pmksa
),
1803 MAC_ASSIGN(bssid
, pmksa
->bssid
);
1805 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
,
1806 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
))
1809 TRACE_EVENT(rdev_probe_client
,
1810 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1812 TP_ARGS(wiphy
, netdev
, peer
),
1821 MAC_ASSIGN(peer
, peer
);
1823 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
,
1824 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
))
1827 DEFINE_EVENT(rdev_pmksa
, rdev_set_pmksa
,
1828 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1829 struct cfg80211_pmksa
*pmksa
),
1830 TP_ARGS(wiphy
, netdev
, pmksa
)
1833 DEFINE_EVENT(rdev_pmksa
, rdev_del_pmksa
,
1834 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1835 struct cfg80211_pmksa
*pmksa
),
1836 TP_ARGS(wiphy
, netdev
, pmksa
)
1839 TRACE_EVENT(rdev_remain_on_channel
,
1840 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1841 struct ieee80211_channel
*chan
,
1842 unsigned int duration
),
1843 TP_ARGS(wiphy
, wdev
, chan
, duration
),
1848 __field(unsigned int, duration
)
1854 __entry
->duration
= duration
;
1856 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", " CHAN_PR_FMT
", duration: %u",
1857 WIPHY_PR_ARG
, WDEV_PR_ARG
, CHAN_PR_ARG
, __entry
->duration
)
1860 TRACE_EVENT(rdev_return_int_cookie
,
1861 TP_PROTO(struct wiphy
*wiphy
, int ret
, u64 cookie
),
1862 TP_ARGS(wiphy
, ret
, cookie
),
1866 __field(u64
, cookie
)
1871 __entry
->cookie
= cookie
;
1873 TP_printk(WIPHY_PR_FMT
", returned %d, cookie: %llu",
1874 WIPHY_PR_ARG
, __entry
->ret
, __entry
->cookie
)
1877 TRACE_EVENT(rdev_cancel_remain_on_channel
,
1878 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
1879 TP_ARGS(wiphy
, wdev
, cookie
),
1883 __field(u64
, cookie
)
1888 __entry
->cookie
= cookie
;
1890 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie: %llu",
1891 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->cookie
)
1894 TRACE_EVENT(rdev_mgmt_tx
,
1895 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1896 struct cfg80211_mgmt_tx_params
*params
),
1897 TP_ARGS(wiphy
, wdev
, params
),
1902 __field(bool, offchan
)
1903 __field(unsigned int, wait
)
1904 __field(bool, no_cck
)
1905 __field(bool, dont_wait_for_ack
)
1910 CHAN_ASSIGN(params
->chan
);
1911 __entry
->offchan
= params
->offchan
;
1912 __entry
->wait
= params
->wait
;
1913 __entry
->no_cck
= params
->no_cck
;
1914 __entry
->dont_wait_for_ack
= params
->dont_wait_for_ack
;
1916 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", " CHAN_PR_FMT
", offchan: %s,"
1917 " wait: %u, no cck: %s, dont wait for ack: %s",
1918 WIPHY_PR_ARG
, WDEV_PR_ARG
, CHAN_PR_ARG
,
1919 BOOL_TO_STR(__entry
->offchan
), __entry
->wait
,
1920 BOOL_TO_STR(__entry
->no_cck
),
1921 BOOL_TO_STR(__entry
->dont_wait_for_ack
))
1924 TRACE_EVENT(rdev_tx_control_port
,
1925 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1926 const u8
*buf
, size_t len
, const u8
*dest
, __be16 proto
,
1928 TP_ARGS(wiphy
, netdev
, buf
, len
, dest
, proto
, unencrypted
),
1933 __field(__be16
, proto
)
1934 __field(bool, unencrypted
)
1939 MAC_ASSIGN(dest
, dest
);
1940 __entry
->proto
= proto
;
1941 __entry
->unencrypted
= unencrypted
;
1943 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
","
1944 " proto: 0x%x, unencrypted: %s",
1945 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(dest
),
1946 be16_to_cpu(__entry
->proto
),
1947 BOOL_TO_STR(__entry
->unencrypted
))
1950 TRACE_EVENT(rdev_set_noack_map
,
1951 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1953 TP_ARGS(wiphy
, netdev
, noack_map
),
1957 __field(u16
, noack_map
)
1962 __entry
->noack_map
= noack_map
;
1964 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", noack_map: %u",
1965 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->noack_map
)
1968 DEFINE_EVENT(wiphy_wdev_evt
, rdev_get_channel
,
1969 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1970 TP_ARGS(wiphy
, wdev
)
1973 TRACE_EVENT(rdev_return_chandef
,
1974 TP_PROTO(struct wiphy
*wiphy
, int ret
,
1975 struct cfg80211_chan_def
*chandef
),
1976 TP_ARGS(wiphy
, ret
, chandef
),
1985 CHAN_DEF_ASSIGN(chandef
);
1987 CHAN_DEF_ASSIGN((struct cfg80211_chan_def
*)NULL
);
1990 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
", ret: %d",
1991 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
, __entry
->ret
)
1994 DEFINE_EVENT(wiphy_wdev_evt
, rdev_start_p2p_device
,
1995 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1996 TP_ARGS(wiphy
, wdev
)
1999 DEFINE_EVENT(wiphy_wdev_evt
, rdev_stop_p2p_device
,
2000 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
2001 TP_ARGS(wiphy
, wdev
)
2004 TRACE_EVENT(rdev_start_nan
,
2005 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
2006 struct cfg80211_nan_conf
*conf
),
2007 TP_ARGS(wiphy
, wdev
, conf
),
2011 __field(u8
, master_pref
)
2017 __entry
->master_pref
= conf
->master_pref
;
2018 __entry
->bands
= conf
->bands
;
2020 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
2021 ", master preference: %u, bands: 0x%0x",
2022 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->master_pref
,
2026 TRACE_EVENT(rdev_nan_change_conf
,
2027 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
2028 struct cfg80211_nan_conf
*conf
, u32 changes
),
2029 TP_ARGS(wiphy
, wdev
, conf
, changes
),
2033 __field(u8
, master_pref
)
2035 __field(u32
, changes
);
2040 __entry
->master_pref
= conf
->master_pref
;
2041 __entry
->bands
= conf
->bands
;
2042 __entry
->changes
= changes
;
2044 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
2045 ", master preference: %u, bands: 0x%0x, changes: %x",
2046 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->master_pref
,
2047 __entry
->bands
, __entry
->changes
)
2050 DEFINE_EVENT(wiphy_wdev_evt
, rdev_stop_nan
,
2051 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
2052 TP_ARGS(wiphy
, wdev
)
2055 TRACE_EVENT(rdev_add_nan_func
,
2056 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
2057 const struct cfg80211_nan_func
*func
),
2058 TP_ARGS(wiphy
, wdev
, func
),
2062 __field(u8
, func_type
)
2063 __field(u64
, cookie
)
2068 __entry
->func_type
= func
->type
;
2069 __entry
->cookie
= func
->cookie
2071 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", type=%u, cookie=%llu",
2072 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->func_type
,
2076 TRACE_EVENT(rdev_del_nan_func
,
2077 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
2079 TP_ARGS(wiphy
, wdev
, cookie
),
2083 __field(u64
, cookie
)
2088 __entry
->cookie
= cookie
;
2090 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie=%llu",
2091 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->cookie
)
2094 TRACE_EVENT(rdev_set_mac_acl
,
2095 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2096 struct cfg80211_acl_data
*params
),
2097 TP_ARGS(wiphy
, netdev
, params
),
2101 __field(u32
, acl_policy
)
2106 __entry
->acl_policy
= params
->acl_policy
;
2108 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", acl policy: %d",
2109 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->acl_policy
)
2112 TRACE_EVENT(rdev_update_ft_ies
,
2113 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2114 struct cfg80211_update_ft_ies_params
*ftie
),
2115 TP_ARGS(wiphy
, netdev
, ftie
),
2120 __dynamic_array(u8
, ie
, ftie
->ie_len
)
2125 __entry
->md
= ftie
->md
;
2126 memcpy(__get_dynamic_array(ie
), ftie
->ie
, ftie
->ie_len
);
2128 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", md: 0x%x",
2129 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->md
)
2132 TRACE_EVENT(rdev_crit_proto_start
,
2133 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
2134 enum nl80211_crit_proto_id protocol
, u16 duration
),
2135 TP_ARGS(wiphy
, wdev
, protocol
, duration
),
2140 __field(u16
, duration
)
2145 __entry
->proto
= protocol
;
2146 __entry
->duration
= duration
;
2148 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", proto=%x, duration=%u",
2149 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->proto
, __entry
->duration
)
2152 TRACE_EVENT(rdev_crit_proto_stop
,
2153 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
2154 TP_ARGS(wiphy
, wdev
),
2163 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
,
2164 WIPHY_PR_ARG
, WDEV_PR_ARG
)
2167 TRACE_EVENT(rdev_channel_switch
,
2168 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2169 struct cfg80211_csa_settings
*params
),
2170 TP_ARGS(wiphy
, netdev
, params
),
2175 __field(bool, radar_required
)
2176 __field(bool, block_tx
)
2178 __dynamic_array(u16
, bcn_ofs
, params
->n_counter_offsets_beacon
)
2179 __dynamic_array(u16
, pres_ofs
, params
->n_counter_offsets_presp
)
2184 CHAN_DEF_ASSIGN(¶ms
->chandef
);
2185 __entry
->radar_required
= params
->radar_required
;
2186 __entry
->block_tx
= params
->block_tx
;
2187 __entry
->count
= params
->count
;
2188 memcpy(__get_dynamic_array(bcn_ofs
),
2189 params
->counter_offsets_beacon
,
2190 params
->n_counter_offsets_beacon
* sizeof(u16
));
2192 /* probe response offsets are optional */
2193 if (params
->n_counter_offsets_presp
)
2194 memcpy(__get_dynamic_array(pres_ofs
),
2195 params
->counter_offsets_presp
,
2196 params
->n_counter_offsets_presp
* sizeof(u16
));
2198 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
2199 ", block_tx: %d, count: %u, radar_required: %d",
2200 WIPHY_PR_ARG
, NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
,
2201 __entry
->block_tx
, __entry
->count
, __entry
->radar_required
)
2204 TRACE_EVENT(rdev_set_qos_map
,
2205 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2206 struct cfg80211_qos_map
*qos_map
),
2207 TP_ARGS(wiphy
, netdev
, qos_map
),
2216 QOS_MAP_ASSIGN(qos_map
);
2218 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", num_des: %u",
2219 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->num_des
)
2222 TRACE_EVENT(rdev_set_ap_chanwidth
,
2223 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2224 struct cfg80211_chan_def
*chandef
),
2225 TP_ARGS(wiphy
, netdev
, chandef
),
2234 CHAN_DEF_ASSIGN(chandef
);
2236 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
,
2237 WIPHY_PR_ARG
, NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
)
2240 TRACE_EVENT(rdev_add_tx_ts
,
2241 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2242 u8 tsid
, const u8
*peer
, u8 user_prio
, u16 admitted_time
),
2243 TP_ARGS(wiphy
, netdev
, tsid
, peer
, user_prio
, admitted_time
),
2249 __field(u8
, user_prio
)
2250 __field(u16
, admitted_time
)
2255 MAC_ASSIGN(peer
, peer
);
2256 __entry
->tsid
= tsid
;
2257 __entry
->user_prio
= user_prio
;
2258 __entry
->admitted_time
= admitted_time
;
2260 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", TSID %d, UP %d, time %d",
2261 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
),
2262 __entry
->tsid
, __entry
->user_prio
, __entry
->admitted_time
)
2265 TRACE_EVENT(rdev_del_tx_ts
,
2266 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2267 u8 tsid
, const u8
*peer
),
2268 TP_ARGS(wiphy
, netdev
, tsid
, peer
),
2278 MAC_ASSIGN(peer
, peer
);
2279 __entry
->tsid
= tsid
;
2281 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", TSID %d",
2282 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->tsid
)
2285 TRACE_EVENT(rdev_tdls_channel_switch
,
2286 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2287 const u8
*addr
, u8 oper_class
,
2288 struct cfg80211_chan_def
*chandef
),
2289 TP_ARGS(wiphy
, netdev
, addr
, oper_class
, chandef
),
2294 __field(u8
, oper_class
)
2300 MAC_ASSIGN(addr
, addr
);
2301 CHAN_DEF_ASSIGN(chandef
);
2303 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
2304 " oper class %d, " CHAN_DEF_PR_FMT
,
2305 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(addr
),
2306 __entry
->oper_class
, CHAN_DEF_PR_ARG
)
2309 TRACE_EVENT(rdev_tdls_cancel_channel_switch
,
2310 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2312 TP_ARGS(wiphy
, netdev
, addr
),
2321 MAC_ASSIGN(addr
, addr
);
2323 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
,
2324 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(addr
))
2327 TRACE_EVENT(rdev_set_pmk
,
2328 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2329 struct cfg80211_pmk_conf
*pmk_conf
),
2331 TP_ARGS(wiphy
, netdev
, pmk_conf
),
2337 __field(u8
, pmk_len
)
2338 __field(u8
, pmk_r0_name_len
)
2339 __dynamic_array(u8
, pmk
, pmk_conf
->pmk_len
)
2340 __dynamic_array(u8
, pmk_r0_name
, WLAN_PMK_NAME_LEN
)
2346 MAC_ASSIGN(aa
, pmk_conf
->aa
);
2347 __entry
->pmk_len
= pmk_conf
->pmk_len
;
2348 __entry
->pmk_r0_name_len
=
2349 pmk_conf
->pmk_r0_name
? WLAN_PMK_NAME_LEN
: 0;
2350 memcpy(__get_dynamic_array(pmk
), pmk_conf
->pmk
,
2352 memcpy(__get_dynamic_array(pmk_r0_name
), pmk_conf
->pmk_r0_name
,
2353 pmk_conf
->pmk_r0_name
? WLAN_PMK_NAME_LEN
: 0);
2356 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
2357 "pmk_len=%u, pmk: %s pmk_r0_name: %s", WIPHY_PR_ARG
,
2358 NETDEV_PR_ARG
, MAC_PR_ARG(aa
), __entry
->pmk_len
,
2359 __print_array(__get_dynamic_array(pmk
),
2360 __get_dynamic_array_len(pmk
), 1),
2361 __entry
->pmk_r0_name_len
?
2362 __print_array(__get_dynamic_array(pmk_r0_name
),
2363 __get_dynamic_array_len(pmk_r0_name
), 1) : "")
2366 TRACE_EVENT(rdev_del_pmk
,
2367 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*aa
),
2369 TP_ARGS(wiphy
, netdev
, aa
),
2383 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
,
2384 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(aa
))
2387 TRACE_EVENT(rdev_external_auth
,
2388 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2389 struct cfg80211_external_auth_params
*params
),
2390 TP_ARGS(wiphy
, netdev
, params
),
2391 TP_STRUCT__entry(WIPHY_ENTRY
2394 __array(u8
, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
2395 __field(u16
, status
)
2397 TP_fast_assign(WIPHY_ASSIGN
;
2399 MAC_ASSIGN(bssid
, params
->bssid
);
2400 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
2401 memcpy(__entry
->ssid
, params
->ssid
.ssid
,
2402 params
->ssid
.ssid_len
);
2403 __entry
->status
= params
->status
;
2405 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
2406 ", ssid: %s, status: %u", WIPHY_PR_ARG
, NETDEV_PR_ARG
,
2407 __entry
->bssid
, __entry
->ssid
, __entry
->status
)
2410 TRACE_EVENT(rdev_start_radar_detection
,
2411 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2412 struct cfg80211_chan_def
*chandef
,
2414 TP_ARGS(wiphy
, netdev
, chandef
, cac_time_ms
),
2419 __field(u32
, cac_time_ms
)
2424 CHAN_DEF_ASSIGN(chandef
);
2425 __entry
->cac_time_ms
= cac_time_ms
;
2427 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
2429 WIPHY_PR_ARG
, NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
,
2430 __entry
->cac_time_ms
)
2433 TRACE_EVENT(rdev_set_mcast_rate
,
2434 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2436 TP_ARGS(wiphy
, netdev
, mcast_rate
),
2440 __array(int, mcast_rate
, NUM_NL80211_BANDS
)
2445 memcpy(__entry
->mcast_rate
, mcast_rate
,
2446 sizeof(int) * NUM_NL80211_BANDS
);
2448 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", "
2449 "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]",
2450 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
2451 __entry
->mcast_rate
[NL80211_BAND_2GHZ
],
2452 __entry
->mcast_rate
[NL80211_BAND_5GHZ
],
2453 __entry
->mcast_rate
[NL80211_BAND_60GHZ
])
2456 TRACE_EVENT(rdev_set_coalesce
,
2457 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_coalesce
*coalesce
),
2458 TP_ARGS(wiphy
, coalesce
),
2461 __field(int, n_rules
)
2465 __entry
->n_rules
= coalesce
? coalesce
->n_rules
: 0;
2467 TP_printk(WIPHY_PR_FMT
", n_rules=%d",
2468 WIPHY_PR_ARG
, __entry
->n_rules
)
2471 DEFINE_EVENT(wiphy_wdev_evt
, rdev_abort_scan
,
2472 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
2473 TP_ARGS(wiphy
, wdev
)
2476 TRACE_EVENT(rdev_set_multicast_to_unicast
,
2477 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2478 const bool enabled
),
2479 TP_ARGS(wiphy
, netdev
, enabled
),
2483 __field(bool, enabled
)
2488 __entry
->enabled
= enabled
;
2490 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", unicast: %s",
2491 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
2492 BOOL_TO_STR(__entry
->enabled
))
2495 DEFINE_EVENT(wiphy_wdev_evt
, rdev_get_txq_stats
,
2496 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
2497 TP_ARGS(wiphy
, wdev
)
2500 TRACE_EVENT(rdev_get_ftm_responder_stats
,
2501 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
2502 struct cfg80211_ftm_responder_stats
*ftm_stats
),
2504 TP_ARGS(wiphy
, netdev
, ftm_stats
),
2509 __field(u64
, timestamp
)
2510 __field(u32
, success_num
)
2511 __field(u32
, partial_num
)
2512 __field(u32
, failed_num
)
2513 __field(u32
, asap_num
)
2514 __field(u32
, non_asap_num
)
2515 __field(u64
, duration
)
2516 __field(u32
, unknown_triggers
)
2517 __field(u32
, reschedule
)
2518 __field(u32
, out_of_window
)
2524 __entry
->success_num
= ftm_stats
->success_num
;
2525 __entry
->partial_num
= ftm_stats
->partial_num
;
2526 __entry
->failed_num
= ftm_stats
->failed_num
;
2527 __entry
->asap_num
= ftm_stats
->asap_num
;
2528 __entry
->non_asap_num
= ftm_stats
->non_asap_num
;
2529 __entry
->duration
= ftm_stats
->total_duration_ms
;
2530 __entry
->unknown_triggers
= ftm_stats
->unknown_triggers_num
;
2531 __entry
->reschedule
= ftm_stats
->reschedule_requests_num
;
2532 __entry
->out_of_window
= ftm_stats
->out_of_window_triggers_num
;
2535 TP_printk(WIPHY_PR_FMT
"Ftm responder stats: success %u, partial %u, "
2536 "failed %u, asap %u, non asap %u, total duration %llu, unknown "
2537 "triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG
,
2538 __entry
->success_num
, __entry
->partial_num
, __entry
->failed_num
,
2539 __entry
->asap_num
, __entry
->non_asap_num
, __entry
->duration
,
2540 __entry
->unknown_triggers
, __entry
->reschedule
,
2541 __entry
->out_of_window
)
2544 DEFINE_EVENT(wiphy_wdev_cookie_evt
, rdev_start_pmsr
,
2545 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
2546 TP_ARGS(wiphy
, wdev
, cookie
)
2549 DEFINE_EVENT(wiphy_wdev_cookie_evt
, rdev_abort_pmsr
,
2550 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
2551 TP_ARGS(wiphy
, wdev
, cookie
)
2554 /*************************************************************
2555 * cfg80211 exported functions traces *
2556 *************************************************************/
2558 TRACE_EVENT(cfg80211_return_bool
,
2567 TP_printk("returned %s", BOOL_TO_STR(__entry
->ret
))
2570 DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt
,
2571 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
2572 TP_ARGS(netdev
, macaddr
),
2579 MAC_ASSIGN(macaddr
, macaddr
);
2581 TP_printk(NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
2582 NETDEV_PR_ARG
, MAC_PR_ARG(macaddr
))
2585 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_notify_new_peer_candidate
,
2586 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
2587 TP_ARGS(netdev
, macaddr
)
2590 DECLARE_EVENT_CLASS(netdev_evt_only
,
2591 TP_PROTO(struct net_device
*netdev
),
2599 TP_printk(NETDEV_PR_FMT
, NETDEV_PR_ARG
)
2602 DEFINE_EVENT(netdev_evt_only
, cfg80211_send_rx_auth
,
2603 TP_PROTO(struct net_device
*netdev
),
2607 TRACE_EVENT(cfg80211_send_rx_assoc
,
2608 TP_PROTO(struct net_device
*netdev
, struct cfg80211_bss
*bss
),
2609 TP_ARGS(netdev
, bss
),
2617 MAC_ASSIGN(bssid
, bss
->bssid
);
2618 CHAN_ASSIGN(bss
->channel
);
2620 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
", " CHAN_PR_FMT
,
2621 NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), CHAN_PR_ARG
)
2624 DECLARE_EVENT_CLASS(netdev_frame_event
,
2625 TP_PROTO(struct net_device
*netdev
, const u8
*buf
, int len
),
2626 TP_ARGS(netdev
, buf
, len
),
2629 __dynamic_array(u8
, frame
, len
)
2633 memcpy(__get_dynamic_array(frame
), buf
, len
);
2635 TP_printk(NETDEV_PR_FMT
", ftype:0x%.2x",
2637 le16_to_cpup((__le16
*)__get_dynamic_array(frame
)))
2640 DEFINE_EVENT(netdev_frame_event
, cfg80211_rx_unprot_mlme_mgmt
,
2641 TP_PROTO(struct net_device
*netdev
, const u8
*buf
, int len
),
2642 TP_ARGS(netdev
, buf
, len
)
2645 DEFINE_EVENT(netdev_frame_event
, cfg80211_rx_mlme_mgmt
,
2646 TP_PROTO(struct net_device
*netdev
, const u8
*buf
, int len
),
2647 TP_ARGS(netdev
, buf
, len
)
2650 TRACE_EVENT(cfg80211_tx_mlme_mgmt
,
2651 TP_PROTO(struct net_device
*netdev
, const u8
*buf
, int len
),
2652 TP_ARGS(netdev
, buf
, len
),
2655 __dynamic_array(u8
, frame
, len
)
2659 memcpy(__get_dynamic_array(frame
), buf
, len
);
2661 TP_printk(NETDEV_PR_FMT
", ftype:0x%.2x",
2663 le16_to_cpup((__le16
*)__get_dynamic_array(frame
)))
2666 DECLARE_EVENT_CLASS(netdev_mac_evt
,
2667 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
2668 TP_ARGS(netdev
, mac
),
2675 MAC_ASSIGN(mac
, mac
)
2677 TP_printk(NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
2678 NETDEV_PR_ARG
, MAC_PR_ARG(mac
))
2681 DEFINE_EVENT(netdev_mac_evt
, cfg80211_send_auth_timeout
,
2682 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
2683 TP_ARGS(netdev
, mac
)
2686 DEFINE_EVENT(netdev_mac_evt
, cfg80211_send_assoc_timeout
,
2687 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
2688 TP_ARGS(netdev
, mac
)
2691 TRACE_EVENT(cfg80211_michael_mic_failure
,
2692 TP_PROTO(struct net_device
*netdev
, const u8
*addr
,
2693 enum nl80211_key_type key_type
, int key_id
, const u8
*tsc
),
2694 TP_ARGS(netdev
, addr
, key_type
, key_id
, tsc
),
2698 __field(enum nl80211_key_type
, key_type
)
2699 __field(int, key_id
)
2704 MAC_ASSIGN(addr
, addr
);
2705 __entry
->key_type
= key_type
;
2706 __entry
->key_id
= key_id
;
2708 memcpy(__entry
->tsc
, tsc
, 6);
2710 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
", key type: %d, key id: %d, tsc: %pm",
2711 NETDEV_PR_ARG
, MAC_PR_ARG(addr
), __entry
->key_type
,
2712 __entry
->key_id
, __entry
->tsc
)
2715 TRACE_EVENT(cfg80211_ready_on_channel
,
2716 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
,
2717 struct ieee80211_channel
*chan
,
2718 unsigned int duration
),
2719 TP_ARGS(wdev
, cookie
, chan
, duration
),
2722 __field(u64
, cookie
)
2724 __field(unsigned int, duration
)
2728 __entry
->cookie
= cookie
;
2730 __entry
->duration
= duration
;
2732 TP_printk(WDEV_PR_FMT
", cookie: %llu, " CHAN_PR_FMT
", duration: %u",
2733 WDEV_PR_ARG
, __entry
->cookie
, CHAN_PR_ARG
,
2737 TRACE_EVENT(cfg80211_ready_on_channel_expired
,
2738 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
,
2739 struct ieee80211_channel
*chan
),
2740 TP_ARGS(wdev
, cookie
, chan
),
2743 __field(u64
, cookie
)
2748 __entry
->cookie
= cookie
;
2751 TP_printk(WDEV_PR_FMT
", cookie: %llu, " CHAN_PR_FMT
,
2752 WDEV_PR_ARG
, __entry
->cookie
, CHAN_PR_ARG
)
2755 TRACE_EVENT(cfg80211_new_sta
,
2756 TP_PROTO(struct net_device
*netdev
, const u8
*mac_addr
,
2757 struct station_info
*sinfo
),
2758 TP_ARGS(netdev
, mac_addr
, sinfo
),
2766 MAC_ASSIGN(mac_addr
, mac_addr
);
2769 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
,
2770 NETDEV_PR_ARG
, MAC_PR_ARG(mac_addr
))
2773 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_del_sta
,
2774 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
2775 TP_ARGS(netdev
, macaddr
)
2778 TRACE_EVENT(cfg80211_rx_mgmt
,
2779 TP_PROTO(struct wireless_dev
*wdev
, int freq
, int sig_dbm
),
2780 TP_ARGS(wdev
, freq
, sig_dbm
),
2784 __field(int, sig_dbm
)
2788 __entry
->freq
= freq
;
2789 __entry
->sig_dbm
= sig_dbm
;
2791 TP_printk(WDEV_PR_FMT
", freq: %d, sig dbm: %d",
2792 WDEV_PR_ARG
, __entry
->freq
, __entry
->sig_dbm
)
2795 TRACE_EVENT(cfg80211_mgmt_tx_status
,
2796 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
, bool ack
),
2797 TP_ARGS(wdev
, cookie
, ack
),
2800 __field(u64
, cookie
)
2805 __entry
->cookie
= cookie
;
2808 TP_printk(WDEV_PR_FMT
", cookie: %llu, ack: %s",
2809 WDEV_PR_ARG
, __entry
->cookie
, BOOL_TO_STR(__entry
->ack
))
2812 TRACE_EVENT(cfg80211_rx_control_port
,
2813 TP_PROTO(struct net_device
*netdev
, struct sk_buff
*skb
,
2815 TP_ARGS(netdev
, skb
, unencrypted
),
2821 __field(bool, unencrypted
)
2825 __entry
->len
= skb
->len
;
2826 MAC_ASSIGN(from
, eth_hdr(skb
)->h_source
);
2827 __entry
->proto
= be16_to_cpu(skb
->protocol
);
2828 __entry
->unencrypted
= unencrypted
;
2830 TP_printk(NETDEV_PR_FMT
", len=%d, " MAC_PR_FMT
", proto: 0x%x, unencrypted: %s",
2831 NETDEV_PR_ARG
, __entry
->len
, MAC_PR_ARG(from
),
2832 __entry
->proto
, BOOL_TO_STR(__entry
->unencrypted
))
2835 TRACE_EVENT(cfg80211_cqm_rssi_notify
,
2836 TP_PROTO(struct net_device
*netdev
,
2837 enum nl80211_cqm_rssi_threshold_event rssi_event
,
2839 TP_ARGS(netdev
, rssi_event
, rssi_level
),
2842 __field(enum nl80211_cqm_rssi_threshold_event
, rssi_event
)
2843 __field(s32
, rssi_level
)
2847 __entry
->rssi_event
= rssi_event
;
2848 __entry
->rssi_level
= rssi_level
;
2850 TP_printk(NETDEV_PR_FMT
", rssi event: %d, level: %d",
2851 NETDEV_PR_ARG
, __entry
->rssi_event
, __entry
->rssi_level
)
2854 TRACE_EVENT(cfg80211_reg_can_beacon
,
2855 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_chan_def
*chandef
,
2856 enum nl80211_iftype iftype
, bool check_no_ir
),
2857 TP_ARGS(wiphy
, chandef
, iftype
, check_no_ir
),
2861 __field(enum nl80211_iftype
, iftype
)
2862 __field(bool, check_no_ir
)
2866 CHAN_DEF_ASSIGN(chandef
);
2867 __entry
->iftype
= iftype
;
2868 __entry
->check_no_ir
= check_no_ir
;
2870 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
", iftype=%d check_no_ir=%s",
2871 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
, __entry
->iftype
,
2872 BOOL_TO_STR(__entry
->check_no_ir
))
2875 TRACE_EVENT(cfg80211_chandef_dfs_required
,
2876 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_chan_def
*chandef
),
2877 TP_ARGS(wiphy
, chandef
),
2884 CHAN_DEF_ASSIGN(chandef
);
2886 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
,
2887 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
)
2890 TRACE_EVENT(cfg80211_ch_switch_notify
,
2891 TP_PROTO(struct net_device
*netdev
,
2892 struct cfg80211_chan_def
*chandef
),
2893 TP_ARGS(netdev
, chandef
),
2900 CHAN_DEF_ASSIGN(chandef
);
2902 TP_printk(NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
,
2903 NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
)
2906 TRACE_EVENT(cfg80211_ch_switch_started_notify
,
2907 TP_PROTO(struct net_device
*netdev
,
2908 struct cfg80211_chan_def
*chandef
),
2909 TP_ARGS(netdev
, chandef
),
2916 CHAN_DEF_ASSIGN(chandef
);
2918 TP_printk(NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
,
2919 NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
)
2922 TRACE_EVENT(cfg80211_radar_event
,
2923 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_chan_def
*chandef
),
2924 TP_ARGS(wiphy
, chandef
),
2931 CHAN_DEF_ASSIGN(chandef
);
2933 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
,
2934 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
)
2937 TRACE_EVENT(cfg80211_cac_event
,
2938 TP_PROTO(struct net_device
*netdev
, enum nl80211_radar_event evt
),
2939 TP_ARGS(netdev
, evt
),
2942 __field(enum nl80211_radar_event
, evt
)
2948 TP_printk(NETDEV_PR_FMT
", event: %d",
2949 NETDEV_PR_ARG
, __entry
->evt
)
2952 DECLARE_EVENT_CLASS(cfg80211_rx_evt
,
2953 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2954 TP_ARGS(netdev
, addr
),
2961 MAC_ASSIGN(addr
, addr
);
2963 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
, NETDEV_PR_ARG
, MAC_PR_ARG(addr
))
2966 DEFINE_EVENT(cfg80211_rx_evt
, cfg80211_rx_spurious_frame
,
2967 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2968 TP_ARGS(netdev
, addr
)
2971 DEFINE_EVENT(cfg80211_rx_evt
, cfg80211_rx_unexpected_4addr_frame
,
2972 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2973 TP_ARGS(netdev
, addr
)
2976 TRACE_EVENT(cfg80211_ibss_joined
,
2977 TP_PROTO(struct net_device
*netdev
, const u8
*bssid
,
2978 struct ieee80211_channel
*channel
),
2979 TP_ARGS(netdev
, bssid
, channel
),
2987 MAC_ASSIGN(bssid
, bssid
);
2988 CHAN_ASSIGN(channel
);
2990 TP_printk(NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
", " CHAN_PR_FMT
,
2991 NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), CHAN_PR_ARG
)
2994 TRACE_EVENT(cfg80211_probe_status
,
2995 TP_PROTO(struct net_device
*netdev
, const u8
*addr
, u64 cookie
,
2997 TP_ARGS(netdev
, addr
, cookie
, acked
),
3001 __field(u64
, cookie
)
3002 __field(bool, acked
)
3006 MAC_ASSIGN(addr
, addr
);
3007 __entry
->cookie
= cookie
;
3008 __entry
->acked
= acked
;
3010 TP_printk(NETDEV_PR_FMT
" addr:" MAC_PR_FMT
", cookie: %llu, acked: %s",
3011 NETDEV_PR_ARG
, MAC_PR_ARG(addr
), __entry
->cookie
,
3012 BOOL_TO_STR(__entry
->acked
))
3015 TRACE_EVENT(cfg80211_cqm_pktloss_notify
,
3016 TP_PROTO(struct net_device
*netdev
, const u8
*peer
, u32 num_packets
),
3017 TP_ARGS(netdev
, peer
, num_packets
),
3021 __field(u32
, num_packets
)
3025 MAC_ASSIGN(peer
, peer
);
3026 __entry
->num_packets
= num_packets
;
3028 TP_printk(NETDEV_PR_FMT
", peer: " MAC_PR_FMT
", num of lost packets: %u",
3029 NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->num_packets
)
3032 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_gtk_rekey_notify
,
3033 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
3034 TP_ARGS(netdev
, macaddr
)
3037 TRACE_EVENT(cfg80211_pmksa_candidate_notify
,
3038 TP_PROTO(struct net_device
*netdev
, int index
, const u8
*bssid
,
3040 TP_ARGS(netdev
, index
, bssid
, preauth
),
3045 __field(bool, preauth
)
3049 __entry
->index
= index
;
3050 MAC_ASSIGN(bssid
, bssid
);
3051 __entry
->preauth
= preauth
;
3053 TP_printk(NETDEV_PR_FMT
", index:%d, bssid: " MAC_PR_FMT
", pre auth: %s",
3054 NETDEV_PR_ARG
, __entry
->index
, MAC_PR_ARG(bssid
),
3055 BOOL_TO_STR(__entry
->preauth
))
3058 TRACE_EVENT(cfg80211_report_obss_beacon
,
3059 TP_PROTO(struct wiphy
*wiphy
, const u8
*frame
, size_t len
,
3060 int freq
, int sig_dbm
),
3061 TP_ARGS(wiphy
, frame
, len
, freq
, sig_dbm
),
3065 __field(int, sig_dbm
)
3069 __entry
->freq
= freq
;
3070 __entry
->sig_dbm
= sig_dbm
;
3072 TP_printk(WIPHY_PR_FMT
", freq: %d, sig_dbm: %d",
3073 WIPHY_PR_ARG
, __entry
->freq
, __entry
->sig_dbm
)
3076 TRACE_EVENT(cfg80211_tdls_oper_request
,
3077 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*peer
,
3078 enum nl80211_tdls_operation oper
, u16 reason_code
),
3079 TP_ARGS(wiphy
, netdev
, peer
, oper
, reason_code
),
3084 __field(enum nl80211_tdls_operation
, oper
)
3085 __field(u16
, reason_code
)
3090 MAC_ASSIGN(peer
, peer
);
3091 __entry
->oper
= oper
;
3092 __entry
->reason_code
= reason_code
;
3094 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
", oper: %d, reason_code %u",
3095 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->oper
,
3096 __entry
->reason_code
)
3099 TRACE_EVENT(cfg80211_scan_done
,
3100 TP_PROTO(struct cfg80211_scan_request
*request
,
3101 struct cfg80211_scan_info
*info
),
3102 TP_ARGS(request
, info
),
3104 __field(u32
, n_channels
)
3105 __dynamic_array(u8
, ie
, request
? request
->ie_len
: 0)
3106 __array(u32
, rates
, NUM_NL80211_BANDS
)
3107 __field(u32
, wdev_id
)
3108 MAC_ENTRY(wiphy_mac
)
3109 __field(bool, no_cck
)
3110 __field(bool, aborted
)
3111 __field(u64
, scan_start_tsf
)
3112 MAC_ENTRY(tsf_bssid
)
3116 memcpy(__get_dynamic_array(ie
), request
->ie
,
3118 memcpy(__entry
->rates
, request
->rates
,
3120 __entry
->wdev_id
= request
->wdev
?
3121 request
->wdev
->identifier
: 0;
3123 MAC_ASSIGN(wiphy_mac
,
3124 request
->wiphy
->perm_addr
);
3125 __entry
->no_cck
= request
->no_cck
;
3128 __entry
->aborted
= info
->aborted
;
3129 __entry
->scan_start_tsf
= info
->scan_start_tsf
;
3130 MAC_ASSIGN(tsf_bssid
, info
->tsf_bssid
);
3133 TP_printk("aborted: %s, scan start (TSF): %llu, tsf_bssid: " MAC_PR_FMT
,
3134 BOOL_TO_STR(__entry
->aborted
),
3135 (unsigned long long)__entry
->scan_start_tsf
,
3136 MAC_PR_ARG(tsf_bssid
))
3139 DECLARE_EVENT_CLASS(wiphy_id_evt
,
3140 TP_PROTO(struct wiphy
*wiphy
, u64 id
),
3150 TP_printk(WIPHY_PR_FMT
", id: %llu", WIPHY_PR_ARG
, __entry
->id
)
3153 DEFINE_EVENT(wiphy_id_evt
, cfg80211_sched_scan_stopped
,
3154 TP_PROTO(struct wiphy
*wiphy
, u64 id
),
3158 DEFINE_EVENT(wiphy_id_evt
, cfg80211_sched_scan_results
,
3159 TP_PROTO(struct wiphy
*wiphy
, u64 id
),
3163 TRACE_EVENT(cfg80211_get_bss
,
3164 TP_PROTO(struct wiphy
*wiphy
, struct ieee80211_channel
*channel
,
3165 const u8
*bssid
, const u8
*ssid
, size_t ssid_len
,
3166 enum ieee80211_bss_type bss_type
,
3167 enum ieee80211_privacy privacy
),
3168 TP_ARGS(wiphy
, channel
, bssid
, ssid
, ssid_len
, bss_type
, privacy
),
3173 __dynamic_array(u8
, ssid
, ssid_len
)
3174 __field(enum ieee80211_bss_type
, bss_type
)
3175 __field(enum ieee80211_privacy
, privacy
)
3179 CHAN_ASSIGN(channel
);
3180 MAC_ASSIGN(bssid
, bssid
);
3181 memcpy(__get_dynamic_array(ssid
), ssid
, ssid_len
);
3182 __entry
->bss_type
= bss_type
;
3183 __entry
->privacy
= privacy
;
3185 TP_printk(WIPHY_PR_FMT
", " CHAN_PR_FMT
", " MAC_PR_FMT
3186 ", buf: %#.2x, bss_type: %d, privacy: %d",
3187 WIPHY_PR_ARG
, CHAN_PR_ARG
, MAC_PR_ARG(bssid
),
3188 ((u8
*)__get_dynamic_array(ssid
))[0], __entry
->bss_type
,
3192 TRACE_EVENT(cfg80211_inform_bss_frame
,
3193 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_inform_bss
*data
,
3194 struct ieee80211_mgmt
*mgmt
, size_t len
),
3195 TP_ARGS(wiphy
, data
, mgmt
, len
),
3199 __field(enum nl80211_bss_scan_width
, scan_width
)
3200 __dynamic_array(u8
, mgmt
, len
)
3201 __field(s32
, signal
)
3202 __field(u64
, ts_boottime
)
3203 __field(u64
, parent_tsf
)
3204 MAC_ENTRY(parent_bssid
)
3208 CHAN_ASSIGN(data
->chan
);
3209 __entry
->scan_width
= data
->scan_width
;
3211 memcpy(__get_dynamic_array(mgmt
), mgmt
, len
);
3212 __entry
->signal
= data
->signal
;
3213 __entry
->ts_boottime
= data
->boottime_ns
;
3214 __entry
->parent_tsf
= data
->parent_tsf
;
3215 MAC_ASSIGN(parent_bssid
, data
->parent_bssid
);
3217 TP_printk(WIPHY_PR_FMT
", " CHAN_PR_FMT
3218 "(scan_width: %d) signal: %d, tsb:%llu, detect_tsf:%llu, tsf_bssid: "
3219 MAC_PR_FMT
, WIPHY_PR_ARG
, CHAN_PR_ARG
, __entry
->scan_width
,
3220 __entry
->signal
, (unsigned long long)__entry
->ts_boottime
,
3221 (unsigned long long)__entry
->parent_tsf
,
3222 MAC_PR_ARG(parent_bssid
))
3225 DECLARE_EVENT_CLASS(cfg80211_bss_evt
,
3226 TP_PROTO(struct cfg80211_bss
*pub
),
3233 MAC_ASSIGN(bssid
, pub
->bssid
);
3234 CHAN_ASSIGN(pub
->channel
);
3236 TP_printk(MAC_PR_FMT
", " CHAN_PR_FMT
, MAC_PR_ARG(bssid
), CHAN_PR_ARG
)
3239 DEFINE_EVENT(cfg80211_bss_evt
, cfg80211_return_bss
,
3240 TP_PROTO(struct cfg80211_bss
*pub
),
3244 TRACE_EVENT(cfg80211_return_uint
,
3245 TP_PROTO(unsigned int ret
),
3248 __field(unsigned int, ret
)
3253 TP_printk("ret: %d", __entry
->ret
)
3256 TRACE_EVENT(cfg80211_return_u32
,
3265 TP_printk("ret: %u", __entry
->ret
)
3268 TRACE_EVENT(cfg80211_report_wowlan_wakeup
,
3269 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
3270 struct cfg80211_wowlan_wakeup
*wakeup
),
3271 TP_ARGS(wiphy
, wdev
, wakeup
),
3275 __field(bool, non_wireless
)
3276 __field(bool, disconnect
)
3277 __field(bool, magic_pkt
)
3278 __field(bool, gtk_rekey_failure
)
3279 __field(bool, eap_identity_req
)
3280 __field(bool, four_way_handshake
)
3281 __field(bool, rfkill_release
)
3282 __field(s32
, pattern_idx
)
3283 __field(u32
, packet_len
)
3284 __dynamic_array(u8
, packet
,
3285 wakeup
? wakeup
->packet_present_len
: 0)
3290 __entry
->non_wireless
= !wakeup
;
3291 __entry
->disconnect
= wakeup
? wakeup
->disconnect
: false;
3292 __entry
->magic_pkt
= wakeup
? wakeup
->magic_pkt
: false;
3293 __entry
->gtk_rekey_failure
= wakeup
? wakeup
->gtk_rekey_failure
: false;
3294 __entry
->eap_identity_req
= wakeup
? wakeup
->eap_identity_req
: false;
3295 __entry
->four_way_handshake
= wakeup
? wakeup
->four_way_handshake
: false;
3296 __entry
->rfkill_release
= wakeup
? wakeup
->rfkill_release
: false;
3297 __entry
->pattern_idx
= wakeup
? wakeup
->pattern_idx
: false;
3298 __entry
->packet_len
= wakeup
? wakeup
->packet_len
: false;
3299 if (wakeup
&& wakeup
->packet
&& wakeup
->packet_present_len
)
3300 memcpy(__get_dynamic_array(packet
), wakeup
->packet
,
3301 wakeup
->packet_present_len
);
3303 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
, WIPHY_PR_ARG
, WDEV_PR_ARG
)
3306 TRACE_EVENT(cfg80211_ft_event
,
3307 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
3308 struct cfg80211_ft_event_params
*ft_event
),
3309 TP_ARGS(wiphy
, netdev
, ft_event
),
3313 __dynamic_array(u8
, ies
, ft_event
->ies_len
)
3314 MAC_ENTRY(target_ap
)
3315 __dynamic_array(u8
, ric_ies
, ft_event
->ric_ies_len
)
3321 memcpy(__get_dynamic_array(ies
), ft_event
->ies
,
3323 MAC_ASSIGN(target_ap
, ft_event
->target_ap
);
3324 if (ft_event
->ric_ies
)
3325 memcpy(__get_dynamic_array(ric_ies
), ft_event
->ric_ies
,
3326 ft_event
->ric_ies_len
);
3328 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", target_ap: " MAC_PR_FMT
,
3329 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(target_ap
))
3332 TRACE_EVENT(cfg80211_stop_iface
,
3333 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
3334 TP_ARGS(wiphy
, wdev
),
3343 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
,
3344 WIPHY_PR_ARG
, WDEV_PR_ARG
)
3347 TRACE_EVENT(cfg80211_pmsr_report
,
3348 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
3349 u64 cookie
, const u8
*addr
),
3350 TP_ARGS(wiphy
, wdev
, cookie
, addr
),
3354 __field(u64
, cookie
)
3360 __entry
->cookie
= cookie
;
3361 MAC_ASSIGN(addr
, addr
);
3363 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie:%lld, " MAC_PR_FMT
,
3364 WIPHY_PR_ARG
, WDEV_PR_ARG
,
3365 (unsigned long long)__entry
->cookie
,
3369 TRACE_EVENT(cfg80211_pmsr_complete
,
3370 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
3371 TP_ARGS(wiphy
, wdev
, cookie
),
3375 __field(u64
, cookie
)
3380 __entry
->cookie
= cookie
;
3382 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie:%lld",
3383 WIPHY_PR_ARG
, WDEV_PR_ARG
,
3384 (unsigned long long)__entry
->cookie
)
3387 TRACE_EVENT(rdev_update_owe_info
,
3388 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
3389 struct cfg80211_update_owe_info
*owe_info
),
3390 TP_ARGS(wiphy
, netdev
, owe_info
),
3391 TP_STRUCT__entry(WIPHY_ENTRY
3394 __field(u16
, status
)
3395 __dynamic_array(u8
, ie
, owe_info
->ie_len
)),
3396 TP_fast_assign(WIPHY_ASSIGN
;
3398 MAC_ASSIGN(peer
, owe_info
->peer
);
3399 __entry
->status
= owe_info
->status
;
3400 memcpy(__get_dynamic_array(ie
),
3401 owe_info
->ie
, owe_info
->ie_len
);),
3402 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
3403 " status %d", WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
),
3407 TRACE_EVENT(cfg80211_update_owe_info_event
,
3408 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
3409 struct cfg80211_update_owe_info
*owe_info
),
3410 TP_ARGS(wiphy
, netdev
, owe_info
),
3411 TP_STRUCT__entry(WIPHY_ENTRY
3414 __dynamic_array(u8
, ie
, owe_info
->ie_len
)),
3415 TP_fast_assign(WIPHY_ASSIGN
;
3417 MAC_ASSIGN(peer
, owe_info
->peer
);
3418 memcpy(__get_dynamic_array(ie
), owe_info
->ie
,
3419 owe_info
->ie_len
);),
3420 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
,
3421 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
))
3424 TRACE_EVENT(rdev_probe_mesh_link
,
3425 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
3426 const u8
*dest
, const u8
*buf
, size_t len
),
3427 TP_ARGS(wiphy
, netdev
, dest
, buf
, len
),
3436 MAC_ASSIGN(dest
, dest
);
3438 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
,
3439 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(dest
))
3442 #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
3444 #undef TRACE_INCLUDE_PATH
3445 #define TRACE_INCLUDE_PATH .
3446 #undef TRACE_INCLUDE_FILE
3447 #define TRACE_INCLUDE_FILE trace
3448 #include <trace/define_trace.h>