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)
24 #define WIPHY_ENTRY __array(char, wiphy_name, 32)
25 #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME)
26 #define WIPHY_PR_FMT "%s"
27 #define WIPHY_PR_ARG __entry->wiphy_name
29 #define WDEV_ENTRY __field(u32, id)
30 #define WDEV_ASSIGN (__entry->id) = (wdev ? wdev->identifier : 0)
31 #define WDEV_PR_FMT "wdev(%u)"
32 #define WDEV_PR_ARG (__entry->id)
34 #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \
36 #define NETDEV_ASSIGN \
38 memcpy(__entry->name, netdev->name, IFNAMSIZ); \
39 (__entry->ifindex) = (netdev->ifindex); \
41 #define NETDEV_PR_FMT "netdev:%s(%d)"
42 #define NETDEV_PR_ARG __entry->name, __entry->ifindex
44 #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \
45 __field(u16, dot11MeshConfirmTimeout) \
46 __field(u16, dot11MeshHoldingTimeout) \
47 __field(u16, dot11MeshMaxPeerLinks) \
48 __field(u8, dot11MeshMaxRetries) \
49 __field(u8, dot11MeshTTL) \
50 __field(u8, element_ttl) \
51 __field(bool, auto_open_plinks) \
52 __field(u32, dot11MeshNbrOffsetMaxNeighbor) \
53 __field(u8, dot11MeshHWMPmaxPREQretries) \
54 __field(u32, path_refresh_time) \
55 __field(u32, dot11MeshHWMPactivePathTimeout) \
56 __field(u16, min_discovery_timeout) \
57 __field(u16, dot11MeshHWMPpreqMinInterval) \
58 __field(u16, dot11MeshHWMPperrMinInterval) \
59 __field(u16, dot11MeshHWMPnetDiameterTraversalTime) \
60 __field(u8, dot11MeshHWMPRootMode) \
61 __field(u16, dot11MeshHWMPRannInterval) \
62 __field(bool, dot11MeshGateAnnouncementProtocol) \
63 __field(bool, dot11MeshForwarding) \
64 __field(s32, rssi_threshold) \
65 __field(u16, ht_opmode) \
66 __field(u32, dot11MeshHWMPactivePathToRootTimeout) \
67 __field(u16, dot11MeshHWMProotInterval) \
68 __field(u16, dot11MeshHWMPconfirmationInterval)
69 #define MESH_CFG_ASSIGN \
71 __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \
72 __entry->dot11MeshConfirmTimeout = \
73 conf->dot11MeshConfirmTimeout; \
74 __entry->dot11MeshHoldingTimeout = \
75 conf->dot11MeshHoldingTimeout; \
76 __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \
77 __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \
78 __entry->dot11MeshTTL = conf->dot11MeshTTL; \
79 __entry->element_ttl = conf->element_ttl; \
80 __entry->auto_open_plinks = conf->auto_open_plinks; \
81 __entry->dot11MeshNbrOffsetMaxNeighbor = \
82 conf->dot11MeshNbrOffsetMaxNeighbor; \
83 __entry->dot11MeshHWMPmaxPREQretries = \
84 conf->dot11MeshHWMPmaxPREQretries; \
85 __entry->path_refresh_time = conf->path_refresh_time; \
86 __entry->dot11MeshHWMPactivePathTimeout = \
87 conf->dot11MeshHWMPactivePathTimeout; \
88 __entry->min_discovery_timeout = conf->min_discovery_timeout; \
89 __entry->dot11MeshHWMPpreqMinInterval = \
90 conf->dot11MeshHWMPpreqMinInterval; \
91 __entry->dot11MeshHWMPperrMinInterval = \
92 conf->dot11MeshHWMPperrMinInterval; \
93 __entry->dot11MeshHWMPnetDiameterTraversalTime = \
94 conf->dot11MeshHWMPnetDiameterTraversalTime; \
95 __entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \
96 __entry->dot11MeshHWMPRannInterval = \
97 conf->dot11MeshHWMPRannInterval; \
98 __entry->dot11MeshGateAnnouncementProtocol = \
99 conf->dot11MeshGateAnnouncementProtocol; \
100 __entry->dot11MeshForwarding = conf->dot11MeshForwarding; \
101 __entry->rssi_threshold = conf->rssi_threshold; \
102 __entry->ht_opmode = conf->ht_opmode; \
103 __entry->dot11MeshHWMPactivePathToRootTimeout = \
104 conf->dot11MeshHWMPactivePathToRootTimeout; \
105 __entry->dot11MeshHWMProotInterval = \
106 conf->dot11MeshHWMProotInterval; \
107 __entry->dot11MeshHWMPconfirmationInterval = \
108 conf->dot11MeshHWMPconfirmationInterval; \
111 #define CHAN_ENTRY __field(enum ieee80211_band, band) \
112 __field(u16, center_freq)
113 #define CHAN_ASSIGN(chan) \
116 __entry->band = chan->band; \
117 __entry->center_freq = chan->center_freq; \
120 __entry->center_freq = 0; \
123 #define CHAN_PR_FMT "band: %d, freq: %u"
124 #define CHAN_PR_ARG __entry->band, __entry->center_freq
126 #define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \
127 __field(u32, control_freq) \
128 __field(u32, width) \
129 __field(u32, center_freq1) \
130 __field(u32, center_freq2)
131 #define CHAN_DEF_ASSIGN(chandef) \
133 if ((chandef) && (chandef)->chan) { \
134 __entry->band = (chandef)->chan->band; \
135 __entry->control_freq = \
136 (chandef)->chan->center_freq; \
137 __entry->width = (chandef)->width; \
138 __entry->center_freq1 = (chandef)->center_freq1;\
139 __entry->center_freq2 = (chandef)->center_freq2;\
142 __entry->control_freq = 0; \
143 __entry->width = 0; \
144 __entry->center_freq1 = 0; \
145 __entry->center_freq2 = 0; \
148 #define CHAN_DEF_PR_FMT \
149 "band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u"
150 #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \
151 __entry->width, __entry->center_freq1, \
152 __entry->center_freq2
154 #define SINFO_ENTRY __field(int, generation) \
155 __field(u32, connected_time) \
156 __field(u32, inactive_time) \
157 __field(u32, rx_bytes) \
158 __field(u32, tx_bytes) \
159 __field(u32, rx_packets) \
160 __field(u32, tx_packets) \
161 __field(u32, tx_retries) \
162 __field(u32, tx_failed) \
163 __field(u32, rx_dropped_misc) \
164 __field(u32, beacon_loss_count) \
167 __field(u8, plink_state)
168 #define SINFO_ASSIGN \
170 __entry->generation = sinfo->generation; \
171 __entry->connected_time = sinfo->connected_time; \
172 __entry->inactive_time = sinfo->inactive_time; \
173 __entry->rx_bytes = sinfo->rx_bytes; \
174 __entry->tx_bytes = sinfo->tx_bytes; \
175 __entry->rx_packets = sinfo->rx_packets; \
176 __entry->tx_packets = sinfo->tx_packets; \
177 __entry->tx_retries = sinfo->tx_retries; \
178 __entry->tx_failed = sinfo->tx_failed; \
179 __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \
180 __entry->beacon_loss_count = sinfo->beacon_loss_count; \
181 __entry->llid = sinfo->llid; \
182 __entry->plid = sinfo->plid; \
183 __entry->plink_state = sinfo->plink_state; \
186 #define BOOL_TO_STR(bo) (bo) ? "true" : "false"
188 /*************************************************************
190 *************************************************************/
192 TRACE_EVENT(rdev_suspend
,
193 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_wowlan
*wow
),
198 __field(bool, disconnect
)
199 __field(bool, magic_pkt
)
200 __field(bool, gtk_rekey_failure
)
201 __field(bool, eap_identity_req
)
202 __field(bool, four_way_handshake
)
203 __field(bool, rfkill_release
)
204 __field(bool, valid_wow
)
209 __entry
->any
= wow
->any
;
210 __entry
->disconnect
= wow
->disconnect
;
211 __entry
->magic_pkt
= wow
->magic_pkt
;
212 __entry
->gtk_rekey_failure
= wow
->gtk_rekey_failure
;
213 __entry
->eap_identity_req
= wow
->eap_identity_req
;
214 __entry
->four_way_handshake
= wow
->four_way_handshake
;
215 __entry
->rfkill_release
= wow
->rfkill_release
;
216 __entry
->valid_wow
= true;
218 __entry
->valid_wow
= false;
221 TP_printk(WIPHY_PR_FMT
", wow%s - any: %d, disconnect: %d, "
222 "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, "
223 "four way handshake: %d, rfkill release: %d.",
224 WIPHY_PR_ARG
, __entry
->valid_wow
? "" : "(Not configured!)",
225 __entry
->any
, __entry
->disconnect
, __entry
->magic_pkt
,
226 __entry
->gtk_rekey_failure
, __entry
->eap_identity_req
,
227 __entry
->four_way_handshake
, __entry
->rfkill_release
)
230 TRACE_EVENT(rdev_return_int
,
231 TP_PROTO(struct wiphy
*wiphy
, int ret
),
241 TP_printk(WIPHY_PR_FMT
", returned: %d", WIPHY_PR_ARG
, __entry
->ret
)
244 TRACE_EVENT(rdev_scan
,
245 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_scan_request
*request
),
246 TP_ARGS(wiphy
, request
),
253 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
256 DECLARE_EVENT_CLASS(wiphy_only_evt
,
257 TP_PROTO(struct wiphy
*wiphy
),
265 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
268 DEFINE_EVENT(wiphy_only_evt
, rdev_resume
,
269 TP_PROTO(struct wiphy
*wiphy
),
273 DEFINE_EVENT(wiphy_only_evt
, rdev_return_void
,
274 TP_PROTO(struct wiphy
*wiphy
),
278 DEFINE_EVENT(wiphy_only_evt
, rdev_get_ringparam
,
279 TP_PROTO(struct wiphy
*wiphy
),
283 DEFINE_EVENT(wiphy_only_evt
, rdev_get_antenna
,
284 TP_PROTO(struct wiphy
*wiphy
),
288 DEFINE_EVENT(wiphy_only_evt
, rdev_rfkill_poll
,
289 TP_PROTO(struct wiphy
*wiphy
),
293 DECLARE_EVENT_CLASS(wiphy_enabled_evt
,
294 TP_PROTO(struct wiphy
*wiphy
, bool enabled
),
295 TP_ARGS(wiphy
, enabled
),
298 __field(bool, enabled
)
302 __entry
->enabled
= enabled
;
304 TP_printk(WIPHY_PR_FMT
", %senabled ",
305 WIPHY_PR_ARG
, __entry
->enabled
? "" : "not ")
308 DEFINE_EVENT(wiphy_enabled_evt
, rdev_set_wakeup
,
309 TP_PROTO(struct wiphy
*wiphy
, bool enabled
),
310 TP_ARGS(wiphy
, enabled
)
313 TRACE_EVENT(rdev_add_virtual_intf
,
314 TP_PROTO(struct wiphy
*wiphy
, char *name
, enum nl80211_iftype type
),
315 TP_ARGS(wiphy
, name
, type
),
318 __string(vir_intf_name
, name
? name
: "<noname>")
319 __field(enum nl80211_iftype
, type
)
323 __assign_str(vir_intf_name
, name
? name
: "<noname>");
324 __entry
->type
= type
;
326 TP_printk(WIPHY_PR_FMT
", virtual intf name: %s, type: %d",
327 WIPHY_PR_ARG
, __get_str(vir_intf_name
), __entry
->type
)
330 DECLARE_EVENT_CLASS(wiphy_wdev_evt
,
331 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
332 TP_ARGS(wiphy
, wdev
),
341 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
, WIPHY_PR_ARG
, WDEV_PR_ARG
)
344 DEFINE_EVENT(wiphy_wdev_evt
, rdev_return_wdev
,
345 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
349 DEFINE_EVENT(wiphy_wdev_evt
, rdev_del_virtual_intf
,
350 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
354 TRACE_EVENT(rdev_change_virtual_intf
,
355 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
356 enum nl80211_iftype type
),
357 TP_ARGS(wiphy
, netdev
, type
),
361 __field(enum nl80211_iftype
, type
)
366 __entry
->type
= type
;
368 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", type: %d",
369 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->type
)
372 DECLARE_EVENT_CLASS(key_handle
,
373 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
374 bool pairwise
, const u8
*mac_addr
),
375 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
),
380 __field(u8
, key_index
)
381 __field(bool, pairwise
)
386 MAC_ASSIGN(mac_addr
, mac_addr
);
387 __entry
->key_index
= key_index
;
388 __entry
->pairwise
= pairwise
;
390 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT
,
391 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
,
392 BOOL_TO_STR(__entry
->pairwise
), MAC_PR_ARG(mac_addr
))
395 DEFINE_EVENT(key_handle
, rdev_add_key
,
396 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
397 bool pairwise
, const u8
*mac_addr
),
398 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
)
401 DEFINE_EVENT(key_handle
, rdev_get_key
,
402 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
403 bool pairwise
, const u8
*mac_addr
),
404 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
)
407 DEFINE_EVENT(key_handle
, rdev_del_key
,
408 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
409 bool pairwise
, const u8
*mac_addr
),
410 TP_ARGS(wiphy
, netdev
, key_index
, pairwise
, mac_addr
)
413 TRACE_EVENT(rdev_set_default_key
,
414 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
,
415 bool unicast
, bool multicast
),
416 TP_ARGS(wiphy
, netdev
, key_index
, unicast
, multicast
),
420 __field(u8
, key_index
)
421 __field(bool, unicast
)
422 __field(bool, multicast
)
427 __entry
->key_index
= key_index
;
428 __entry
->unicast
= unicast
;
429 __entry
->multicast
= multicast
;
431 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key index: %u, unicast: %s, multicast: %s",
432 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
,
433 BOOL_TO_STR(__entry
->unicast
),
434 BOOL_TO_STR(__entry
->multicast
))
437 TRACE_EVENT(rdev_set_default_mgmt_key
,
438 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8 key_index
),
439 TP_ARGS(wiphy
, netdev
, key_index
),
443 __field(u8
, key_index
)
448 __entry
->key_index
= key_index
;
450 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", key index: %u",
451 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->key_index
)
454 TRACE_EVENT(rdev_start_ap
,
455 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
456 struct cfg80211_ap_settings
*settings
),
457 TP_ARGS(wiphy
, netdev
, settings
),
462 __field(int, beacon_interval
)
463 __field(int, dtim_period
)
464 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
465 __field(enum nl80211_hidden_ssid
, hidden_ssid
)
466 __field(u32
, wpa_ver
)
467 __field(bool, privacy
)
468 __field(enum nl80211_auth_type
, auth_type
)
469 __field(int, inactivity_timeout
)
474 CHAN_DEF_ASSIGN(&settings
->chandef
);
475 __entry
->beacon_interval
= settings
->beacon_interval
;
476 __entry
->dtim_period
= settings
->dtim_period
;
477 __entry
->hidden_ssid
= settings
->hidden_ssid
;
478 __entry
->wpa_ver
= settings
->crypto
.wpa_versions
;
479 __entry
->privacy
= settings
->privacy
;
480 __entry
->auth_type
= settings
->auth_type
;
481 __entry
->inactivity_timeout
= settings
->inactivity_timeout
;
482 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
483 memcpy(__entry
->ssid
, settings
->ssid
, settings
->ssid_len
);
485 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", AP settings - ssid: %s, "
486 CHAN_DEF_PR_FMT
", beacon interval: %d, dtim period: %d, "
487 "hidden ssid: %d, wpa versions: %u, privacy: %s, "
488 "auth type: %d, inactivity timeout: %d",
489 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->ssid
, CHAN_DEF_PR_ARG
,
490 __entry
->beacon_interval
, __entry
->dtim_period
,
491 __entry
->hidden_ssid
, __entry
->wpa_ver
,
492 BOOL_TO_STR(__entry
->privacy
), __entry
->auth_type
,
493 __entry
->inactivity_timeout
)
496 TRACE_EVENT(rdev_change_beacon
,
497 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
498 struct cfg80211_beacon_data
*info
),
499 TP_ARGS(wiphy
, netdev
, info
),
503 __dynamic_array(u8
, head
, info
? info
->head_len
: 0)
504 __dynamic_array(u8
, tail
, info
? info
->tail_len
: 0)
505 __dynamic_array(u8
, beacon_ies
, info
? info
->beacon_ies_len
: 0)
506 __dynamic_array(u8
, proberesp_ies
,
507 info
? info
->proberesp_ies_len
: 0)
508 __dynamic_array(u8
, assocresp_ies
,
509 info
? info
->assocresp_ies_len
: 0)
510 __dynamic_array(u8
, probe_resp
, info
? info
->probe_resp_len
: 0)
517 memcpy(__get_dynamic_array(head
), info
->head
,
520 memcpy(__get_dynamic_array(tail
), info
->tail
,
522 if (info
->beacon_ies
)
523 memcpy(__get_dynamic_array(beacon_ies
),
524 info
->beacon_ies
, info
->beacon_ies_len
);
525 if (info
->proberesp_ies
)
526 memcpy(__get_dynamic_array(proberesp_ies
),
528 info
->proberesp_ies_len
);
529 if (info
->assocresp_ies
)
530 memcpy(__get_dynamic_array(assocresp_ies
),
532 info
->assocresp_ies_len
);
533 if (info
->probe_resp
)
534 memcpy(__get_dynamic_array(probe_resp
),
535 info
->probe_resp
, info
->probe_resp_len
);
538 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
, WIPHY_PR_ARG
, NETDEV_PR_ARG
)
541 DECLARE_EVENT_CLASS(wiphy_netdev_evt
,
542 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
543 TP_ARGS(wiphy
, netdev
),
552 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
, WIPHY_PR_ARG
, NETDEV_PR_ARG
)
555 DEFINE_EVENT(wiphy_netdev_evt
, rdev_stop_ap
,
556 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
557 TP_ARGS(wiphy
, netdev
)
560 DEFINE_EVENT(wiphy_netdev_evt
, rdev_get_et_stats
,
561 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
562 TP_ARGS(wiphy
, netdev
)
565 DEFINE_EVENT(wiphy_netdev_evt
, rdev_sched_scan_stop
,
566 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
567 TP_ARGS(wiphy
, netdev
)
570 DEFINE_EVENT(wiphy_netdev_evt
, rdev_set_rekey_data
,
571 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
572 TP_ARGS(wiphy
, netdev
)
575 DEFINE_EVENT(wiphy_netdev_evt
, rdev_get_mesh_config
,
576 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
577 TP_ARGS(wiphy
, netdev
)
580 DEFINE_EVENT(wiphy_netdev_evt
, rdev_leave_mesh
,
581 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
582 TP_ARGS(wiphy
, netdev
)
585 DEFINE_EVENT(wiphy_netdev_evt
, rdev_leave_ibss
,
586 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
587 TP_ARGS(wiphy
, netdev
)
590 DEFINE_EVENT(wiphy_netdev_evt
, rdev_flush_pmksa
,
591 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
),
592 TP_ARGS(wiphy
, netdev
)
595 DECLARE_EVENT_CLASS(station_add_change
,
596 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
597 struct station_parameters
*params
),
598 TP_ARGS(wiphy
, netdev
, mac
, params
),
603 __field(u32
, sta_flags_mask
)
604 __field(u32
, sta_flags_set
)
605 __field(u32
, sta_modify_mask
)
606 __field(int, listen_interval
)
608 __field(u8
, plink_action
)
609 __field(u8
, plink_state
)
610 __field(u8
, uapsd_queues
)
611 __array(u8
, ht_capa
, (int)sizeof(struct ieee80211_ht_cap
))
616 MAC_ASSIGN(sta_mac
, mac
);
617 __entry
->sta_flags_mask
= params
->sta_flags_mask
;
618 __entry
->sta_flags_set
= params
->sta_flags_set
;
619 __entry
->sta_modify_mask
= params
->sta_modify_mask
;
620 __entry
->listen_interval
= params
->listen_interval
;
621 __entry
->aid
= params
->aid
;
622 __entry
->plink_action
= params
->plink_action
;
623 __entry
->plink_state
= params
->plink_state
;
624 __entry
->uapsd_queues
= params
->uapsd_queues
;
625 memset(__entry
->ht_capa
, 0, sizeof(struct ieee80211_ht_cap
));
627 memcpy(__entry
->ht_capa
, params
->ht_capa
,
628 sizeof(struct ieee80211_ht_cap
));
630 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", station mac: " MAC_PR_FMT
631 ", station flags mask: %u, station flags set: %u, "
632 "station modify mask: %u, listen interval: %d, aid: %u, "
633 "plink action: %u, plink state: %u, uapsd queues: %u",
634 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
),
635 __entry
->sta_flags_mask
, __entry
->sta_flags_set
,
636 __entry
->sta_modify_mask
, __entry
->listen_interval
,
637 __entry
->aid
, __entry
->plink_action
, __entry
->plink_state
,
638 __entry
->uapsd_queues
)
641 DEFINE_EVENT(station_add_change
, rdev_add_station
,
642 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
643 struct station_parameters
*params
),
644 TP_ARGS(wiphy
, netdev
, mac
, params
)
647 DEFINE_EVENT(station_add_change
, rdev_change_station
,
648 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*mac
,
649 struct station_parameters
*params
),
650 TP_ARGS(wiphy
, netdev
, mac
, params
)
653 DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt
,
654 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
655 TP_ARGS(wiphy
, netdev
, mac
),
664 MAC_ASSIGN(sta_mac
, mac
);
666 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
667 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
))
670 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_del_station
,
671 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
672 TP_ARGS(wiphy
, netdev
, mac
)
675 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_get_station
,
676 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
677 TP_ARGS(wiphy
, netdev
, mac
)
680 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_del_mpath
,
681 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
682 TP_ARGS(wiphy
, netdev
, mac
)
685 DEFINE_EVENT(wiphy_netdev_mac_evt
, rdev_set_wds_peer
,
686 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*mac
),
687 TP_ARGS(wiphy
, netdev
, mac
)
690 TRACE_EVENT(rdev_dump_station
,
691 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int idx
,
693 TP_ARGS(wiphy
, netdev
, idx
, mac
),
703 MAC_ASSIGN(sta_mac
, mac
);
706 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", station mac: " MAC_PR_FMT
", idx: %d",
707 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(sta_mac
),
711 TRACE_EVENT(rdev_return_int_station_info
,
712 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct station_info
*sinfo
),
713 TP_ARGS(wiphy
, ret
, sinfo
),
724 TP_printk(WIPHY_PR_FMT
", returned %d" ,
725 WIPHY_PR_ARG
, __entry
->ret
)
728 DECLARE_EVENT_CLASS(mpath_evt
,
729 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
731 TP_ARGS(wiphy
, netdev
, dst
, next_hop
),
741 MAC_ASSIGN(dst
, dst
);
742 MAC_ASSIGN(next_hop
, next_hop
);
744 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", destination: " MAC_PR_FMT
", next hop: " MAC_PR_FMT
,
745 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(dst
),
746 MAC_PR_ARG(next_hop
))
749 DEFINE_EVENT(mpath_evt
, rdev_add_mpath
,
750 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
752 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
755 DEFINE_EVENT(mpath_evt
, rdev_change_mpath
,
756 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
758 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
761 DEFINE_EVENT(mpath_evt
, rdev_get_mpath
,
762 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u8
*dst
,
764 TP_ARGS(wiphy
, netdev
, dst
, next_hop
)
767 TRACE_EVENT(rdev_dump_mpath
,
768 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int idx
,
769 u8
*dst
, u8
*next_hop
),
770 TP_ARGS(wiphy
, netdev
, idx
, dst
, next_hop
),
781 MAC_ASSIGN(dst
, dst
);
782 MAC_ASSIGN(next_hop
, next_hop
);
785 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", index: %d, destination: "
786 MAC_PR_FMT
", next hop: " MAC_PR_FMT
,
787 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->idx
, MAC_PR_ARG(dst
),
788 MAC_PR_ARG(next_hop
))
791 TRACE_EVENT(rdev_return_int_mpath_info
,
792 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct mpath_info
*pinfo
),
793 TP_ARGS(wiphy
, ret
, pinfo
),
797 __field(int, generation
)
799 __field(u32
, frame_qlen
)
802 __field(u32
, exptime
)
803 __field(u32
, discovery_timeout
)
804 __field(u8
, discovery_retries
)
810 __entry
->generation
= pinfo
->generation
;
811 __entry
->filled
= pinfo
->filled
;
812 __entry
->frame_qlen
= pinfo
->frame_qlen
;
813 __entry
->sn
= pinfo
->sn
;
814 __entry
->metric
= pinfo
->metric
;
815 __entry
->exptime
= pinfo
->exptime
;
816 __entry
->discovery_timeout
= pinfo
->discovery_timeout
;
817 __entry
->discovery_retries
= pinfo
->discovery_retries
;
818 __entry
->flags
= pinfo
->flags
;
820 TP_printk(WIPHY_PR_FMT
", returned %d. mpath info - generation: %d, "
821 "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u,"
822 " discovery timeout: %u, discovery retries: %u, flags: %u",
823 WIPHY_PR_ARG
, __entry
->ret
, __entry
->generation
,
824 __entry
->filled
, __entry
->frame_qlen
, __entry
->sn
,
825 __entry
->metric
, __entry
->exptime
, __entry
->discovery_timeout
,
826 __entry
->discovery_retries
, __entry
->flags
)
829 TRACE_EVENT(rdev_return_int_mesh_config
,
830 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct mesh_config
*conf
),
831 TP_ARGS(wiphy
, ret
, conf
),
842 TP_printk(WIPHY_PR_FMT
", returned: %d",
843 WIPHY_PR_ARG
, __entry
->ret
)
846 TRACE_EVENT(rdev_update_mesh_config
,
847 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u32 mask
,
848 const struct mesh_config
*conf
),
849 TP_ARGS(wiphy
, netdev
, mask
, conf
),
860 __entry
->mask
= mask
;
862 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", mask: %u",
863 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->mask
)
866 TRACE_EVENT(rdev_join_mesh
,
867 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
868 const struct mesh_config
*conf
,
869 const struct mesh_setup
*setup
),
870 TP_ARGS(wiphy
, netdev
, conf
, setup
),
881 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
,
882 WIPHY_PR_ARG
, NETDEV_PR_ARG
)
885 TRACE_EVENT(rdev_change_bss
,
886 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
887 struct bss_parameters
*params
),
888 TP_ARGS(wiphy
, netdev
, params
),
892 __field(int, use_cts_prot
)
893 __field(int, use_short_preamble
)
894 __field(int, use_short_slot_time
)
895 __field(int, ap_isolate
)
896 __field(int, ht_opmode
)
901 __entry
->use_cts_prot
= params
->use_cts_prot
;
902 __entry
->use_short_preamble
= params
->use_short_preamble
;
903 __entry
->use_short_slot_time
= params
->use_short_slot_time
;
904 __entry
->ap_isolate
= params
->ap_isolate
;
905 __entry
->ht_opmode
= params
->ht_opmode
;
907 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", use cts prot: %d, "
908 "use short preamble: %d, use short slot time: %d, "
909 "ap isolate: %d, ht opmode: %d",
910 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->use_cts_prot
,
911 __entry
->use_short_preamble
, __entry
->use_short_slot_time
,
912 __entry
->ap_isolate
, __entry
->ht_opmode
)
915 TRACE_EVENT(rdev_set_txq_params
,
916 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
917 struct ieee80211_txq_params
*params
),
918 TP_ARGS(wiphy
, netdev
, params
),
922 __field(enum nl80211_ac
, ac
)
931 __entry
->ac
= params
->ac
;
932 __entry
->txop
= params
->txop
;
933 __entry
->cwmin
= params
->cwmin
;
934 __entry
->cwmax
= params
->cwmax
;
935 __entry
->aifs
= params
->aifs
;
937 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u",
938 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->ac
, __entry
->txop
,
939 __entry
->cwmin
, __entry
->cwmax
, __entry
->aifs
)
942 TRACE_EVENT(rdev_libertas_set_mesh_channel
,
943 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
944 struct ieee80211_channel
*chan
),
945 TP_ARGS(wiphy
, netdev
, chan
),
956 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " CHAN_PR_FMT
, WIPHY_PR_ARG
,
957 NETDEV_PR_ARG
, CHAN_PR_ARG
)
960 TRACE_EVENT(rdev_set_monitor_channel
,
961 TP_PROTO(struct wiphy
*wiphy
,
962 struct cfg80211_chan_def
*chandef
),
963 TP_ARGS(wiphy
, chandef
),
970 CHAN_DEF_ASSIGN(chandef
);
972 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
,
973 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
)
976 TRACE_EVENT(rdev_auth
,
977 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
978 struct cfg80211_auth_request
*req
),
979 TP_ARGS(wiphy
, netdev
, req
),
984 __field(enum nl80211_auth_type
, auth_type
)
990 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
992 memset(__entry
->bssid
, 0, ETH_ALEN
);
993 __entry
->auth_type
= req
->auth_type
;
995 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", auth type: %d, bssid: " MAC_PR_FMT
,
996 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->auth_type
,
1000 TRACE_EVENT(rdev_assoc
,
1001 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1002 struct cfg80211_assoc_request
*req
),
1003 TP_ARGS(wiphy
, netdev
, req
),
1008 MAC_ENTRY(prev_bssid
)
1009 __field(bool, use_mfp
)
1016 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
1018 memset(__entry
->bssid
, 0, ETH_ALEN
);
1019 MAC_ASSIGN(prev_bssid
, req
->prev_bssid
);
1020 __entry
->use_mfp
= req
->use_mfp
;
1021 __entry
->flags
= req
->flags
;
1023 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1024 ", previous bssid: " MAC_PR_FMT
", use mfp: %s, flags: %u",
1025 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1026 MAC_PR_ARG(prev_bssid
), BOOL_TO_STR(__entry
->use_mfp
),
1030 TRACE_EVENT(rdev_deauth
,
1031 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1032 struct cfg80211_deauth_request
*req
),
1033 TP_ARGS(wiphy
, netdev
, req
),
1038 __field(u16
, reason_code
)
1043 MAC_ASSIGN(bssid
, req
->bssid
);
1044 __entry
->reason_code
= req
->reason_code
;
1046 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
", reason: %u",
1047 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1048 __entry
->reason_code
)
1051 TRACE_EVENT(rdev_disassoc
,
1052 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1053 struct cfg80211_disassoc_request
*req
),
1054 TP_ARGS(wiphy
, netdev
, req
),
1059 __field(u16
, reason_code
)
1060 __field(bool, local_state_change
)
1066 MAC_ASSIGN(bssid
, req
->bss
->bssid
);
1068 memset(__entry
->bssid
, 0, ETH_ALEN
);
1069 __entry
->reason_code
= req
->reason_code
;
1070 __entry
->local_state_change
= req
->local_state_change
;
1072 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1073 ", reason: %u, local state change: %s",
1074 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
),
1075 __entry
->reason_code
,
1076 BOOL_TO_STR(__entry
->local_state_change
))
1079 TRACE_EVENT(rdev_mgmt_tx_cancel_wait
,
1080 TP_PROTO(struct wiphy
*wiphy
,
1081 struct wireless_dev
*wdev
, u64 cookie
),
1082 TP_ARGS(wiphy
, wdev
, cookie
),
1086 __field(u64
, cookie
)
1091 __entry
->cookie
= cookie
;
1093 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie: %llu ",
1094 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->cookie
)
1097 TRACE_EVENT(rdev_set_power_mgmt
,
1098 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1099 bool enabled
, int timeout
),
1100 TP_ARGS(wiphy
, netdev
, enabled
, timeout
),
1104 __field(bool, enabled
)
1105 __field(int, timeout
)
1110 __entry
->enabled
= enabled
;
1111 __entry
->timeout
= timeout
;
1113 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", %senabled, timeout: %d ",
1114 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
1115 __entry
->enabled
? "" : "not ", __entry
->timeout
)
1118 TRACE_EVENT(rdev_connect
,
1119 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1120 struct cfg80211_connect_params
*sme
),
1121 TP_ARGS(wiphy
, netdev
, sme
),
1126 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
1127 __field(enum nl80211_auth_type
, auth_type
)
1128 __field(bool, privacy
)
1129 __field(u32
, wpa_versions
)
1135 MAC_ASSIGN(bssid
, sme
->bssid
);
1136 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
1137 memcpy(__entry
->ssid
, sme
->ssid
, sme
->ssid_len
);
1138 __entry
->auth_type
= sme
->auth_type
;
1139 __entry
->privacy
= sme
->privacy
;
1140 __entry
->wpa_versions
= sme
->crypto
.wpa_versions
;
1141 __entry
->flags
= sme
->flags
;
1143 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
1144 ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, "
1146 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), __entry
->ssid
,
1147 __entry
->auth_type
, BOOL_TO_STR(__entry
->privacy
),
1148 __entry
->wpa_versions
, __entry
->flags
)
1151 TRACE_EVENT(rdev_set_cqm_rssi_config
,
1152 TP_PROTO(struct wiphy
*wiphy
,
1153 struct net_device
*netdev
, s32 rssi_thold
,
1155 TP_ARGS(wiphy
, netdev
, rssi_thold
, rssi_hyst
),
1159 __field(s32
, rssi_thold
)
1160 __field(u32
, rssi_hyst
)
1165 __entry
->rssi_thold
= rssi_thold
;
1166 __entry
->rssi_hyst
= rssi_hyst
;
1168 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
1169 ", rssi_thold: %d, rssi_hyst: %u ",
1170 WIPHY_PR_ARG
, NETDEV_PR_ARG
,
1171 __entry
->rssi_thold
, __entry
->rssi_hyst
)
1174 TRACE_EVENT(rdev_set_cqm_txe_config
,
1175 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u32 rate
,
1176 u32 pkts
, u32 intvl
),
1177 TP_ARGS(wiphy
, netdev
, rate
, pkts
, intvl
),
1188 __entry
->rate
= rate
;
1189 __entry
->pkts
= pkts
;
1190 __entry
->intvl
= intvl
;
1192 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", rate: %u, packets: %u, interval: %u",
1193 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->rate
, __entry
->pkts
,
1197 TRACE_EVENT(rdev_disconnect
,
1198 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1200 TP_ARGS(wiphy
, netdev
, reason_code
),
1204 __field(u16
, reason_code
)
1209 __entry
->reason_code
= reason_code
;
1211 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", reason code: %u", WIPHY_PR_ARG
,
1212 NETDEV_PR_ARG
, __entry
->reason_code
)
1215 TRACE_EVENT(rdev_join_ibss
,
1216 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1217 struct cfg80211_ibss_params
*params
),
1218 TP_ARGS(wiphy
, netdev
, params
),
1223 __array(char, ssid
, IEEE80211_MAX_SSID_LEN
+ 1)
1228 MAC_ASSIGN(bssid
, params
->bssid
);
1229 memset(__entry
->ssid
, 0, IEEE80211_MAX_SSID_LEN
+ 1);
1230 memcpy(__entry
->ssid
, params
->ssid
, params
->ssid_len
);
1232 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
", ssid: %s",
1233 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), __entry
->ssid
)
1236 TRACE_EVENT(rdev_set_wiphy_params
,
1237 TP_PROTO(struct wiphy
*wiphy
, u32 changed
),
1238 TP_ARGS(wiphy
, changed
),
1241 __field(u32
, changed
)
1245 __entry
->changed
= changed
;
1247 TP_printk(WIPHY_PR_FMT
", changed: %u",
1248 WIPHY_PR_ARG
, __entry
->changed
)
1251 DEFINE_EVENT(wiphy_wdev_evt
, rdev_get_tx_power
,
1252 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1253 TP_ARGS(wiphy
, wdev
)
1256 TRACE_EVENT(rdev_set_tx_power
,
1257 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1258 enum nl80211_tx_power_setting type
, int mbm
),
1259 TP_ARGS(wiphy
, wdev
, type
, mbm
),
1263 __field(enum nl80211_tx_power_setting
, type
)
1269 __entry
->type
= type
;
1272 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", type: %u, mbm: %d",
1273 WIPHY_PR_ARG
, WDEV_PR_ARG
,__entry
->type
, __entry
->mbm
)
1276 TRACE_EVENT(rdev_return_int_int
,
1277 TP_PROTO(struct wiphy
*wiphy
, int func_ret
, int func_fill
),
1278 TP_ARGS(wiphy
, func_ret
, func_fill
),
1281 __field(int, func_ret
)
1282 __field(int, func_fill
)
1286 __entry
->func_ret
= func_ret
;
1287 __entry
->func_fill
= func_fill
;
1289 TP_printk(WIPHY_PR_FMT
", function returns: %d, function filled: %d",
1290 WIPHY_PR_ARG
, __entry
->func_ret
, __entry
->func_fill
)
1293 #ifdef CONFIG_NL80211_TESTMODE
1294 TRACE_EVENT(rdev_testmode_cmd
,
1295 TP_PROTO(struct wiphy
*wiphy
),
1303 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
1306 TRACE_EVENT(rdev_testmode_dump
,
1307 TP_PROTO(struct wiphy
*wiphy
),
1315 TP_printk(WIPHY_PR_FMT
, WIPHY_PR_ARG
)
1317 #endif /* CONFIG_NL80211_TESTMODE */
1319 TRACE_EVENT(rdev_set_bitrate_mask
,
1320 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1321 const u8
*peer
, const struct cfg80211_bitrate_mask
*mask
),
1322 TP_ARGS(wiphy
, netdev
, peer
, mask
),
1331 MAC_ASSIGN(peer
, peer
);
1333 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
,
1334 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
))
1337 TRACE_EVENT(rdev_mgmt_frame_register
,
1338 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1339 u16 frame_type
, bool reg
),
1340 TP_ARGS(wiphy
, wdev
, frame_type
, reg
),
1344 __field(u16
, frame_type
)
1350 __entry
->frame_type
= frame_type
;
1353 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", frame_type: 0x%.2x, reg: %s ",
1354 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->frame_type
,
1355 __entry
->reg
? "true" : "false")
1358 TRACE_EVENT(rdev_return_int_tx_rx
,
1359 TP_PROTO(struct wiphy
*wiphy
, int ret
, u32 tx
, u32 rx
),
1360 TP_ARGS(wiphy
, ret
, tx
, rx
),
1373 TP_printk(WIPHY_PR_FMT
", returned %d, tx: %u, rx: %u",
1374 WIPHY_PR_ARG
, __entry
->ret
, __entry
->tx
, __entry
->rx
)
1377 TRACE_EVENT(rdev_return_void_tx_rx
,
1378 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 tx_max
,
1379 u32 rx
, u32 rx_max
),
1380 TP_ARGS(wiphy
, tx
, tx_max
, rx
, rx_max
),
1384 __field(u32
, tx_max
)
1386 __field(u32
, rx_max
)
1391 __entry
->tx_max
= tx_max
;
1393 __entry
->rx_max
= rx_max
;
1395 TP_printk(WIPHY_PR_FMT
", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
1396 WIPHY_PR_ARG
, __entry
->tx
, __entry
->tx_max
, __entry
->rx
,
1400 DECLARE_EVENT_CLASS(tx_rx_evt
,
1401 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 rx
),
1402 TP_ARGS(wiphy
, rx
, tx
),
1413 TP_printk(WIPHY_PR_FMT
", tx: %u, rx: %u ",
1414 WIPHY_PR_ARG
, __entry
->tx
, __entry
->rx
)
1417 DEFINE_EVENT(tx_rx_evt
, rdev_set_ringparam
,
1418 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 rx
),
1419 TP_ARGS(wiphy
, rx
, tx
)
1422 DEFINE_EVENT(tx_rx_evt
, rdev_set_antenna
,
1423 TP_PROTO(struct wiphy
*wiphy
, u32 tx
, u32 rx
),
1424 TP_ARGS(wiphy
, rx
, tx
)
1427 TRACE_EVENT(rdev_sched_scan_start
,
1428 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1429 struct cfg80211_sched_scan_request
*request
),
1430 TP_ARGS(wiphy
, netdev
, request
),
1439 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
,
1440 WIPHY_PR_ARG
, NETDEV_PR_ARG
)
1443 TRACE_EVENT(rdev_tdls_mgmt
,
1444 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1445 u8
*peer
, u8 action_code
, u8 dialog_token
,
1446 u16 status_code
, const u8
*buf
, size_t len
),
1447 TP_ARGS(wiphy
, netdev
, peer
, action_code
, dialog_token
, status_code
,
1453 __field(u8
, action_code
)
1454 __field(u8
, dialog_token
)
1455 __field(u16
, status_code
)
1456 __dynamic_array(u8
, buf
, len
)
1461 MAC_ASSIGN(peer
, peer
);
1462 __entry
->action_code
= action_code
;
1463 __entry
->dialog_token
= dialog_token
;
1464 __entry
->status_code
= status_code
;
1465 memcpy(__get_dynamic_array(buf
), buf
, len
);
1467 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", action_code: %u, "
1468 "dialog_token: %u, status_code: %u, buf: %#.2x ",
1469 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
),
1470 __entry
->action_code
, __entry
->dialog_token
,
1471 __entry
->status_code
, ((u8
*)__get_dynamic_array(buf
))[0])
1474 TRACE_EVENT(rdev_dump_survey
,
1475 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int idx
),
1476 TP_ARGS(wiphy
, netdev
, idx
),
1487 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", index: %d",
1488 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->idx
)
1491 TRACE_EVENT(rdev_return_int_survey_info
,
1492 TP_PROTO(struct wiphy
*wiphy
, int ret
, struct survey_info
*info
),
1493 TP_ARGS(wiphy
, ret
, info
),
1498 __field(u64
, channel_time
)
1499 __field(u64
, channel_time_busy
)
1500 __field(u64
, channel_time_ext_busy
)
1501 __field(u64
, channel_time_rx
)
1502 __field(u64
, channel_time_tx
)
1503 __field(u32
, filled
)
1508 CHAN_ASSIGN(info
->channel
);
1510 __entry
->channel_time
= info
->channel_time
;
1511 __entry
->channel_time_busy
= info
->channel_time_busy
;
1512 __entry
->channel_time_ext_busy
= info
->channel_time_ext_busy
;
1513 __entry
->channel_time_rx
= info
->channel_time_rx
;
1514 __entry
->channel_time_tx
= info
->channel_time_tx
;
1515 __entry
->filled
= info
->filled
;
1516 __entry
->noise
= info
->noise
;
1518 TP_printk(WIPHY_PR_FMT
", returned: %d, " CHAN_PR_FMT
1519 ", channel time: %llu, channel time busy: %llu, "
1520 "channel time extension busy: %llu, channel time rx: %llu, "
1521 "channel time tx: %llu, filled: %u, noise: %d",
1522 WIPHY_PR_ARG
, __entry
->ret
, CHAN_PR_ARG
,
1523 __entry
->channel_time
, __entry
->channel_time_busy
,
1524 __entry
->channel_time_ext_busy
, __entry
->channel_time_rx
,
1525 __entry
->channel_time_tx
, __entry
->filled
, __entry
->noise
)
1528 TRACE_EVENT(rdev_tdls_oper
,
1529 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1530 u8
*peer
, enum nl80211_tdls_operation oper
),
1531 TP_ARGS(wiphy
, netdev
, peer
, oper
),
1536 __field(enum nl80211_tdls_operation
, oper
)
1541 MAC_ASSIGN(peer
, peer
);
1542 __entry
->oper
= oper
;
1544 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
", oper: %d",
1545 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->oper
)
1548 DECLARE_EVENT_CLASS(rdev_pmksa
,
1549 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1550 struct cfg80211_pmksa
*pmksa
),
1551 TP_ARGS(wiphy
, netdev
, pmksa
),
1560 MAC_ASSIGN(bssid
, pmksa
->bssid
);
1562 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", bssid: " MAC_PR_FMT
,
1563 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(bssid
))
1566 TRACE_EVENT(rdev_probe_client
,
1567 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1569 TP_ARGS(wiphy
, netdev
, peer
),
1578 MAC_ASSIGN(peer
, peer
);
1580 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", " MAC_PR_FMT
,
1581 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
))
1584 DEFINE_EVENT(rdev_pmksa
, rdev_set_pmksa
,
1585 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1586 struct cfg80211_pmksa
*pmksa
),
1587 TP_ARGS(wiphy
, netdev
, pmksa
)
1590 DEFINE_EVENT(rdev_pmksa
, rdev_del_pmksa
,
1591 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1592 struct cfg80211_pmksa
*pmksa
),
1593 TP_ARGS(wiphy
, netdev
, pmksa
)
1596 TRACE_EVENT(rdev_remain_on_channel
,
1597 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1598 struct ieee80211_channel
*chan
,
1599 unsigned int duration
),
1600 TP_ARGS(wiphy
, wdev
, chan
, duration
),
1605 __field(unsigned int, duration
)
1611 __entry
->duration
= duration
;
1613 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", " CHAN_PR_FMT
", duration: %u",
1614 WIPHY_PR_ARG
, WDEV_PR_ARG
, CHAN_PR_ARG
, __entry
->duration
)
1617 TRACE_EVENT(rdev_return_int_cookie
,
1618 TP_PROTO(struct wiphy
*wiphy
, int ret
, u64 cookie
),
1619 TP_ARGS(wiphy
, ret
, cookie
),
1623 __field(u64
, cookie
)
1628 __entry
->cookie
= cookie
;
1630 TP_printk(WIPHY_PR_FMT
", returned %d, cookie: %llu",
1631 WIPHY_PR_ARG
, __entry
->ret
, __entry
->cookie
)
1634 TRACE_EVENT(rdev_cancel_remain_on_channel
,
1635 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
, u64 cookie
),
1636 TP_ARGS(wiphy
, wdev
, cookie
),
1640 __field(u64
, cookie
)
1645 __entry
->cookie
= cookie
;
1647 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", cookie: %llu",
1648 WIPHY_PR_ARG
, WDEV_PR_ARG
, __entry
->cookie
)
1651 TRACE_EVENT(rdev_mgmt_tx
,
1652 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
,
1653 struct ieee80211_channel
*chan
, bool offchan
,
1654 unsigned int wait
, bool no_cck
, bool dont_wait_for_ack
),
1655 TP_ARGS(wiphy
, wdev
, chan
, offchan
, wait
, no_cck
, dont_wait_for_ack
),
1660 __field(bool, offchan
)
1661 __field(unsigned int, wait
)
1662 __field(bool, no_cck
)
1663 __field(bool, dont_wait_for_ack
)
1669 __entry
->offchan
= offchan
;
1670 __entry
->wait
= wait
;
1671 __entry
->no_cck
= no_cck
;
1672 __entry
->dont_wait_for_ack
= dont_wait_for_ack
;
1674 TP_printk(WIPHY_PR_FMT
", " WDEV_PR_FMT
", " CHAN_PR_FMT
", offchan: %s,"
1675 " wait: %u, no cck: %s, dont wait for ack: %s",
1676 WIPHY_PR_ARG
, WDEV_PR_ARG
, CHAN_PR_ARG
,
1677 BOOL_TO_STR(__entry
->offchan
), __entry
->wait
,
1678 BOOL_TO_STR(__entry
->no_cck
),
1679 BOOL_TO_STR(__entry
->dont_wait_for_ack
))
1682 TRACE_EVENT(rdev_set_noack_map
,
1683 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
,
1685 TP_ARGS(wiphy
, netdev
, noack_map
),
1689 __field(u16
, noack_map
)
1694 __entry
->noack_map
= noack_map
;
1696 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", noack_map: %u",
1697 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->noack_map
)
1700 TRACE_EVENT(rdev_get_et_sset_count
,
1701 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, int sset
),
1702 TP_ARGS(wiphy
, netdev
, sset
),
1711 __entry
->sset
= sset
;
1713 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", sset: %d",
1714 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->sset
)
1717 TRACE_EVENT(rdev_get_et_strings
,
1718 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, u32 sset
),
1719 TP_ARGS(wiphy
, netdev
, sset
),
1728 __entry
->sset
= sset
;
1730 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", sset: %u",
1731 WIPHY_PR_ARG
, NETDEV_PR_ARG
, __entry
->sset
)
1734 DEFINE_EVENT(wiphy_wdev_evt
, rdev_get_channel
,
1735 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1736 TP_ARGS(wiphy
, wdev
)
1739 TRACE_EVENT(rdev_return_chandef
,
1740 TP_PROTO(struct wiphy
*wiphy
, int ret
,
1741 struct cfg80211_chan_def
*chandef
),
1742 TP_ARGS(wiphy
, ret
, chandef
),
1751 CHAN_DEF_ASSIGN(chandef
);
1753 CHAN_DEF_ASSIGN((struct cfg80211_chan_def
*)NULL
);
1756 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
", ret: %d",
1757 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
, __entry
->ret
)
1760 DEFINE_EVENT(wiphy_wdev_evt
, rdev_start_p2p_device
,
1761 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1762 TP_ARGS(wiphy
, wdev
)
1765 DEFINE_EVENT(wiphy_wdev_evt
, rdev_stop_p2p_device
,
1766 TP_PROTO(struct wiphy
*wiphy
, struct wireless_dev
*wdev
),
1767 TP_ARGS(wiphy
, wdev
)
1770 /*************************************************************
1771 * cfg80211 exported functions traces *
1772 *************************************************************/
1774 TRACE_EVENT(cfg80211_return_bool
,
1783 TP_printk("returned %s", BOOL_TO_STR(__entry
->ret
))
1786 DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt
,
1787 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
1788 TP_ARGS(netdev
, macaddr
),
1795 MAC_ASSIGN(macaddr
, macaddr
);
1797 TP_printk(NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
1798 NETDEV_PR_ARG
, MAC_PR_ARG(macaddr
))
1801 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_notify_new_peer_candidate
,
1802 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
1803 TP_ARGS(netdev
, macaddr
)
1806 DECLARE_EVENT_CLASS(netdev_evt_only
,
1807 TP_PROTO(struct net_device
*netdev
),
1815 TP_printk(NETDEV_PR_FMT
, NETDEV_PR_ARG
)
1818 DEFINE_EVENT(netdev_evt_only
, cfg80211_send_rx_auth
,
1819 TP_PROTO(struct net_device
*netdev
),
1823 TRACE_EVENT(cfg80211_send_rx_assoc
,
1824 TP_PROTO(struct net_device
*netdev
, struct cfg80211_bss
*bss
),
1825 TP_ARGS(netdev
, bss
),
1833 MAC_ASSIGN(bssid
, bss
->bssid
);
1834 CHAN_ASSIGN(bss
->channel
);
1836 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
", " CHAN_PR_FMT
,
1837 NETDEV_PR_ARG
, MAC_PR_ARG(bssid
), CHAN_PR_ARG
)
1840 DEFINE_EVENT(netdev_evt_only
, __cfg80211_send_deauth
,
1841 TP_PROTO(struct net_device
*netdev
),
1845 DEFINE_EVENT(netdev_evt_only
, __cfg80211_send_disassoc
,
1846 TP_PROTO(struct net_device
*netdev
),
1850 DEFINE_EVENT(netdev_evt_only
, cfg80211_send_unprot_deauth
,
1851 TP_PROTO(struct net_device
*netdev
),
1855 DEFINE_EVENT(netdev_evt_only
, cfg80211_send_unprot_disassoc
,
1856 TP_PROTO(struct net_device
*netdev
),
1860 DECLARE_EVENT_CLASS(netdev_mac_evt
,
1861 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
1862 TP_ARGS(netdev
, mac
),
1869 MAC_ASSIGN(mac
, mac
)
1871 TP_printk(NETDEV_PR_FMT
", mac: " MAC_PR_FMT
,
1872 NETDEV_PR_ARG
, MAC_PR_ARG(mac
))
1875 DEFINE_EVENT(netdev_mac_evt
, cfg80211_send_auth_timeout
,
1876 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
1877 TP_ARGS(netdev
, mac
)
1880 DEFINE_EVENT(netdev_mac_evt
, cfg80211_send_assoc_timeout
,
1881 TP_PROTO(struct net_device
*netdev
, const u8
*mac
),
1882 TP_ARGS(netdev
, mac
)
1885 TRACE_EVENT(cfg80211_michael_mic_failure
,
1886 TP_PROTO(struct net_device
*netdev
, const u8
*addr
,
1887 enum nl80211_key_type key_type
, int key_id
, const u8
*tsc
),
1888 TP_ARGS(netdev
, addr
, key_type
, key_id
, tsc
),
1892 __field(enum nl80211_key_type
, key_type
)
1893 __field(int, key_id
)
1898 MAC_ASSIGN(addr
, addr
);
1899 __entry
->key_type
= key_type
;
1900 __entry
->key_id
= key_id
;
1901 memcpy(__entry
->tsc
, tsc
, 6);
1903 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
", key type: %d, key id: %d, tsc: %pm",
1904 NETDEV_PR_ARG
, MAC_PR_ARG(addr
), __entry
->key_type
,
1905 __entry
->key_id
, __entry
->tsc
)
1908 TRACE_EVENT(cfg80211_ready_on_channel
,
1909 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
,
1910 struct ieee80211_channel
*chan
,
1911 unsigned int duration
),
1912 TP_ARGS(wdev
, cookie
, chan
, duration
),
1915 __field(u64
, cookie
)
1917 __field(unsigned int, duration
)
1921 __entry
->cookie
= cookie
;
1923 __entry
->duration
= duration
;
1925 TP_printk(WDEV_PR_FMT
", cookie: %llu, " CHAN_PR_FMT
", duration: %u",
1926 WDEV_PR_ARG
, __entry
->cookie
, CHAN_PR_ARG
,
1930 TRACE_EVENT(cfg80211_ready_on_channel_expired
,
1931 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
,
1932 struct ieee80211_channel
*chan
),
1933 TP_ARGS(wdev
, cookie
, chan
),
1936 __field(u64
, cookie
)
1941 __entry
->cookie
= cookie
;
1944 TP_printk(WDEV_PR_FMT
", cookie: %llu, " CHAN_PR_FMT
,
1945 WDEV_PR_ARG
, __entry
->cookie
, CHAN_PR_ARG
)
1948 TRACE_EVENT(cfg80211_new_sta
,
1949 TP_PROTO(struct net_device
*netdev
, const u8
*mac_addr
,
1950 struct station_info
*sinfo
),
1951 TP_ARGS(netdev
, mac_addr
, sinfo
),
1959 MAC_ASSIGN(mac_addr
, mac_addr
);
1962 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
,
1963 NETDEV_PR_ARG
, MAC_PR_ARG(mac_addr
))
1966 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_del_sta
,
1967 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
1968 TP_ARGS(netdev
, macaddr
)
1971 TRACE_EVENT(cfg80211_rx_mgmt
,
1972 TP_PROTO(struct wireless_dev
*wdev
, int freq
, int sig_mbm
),
1973 TP_ARGS(wdev
, freq
, sig_mbm
),
1977 __field(int, sig_mbm
)
1981 __entry
->freq
= freq
;
1982 __entry
->sig_mbm
= sig_mbm
;
1984 TP_printk(WDEV_PR_FMT
", freq: %d, sig mbm: %d",
1985 WDEV_PR_ARG
, __entry
->freq
, __entry
->sig_mbm
)
1988 TRACE_EVENT(cfg80211_mgmt_tx_status
,
1989 TP_PROTO(struct wireless_dev
*wdev
, u64 cookie
, bool ack
),
1990 TP_ARGS(wdev
, cookie
, ack
),
1993 __field(u64
, cookie
)
1998 __entry
->cookie
= cookie
;
2001 TP_printk(WDEV_PR_FMT
", cookie: %llu, ack: %s",
2002 WDEV_PR_ARG
, __entry
->cookie
, BOOL_TO_STR(__entry
->ack
))
2005 TRACE_EVENT(cfg80211_cqm_rssi_notify
,
2006 TP_PROTO(struct net_device
*netdev
,
2007 enum nl80211_cqm_rssi_threshold_event rssi_event
),
2008 TP_ARGS(netdev
, rssi_event
),
2011 __field(enum nl80211_cqm_rssi_threshold_event
, rssi_event
)
2015 __entry
->rssi_event
= rssi_event
;
2017 TP_printk(NETDEV_PR_FMT
", rssi event: %d",
2018 NETDEV_PR_ARG
, __entry
->rssi_event
)
2021 TRACE_EVENT(cfg80211_reg_can_beacon
,
2022 TP_PROTO(struct wiphy
*wiphy
, struct cfg80211_chan_def
*chandef
),
2023 TP_ARGS(wiphy
, chandef
),
2030 CHAN_DEF_ASSIGN(chandef
);
2032 TP_printk(WIPHY_PR_FMT
", " CHAN_DEF_PR_FMT
,
2033 WIPHY_PR_ARG
, CHAN_DEF_PR_ARG
)
2036 TRACE_EVENT(cfg80211_ch_switch_notify
,
2037 TP_PROTO(struct net_device
*netdev
,
2038 struct cfg80211_chan_def
*chandef
),
2039 TP_ARGS(netdev
, chandef
),
2046 CHAN_DEF_ASSIGN(chandef
);
2048 TP_printk(NETDEV_PR_FMT
", " CHAN_DEF_PR_FMT
,
2049 NETDEV_PR_ARG
, CHAN_DEF_PR_ARG
)
2052 DECLARE_EVENT_CLASS(cfg80211_rx_evt
,
2053 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2054 TP_ARGS(netdev
, addr
),
2061 MAC_ASSIGN(addr
, addr
);
2063 TP_printk(NETDEV_PR_FMT
", " MAC_PR_FMT
, NETDEV_PR_ARG
, MAC_PR_ARG(addr
))
2066 DEFINE_EVENT(cfg80211_rx_evt
, cfg80211_ibss_joined
,
2067 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2068 TP_ARGS(netdev
, addr
)
2071 DEFINE_EVENT(cfg80211_rx_evt
, cfg80211_rx_spurious_frame
,
2072 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2073 TP_ARGS(netdev
, addr
)
2076 DEFINE_EVENT(cfg80211_rx_evt
, cfg80211_rx_unexpected_4addr_frame
,
2077 TP_PROTO(struct net_device
*netdev
, const u8
*addr
),
2078 TP_ARGS(netdev
, addr
)
2081 TRACE_EVENT(cfg80211_probe_status
,
2082 TP_PROTO(struct net_device
*netdev
, const u8
*addr
, u64 cookie
,
2084 TP_ARGS(netdev
, addr
, cookie
, acked
),
2088 __field(u64
, cookie
)
2089 __field(bool, acked
)
2093 MAC_ASSIGN(addr
, addr
);
2094 __entry
->cookie
= cookie
;
2095 __entry
->acked
= acked
;
2097 TP_printk(NETDEV_PR_FMT
" addr:" MAC_PR_FMT
", cookie: %llu, acked: %s",
2098 NETDEV_PR_ARG
, MAC_PR_ARG(addr
), __entry
->cookie
,
2099 BOOL_TO_STR(__entry
->acked
))
2102 TRACE_EVENT(cfg80211_cqm_pktloss_notify
,
2103 TP_PROTO(struct net_device
*netdev
, const u8
*peer
, u32 num_packets
),
2104 TP_ARGS(netdev
, peer
, num_packets
),
2108 __field(u32
, num_packets
)
2112 MAC_ASSIGN(peer
, peer
);
2113 __entry
->num_packets
= num_packets
;
2115 TP_printk(NETDEV_PR_FMT
", peer: " MAC_PR_FMT
", num of lost packets: %u",
2116 NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->num_packets
)
2119 DEFINE_EVENT(cfg80211_netdev_mac_evt
, cfg80211_gtk_rekey_notify
,
2120 TP_PROTO(struct net_device
*netdev
, const u8
*macaddr
),
2121 TP_ARGS(netdev
, macaddr
)
2124 TRACE_EVENT(cfg80211_pmksa_candidate_notify
,
2125 TP_PROTO(struct net_device
*netdev
, int index
, const u8
*bssid
,
2127 TP_ARGS(netdev
, index
, bssid
, preauth
),
2132 __field(bool, preauth
)
2136 __entry
->index
= index
;
2137 MAC_ASSIGN(bssid
, bssid
);
2138 __entry
->preauth
= preauth
;
2140 TP_printk(NETDEV_PR_FMT
", index:%d, bssid: " MAC_PR_FMT
", pre auth: %s",
2141 NETDEV_PR_ARG
, __entry
->index
, MAC_PR_ARG(bssid
),
2142 BOOL_TO_STR(__entry
->preauth
))
2145 TRACE_EVENT(cfg80211_report_obss_beacon
,
2146 TP_PROTO(struct wiphy
*wiphy
, const u8
*frame
, size_t len
,
2147 int freq
, int sig_dbm
),
2148 TP_ARGS(wiphy
, frame
, len
, freq
, sig_dbm
),
2152 __field(int, sig_dbm
)
2156 __entry
->freq
= freq
;
2157 __entry
->sig_dbm
= sig_dbm
;
2159 TP_printk(WIPHY_PR_FMT
", freq: %d, sig_dbm: %d",
2160 WIPHY_PR_ARG
, __entry
->freq
, __entry
->sig_dbm
)
2163 TRACE_EVENT(cfg80211_tdls_oper_request
,
2164 TP_PROTO(struct wiphy
*wiphy
, struct net_device
*netdev
, const u8
*peer
,
2165 enum nl80211_tdls_operation oper
, u16 reason_code
),
2166 TP_ARGS(wiphy
, netdev
, peer
, oper
, reason_code
),
2171 __field(enum nl80211_tdls_operation
, oper
)
2172 __field(u16
, reason_code
)
2177 MAC_ASSIGN(peer
, peer
);
2178 __entry
->oper
= oper
;
2179 __entry
->reason_code
= reason_code
;
2181 TP_printk(WIPHY_PR_FMT
", " NETDEV_PR_FMT
", peer: " MAC_PR_FMT
", oper: %d, reason_code %u",
2182 WIPHY_PR_ARG
, NETDEV_PR_ARG
, MAC_PR_ARG(peer
), __entry
->oper
,
2183 __entry
->reason_code
)
2186 TRACE_EVENT(cfg80211_scan_done
,
2187 TP_PROTO(struct cfg80211_scan_request
*request
, bool aborted
),
2188 TP_ARGS(request
, aborted
),
2190 __field(u32
, n_channels
)
2191 __dynamic_array(u8
, ie
, request
? request
->ie_len
: 0)
2192 __array(u32
, rates
, IEEE80211_NUM_BANDS
)
2193 __field(u32
, wdev_id
)
2194 MAC_ENTRY(wiphy_mac
)
2195 __field(bool, no_cck
)
2196 __field(bool, aborted
)
2200 memcpy(__get_dynamic_array(ie
), request
->ie
,
2202 memcpy(__entry
->rates
, request
->rates
,
2203 IEEE80211_NUM_BANDS
);
2204 __entry
->wdev_id
= request
->wdev
?
2205 request
->wdev
->identifier
: 0;
2207 MAC_ASSIGN(wiphy_mac
,
2208 request
->wiphy
->perm_addr
);
2209 __entry
->no_cck
= request
->no_cck
;
2211 __entry
->aborted
= aborted
;
2213 TP_printk("aborted: %s", BOOL_TO_STR(__entry
->aborted
))
2216 DEFINE_EVENT(wiphy_only_evt
, cfg80211_sched_scan_results
,
2217 TP_PROTO(struct wiphy
*wiphy
),
2221 DEFINE_EVENT(wiphy_only_evt
, cfg80211_sched_scan_stopped
,
2222 TP_PROTO(struct wiphy
*wiphy
),
2226 TRACE_EVENT(cfg80211_get_bss
,
2227 TP_PROTO(struct wiphy
*wiphy
, struct ieee80211_channel
*channel
,
2228 const u8
*bssid
, const u8
*ssid
, size_t ssid_len
,
2229 u16 capa_mask
, u16 capa_val
),
2230 TP_ARGS(wiphy
, channel
, bssid
, ssid
, ssid_len
, capa_mask
, capa_val
),
2235 __dynamic_array(u8
, ssid
, ssid_len
)
2236 __field(u16
, capa_mask
)
2237 __field(u16
, capa_val
)
2241 CHAN_ASSIGN(channel
);
2242 MAC_ASSIGN(bssid
, bssid
);
2243 memcpy(__get_dynamic_array(ssid
), ssid
, ssid_len
);
2244 __entry
->capa_mask
= capa_mask
;
2245 __entry
->capa_val
= capa_val
;
2247 TP_printk(WIPHY_PR_FMT
", " CHAN_PR_FMT
", " MAC_PR_FMT
", buf: %#.2x, "
2248 "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG
, CHAN_PR_ARG
,
2249 MAC_PR_ARG(bssid
), ((u8
*)__get_dynamic_array(ssid
))[0],
2250 __entry
->capa_mask
, __entry
->capa_val
)
2253 TRACE_EVENT(cfg80211_inform_bss_frame
,
2254 TP_PROTO(struct wiphy
*wiphy
, struct ieee80211_channel
*channel
,
2255 struct ieee80211_mgmt
*mgmt
, size_t len
,
2257 TP_ARGS(wiphy
, channel
, mgmt
, len
, signal
),
2261 __dynamic_array(u8
, mgmt
, len
)
2262 __field(s32
, signal
)
2266 CHAN_ASSIGN(channel
);
2268 memcpy(__get_dynamic_array(mgmt
), mgmt
, len
);
2269 __entry
->signal
= signal
;
2271 TP_printk(WIPHY_PR_FMT
", " CHAN_PR_FMT
"signal: %d",
2272 WIPHY_PR_ARG
, CHAN_PR_ARG
, __entry
->signal
)
2275 DECLARE_EVENT_CLASS(cfg80211_bss_evt
,
2276 TP_PROTO(struct cfg80211_bss
*pub
),
2283 MAC_ASSIGN(bssid
, pub
->bssid
);
2284 CHAN_ASSIGN(pub
->channel
);
2286 TP_printk(MAC_PR_FMT
", " CHAN_PR_FMT
, MAC_PR_ARG(bssid
), CHAN_PR_ARG
)
2289 DEFINE_EVENT(cfg80211_bss_evt
, cfg80211_return_bss
,
2290 TP_PROTO(struct cfg80211_bss
*pub
),
2294 TRACE_EVENT(cfg80211_return_uint
,
2295 TP_PROTO(unsigned int ret
),
2298 __field(unsigned int, ret
)
2303 TP_printk("ret: %d", __entry
->ret
)
2306 TRACE_EVENT(cfg80211_return_u32
,
2315 TP_printk("ret: %u", __entry
->ret
)
2318 #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
2320 #undef TRACE_INCLUDE_PATH
2321 #define TRACE_INCLUDE_PATH .
2322 #undef TRACE_INCLUDE_FILE
2323 #define TRACE_INCLUDE_FILE trace
2324 #include <trace/define_trace.h>