114e8a3c4SBeni Lev #undef TRACE_SYSTEM 214e8a3c4SBeni Lev #define TRACE_SYSTEM cfg80211 314e8a3c4SBeni Lev 414e8a3c4SBeni Lev #if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ) 514e8a3c4SBeni Lev #define __RDEV_OPS_TRACE 614e8a3c4SBeni Lev 714e8a3c4SBeni Lev #include <linux/tracepoint.h> 814e8a3c4SBeni Lev 914e8a3c4SBeni Lev #include <linux/rtnetlink.h> 1014e8a3c4SBeni Lev #include <net/cfg80211.h> 1114e8a3c4SBeni Lev #include "core.h" 1214e8a3c4SBeni Lev 1314e8a3c4SBeni Lev #define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN) 1414e8a3c4SBeni Lev #define MAC_ASSIGN(entry_mac, given_mac) do { \ 1514e8a3c4SBeni Lev if (given_mac) \ 1614e8a3c4SBeni Lev memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \ 1714e8a3c4SBeni Lev else \ 1814e8a3c4SBeni Lev memset(__entry->entry_mac, 0, ETH_ALEN); \ 1914e8a3c4SBeni Lev } while (0) 2014e8a3c4SBeni Lev #define MAC_PR_FMT "%pM" 2114e8a3c4SBeni Lev #define MAC_PR_ARG(entry_mac) (__entry->entry_mac) 2214e8a3c4SBeni Lev 23ec816087SJohannes Berg #define MAXNAME 32 24ec816087SJohannes Berg #define WIPHY_ENTRY __array(char, wiphy_name, 32) 25ec816087SJohannes Berg #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME) 26ec816087SJohannes Berg #define WIPHY_PR_FMT "%s" 27ec816087SJohannes Berg #define WIPHY_PR_ARG __entry->wiphy_name 2814e8a3c4SBeni Lev 2914e8a3c4SBeni Lev #define WDEV_ENTRY __field(u32, id) 30ce1eaddaSJohannes Berg #define WDEV_ASSIGN (__entry->id) = (!IS_ERR_OR_NULL(wdev) \ 31ce1eaddaSJohannes Berg ? wdev->identifier : 0) 32ec816087SJohannes Berg #define WDEV_PR_FMT "wdev(%u)" 3314e8a3c4SBeni Lev #define WDEV_PR_ARG (__entry->id) 3414e8a3c4SBeni Lev 3514e8a3c4SBeni Lev #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \ 3614e8a3c4SBeni Lev __field(int, ifindex) 3714e8a3c4SBeni Lev #define NETDEV_ASSIGN \ 3814e8a3c4SBeni Lev do { \ 3914e8a3c4SBeni Lev memcpy(__entry->name, netdev->name, IFNAMSIZ); \ 4014e8a3c4SBeni Lev (__entry->ifindex) = (netdev->ifindex); \ 4114e8a3c4SBeni Lev } while (0) 42ec816087SJohannes Berg #define NETDEV_PR_FMT "netdev:%s(%d)" 43ec816087SJohannes Berg #define NETDEV_PR_ARG __entry->name, __entry->ifindex 4414e8a3c4SBeni Lev 4514e8a3c4SBeni Lev #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \ 4614e8a3c4SBeni Lev __field(u16, dot11MeshConfirmTimeout) \ 4714e8a3c4SBeni Lev __field(u16, dot11MeshHoldingTimeout) \ 4814e8a3c4SBeni Lev __field(u16, dot11MeshMaxPeerLinks) \ 4914e8a3c4SBeni Lev __field(u8, dot11MeshMaxRetries) \ 5014e8a3c4SBeni Lev __field(u8, dot11MeshTTL) \ 5114e8a3c4SBeni Lev __field(u8, element_ttl) \ 5214e8a3c4SBeni Lev __field(bool, auto_open_plinks) \ 5314e8a3c4SBeni Lev __field(u32, dot11MeshNbrOffsetMaxNeighbor) \ 5414e8a3c4SBeni Lev __field(u8, dot11MeshHWMPmaxPREQretries) \ 5514e8a3c4SBeni Lev __field(u32, path_refresh_time) \ 5614e8a3c4SBeni Lev __field(u32, dot11MeshHWMPactivePathTimeout) \ 5714e8a3c4SBeni Lev __field(u16, min_discovery_timeout) \ 5814e8a3c4SBeni Lev __field(u16, dot11MeshHWMPpreqMinInterval) \ 5914e8a3c4SBeni Lev __field(u16, dot11MeshHWMPperrMinInterval) \ 6014e8a3c4SBeni Lev __field(u16, dot11MeshHWMPnetDiameterTraversalTime) \ 6114e8a3c4SBeni Lev __field(u8, dot11MeshHWMPRootMode) \ 6214e8a3c4SBeni Lev __field(u16, dot11MeshHWMPRannInterval) \ 6314e8a3c4SBeni Lev __field(bool, dot11MeshGateAnnouncementProtocol) \ 6414e8a3c4SBeni Lev __field(bool, dot11MeshForwarding) \ 6514e8a3c4SBeni Lev __field(s32, rssi_threshold) \ 6614e8a3c4SBeni Lev __field(u16, ht_opmode) \ 6714e8a3c4SBeni Lev __field(u32, dot11MeshHWMPactivePathToRootTimeout) \ 6814e8a3c4SBeni Lev __field(u16, dot11MeshHWMProotInterval) \ 6914e8a3c4SBeni Lev __field(u16, dot11MeshHWMPconfirmationInterval) 7014e8a3c4SBeni Lev #define MESH_CFG_ASSIGN \ 7114e8a3c4SBeni Lev do { \ 7214e8a3c4SBeni Lev __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \ 7314e8a3c4SBeni Lev __entry->dot11MeshConfirmTimeout = \ 7414e8a3c4SBeni Lev conf->dot11MeshConfirmTimeout; \ 7514e8a3c4SBeni Lev __entry->dot11MeshHoldingTimeout = \ 7614e8a3c4SBeni Lev conf->dot11MeshHoldingTimeout; \ 7714e8a3c4SBeni Lev __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \ 7814e8a3c4SBeni Lev __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \ 7914e8a3c4SBeni Lev __entry->dot11MeshTTL = conf->dot11MeshTTL; \ 8014e8a3c4SBeni Lev __entry->element_ttl = conf->element_ttl; \ 8114e8a3c4SBeni Lev __entry->auto_open_plinks = conf->auto_open_plinks; \ 8214e8a3c4SBeni Lev __entry->dot11MeshNbrOffsetMaxNeighbor = \ 8314e8a3c4SBeni Lev conf->dot11MeshNbrOffsetMaxNeighbor; \ 8414e8a3c4SBeni Lev __entry->dot11MeshHWMPmaxPREQretries = \ 8514e8a3c4SBeni Lev conf->dot11MeshHWMPmaxPREQretries; \ 8614e8a3c4SBeni Lev __entry->path_refresh_time = conf->path_refresh_time; \ 8714e8a3c4SBeni Lev __entry->dot11MeshHWMPactivePathTimeout = \ 8814e8a3c4SBeni Lev conf->dot11MeshHWMPactivePathTimeout; \ 8914e8a3c4SBeni Lev __entry->min_discovery_timeout = conf->min_discovery_timeout; \ 9014e8a3c4SBeni Lev __entry->dot11MeshHWMPpreqMinInterval = \ 9114e8a3c4SBeni Lev conf->dot11MeshHWMPpreqMinInterval; \ 9214e8a3c4SBeni Lev __entry->dot11MeshHWMPperrMinInterval = \ 9314e8a3c4SBeni Lev conf->dot11MeshHWMPperrMinInterval; \ 9414e8a3c4SBeni Lev __entry->dot11MeshHWMPnetDiameterTraversalTime = \ 9514e8a3c4SBeni Lev conf->dot11MeshHWMPnetDiameterTraversalTime; \ 9614e8a3c4SBeni Lev __entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \ 9714e8a3c4SBeni Lev __entry->dot11MeshHWMPRannInterval = \ 9814e8a3c4SBeni Lev conf->dot11MeshHWMPRannInterval; \ 9914e8a3c4SBeni Lev __entry->dot11MeshGateAnnouncementProtocol = \ 10014e8a3c4SBeni Lev conf->dot11MeshGateAnnouncementProtocol; \ 10114e8a3c4SBeni Lev __entry->dot11MeshForwarding = conf->dot11MeshForwarding; \ 10214e8a3c4SBeni Lev __entry->rssi_threshold = conf->rssi_threshold; \ 10314e8a3c4SBeni Lev __entry->ht_opmode = conf->ht_opmode; \ 10414e8a3c4SBeni Lev __entry->dot11MeshHWMPactivePathToRootTimeout = \ 10514e8a3c4SBeni Lev conf->dot11MeshHWMPactivePathToRootTimeout; \ 10614e8a3c4SBeni Lev __entry->dot11MeshHWMProotInterval = \ 10714e8a3c4SBeni Lev conf->dot11MeshHWMProotInterval; \ 10814e8a3c4SBeni Lev __entry->dot11MeshHWMPconfirmationInterval = \ 10914e8a3c4SBeni Lev conf->dot11MeshHWMPconfirmationInterval; \ 11014e8a3c4SBeni Lev } while (0) 11114e8a3c4SBeni Lev 11214e8a3c4SBeni Lev #define CHAN_ENTRY __field(enum ieee80211_band, band) \ 11314e8a3c4SBeni Lev __field(u16, center_freq) 11414e8a3c4SBeni Lev #define CHAN_ASSIGN(chan) \ 11514e8a3c4SBeni Lev do { \ 11614e8a3c4SBeni Lev if (chan) { \ 11714e8a3c4SBeni Lev __entry->band = chan->band; \ 11814e8a3c4SBeni Lev __entry->center_freq = chan->center_freq; \ 11914e8a3c4SBeni Lev } else { \ 12014e8a3c4SBeni Lev __entry->band = 0; \ 12114e8a3c4SBeni Lev __entry->center_freq = 0; \ 12214e8a3c4SBeni Lev } \ 12314e8a3c4SBeni Lev } while (0) 124ec816087SJohannes Berg #define CHAN_PR_FMT "band: %d, freq: %u" 12514e8a3c4SBeni Lev #define CHAN_PR_ARG __entry->band, __entry->center_freq 12614e8a3c4SBeni Lev 127683b6d3bSJohannes Berg #define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \ 1283d9d1d66SJohannes Berg __field(u32, control_freq) \ 1293d9d1d66SJohannes Berg __field(u32, width) \ 1303d9d1d66SJohannes Berg __field(u32, center_freq1) \ 1313d9d1d66SJohannes Berg __field(u32, center_freq2) 132683b6d3bSJohannes Berg #define CHAN_DEF_ASSIGN(chandef) \ 133683b6d3bSJohannes Berg do { \ 134683b6d3bSJohannes Berg if ((chandef) && (chandef)->chan) { \ 135683b6d3bSJohannes Berg __entry->band = (chandef)->chan->band; \ 1363d9d1d66SJohannes Berg __entry->control_freq = \ 137683b6d3bSJohannes Berg (chandef)->chan->center_freq; \ 1383d9d1d66SJohannes Berg __entry->width = (chandef)->width; \ 1393d9d1d66SJohannes Berg __entry->center_freq1 = (chandef)->center_freq1;\ 1403d9d1d66SJohannes Berg __entry->center_freq2 = (chandef)->center_freq2;\ 141683b6d3bSJohannes Berg } else { \ 142683b6d3bSJohannes Berg __entry->band = 0; \ 1433d9d1d66SJohannes Berg __entry->control_freq = 0; \ 1443d9d1d66SJohannes Berg __entry->width = 0; \ 1453d9d1d66SJohannes Berg __entry->center_freq1 = 0; \ 1463d9d1d66SJohannes Berg __entry->center_freq2 = 0; \ 147683b6d3bSJohannes Berg } \ 148683b6d3bSJohannes Berg } while (0) 1493d9d1d66SJohannes Berg #define CHAN_DEF_PR_FMT \ 150ec816087SJohannes Berg "band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u" 1513d9d1d66SJohannes Berg #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \ 1523d9d1d66SJohannes Berg __entry->width, __entry->center_freq1, \ 1533d9d1d66SJohannes Berg __entry->center_freq2 154683b6d3bSJohannes Berg 15514e8a3c4SBeni Lev #define SINFO_ENTRY __field(int, generation) \ 15614e8a3c4SBeni Lev __field(u32, connected_time) \ 15714e8a3c4SBeni Lev __field(u32, inactive_time) \ 15814e8a3c4SBeni Lev __field(u32, rx_bytes) \ 15914e8a3c4SBeni Lev __field(u32, tx_bytes) \ 16014e8a3c4SBeni Lev __field(u32, rx_packets) \ 16114e8a3c4SBeni Lev __field(u32, tx_packets) \ 16214e8a3c4SBeni Lev __field(u32, tx_retries) \ 16314e8a3c4SBeni Lev __field(u32, tx_failed) \ 16414e8a3c4SBeni Lev __field(u32, rx_dropped_misc) \ 16514e8a3c4SBeni Lev __field(u32, beacon_loss_count) \ 16614e8a3c4SBeni Lev __field(u16, llid) \ 16714e8a3c4SBeni Lev __field(u16, plid) \ 16814e8a3c4SBeni Lev __field(u8, plink_state) 16914e8a3c4SBeni Lev #define SINFO_ASSIGN \ 17014e8a3c4SBeni Lev do { \ 17114e8a3c4SBeni Lev __entry->generation = sinfo->generation; \ 17214e8a3c4SBeni Lev __entry->connected_time = sinfo->connected_time; \ 17314e8a3c4SBeni Lev __entry->inactive_time = sinfo->inactive_time; \ 17414e8a3c4SBeni Lev __entry->rx_bytes = sinfo->rx_bytes; \ 17514e8a3c4SBeni Lev __entry->tx_bytes = sinfo->tx_bytes; \ 17614e8a3c4SBeni Lev __entry->rx_packets = sinfo->rx_packets; \ 17714e8a3c4SBeni Lev __entry->tx_packets = sinfo->tx_packets; \ 17814e8a3c4SBeni Lev __entry->tx_retries = sinfo->tx_retries; \ 17914e8a3c4SBeni Lev __entry->tx_failed = sinfo->tx_failed; \ 18014e8a3c4SBeni Lev __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \ 18114e8a3c4SBeni Lev __entry->beacon_loss_count = sinfo->beacon_loss_count; \ 18214e8a3c4SBeni Lev __entry->llid = sinfo->llid; \ 18314e8a3c4SBeni Lev __entry->plid = sinfo->plid; \ 18414e8a3c4SBeni Lev __entry->plink_state = sinfo->plink_state; \ 18514e8a3c4SBeni Lev } while (0) 18614e8a3c4SBeni Lev 18714e8a3c4SBeni Lev #define BOOL_TO_STR(bo) (bo) ? "true" : "false" 18814e8a3c4SBeni Lev 18914e8a3c4SBeni Lev /************************************************************* 19014e8a3c4SBeni Lev * rdev->ops traces * 19114e8a3c4SBeni Lev *************************************************************/ 19214e8a3c4SBeni Lev 19314e8a3c4SBeni Lev TRACE_EVENT(rdev_suspend, 19414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow), 19514e8a3c4SBeni Lev TP_ARGS(wiphy, wow), 19614e8a3c4SBeni Lev TP_STRUCT__entry( 19714e8a3c4SBeni Lev WIPHY_ENTRY 19814e8a3c4SBeni Lev __field(bool, any) 19914e8a3c4SBeni Lev __field(bool, disconnect) 20014e8a3c4SBeni Lev __field(bool, magic_pkt) 20114e8a3c4SBeni Lev __field(bool, gtk_rekey_failure) 20214e8a3c4SBeni Lev __field(bool, eap_identity_req) 20314e8a3c4SBeni Lev __field(bool, four_way_handshake) 20414e8a3c4SBeni Lev __field(bool, rfkill_release) 20514e8a3c4SBeni Lev __field(bool, valid_wow) 20614e8a3c4SBeni Lev ), 20714e8a3c4SBeni Lev TP_fast_assign( 20814e8a3c4SBeni Lev WIPHY_ASSIGN; 20914e8a3c4SBeni Lev if (wow) { 21014e8a3c4SBeni Lev __entry->any = wow->any; 21114e8a3c4SBeni Lev __entry->disconnect = wow->disconnect; 21214e8a3c4SBeni Lev __entry->magic_pkt = wow->magic_pkt; 21314e8a3c4SBeni Lev __entry->gtk_rekey_failure = wow->gtk_rekey_failure; 21414e8a3c4SBeni Lev __entry->eap_identity_req = wow->eap_identity_req; 21514e8a3c4SBeni Lev __entry->four_way_handshake = wow->four_way_handshake; 21614e8a3c4SBeni Lev __entry->rfkill_release = wow->rfkill_release; 21714e8a3c4SBeni Lev __entry->valid_wow = true; 21814e8a3c4SBeni Lev } else { 21914e8a3c4SBeni Lev __entry->valid_wow = false; 22014e8a3c4SBeni Lev } 22114e8a3c4SBeni Lev ), 22214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, " 22314e8a3c4SBeni Lev "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, " 22414e8a3c4SBeni Lev "four way handshake: %d, rfkill release: %d.", 22514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)", 22614e8a3c4SBeni Lev __entry->any, __entry->disconnect, __entry->magic_pkt, 22714e8a3c4SBeni Lev __entry->gtk_rekey_failure, __entry->eap_identity_req, 22814e8a3c4SBeni Lev __entry->four_way_handshake, __entry->rfkill_release) 22914e8a3c4SBeni Lev ); 23014e8a3c4SBeni Lev 23114e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int, 23214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret), 23314e8a3c4SBeni Lev TP_ARGS(wiphy, ret), 23414e8a3c4SBeni Lev TP_STRUCT__entry( 23514e8a3c4SBeni Lev WIPHY_ENTRY 23614e8a3c4SBeni Lev __field(int, ret) 23714e8a3c4SBeni Lev ), 23814e8a3c4SBeni Lev TP_fast_assign( 23914e8a3c4SBeni Lev WIPHY_ASSIGN; 24014e8a3c4SBeni Lev __entry->ret = ret; 24114e8a3c4SBeni Lev ), 24214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret) 24314e8a3c4SBeni Lev ); 24414e8a3c4SBeni Lev 24514e8a3c4SBeni Lev TRACE_EVENT(rdev_scan, 24614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request), 24714e8a3c4SBeni Lev TP_ARGS(wiphy, request), 24814e8a3c4SBeni Lev TP_STRUCT__entry( 24914e8a3c4SBeni Lev WIPHY_ENTRY 25014e8a3c4SBeni Lev ), 25114e8a3c4SBeni Lev TP_fast_assign( 25214e8a3c4SBeni Lev WIPHY_ASSIGN; 25314e8a3c4SBeni Lev ), 25414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 25514e8a3c4SBeni Lev ); 25614e8a3c4SBeni Lev 25714e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_only_evt, 25814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 25914e8a3c4SBeni Lev TP_ARGS(wiphy), 26014e8a3c4SBeni Lev TP_STRUCT__entry( 26114e8a3c4SBeni Lev WIPHY_ENTRY 26214e8a3c4SBeni Lev ), 26314e8a3c4SBeni Lev TP_fast_assign( 26414e8a3c4SBeni Lev WIPHY_ASSIGN; 26514e8a3c4SBeni Lev ), 26614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 26714e8a3c4SBeni Lev ); 26814e8a3c4SBeni Lev 26914e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_resume, 27014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 27114e8a3c4SBeni Lev TP_ARGS(wiphy) 27214e8a3c4SBeni Lev ); 27314e8a3c4SBeni Lev 27414e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_return_void, 27514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 27614e8a3c4SBeni Lev TP_ARGS(wiphy) 27714e8a3c4SBeni Lev ); 27814e8a3c4SBeni Lev 27914e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_get_ringparam, 28014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 28114e8a3c4SBeni Lev TP_ARGS(wiphy) 28214e8a3c4SBeni Lev ); 28314e8a3c4SBeni Lev 28414e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_get_antenna, 28514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 28614e8a3c4SBeni Lev TP_ARGS(wiphy) 28714e8a3c4SBeni Lev ); 28814e8a3c4SBeni Lev 28914e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll, 29014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 29114e8a3c4SBeni Lev TP_ARGS(wiphy) 29214e8a3c4SBeni Lev ); 29314e8a3c4SBeni Lev 29414e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_enabled_evt, 29514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, bool enabled), 29614e8a3c4SBeni Lev TP_ARGS(wiphy, enabled), 29714e8a3c4SBeni Lev TP_STRUCT__entry( 29814e8a3c4SBeni Lev WIPHY_ENTRY 29914e8a3c4SBeni Lev __field(bool, enabled) 30014e8a3c4SBeni Lev ), 30114e8a3c4SBeni Lev TP_fast_assign( 30214e8a3c4SBeni Lev WIPHY_ASSIGN; 30314e8a3c4SBeni Lev __entry->enabled = enabled; 30414e8a3c4SBeni Lev ), 30514e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", %senabled ", 30614e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->enabled ? "" : "not ") 30714e8a3c4SBeni Lev ); 30814e8a3c4SBeni Lev 30914e8a3c4SBeni Lev DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup, 31014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, bool enabled), 31114e8a3c4SBeni Lev TP_ARGS(wiphy, enabled) 31214e8a3c4SBeni Lev ); 31314e8a3c4SBeni Lev 31414e8a3c4SBeni Lev TRACE_EVENT(rdev_add_virtual_intf, 31514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type), 31614e8a3c4SBeni Lev TP_ARGS(wiphy, name, type), 31714e8a3c4SBeni Lev TP_STRUCT__entry( 31814e8a3c4SBeni Lev WIPHY_ENTRY 31914e8a3c4SBeni Lev __string(vir_intf_name, name ? name : "<noname>") 32014e8a3c4SBeni Lev __field(enum nl80211_iftype, type) 32114e8a3c4SBeni Lev ), 32214e8a3c4SBeni Lev TP_fast_assign( 32314e8a3c4SBeni Lev WIPHY_ASSIGN; 32414e8a3c4SBeni Lev __assign_str(vir_intf_name, name ? name : "<noname>"); 32514e8a3c4SBeni Lev __entry->type = type; 32614e8a3c4SBeni Lev ), 32714e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d", 32814e8a3c4SBeni Lev WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type) 32914e8a3c4SBeni Lev ); 33014e8a3c4SBeni Lev 33114e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_wdev_evt, 33214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 33314e8a3c4SBeni Lev TP_ARGS(wiphy, wdev), 33414e8a3c4SBeni Lev TP_STRUCT__entry( 33514e8a3c4SBeni Lev WIPHY_ENTRY 33614e8a3c4SBeni Lev WDEV_ENTRY 33714e8a3c4SBeni Lev ), 33814e8a3c4SBeni Lev TP_fast_assign( 33914e8a3c4SBeni Lev WIPHY_ASSIGN; 34014e8a3c4SBeni Lev WDEV_ASSIGN; 34114e8a3c4SBeni Lev ), 342ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 34314e8a3c4SBeni Lev ); 34414e8a3c4SBeni Lev 34514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, 34614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 34714e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 34814e8a3c4SBeni Lev ); 34914e8a3c4SBeni Lev 35014e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf, 35114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 35214e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 35314e8a3c4SBeni Lev ); 35414e8a3c4SBeni Lev 35514e8a3c4SBeni Lev TRACE_EVENT(rdev_change_virtual_intf, 35614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 35714e8a3c4SBeni Lev enum nl80211_iftype type), 35814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, type), 35914e8a3c4SBeni Lev TP_STRUCT__entry( 36014e8a3c4SBeni Lev WIPHY_ENTRY 36114e8a3c4SBeni Lev NETDEV_ENTRY 36214e8a3c4SBeni Lev __field(enum nl80211_iftype, type) 36314e8a3c4SBeni Lev ), 36414e8a3c4SBeni Lev TP_fast_assign( 36514e8a3c4SBeni Lev WIPHY_ASSIGN; 36614e8a3c4SBeni Lev NETDEV_ASSIGN; 36714e8a3c4SBeni Lev __entry->type = type; 36814e8a3c4SBeni Lev ), 369ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d", 37014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) 37114e8a3c4SBeni Lev ); 37214e8a3c4SBeni Lev 37314e8a3c4SBeni Lev DECLARE_EVENT_CLASS(key_handle, 37414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 37514e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 37614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr), 37714e8a3c4SBeni Lev TP_STRUCT__entry( 37814e8a3c4SBeni Lev WIPHY_ENTRY 37914e8a3c4SBeni Lev NETDEV_ENTRY 38014e8a3c4SBeni Lev MAC_ENTRY(mac_addr) 38114e8a3c4SBeni Lev __field(u8, key_index) 38214e8a3c4SBeni Lev __field(bool, pairwise) 38314e8a3c4SBeni Lev ), 38414e8a3c4SBeni Lev TP_fast_assign( 38514e8a3c4SBeni Lev WIPHY_ASSIGN; 38614e8a3c4SBeni Lev NETDEV_ASSIGN; 38714e8a3c4SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 38814e8a3c4SBeni Lev __entry->key_index = key_index; 38914e8a3c4SBeni Lev __entry->pairwise = pairwise; 39014e8a3c4SBeni Lev ), 391ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT, 39214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 39314e8a3c4SBeni Lev BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr)) 39414e8a3c4SBeni Lev ); 39514e8a3c4SBeni Lev 39614e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_add_key, 39714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 39814e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 39914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 40014e8a3c4SBeni Lev ); 40114e8a3c4SBeni Lev 40214e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_get_key, 40314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 40414e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 40514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 40614e8a3c4SBeni Lev ); 40714e8a3c4SBeni Lev 40814e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_del_key, 40914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 41014e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 41114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 41214e8a3c4SBeni Lev ); 41314e8a3c4SBeni Lev 41414e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_key, 41514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 41614e8a3c4SBeni Lev bool unicast, bool multicast), 41714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, unicast, multicast), 41814e8a3c4SBeni Lev TP_STRUCT__entry( 41914e8a3c4SBeni Lev WIPHY_ENTRY 42014e8a3c4SBeni Lev NETDEV_ENTRY 42114e8a3c4SBeni Lev __field(u8, key_index) 42214e8a3c4SBeni Lev __field(bool, unicast) 42314e8a3c4SBeni Lev __field(bool, multicast) 42414e8a3c4SBeni Lev ), 42514e8a3c4SBeni Lev TP_fast_assign( 42614e8a3c4SBeni Lev WIPHY_ASSIGN; 42714e8a3c4SBeni Lev NETDEV_ASSIGN; 42814e8a3c4SBeni Lev __entry->key_index = key_index; 42914e8a3c4SBeni Lev __entry->unicast = unicast; 43014e8a3c4SBeni Lev __entry->multicast = multicast; 43114e8a3c4SBeni Lev ), 432ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s", 43314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 43414e8a3c4SBeni Lev BOOL_TO_STR(__entry->unicast), 43514e8a3c4SBeni Lev BOOL_TO_STR(__entry->multicast)) 43614e8a3c4SBeni Lev ); 43714e8a3c4SBeni Lev 43814e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_mgmt_key, 43914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index), 44014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index), 44114e8a3c4SBeni Lev TP_STRUCT__entry( 44214e8a3c4SBeni Lev WIPHY_ENTRY 44314e8a3c4SBeni Lev NETDEV_ENTRY 44414e8a3c4SBeni Lev __field(u8, key_index) 44514e8a3c4SBeni Lev ), 44614e8a3c4SBeni Lev TP_fast_assign( 44714e8a3c4SBeni Lev WIPHY_ASSIGN; 44814e8a3c4SBeni Lev NETDEV_ASSIGN; 44914e8a3c4SBeni Lev __entry->key_index = key_index; 45014e8a3c4SBeni Lev ), 451ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u", 45214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) 45314e8a3c4SBeni Lev ); 45414e8a3c4SBeni Lev 45514e8a3c4SBeni Lev TRACE_EVENT(rdev_start_ap, 45614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 45714e8a3c4SBeni Lev struct cfg80211_ap_settings *settings), 45814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, settings), 45914e8a3c4SBeni Lev TP_STRUCT__entry( 46014e8a3c4SBeni Lev WIPHY_ENTRY 46114e8a3c4SBeni Lev NETDEV_ENTRY 462683b6d3bSJohannes Berg CHAN_DEF_ENTRY 46314e8a3c4SBeni Lev __field(int, beacon_interval) 46414e8a3c4SBeni Lev __field(int, dtim_period) 46514e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 46614e8a3c4SBeni Lev __field(enum nl80211_hidden_ssid, hidden_ssid) 46714e8a3c4SBeni Lev __field(u32, wpa_ver) 46814e8a3c4SBeni Lev __field(bool, privacy) 46914e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 47014e8a3c4SBeni Lev __field(int, inactivity_timeout) 47114e8a3c4SBeni Lev ), 47214e8a3c4SBeni Lev TP_fast_assign( 47314e8a3c4SBeni Lev WIPHY_ASSIGN; 47414e8a3c4SBeni Lev NETDEV_ASSIGN; 475683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(&settings->chandef); 47614e8a3c4SBeni Lev __entry->beacon_interval = settings->beacon_interval; 47714e8a3c4SBeni Lev __entry->dtim_period = settings->dtim_period; 47814e8a3c4SBeni Lev __entry->hidden_ssid = settings->hidden_ssid; 47914e8a3c4SBeni Lev __entry->wpa_ver = settings->crypto.wpa_versions; 48014e8a3c4SBeni Lev __entry->privacy = settings->privacy; 48114e8a3c4SBeni Lev __entry->auth_type = settings->auth_type; 48214e8a3c4SBeni Lev __entry->inactivity_timeout = settings->inactivity_timeout; 48314e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 48414e8a3c4SBeni Lev memcpy(__entry->ssid, settings->ssid, settings->ssid_len); 48514e8a3c4SBeni Lev ), 486ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, " 487683b6d3bSJohannes Berg CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " 48814e8a3c4SBeni Lev "hidden ssid: %d, wpa versions: %u, privacy: %s, " 48914e8a3c4SBeni Lev "auth type: %d, inactivity timeout: %d", 490683b6d3bSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG, 49114e8a3c4SBeni Lev __entry->beacon_interval, __entry->dtim_period, 49214e8a3c4SBeni Lev __entry->hidden_ssid, __entry->wpa_ver, 49314e8a3c4SBeni Lev BOOL_TO_STR(__entry->privacy), __entry->auth_type, 49414e8a3c4SBeni Lev __entry->inactivity_timeout) 49514e8a3c4SBeni Lev ); 49614e8a3c4SBeni Lev 49714e8a3c4SBeni Lev TRACE_EVENT(rdev_change_beacon, 49814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 49914e8a3c4SBeni Lev struct cfg80211_beacon_data *info), 50014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, info), 50114e8a3c4SBeni Lev TP_STRUCT__entry( 50214e8a3c4SBeni Lev WIPHY_ENTRY 50314e8a3c4SBeni Lev NETDEV_ENTRY 50414e8a3c4SBeni Lev __dynamic_array(u8, head, info ? info->head_len : 0) 50514e8a3c4SBeni Lev __dynamic_array(u8, tail, info ? info->tail_len : 0) 50614e8a3c4SBeni Lev __dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0) 50714e8a3c4SBeni Lev __dynamic_array(u8, proberesp_ies, 50814e8a3c4SBeni Lev info ? info->proberesp_ies_len : 0) 50914e8a3c4SBeni Lev __dynamic_array(u8, assocresp_ies, 51014e8a3c4SBeni Lev info ? info->assocresp_ies_len : 0) 51114e8a3c4SBeni Lev __dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0) 51214e8a3c4SBeni Lev ), 51314e8a3c4SBeni Lev TP_fast_assign( 51414e8a3c4SBeni Lev WIPHY_ASSIGN; 51514e8a3c4SBeni Lev NETDEV_ASSIGN; 51614e8a3c4SBeni Lev if (info) { 51714e8a3c4SBeni Lev if (info->head) 51814e8a3c4SBeni Lev memcpy(__get_dynamic_array(head), info->head, 51914e8a3c4SBeni Lev info->head_len); 52014e8a3c4SBeni Lev if (info->tail) 52114e8a3c4SBeni Lev memcpy(__get_dynamic_array(tail), info->tail, 52214e8a3c4SBeni Lev info->tail_len); 52314e8a3c4SBeni Lev if (info->beacon_ies) 52414e8a3c4SBeni Lev memcpy(__get_dynamic_array(beacon_ies), 52514e8a3c4SBeni Lev info->beacon_ies, info->beacon_ies_len); 52614e8a3c4SBeni Lev if (info->proberesp_ies) 52714e8a3c4SBeni Lev memcpy(__get_dynamic_array(proberesp_ies), 52814e8a3c4SBeni Lev info->proberesp_ies, 52914e8a3c4SBeni Lev info->proberesp_ies_len); 53014e8a3c4SBeni Lev if (info->assocresp_ies) 53114e8a3c4SBeni Lev memcpy(__get_dynamic_array(assocresp_ies), 53214e8a3c4SBeni Lev info->assocresp_ies, 53314e8a3c4SBeni Lev info->assocresp_ies_len); 53414e8a3c4SBeni Lev if (info->probe_resp) 53514e8a3c4SBeni Lev memcpy(__get_dynamic_array(probe_resp), 53614e8a3c4SBeni Lev info->probe_resp, info->probe_resp_len); 53714e8a3c4SBeni Lev } 53814e8a3c4SBeni Lev ), 539ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 54014e8a3c4SBeni Lev ); 54114e8a3c4SBeni Lev 54214e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_evt, 54314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 54414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev), 54514e8a3c4SBeni Lev TP_STRUCT__entry( 54614e8a3c4SBeni Lev WIPHY_ENTRY 54714e8a3c4SBeni Lev NETDEV_ENTRY 54814e8a3c4SBeni Lev ), 54914e8a3c4SBeni Lev TP_fast_assign( 55014e8a3c4SBeni Lev WIPHY_ASSIGN; 55114e8a3c4SBeni Lev NETDEV_ASSIGN; 55214e8a3c4SBeni Lev ), 553ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 55414e8a3c4SBeni Lev ); 55514e8a3c4SBeni Lev 55614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap, 55714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 55814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 55914e8a3c4SBeni Lev ); 56014e8a3c4SBeni Lev 56114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_get_et_stats, 56214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 56314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 56414e8a3c4SBeni Lev ); 56514e8a3c4SBeni Lev 56614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_sched_scan_stop, 56714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 56814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 56914e8a3c4SBeni Lev ); 57014e8a3c4SBeni Lev 57114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data, 57214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 57314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 57414e8a3c4SBeni Lev ); 57514e8a3c4SBeni Lev 57614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config, 57714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 57814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 57914e8a3c4SBeni Lev ); 58014e8a3c4SBeni Lev 58114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh, 58214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 58314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 58414e8a3c4SBeni Lev ); 58514e8a3c4SBeni Lev 58614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss, 58714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 58814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 58914e8a3c4SBeni Lev ); 59014e8a3c4SBeni Lev 59114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa, 59214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 59314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 59414e8a3c4SBeni Lev ); 59514e8a3c4SBeni Lev 59614e8a3c4SBeni Lev DECLARE_EVENT_CLASS(station_add_change, 59714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 59814e8a3c4SBeni Lev struct station_parameters *params), 59914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params), 60014e8a3c4SBeni Lev TP_STRUCT__entry( 60114e8a3c4SBeni Lev WIPHY_ENTRY 60214e8a3c4SBeni Lev NETDEV_ENTRY 60314e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 60414e8a3c4SBeni Lev __field(u32, sta_flags_mask) 60514e8a3c4SBeni Lev __field(u32, sta_flags_set) 60614e8a3c4SBeni Lev __field(u32, sta_modify_mask) 60714e8a3c4SBeni Lev __field(int, listen_interval) 60814e8a3c4SBeni Lev __field(u16, aid) 60914e8a3c4SBeni Lev __field(u8, plink_action) 61014e8a3c4SBeni Lev __field(u8, plink_state) 61114e8a3c4SBeni Lev __field(u8, uapsd_queues) 61214e8a3c4SBeni Lev __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap)) 61314e8a3c4SBeni Lev ), 61414e8a3c4SBeni Lev TP_fast_assign( 61514e8a3c4SBeni Lev WIPHY_ASSIGN; 61614e8a3c4SBeni Lev NETDEV_ASSIGN; 61714e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 61814e8a3c4SBeni Lev __entry->sta_flags_mask = params->sta_flags_mask; 61914e8a3c4SBeni Lev __entry->sta_flags_set = params->sta_flags_set; 62014e8a3c4SBeni Lev __entry->sta_modify_mask = params->sta_modify_mask; 62114e8a3c4SBeni Lev __entry->listen_interval = params->listen_interval; 62214e8a3c4SBeni Lev __entry->aid = params->aid; 62314e8a3c4SBeni Lev __entry->plink_action = params->plink_action; 62414e8a3c4SBeni Lev __entry->plink_state = params->plink_state; 62514e8a3c4SBeni Lev __entry->uapsd_queues = params->uapsd_queues; 62614e8a3c4SBeni Lev memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap)); 62714e8a3c4SBeni Lev if (params->ht_capa) 62814e8a3c4SBeni Lev memcpy(__entry->ht_capa, params->ht_capa, 62914e8a3c4SBeni Lev sizeof(struct ieee80211_ht_cap)); 63014e8a3c4SBeni Lev ), 631ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT 63214e8a3c4SBeni Lev ", station flags mask: %u, station flags set: %u, " 63314e8a3c4SBeni Lev "station modify mask: %u, listen interval: %d, aid: %u, " 63414e8a3c4SBeni Lev "plink action: %u, plink state: %u, uapsd queues: %u", 63514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 63614e8a3c4SBeni Lev __entry->sta_flags_mask, __entry->sta_flags_set, 63714e8a3c4SBeni Lev __entry->sta_modify_mask, __entry->listen_interval, 63814e8a3c4SBeni Lev __entry->aid, __entry->plink_action, __entry->plink_state, 63914e8a3c4SBeni Lev __entry->uapsd_queues) 64014e8a3c4SBeni Lev ); 64114e8a3c4SBeni Lev 64214e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_add_station, 64314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 64414e8a3c4SBeni Lev struct station_parameters *params), 64514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 64614e8a3c4SBeni Lev ); 64714e8a3c4SBeni Lev 64814e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_change_station, 64914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 65014e8a3c4SBeni Lev struct station_parameters *params), 65114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 65214e8a3c4SBeni Lev ); 65314e8a3c4SBeni Lev 65414e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt, 65514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 65614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac), 65714e8a3c4SBeni Lev TP_STRUCT__entry( 65814e8a3c4SBeni Lev WIPHY_ENTRY 65914e8a3c4SBeni Lev NETDEV_ENTRY 66014e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 66114e8a3c4SBeni Lev ), 66214e8a3c4SBeni Lev TP_fast_assign( 66314e8a3c4SBeni Lev WIPHY_ASSIGN; 66414e8a3c4SBeni Lev NETDEV_ASSIGN; 66514e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 66614e8a3c4SBeni Lev ), 667ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 66814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) 66914e8a3c4SBeni Lev ); 67014e8a3c4SBeni Lev 67114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_station, 67214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 67314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 67414e8a3c4SBeni Lev ); 67514e8a3c4SBeni Lev 67614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station, 67714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 67814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 67914e8a3c4SBeni Lev ); 68014e8a3c4SBeni Lev 68114e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath, 68214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 68314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 68414e8a3c4SBeni Lev ); 68514e8a3c4SBeni Lev 68614e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer, 68714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 68814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 68914e8a3c4SBeni Lev ); 69014e8a3c4SBeni Lev 69114e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_station, 69214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx, 69314e8a3c4SBeni Lev u8 *mac), 69414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx, mac), 69514e8a3c4SBeni Lev TP_STRUCT__entry( 69614e8a3c4SBeni Lev WIPHY_ENTRY 69714e8a3c4SBeni Lev NETDEV_ENTRY 69814e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 69914e8a3c4SBeni Lev __field(int, idx) 70014e8a3c4SBeni Lev ), 70114e8a3c4SBeni Lev TP_fast_assign( 70214e8a3c4SBeni Lev WIPHY_ASSIGN; 70314e8a3c4SBeni Lev NETDEV_ASSIGN; 70414e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 70514e8a3c4SBeni Lev __entry->idx = idx; 70614e8a3c4SBeni Lev ), 707ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d", 70814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 70914e8a3c4SBeni Lev __entry->idx) 71014e8a3c4SBeni Lev ); 71114e8a3c4SBeni Lev 71214e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_station_info, 71314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo), 71414e8a3c4SBeni Lev TP_ARGS(wiphy, ret, sinfo), 71514e8a3c4SBeni Lev TP_STRUCT__entry( 71614e8a3c4SBeni Lev WIPHY_ENTRY 71714e8a3c4SBeni Lev __field(int, ret) 71814e8a3c4SBeni Lev SINFO_ENTRY 71914e8a3c4SBeni Lev ), 72014e8a3c4SBeni Lev TP_fast_assign( 72114e8a3c4SBeni Lev WIPHY_ASSIGN; 72214e8a3c4SBeni Lev __entry->ret = ret; 72314e8a3c4SBeni Lev SINFO_ASSIGN; 72414e8a3c4SBeni Lev ), 72514e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d" , 72614e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 72714e8a3c4SBeni Lev ); 72814e8a3c4SBeni Lev 72914e8a3c4SBeni Lev DECLARE_EVENT_CLASS(mpath_evt, 73014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 73114e8a3c4SBeni Lev u8 *next_hop), 73214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop), 73314e8a3c4SBeni Lev TP_STRUCT__entry( 73414e8a3c4SBeni Lev WIPHY_ENTRY 73514e8a3c4SBeni Lev NETDEV_ENTRY 73614e8a3c4SBeni Lev MAC_ENTRY(dst) 73714e8a3c4SBeni Lev MAC_ENTRY(next_hop) 73814e8a3c4SBeni Lev ), 73914e8a3c4SBeni Lev TP_fast_assign( 74014e8a3c4SBeni Lev WIPHY_ASSIGN; 74114e8a3c4SBeni Lev NETDEV_ASSIGN; 74214e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 74314e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 74414e8a3c4SBeni Lev ), 745ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT, 74614e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst), 74714e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 74814e8a3c4SBeni Lev ); 74914e8a3c4SBeni Lev 75014e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_add_mpath, 75114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 75214e8a3c4SBeni Lev u8 *next_hop), 75314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 75414e8a3c4SBeni Lev ); 75514e8a3c4SBeni Lev 75614e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_change_mpath, 75714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 75814e8a3c4SBeni Lev u8 *next_hop), 75914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 76014e8a3c4SBeni Lev ); 76114e8a3c4SBeni Lev 76214e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_get_mpath, 76314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 76414e8a3c4SBeni Lev u8 *next_hop), 76514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 76614e8a3c4SBeni Lev ); 76714e8a3c4SBeni Lev 76814e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_mpath, 76914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx, 77014e8a3c4SBeni Lev u8 *dst, u8 *next_hop), 77114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx, dst, next_hop), 77214e8a3c4SBeni Lev TP_STRUCT__entry( 77314e8a3c4SBeni Lev WIPHY_ENTRY 77414e8a3c4SBeni Lev NETDEV_ENTRY 77514e8a3c4SBeni Lev MAC_ENTRY(dst) 77614e8a3c4SBeni Lev MAC_ENTRY(next_hop) 77714e8a3c4SBeni Lev __field(int, idx) 77814e8a3c4SBeni Lev ), 77914e8a3c4SBeni Lev TP_fast_assign( 78014e8a3c4SBeni Lev WIPHY_ASSIGN; 78114e8a3c4SBeni Lev NETDEV_ASSIGN; 78214e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 78314e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 78414e8a3c4SBeni Lev __entry->idx = idx; 78514e8a3c4SBeni Lev ), 786ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " 78714e8a3c4SBeni Lev MAC_PR_FMT ", next hop: " MAC_PR_FMT, 78814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), 78914e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 79014e8a3c4SBeni Lev ); 79114e8a3c4SBeni Lev 79214e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mpath_info, 79314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo), 79414e8a3c4SBeni Lev TP_ARGS(wiphy, ret, pinfo), 79514e8a3c4SBeni Lev TP_STRUCT__entry( 79614e8a3c4SBeni Lev WIPHY_ENTRY 79714e8a3c4SBeni Lev __field(int, ret) 79814e8a3c4SBeni Lev __field(int, generation) 79914e8a3c4SBeni Lev __field(u32, filled) 80014e8a3c4SBeni Lev __field(u32, frame_qlen) 80114e8a3c4SBeni Lev __field(u32, sn) 80214e8a3c4SBeni Lev __field(u32, metric) 80314e8a3c4SBeni Lev __field(u32, exptime) 80414e8a3c4SBeni Lev __field(u32, discovery_timeout) 80514e8a3c4SBeni Lev __field(u8, discovery_retries) 80614e8a3c4SBeni Lev __field(u8, flags) 80714e8a3c4SBeni Lev ), 80814e8a3c4SBeni Lev TP_fast_assign( 80914e8a3c4SBeni Lev WIPHY_ASSIGN; 81014e8a3c4SBeni Lev __entry->ret = ret; 81114e8a3c4SBeni Lev __entry->generation = pinfo->generation; 81214e8a3c4SBeni Lev __entry->filled = pinfo->filled; 81314e8a3c4SBeni Lev __entry->frame_qlen = pinfo->frame_qlen; 81414e8a3c4SBeni Lev __entry->sn = pinfo->sn; 81514e8a3c4SBeni Lev __entry->metric = pinfo->metric; 81614e8a3c4SBeni Lev __entry->exptime = pinfo->exptime; 81714e8a3c4SBeni Lev __entry->discovery_timeout = pinfo->discovery_timeout; 81814e8a3c4SBeni Lev __entry->discovery_retries = pinfo->discovery_retries; 81914e8a3c4SBeni Lev __entry->flags = pinfo->flags; 82014e8a3c4SBeni Lev ), 82114e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, " 82214e8a3c4SBeni Lev "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u," 82314e8a3c4SBeni Lev " discovery timeout: %u, discovery retries: %u, flags: %u", 82414e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->generation, 82514e8a3c4SBeni Lev __entry->filled, __entry->frame_qlen, __entry->sn, 82614e8a3c4SBeni Lev __entry->metric, __entry->exptime, __entry->discovery_timeout, 82714e8a3c4SBeni Lev __entry->discovery_retries, __entry->flags) 82814e8a3c4SBeni Lev ); 82914e8a3c4SBeni Lev 83014e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mesh_config, 83114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf), 83214e8a3c4SBeni Lev TP_ARGS(wiphy, ret, conf), 83314e8a3c4SBeni Lev TP_STRUCT__entry( 83414e8a3c4SBeni Lev WIPHY_ENTRY 83514e8a3c4SBeni Lev MESH_CFG_ENTRY 83614e8a3c4SBeni Lev __field(int, ret) 83714e8a3c4SBeni Lev ), 83814e8a3c4SBeni Lev TP_fast_assign( 83914e8a3c4SBeni Lev WIPHY_ASSIGN; 84014e8a3c4SBeni Lev MESH_CFG_ASSIGN; 84114e8a3c4SBeni Lev __entry->ret = ret; 84214e8a3c4SBeni Lev ), 84314e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d", 84414e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 84514e8a3c4SBeni Lev ); 84614e8a3c4SBeni Lev 84714e8a3c4SBeni Lev TRACE_EVENT(rdev_update_mesh_config, 84814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask, 84914e8a3c4SBeni Lev const struct mesh_config *conf), 85014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mask, conf), 85114e8a3c4SBeni Lev TP_STRUCT__entry( 85214e8a3c4SBeni Lev WIPHY_ENTRY 85314e8a3c4SBeni Lev NETDEV_ENTRY 85414e8a3c4SBeni Lev MESH_CFG_ENTRY 85514e8a3c4SBeni Lev __field(u32, mask) 85614e8a3c4SBeni Lev ), 85714e8a3c4SBeni Lev TP_fast_assign( 85814e8a3c4SBeni Lev WIPHY_ASSIGN; 85914e8a3c4SBeni Lev NETDEV_ASSIGN; 86014e8a3c4SBeni Lev MESH_CFG_ASSIGN; 86114e8a3c4SBeni Lev __entry->mask = mask; 86214e8a3c4SBeni Lev ), 863ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u", 86414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) 86514e8a3c4SBeni Lev ); 86614e8a3c4SBeni Lev 86714e8a3c4SBeni Lev TRACE_EVENT(rdev_join_mesh, 86814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 86914e8a3c4SBeni Lev const struct mesh_config *conf, 87014e8a3c4SBeni Lev const struct mesh_setup *setup), 87114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, conf, setup), 87214e8a3c4SBeni Lev TP_STRUCT__entry( 87314e8a3c4SBeni Lev WIPHY_ENTRY 87414e8a3c4SBeni Lev NETDEV_ENTRY 87514e8a3c4SBeni Lev MESH_CFG_ENTRY 87614e8a3c4SBeni Lev ), 87714e8a3c4SBeni Lev TP_fast_assign( 87814e8a3c4SBeni Lev WIPHY_ASSIGN; 87914e8a3c4SBeni Lev NETDEV_ASSIGN; 88014e8a3c4SBeni Lev MESH_CFG_ASSIGN; 88114e8a3c4SBeni Lev ), 882ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 88314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG) 88414e8a3c4SBeni Lev ); 88514e8a3c4SBeni Lev 88614e8a3c4SBeni Lev TRACE_EVENT(rdev_change_bss, 88714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 88814e8a3c4SBeni Lev struct bss_parameters *params), 88914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 89014e8a3c4SBeni Lev TP_STRUCT__entry( 89114e8a3c4SBeni Lev WIPHY_ENTRY 89214e8a3c4SBeni Lev NETDEV_ENTRY 89314e8a3c4SBeni Lev __field(int, use_cts_prot) 89414e8a3c4SBeni Lev __field(int, use_short_preamble) 89514e8a3c4SBeni Lev __field(int, use_short_slot_time) 89614e8a3c4SBeni Lev __field(int, ap_isolate) 89714e8a3c4SBeni Lev __field(int, ht_opmode) 89814e8a3c4SBeni Lev ), 89914e8a3c4SBeni Lev TP_fast_assign( 90014e8a3c4SBeni Lev WIPHY_ASSIGN; 90114e8a3c4SBeni Lev NETDEV_ASSIGN; 90214e8a3c4SBeni Lev __entry->use_cts_prot = params->use_cts_prot; 90314e8a3c4SBeni Lev __entry->use_short_preamble = params->use_short_preamble; 90414e8a3c4SBeni Lev __entry->use_short_slot_time = params->use_short_slot_time; 90514e8a3c4SBeni Lev __entry->ap_isolate = params->ap_isolate; 90614e8a3c4SBeni Lev __entry->ht_opmode = params->ht_opmode; 90714e8a3c4SBeni Lev ), 908ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, " 90914e8a3c4SBeni Lev "use short preamble: %d, use short slot time: %d, " 91014e8a3c4SBeni Lev "ap isolate: %d, ht opmode: %d", 91114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, 91214e8a3c4SBeni Lev __entry->use_short_preamble, __entry->use_short_slot_time, 91314e8a3c4SBeni Lev __entry->ap_isolate, __entry->ht_opmode) 91414e8a3c4SBeni Lev ); 91514e8a3c4SBeni Lev 91614e8a3c4SBeni Lev TRACE_EVENT(rdev_set_txq_params, 91714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 91814e8a3c4SBeni Lev struct ieee80211_txq_params *params), 91914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 92014e8a3c4SBeni Lev TP_STRUCT__entry( 92114e8a3c4SBeni Lev WIPHY_ENTRY 92214e8a3c4SBeni Lev NETDEV_ENTRY 92314e8a3c4SBeni Lev __field(enum nl80211_ac, ac) 92414e8a3c4SBeni Lev __field(u16, txop) 92514e8a3c4SBeni Lev __field(u16, cwmin) 92614e8a3c4SBeni Lev __field(u16, cwmax) 92714e8a3c4SBeni Lev __field(u8, aifs) 92814e8a3c4SBeni Lev ), 92914e8a3c4SBeni Lev TP_fast_assign( 93014e8a3c4SBeni Lev WIPHY_ASSIGN; 93114e8a3c4SBeni Lev NETDEV_ASSIGN; 93214e8a3c4SBeni Lev __entry->ac = params->ac; 93314e8a3c4SBeni Lev __entry->txop = params->txop; 93414e8a3c4SBeni Lev __entry->cwmin = params->cwmin; 93514e8a3c4SBeni Lev __entry->cwmax = params->cwmax; 93614e8a3c4SBeni Lev __entry->aifs = params->aifs; 93714e8a3c4SBeni Lev ), 938ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", 93914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, 94014e8a3c4SBeni Lev __entry->cwmin, __entry->cwmax, __entry->aifs) 94114e8a3c4SBeni Lev ); 94214e8a3c4SBeni Lev 94314e8a3c4SBeni Lev TRACE_EVENT(rdev_libertas_set_mesh_channel, 94414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 94514e8a3c4SBeni Lev struct ieee80211_channel *chan), 94614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, chan), 94714e8a3c4SBeni Lev TP_STRUCT__entry( 94814e8a3c4SBeni Lev WIPHY_ENTRY 94914e8a3c4SBeni Lev NETDEV_ENTRY 95014e8a3c4SBeni Lev CHAN_ENTRY 95114e8a3c4SBeni Lev ), 95214e8a3c4SBeni Lev TP_fast_assign( 95314e8a3c4SBeni Lev WIPHY_ASSIGN; 95414e8a3c4SBeni Lev NETDEV_ASSIGN; 95514e8a3c4SBeni Lev CHAN_ASSIGN(chan); 95614e8a3c4SBeni Lev ), 957ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG, 95814e8a3c4SBeni Lev NETDEV_PR_ARG, CHAN_PR_ARG) 95914e8a3c4SBeni Lev ); 96014e8a3c4SBeni Lev 96114e8a3c4SBeni Lev TRACE_EVENT(rdev_set_monitor_channel, 962683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, 963683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 964683b6d3bSJohannes Berg TP_ARGS(wiphy, chandef), 96514e8a3c4SBeni Lev TP_STRUCT__entry( 96614e8a3c4SBeni Lev WIPHY_ENTRY 967683b6d3bSJohannes Berg CHAN_DEF_ENTRY 96814e8a3c4SBeni Lev ), 96914e8a3c4SBeni Lev TP_fast_assign( 97014e8a3c4SBeni Lev WIPHY_ASSIGN; 971683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 97214e8a3c4SBeni Lev ), 973ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 974683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 97514e8a3c4SBeni Lev ); 97614e8a3c4SBeni Lev 97714e8a3c4SBeni Lev TRACE_EVENT(rdev_auth, 97814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 97914e8a3c4SBeni Lev struct cfg80211_auth_request *req), 98014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 98114e8a3c4SBeni Lev TP_STRUCT__entry( 98214e8a3c4SBeni Lev WIPHY_ENTRY 98314e8a3c4SBeni Lev NETDEV_ENTRY 98414e8a3c4SBeni Lev MAC_ENTRY(bssid) 98514e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 98614e8a3c4SBeni Lev ), 98714e8a3c4SBeni Lev TP_fast_assign( 98814e8a3c4SBeni Lev WIPHY_ASSIGN; 98914e8a3c4SBeni Lev NETDEV_ASSIGN; 99014e8a3c4SBeni Lev if (req->bss) 99114e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 99214e8a3c4SBeni Lev else 99314e8a3c4SBeni Lev memset(__entry->bssid, 0, ETH_ALEN); 99414e8a3c4SBeni Lev __entry->auth_type = req->auth_type; 99514e8a3c4SBeni Lev ), 996ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT, 99714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, 99814e8a3c4SBeni Lev MAC_PR_ARG(bssid)) 99914e8a3c4SBeni Lev ); 100014e8a3c4SBeni Lev 100114e8a3c4SBeni Lev TRACE_EVENT(rdev_assoc, 100214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 100314e8a3c4SBeni Lev struct cfg80211_assoc_request *req), 100414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 100514e8a3c4SBeni Lev TP_STRUCT__entry( 100614e8a3c4SBeni Lev WIPHY_ENTRY 100714e8a3c4SBeni Lev NETDEV_ENTRY 100814e8a3c4SBeni Lev MAC_ENTRY(bssid) 100914e8a3c4SBeni Lev MAC_ENTRY(prev_bssid) 101014e8a3c4SBeni Lev __field(bool, use_mfp) 101114e8a3c4SBeni Lev __field(u32, flags) 101214e8a3c4SBeni Lev ), 101314e8a3c4SBeni Lev TP_fast_assign( 101414e8a3c4SBeni Lev WIPHY_ASSIGN; 101514e8a3c4SBeni Lev NETDEV_ASSIGN; 101614e8a3c4SBeni Lev if (req->bss) 101714e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 101814e8a3c4SBeni Lev else 101914e8a3c4SBeni Lev memset(__entry->bssid, 0, ETH_ALEN); 102014e8a3c4SBeni Lev MAC_ASSIGN(prev_bssid, req->prev_bssid); 102114e8a3c4SBeni Lev __entry->use_mfp = req->use_mfp; 102214e8a3c4SBeni Lev __entry->flags = req->flags; 102314e8a3c4SBeni Lev ), 1024ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 102514e8a3c4SBeni Lev ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u", 102614e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 102714e8a3c4SBeni Lev MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp), 102814e8a3c4SBeni Lev __entry->flags) 102914e8a3c4SBeni Lev ); 103014e8a3c4SBeni Lev 103114e8a3c4SBeni Lev TRACE_EVENT(rdev_deauth, 103214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 103314e8a3c4SBeni Lev struct cfg80211_deauth_request *req), 103414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 103514e8a3c4SBeni Lev TP_STRUCT__entry( 103614e8a3c4SBeni Lev WIPHY_ENTRY 103714e8a3c4SBeni Lev NETDEV_ENTRY 103814e8a3c4SBeni Lev MAC_ENTRY(bssid) 103914e8a3c4SBeni Lev __field(u16, reason_code) 104014e8a3c4SBeni Lev ), 104114e8a3c4SBeni Lev TP_fast_assign( 104214e8a3c4SBeni Lev WIPHY_ASSIGN; 104314e8a3c4SBeni Lev NETDEV_ASSIGN; 104414e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bssid); 104514e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 104614e8a3c4SBeni Lev ), 1047ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u", 104814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 104914e8a3c4SBeni Lev __entry->reason_code) 105014e8a3c4SBeni Lev ); 105114e8a3c4SBeni Lev 105214e8a3c4SBeni Lev TRACE_EVENT(rdev_disassoc, 105314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 105414e8a3c4SBeni Lev struct cfg80211_disassoc_request *req), 105514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 105614e8a3c4SBeni Lev TP_STRUCT__entry( 105714e8a3c4SBeni Lev WIPHY_ENTRY 105814e8a3c4SBeni Lev NETDEV_ENTRY 105914e8a3c4SBeni Lev MAC_ENTRY(bssid) 106014e8a3c4SBeni Lev __field(u16, reason_code) 106114e8a3c4SBeni Lev __field(bool, local_state_change) 106214e8a3c4SBeni Lev ), 106314e8a3c4SBeni Lev TP_fast_assign( 106414e8a3c4SBeni Lev WIPHY_ASSIGN; 106514e8a3c4SBeni Lev NETDEV_ASSIGN; 106614e8a3c4SBeni Lev if (req->bss) 106714e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 106814e8a3c4SBeni Lev else 106914e8a3c4SBeni Lev memset(__entry->bssid, 0, ETH_ALEN); 107014e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 107114e8a3c4SBeni Lev __entry->local_state_change = req->local_state_change; 107214e8a3c4SBeni Lev ), 1073ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 107414e8a3c4SBeni Lev ", reason: %u, local state change: %s", 107514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 107614e8a3c4SBeni Lev __entry->reason_code, 107714e8a3c4SBeni Lev BOOL_TO_STR(__entry->local_state_change)) 107814e8a3c4SBeni Lev ); 107914e8a3c4SBeni Lev 108014e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx_cancel_wait, 108114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 108214e8a3c4SBeni Lev struct wireless_dev *wdev, u64 cookie), 108314e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 108414e8a3c4SBeni Lev TP_STRUCT__entry( 108514e8a3c4SBeni Lev WIPHY_ENTRY 108614e8a3c4SBeni Lev WDEV_ENTRY 108714e8a3c4SBeni Lev __field(u64, cookie) 108814e8a3c4SBeni Lev ), 108914e8a3c4SBeni Lev TP_fast_assign( 109014e8a3c4SBeni Lev WIPHY_ASSIGN; 109114e8a3c4SBeni Lev WDEV_ASSIGN; 109214e8a3c4SBeni Lev __entry->cookie = cookie; 109314e8a3c4SBeni Lev ), 1094ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ", 109514e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 109614e8a3c4SBeni Lev ); 109714e8a3c4SBeni Lev 109814e8a3c4SBeni Lev TRACE_EVENT(rdev_set_power_mgmt, 109914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 110014e8a3c4SBeni Lev bool enabled, int timeout), 110114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, enabled, timeout), 110214e8a3c4SBeni Lev TP_STRUCT__entry( 110314e8a3c4SBeni Lev WIPHY_ENTRY 110414e8a3c4SBeni Lev NETDEV_ENTRY 110514e8a3c4SBeni Lev __field(bool, enabled) 110614e8a3c4SBeni Lev __field(int, timeout) 110714e8a3c4SBeni Lev ), 110814e8a3c4SBeni Lev TP_fast_assign( 110914e8a3c4SBeni Lev WIPHY_ASSIGN; 111014e8a3c4SBeni Lev NETDEV_ASSIGN; 111114e8a3c4SBeni Lev __entry->enabled = enabled; 111214e8a3c4SBeni Lev __entry->timeout = timeout; 111314e8a3c4SBeni Lev ), 1114ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ", 111514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 111614e8a3c4SBeni Lev __entry->enabled ? "" : "not ", __entry->timeout) 111714e8a3c4SBeni Lev ); 111814e8a3c4SBeni Lev 111914e8a3c4SBeni Lev TRACE_EVENT(rdev_connect, 112014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 112114e8a3c4SBeni Lev struct cfg80211_connect_params *sme), 112214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, sme), 112314e8a3c4SBeni Lev TP_STRUCT__entry( 112414e8a3c4SBeni Lev WIPHY_ENTRY 112514e8a3c4SBeni Lev NETDEV_ENTRY 112614e8a3c4SBeni Lev MAC_ENTRY(bssid) 112714e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 112814e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 112914e8a3c4SBeni Lev __field(bool, privacy) 113014e8a3c4SBeni Lev __field(u32, wpa_versions) 113114e8a3c4SBeni Lev __field(u32, flags) 113214e8a3c4SBeni Lev ), 113314e8a3c4SBeni Lev TP_fast_assign( 113414e8a3c4SBeni Lev WIPHY_ASSIGN; 113514e8a3c4SBeni Lev NETDEV_ASSIGN; 113614e8a3c4SBeni Lev MAC_ASSIGN(bssid, sme->bssid); 113714e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 113814e8a3c4SBeni Lev memcpy(__entry->ssid, sme->ssid, sme->ssid_len); 113914e8a3c4SBeni Lev __entry->auth_type = sme->auth_type; 114014e8a3c4SBeni Lev __entry->privacy = sme->privacy; 114114e8a3c4SBeni Lev __entry->wpa_versions = sme->crypto.wpa_versions; 114214e8a3c4SBeni Lev __entry->flags = sme->flags; 114314e8a3c4SBeni Lev ), 1144ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 114514e8a3c4SBeni Lev ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " 114614e8a3c4SBeni Lev "flags: %u", 114714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid, 114814e8a3c4SBeni Lev __entry->auth_type, BOOL_TO_STR(__entry->privacy), 114914e8a3c4SBeni Lev __entry->wpa_versions, __entry->flags) 115014e8a3c4SBeni Lev ); 115114e8a3c4SBeni Lev 115214e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_rssi_config, 115314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 115414e8a3c4SBeni Lev struct net_device *netdev, s32 rssi_thold, 115514e8a3c4SBeni Lev u32 rssi_hyst), 115614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst), 115714e8a3c4SBeni Lev TP_STRUCT__entry( 115814e8a3c4SBeni Lev WIPHY_ENTRY 115914e8a3c4SBeni Lev NETDEV_ENTRY 116014e8a3c4SBeni Lev __field(s32, rssi_thold) 116114e8a3c4SBeni Lev __field(u32, rssi_hyst) 116214e8a3c4SBeni Lev ), 116314e8a3c4SBeni Lev TP_fast_assign( 116414e8a3c4SBeni Lev WIPHY_ASSIGN; 116514e8a3c4SBeni Lev NETDEV_ASSIGN; 116614e8a3c4SBeni Lev __entry->rssi_thold = rssi_thold; 116714e8a3c4SBeni Lev __entry->rssi_hyst = rssi_hyst; 116814e8a3c4SBeni Lev ), 1169ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 117014e8a3c4SBeni Lev ", rssi_thold: %d, rssi_hyst: %u ", 117114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 117214e8a3c4SBeni Lev __entry->rssi_thold, __entry->rssi_hyst) 117314e8a3c4SBeni Lev ); 117414e8a3c4SBeni Lev 117514e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_txe_config, 117614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate, 117714e8a3c4SBeni Lev u32 pkts, u32 intvl), 117814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rate, pkts, intvl), 117914e8a3c4SBeni Lev TP_STRUCT__entry( 118014e8a3c4SBeni Lev WIPHY_ENTRY 118114e8a3c4SBeni Lev NETDEV_ENTRY 118214e8a3c4SBeni Lev __field(u32, rate) 118314e8a3c4SBeni Lev __field(u32, pkts) 118414e8a3c4SBeni Lev __field(u32, intvl) 118514e8a3c4SBeni Lev ), 118614e8a3c4SBeni Lev TP_fast_assign( 118714e8a3c4SBeni Lev WIPHY_ASSIGN; 118814e8a3c4SBeni Lev NETDEV_ASSIGN; 118914e8a3c4SBeni Lev __entry->rate = rate; 119014e8a3c4SBeni Lev __entry->pkts = pkts; 119114e8a3c4SBeni Lev __entry->intvl = intvl; 119214e8a3c4SBeni Lev ), 1193ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", 119414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, 119514e8a3c4SBeni Lev __entry->intvl) 119614e8a3c4SBeni Lev ); 119714e8a3c4SBeni Lev 119814e8a3c4SBeni Lev TRACE_EVENT(rdev_disconnect, 119914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 120014e8a3c4SBeni Lev u16 reason_code), 120114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, reason_code), 120214e8a3c4SBeni Lev TP_STRUCT__entry( 120314e8a3c4SBeni Lev WIPHY_ENTRY 120414e8a3c4SBeni Lev NETDEV_ENTRY 120514e8a3c4SBeni Lev __field(u16, reason_code) 120614e8a3c4SBeni Lev ), 120714e8a3c4SBeni Lev TP_fast_assign( 120814e8a3c4SBeni Lev WIPHY_ASSIGN; 120914e8a3c4SBeni Lev NETDEV_ASSIGN; 121014e8a3c4SBeni Lev __entry->reason_code = reason_code; 121114e8a3c4SBeni Lev ), 1212ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, 121314e8a3c4SBeni Lev NETDEV_PR_ARG, __entry->reason_code) 121414e8a3c4SBeni Lev ); 121514e8a3c4SBeni Lev 121614e8a3c4SBeni Lev TRACE_EVENT(rdev_join_ibss, 121714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 121814e8a3c4SBeni Lev struct cfg80211_ibss_params *params), 121914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 122014e8a3c4SBeni Lev TP_STRUCT__entry( 122114e8a3c4SBeni Lev WIPHY_ENTRY 122214e8a3c4SBeni Lev NETDEV_ENTRY 122314e8a3c4SBeni Lev MAC_ENTRY(bssid) 122414e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 122514e8a3c4SBeni Lev ), 122614e8a3c4SBeni Lev TP_fast_assign( 122714e8a3c4SBeni Lev WIPHY_ASSIGN; 122814e8a3c4SBeni Lev NETDEV_ASSIGN; 122914e8a3c4SBeni Lev MAC_ASSIGN(bssid, params->bssid); 123014e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 123114e8a3c4SBeni Lev memcpy(__entry->ssid, params->ssid, params->ssid_len); 123214e8a3c4SBeni Lev ), 1233ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s", 123414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid) 123514e8a3c4SBeni Lev ); 123614e8a3c4SBeni Lev 123714e8a3c4SBeni Lev TRACE_EVENT(rdev_set_wiphy_params, 123814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 changed), 123914e8a3c4SBeni Lev TP_ARGS(wiphy, changed), 124014e8a3c4SBeni Lev TP_STRUCT__entry( 124114e8a3c4SBeni Lev WIPHY_ENTRY 124214e8a3c4SBeni Lev __field(u32, changed) 124314e8a3c4SBeni Lev ), 124414e8a3c4SBeni Lev TP_fast_assign( 124514e8a3c4SBeni Lev WIPHY_ASSIGN; 124614e8a3c4SBeni Lev __entry->changed = changed; 124714e8a3c4SBeni Lev ), 124814e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", changed: %u", 124914e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->changed) 125014e8a3c4SBeni Lev ); 125114e8a3c4SBeni Lev 1252c8442118SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power, 1253c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1254c8442118SJohannes Berg TP_ARGS(wiphy, wdev) 1255c8442118SJohannes Berg ); 1256c8442118SJohannes Berg 125714e8a3c4SBeni Lev TRACE_EVENT(rdev_set_tx_power, 1258c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1259c8442118SJohannes Berg enum nl80211_tx_power_setting type, int mbm), 1260c8442118SJohannes Berg TP_ARGS(wiphy, wdev, type, mbm), 126114e8a3c4SBeni Lev TP_STRUCT__entry( 126214e8a3c4SBeni Lev WIPHY_ENTRY 1263c8442118SJohannes Berg WDEV_ENTRY 126414e8a3c4SBeni Lev __field(enum nl80211_tx_power_setting, type) 126514e8a3c4SBeni Lev __field(int, mbm) 126614e8a3c4SBeni Lev ), 126714e8a3c4SBeni Lev TP_fast_assign( 126814e8a3c4SBeni Lev WIPHY_ASSIGN; 1269c8442118SJohannes Berg WDEV_ASSIGN; 127014e8a3c4SBeni Lev __entry->type = type; 127114e8a3c4SBeni Lev __entry->mbm = mbm; 127214e8a3c4SBeni Lev ), 1273ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type: %u, mbm: %d", 1274c8442118SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm) 127514e8a3c4SBeni Lev ); 127614e8a3c4SBeni Lev 127714e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_int, 127814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill), 127914e8a3c4SBeni Lev TP_ARGS(wiphy, func_ret, func_fill), 128014e8a3c4SBeni Lev TP_STRUCT__entry( 128114e8a3c4SBeni Lev WIPHY_ENTRY 128214e8a3c4SBeni Lev __field(int, func_ret) 128314e8a3c4SBeni Lev __field(int, func_fill) 128414e8a3c4SBeni Lev ), 128514e8a3c4SBeni Lev TP_fast_assign( 128614e8a3c4SBeni Lev WIPHY_ASSIGN; 128714e8a3c4SBeni Lev __entry->func_ret = func_ret; 128814e8a3c4SBeni Lev __entry->func_fill = func_fill; 128914e8a3c4SBeni Lev ), 129014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d", 129114e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill) 129214e8a3c4SBeni Lev ); 129314e8a3c4SBeni Lev 129414e8a3c4SBeni Lev #ifdef CONFIG_NL80211_TESTMODE 129514e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_cmd, 129614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 129714e8a3c4SBeni Lev TP_ARGS(wiphy), 129814e8a3c4SBeni Lev TP_STRUCT__entry( 129914e8a3c4SBeni Lev WIPHY_ENTRY 130014e8a3c4SBeni Lev ), 130114e8a3c4SBeni Lev TP_fast_assign( 130214e8a3c4SBeni Lev WIPHY_ASSIGN; 130314e8a3c4SBeni Lev ), 130414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 130514e8a3c4SBeni Lev ); 130614e8a3c4SBeni Lev 130714e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_dump, 130814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 130914e8a3c4SBeni Lev TP_ARGS(wiphy), 131014e8a3c4SBeni Lev TP_STRUCT__entry( 131114e8a3c4SBeni Lev WIPHY_ENTRY 131214e8a3c4SBeni Lev ), 131314e8a3c4SBeni Lev TP_fast_assign( 131414e8a3c4SBeni Lev WIPHY_ASSIGN; 131514e8a3c4SBeni Lev ), 131614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 131714e8a3c4SBeni Lev ); 131814e8a3c4SBeni Lev #endif /* CONFIG_NL80211_TESTMODE */ 131914e8a3c4SBeni Lev 132014e8a3c4SBeni Lev TRACE_EVENT(rdev_set_bitrate_mask, 132114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 132214e8a3c4SBeni Lev const u8 *peer, const struct cfg80211_bitrate_mask *mask), 132314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, mask), 132414e8a3c4SBeni Lev TP_STRUCT__entry( 132514e8a3c4SBeni Lev WIPHY_ENTRY 132614e8a3c4SBeni Lev NETDEV_ENTRY 132714e8a3c4SBeni Lev MAC_ENTRY(peer) 132814e8a3c4SBeni Lev ), 132914e8a3c4SBeni Lev TP_fast_assign( 133014e8a3c4SBeni Lev WIPHY_ASSIGN; 133114e8a3c4SBeni Lev NETDEV_ASSIGN; 133214e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 133314e8a3c4SBeni Lev ), 1334ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT, 133514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 133614e8a3c4SBeni Lev ); 133714e8a3c4SBeni Lev 133814e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_frame_register, 133914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 134014e8a3c4SBeni Lev u16 frame_type, bool reg), 134114e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, frame_type, reg), 134214e8a3c4SBeni Lev TP_STRUCT__entry( 134314e8a3c4SBeni Lev WIPHY_ENTRY 134414e8a3c4SBeni Lev WDEV_ENTRY 134514e8a3c4SBeni Lev __field(u16, frame_type) 134614e8a3c4SBeni Lev __field(bool, reg) 134714e8a3c4SBeni Lev ), 134814e8a3c4SBeni Lev TP_fast_assign( 134914e8a3c4SBeni Lev WIPHY_ASSIGN; 135014e8a3c4SBeni Lev WDEV_ASSIGN; 135114e8a3c4SBeni Lev __entry->frame_type = frame_type; 135214e8a3c4SBeni Lev __entry->reg = reg; 135314e8a3c4SBeni Lev ), 1354ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", frame_type: 0x%.2x, reg: %s ", 135514e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type, 135614e8a3c4SBeni Lev __entry->reg ? "true" : "false") 135714e8a3c4SBeni Lev ); 135814e8a3c4SBeni Lev 135914e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_tx_rx, 136014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx), 136114e8a3c4SBeni Lev TP_ARGS(wiphy, ret, tx, rx), 136214e8a3c4SBeni Lev TP_STRUCT__entry( 136314e8a3c4SBeni Lev WIPHY_ENTRY 136414e8a3c4SBeni Lev __field(int, ret) 136514e8a3c4SBeni Lev __field(u32, tx) 136614e8a3c4SBeni Lev __field(u32, rx) 136714e8a3c4SBeni Lev ), 136814e8a3c4SBeni Lev TP_fast_assign( 136914e8a3c4SBeni Lev WIPHY_ASSIGN; 137014e8a3c4SBeni Lev __entry->ret = ret; 137114e8a3c4SBeni Lev __entry->tx = tx; 137214e8a3c4SBeni Lev __entry->rx = rx; 137314e8a3c4SBeni Lev ), 137414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u", 137514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx) 137614e8a3c4SBeni Lev ); 137714e8a3c4SBeni Lev 137814e8a3c4SBeni Lev TRACE_EVENT(rdev_return_void_tx_rx, 137914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max, 138014e8a3c4SBeni Lev u32 rx, u32 rx_max), 138114e8a3c4SBeni Lev TP_ARGS(wiphy, tx, tx_max, rx, rx_max), 138214e8a3c4SBeni Lev TP_STRUCT__entry( 138314e8a3c4SBeni Lev WIPHY_ENTRY 138414e8a3c4SBeni Lev __field(u32, tx) 138514e8a3c4SBeni Lev __field(u32, tx_max) 138614e8a3c4SBeni Lev __field(u32, rx) 138714e8a3c4SBeni Lev __field(u32, rx_max) 138814e8a3c4SBeni Lev ), 138914e8a3c4SBeni Lev TP_fast_assign( 139014e8a3c4SBeni Lev WIPHY_ASSIGN; 139114e8a3c4SBeni Lev __entry->tx = tx; 139214e8a3c4SBeni Lev __entry->tx_max = tx_max; 139314e8a3c4SBeni Lev __entry->rx = rx; 139414e8a3c4SBeni Lev __entry->rx_max = rx_max; 139514e8a3c4SBeni Lev ), 139614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ", 139714e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx, 139814e8a3c4SBeni Lev __entry->rx_max) 139914e8a3c4SBeni Lev ); 140014e8a3c4SBeni Lev 140114e8a3c4SBeni Lev DECLARE_EVENT_CLASS(tx_rx_evt, 140214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 140314e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx), 140414e8a3c4SBeni Lev TP_STRUCT__entry( 140514e8a3c4SBeni Lev WIPHY_ENTRY 140614e8a3c4SBeni Lev __field(u32, tx) 140714e8a3c4SBeni Lev __field(u32, rx) 140814e8a3c4SBeni Lev ), 140914e8a3c4SBeni Lev TP_fast_assign( 141014e8a3c4SBeni Lev WIPHY_ASSIGN; 141114e8a3c4SBeni Lev __entry->tx = tx; 141214e8a3c4SBeni Lev __entry->rx = rx; 141314e8a3c4SBeni Lev ), 141414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ", 141514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->rx) 141614e8a3c4SBeni Lev ); 141714e8a3c4SBeni Lev 141814e8a3c4SBeni Lev DEFINE_EVENT(tx_rx_evt, rdev_set_ringparam, 141914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 142014e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx) 142114e8a3c4SBeni Lev ); 142214e8a3c4SBeni Lev 142314e8a3c4SBeni Lev DEFINE_EVENT(tx_rx_evt, rdev_set_antenna, 142414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 142514e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx) 142614e8a3c4SBeni Lev ); 142714e8a3c4SBeni Lev 142814e8a3c4SBeni Lev TRACE_EVENT(rdev_sched_scan_start, 142914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 143014e8a3c4SBeni Lev struct cfg80211_sched_scan_request *request), 143114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, request), 143214e8a3c4SBeni Lev TP_STRUCT__entry( 143314e8a3c4SBeni Lev WIPHY_ENTRY 143414e8a3c4SBeni Lev NETDEV_ENTRY 143514e8a3c4SBeni Lev ), 143614e8a3c4SBeni Lev TP_fast_assign( 143714e8a3c4SBeni Lev WIPHY_ASSIGN; 143814e8a3c4SBeni Lev NETDEV_ASSIGN; 143914e8a3c4SBeni Lev ), 1440ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 144114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG) 144214e8a3c4SBeni Lev ); 144314e8a3c4SBeni Lev 144414e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_mgmt, 144514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 144614e8a3c4SBeni Lev u8 *peer, u8 action_code, u8 dialog_token, 144714e8a3c4SBeni Lev u16 status_code, const u8 *buf, size_t len), 144814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code, 144914e8a3c4SBeni Lev buf, len), 145014e8a3c4SBeni Lev TP_STRUCT__entry( 145114e8a3c4SBeni Lev WIPHY_ENTRY 145214e8a3c4SBeni Lev NETDEV_ENTRY 145314e8a3c4SBeni Lev MAC_ENTRY(peer) 145414e8a3c4SBeni Lev __field(u8, action_code) 145514e8a3c4SBeni Lev __field(u8, dialog_token) 145614e8a3c4SBeni Lev __field(u16, status_code) 145714e8a3c4SBeni Lev __dynamic_array(u8, buf, len) 145814e8a3c4SBeni Lev ), 145914e8a3c4SBeni Lev TP_fast_assign( 146014e8a3c4SBeni Lev WIPHY_ASSIGN; 146114e8a3c4SBeni Lev NETDEV_ASSIGN; 146214e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 146314e8a3c4SBeni Lev __entry->action_code = action_code; 146414e8a3c4SBeni Lev __entry->dialog_token = dialog_token; 146514e8a3c4SBeni Lev __entry->status_code = status_code; 146614e8a3c4SBeni Lev memcpy(__get_dynamic_array(buf), buf, len); 146714e8a3c4SBeni Lev ), 1468ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", action_code: %u, " 146914e8a3c4SBeni Lev "dialog_token: %u, status_code: %u, buf: %#.2x ", 147014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 147114e8a3c4SBeni Lev __entry->action_code, __entry->dialog_token, 147214e8a3c4SBeni Lev __entry->status_code, ((u8 *)__get_dynamic_array(buf))[0]) 147314e8a3c4SBeni Lev ); 147414e8a3c4SBeni Lev 147514e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_survey, 147614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx), 147714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx), 147814e8a3c4SBeni Lev TP_STRUCT__entry( 147914e8a3c4SBeni Lev WIPHY_ENTRY 148014e8a3c4SBeni Lev NETDEV_ENTRY 148114e8a3c4SBeni Lev __field(int, idx) 148214e8a3c4SBeni Lev ), 148314e8a3c4SBeni Lev TP_fast_assign( 148414e8a3c4SBeni Lev WIPHY_ASSIGN; 148514e8a3c4SBeni Lev NETDEV_ASSIGN; 148614e8a3c4SBeni Lev __entry->idx = idx; 148714e8a3c4SBeni Lev ), 1488ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d", 148914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) 149014e8a3c4SBeni Lev ); 149114e8a3c4SBeni Lev 149214e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_survey_info, 149314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info), 149414e8a3c4SBeni Lev TP_ARGS(wiphy, ret, info), 149514e8a3c4SBeni Lev TP_STRUCT__entry( 149614e8a3c4SBeni Lev WIPHY_ENTRY 149714e8a3c4SBeni Lev CHAN_ENTRY 149814e8a3c4SBeni Lev __field(int, ret) 149914e8a3c4SBeni Lev __field(u64, channel_time) 150014e8a3c4SBeni Lev __field(u64, channel_time_busy) 150114e8a3c4SBeni Lev __field(u64, channel_time_ext_busy) 150214e8a3c4SBeni Lev __field(u64, channel_time_rx) 150314e8a3c4SBeni Lev __field(u64, channel_time_tx) 150414e8a3c4SBeni Lev __field(u32, filled) 150514e8a3c4SBeni Lev __field(s8, noise) 150614e8a3c4SBeni Lev ), 150714e8a3c4SBeni Lev TP_fast_assign( 150814e8a3c4SBeni Lev WIPHY_ASSIGN; 150914e8a3c4SBeni Lev CHAN_ASSIGN(info->channel); 151014e8a3c4SBeni Lev __entry->ret = ret; 151114e8a3c4SBeni Lev __entry->channel_time = info->channel_time; 151214e8a3c4SBeni Lev __entry->channel_time_busy = info->channel_time_busy; 151314e8a3c4SBeni Lev __entry->channel_time_ext_busy = info->channel_time_ext_busy; 151414e8a3c4SBeni Lev __entry->channel_time_rx = info->channel_time_rx; 151514e8a3c4SBeni Lev __entry->channel_time_tx = info->channel_time_tx; 151614e8a3c4SBeni Lev __entry->filled = info->filled; 151714e8a3c4SBeni Lev __entry->noise = info->noise; 151814e8a3c4SBeni Lev ), 151914e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT 152014e8a3c4SBeni Lev ", channel time: %llu, channel time busy: %llu, " 152114e8a3c4SBeni Lev "channel time extension busy: %llu, channel time rx: %llu, " 152214e8a3c4SBeni Lev "channel time tx: %llu, filled: %u, noise: %d", 152314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG, 152414e8a3c4SBeni Lev __entry->channel_time, __entry->channel_time_busy, 152514e8a3c4SBeni Lev __entry->channel_time_ext_busy, __entry->channel_time_rx, 152614e8a3c4SBeni Lev __entry->channel_time_tx, __entry->filled, __entry->noise) 152714e8a3c4SBeni Lev ); 152814e8a3c4SBeni Lev 152914e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_oper, 153014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 153114e8a3c4SBeni Lev u8 *peer, enum nl80211_tdls_operation oper), 153214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, oper), 153314e8a3c4SBeni Lev TP_STRUCT__entry( 153414e8a3c4SBeni Lev WIPHY_ENTRY 153514e8a3c4SBeni Lev NETDEV_ENTRY 153614e8a3c4SBeni Lev MAC_ENTRY(peer) 153714e8a3c4SBeni Lev __field(enum nl80211_tdls_operation, oper) 153814e8a3c4SBeni Lev ), 153914e8a3c4SBeni Lev TP_fast_assign( 154014e8a3c4SBeni Lev WIPHY_ASSIGN; 154114e8a3c4SBeni Lev NETDEV_ASSIGN; 154214e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 154314e8a3c4SBeni Lev __entry->oper = oper; 154414e8a3c4SBeni Lev ), 1545ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", oper: %d", 154614e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper) 154714e8a3c4SBeni Lev ); 154814e8a3c4SBeni Lev 154914e8a3c4SBeni Lev DECLARE_EVENT_CLASS(rdev_pmksa, 155014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 155114e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 155214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa), 155314e8a3c4SBeni Lev TP_STRUCT__entry( 155414e8a3c4SBeni Lev WIPHY_ENTRY 155514e8a3c4SBeni Lev NETDEV_ENTRY 155614e8a3c4SBeni Lev MAC_ENTRY(bssid) 155714e8a3c4SBeni Lev ), 155814e8a3c4SBeni Lev TP_fast_assign( 155914e8a3c4SBeni Lev WIPHY_ASSIGN; 156014e8a3c4SBeni Lev NETDEV_ASSIGN; 156114e8a3c4SBeni Lev MAC_ASSIGN(bssid, pmksa->bssid); 156214e8a3c4SBeni Lev ), 1563ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT, 156414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid)) 156514e8a3c4SBeni Lev ); 156614e8a3c4SBeni Lev 156714e8a3c4SBeni Lev TRACE_EVENT(rdev_probe_client, 156814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 156914e8a3c4SBeni Lev const u8 *peer), 157014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer), 157114e8a3c4SBeni Lev TP_STRUCT__entry( 157214e8a3c4SBeni Lev WIPHY_ENTRY 157314e8a3c4SBeni Lev NETDEV_ENTRY 157414e8a3c4SBeni Lev MAC_ENTRY(peer) 157514e8a3c4SBeni Lev ), 157614e8a3c4SBeni Lev TP_fast_assign( 157714e8a3c4SBeni Lev WIPHY_ASSIGN; 157814e8a3c4SBeni Lev NETDEV_ASSIGN; 157914e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 158014e8a3c4SBeni Lev ), 1581ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 158214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 158314e8a3c4SBeni Lev ); 158414e8a3c4SBeni Lev 158514e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa, 158614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 158714e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 158814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 158914e8a3c4SBeni Lev ); 159014e8a3c4SBeni Lev 159114e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa, 159214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 159314e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 159414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 159514e8a3c4SBeni Lev ); 159614e8a3c4SBeni Lev 159714e8a3c4SBeni Lev TRACE_EVENT(rdev_remain_on_channel, 159814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 159914e8a3c4SBeni Lev struct ieee80211_channel *chan, 160042d97a59SJohannes Berg unsigned int duration), 160142d97a59SJohannes Berg TP_ARGS(wiphy, wdev, chan, duration), 160214e8a3c4SBeni Lev TP_STRUCT__entry( 160314e8a3c4SBeni Lev WIPHY_ENTRY 160414e8a3c4SBeni Lev WDEV_ENTRY 160514e8a3c4SBeni Lev CHAN_ENTRY 160614e8a3c4SBeni Lev __field(unsigned int, duration) 160714e8a3c4SBeni Lev ), 160814e8a3c4SBeni Lev TP_fast_assign( 160914e8a3c4SBeni Lev WIPHY_ASSIGN; 161014e8a3c4SBeni Lev WDEV_ASSIGN; 161114e8a3c4SBeni Lev CHAN_ASSIGN(chan); 161214e8a3c4SBeni Lev __entry->duration = duration; 161314e8a3c4SBeni Lev ), 1614ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u", 161542d97a59SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) 161614e8a3c4SBeni Lev ); 161714e8a3c4SBeni Lev 161814e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_cookie, 161914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie), 162014e8a3c4SBeni Lev TP_ARGS(wiphy, ret, cookie), 162114e8a3c4SBeni Lev TP_STRUCT__entry( 162214e8a3c4SBeni Lev WIPHY_ENTRY 162314e8a3c4SBeni Lev __field(int, ret) 162414e8a3c4SBeni Lev __field(u64, cookie) 162514e8a3c4SBeni Lev ), 162614e8a3c4SBeni Lev TP_fast_assign( 162714e8a3c4SBeni Lev WIPHY_ASSIGN; 162814e8a3c4SBeni Lev __entry->ret = ret; 162914e8a3c4SBeni Lev __entry->cookie = cookie; 163014e8a3c4SBeni Lev ), 163114e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu", 163214e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->cookie) 163314e8a3c4SBeni Lev ); 163414e8a3c4SBeni Lev 163514e8a3c4SBeni Lev TRACE_EVENT(rdev_cancel_remain_on_channel, 163614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 163714e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 163814e8a3c4SBeni Lev TP_STRUCT__entry( 163914e8a3c4SBeni Lev WIPHY_ENTRY 164014e8a3c4SBeni Lev WDEV_ENTRY 164114e8a3c4SBeni Lev __field(u64, cookie) 164214e8a3c4SBeni Lev ), 164314e8a3c4SBeni Lev TP_fast_assign( 164414e8a3c4SBeni Lev WIPHY_ASSIGN; 164514e8a3c4SBeni Lev WDEV_ASSIGN; 164614e8a3c4SBeni Lev __entry->cookie = cookie; 164714e8a3c4SBeni Lev ), 1648ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu", 164914e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 165014e8a3c4SBeni Lev ); 165114e8a3c4SBeni Lev 165214e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx, 165314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 165414e8a3c4SBeni Lev struct ieee80211_channel *chan, bool offchan, 165542d97a59SJohannes Berg unsigned int wait, bool no_cck, bool dont_wait_for_ack), 165642d97a59SJohannes Berg TP_ARGS(wiphy, wdev, chan, offchan, wait, no_cck, dont_wait_for_ack), 165714e8a3c4SBeni Lev TP_STRUCT__entry( 165814e8a3c4SBeni Lev WIPHY_ENTRY 165914e8a3c4SBeni Lev WDEV_ENTRY 166014e8a3c4SBeni Lev CHAN_ENTRY 166114e8a3c4SBeni Lev __field(bool, offchan) 166214e8a3c4SBeni Lev __field(unsigned int, wait) 166314e8a3c4SBeni Lev __field(bool, no_cck) 166414e8a3c4SBeni Lev __field(bool, dont_wait_for_ack) 166514e8a3c4SBeni Lev ), 166614e8a3c4SBeni Lev TP_fast_assign( 166714e8a3c4SBeni Lev WIPHY_ASSIGN; 166814e8a3c4SBeni Lev WDEV_ASSIGN; 166914e8a3c4SBeni Lev CHAN_ASSIGN(chan); 167014e8a3c4SBeni Lev __entry->offchan = offchan; 167114e8a3c4SBeni Lev __entry->wait = wait; 167214e8a3c4SBeni Lev __entry->no_cck = no_cck; 167314e8a3c4SBeni Lev __entry->dont_wait_for_ack = dont_wait_for_ack; 167414e8a3c4SBeni Lev ), 1675ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s," 167642d97a59SJohannes Berg " wait: %u, no cck: %s, dont wait for ack: %s", 167714e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, 167842d97a59SJohannes Berg BOOL_TO_STR(__entry->offchan), __entry->wait, 167914e8a3c4SBeni Lev BOOL_TO_STR(__entry->no_cck), 168014e8a3c4SBeni Lev BOOL_TO_STR(__entry->dont_wait_for_ack)) 168114e8a3c4SBeni Lev ); 168214e8a3c4SBeni Lev 168314e8a3c4SBeni Lev TRACE_EVENT(rdev_set_noack_map, 168414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 168514e8a3c4SBeni Lev u16 noack_map), 168614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, noack_map), 168714e8a3c4SBeni Lev TP_STRUCT__entry( 168814e8a3c4SBeni Lev WIPHY_ENTRY 168914e8a3c4SBeni Lev NETDEV_ENTRY 169014e8a3c4SBeni Lev __field(u16, noack_map) 169114e8a3c4SBeni Lev ), 169214e8a3c4SBeni Lev TP_fast_assign( 169314e8a3c4SBeni Lev WIPHY_ASSIGN; 169414e8a3c4SBeni Lev NETDEV_ASSIGN; 169514e8a3c4SBeni Lev __entry->noack_map = noack_map; 169614e8a3c4SBeni Lev ), 1697ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u", 169814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) 169914e8a3c4SBeni Lev ); 170014e8a3c4SBeni Lev 170114e8a3c4SBeni Lev TRACE_EVENT(rdev_get_et_sset_count, 170214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int sset), 170314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, sset), 170414e8a3c4SBeni Lev TP_STRUCT__entry( 170514e8a3c4SBeni Lev WIPHY_ENTRY 170614e8a3c4SBeni Lev NETDEV_ENTRY 170714e8a3c4SBeni Lev __field(int, sset) 170814e8a3c4SBeni Lev ), 170914e8a3c4SBeni Lev TP_fast_assign( 171014e8a3c4SBeni Lev WIPHY_ASSIGN; 171114e8a3c4SBeni Lev NETDEV_ASSIGN; 171214e8a3c4SBeni Lev __entry->sset = sset; 171314e8a3c4SBeni Lev ), 1714ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", sset: %d", 171514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) 171614e8a3c4SBeni Lev ); 171714e8a3c4SBeni Lev 171814e8a3c4SBeni Lev TRACE_EVENT(rdev_get_et_strings, 171914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 sset), 172014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, sset), 172114e8a3c4SBeni Lev TP_STRUCT__entry( 172214e8a3c4SBeni Lev WIPHY_ENTRY 172314e8a3c4SBeni Lev NETDEV_ENTRY 172414e8a3c4SBeni Lev __field(u32, sset) 172514e8a3c4SBeni Lev ), 172614e8a3c4SBeni Lev TP_fast_assign( 172714e8a3c4SBeni Lev WIPHY_ASSIGN; 172814e8a3c4SBeni Lev NETDEV_ASSIGN; 172914e8a3c4SBeni Lev __entry->sset = sset; 173014e8a3c4SBeni Lev ), 1731ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", sset: %u", 173214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) 173314e8a3c4SBeni Lev ); 173414e8a3c4SBeni Lev 173514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel, 173614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 173714e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 173814e8a3c4SBeni Lev ); 173914e8a3c4SBeni Lev 1740683b6d3bSJohannes Berg TRACE_EVENT(rdev_return_chandef, 1741683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, int ret, 1742683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 1743683b6d3bSJohannes Berg TP_ARGS(wiphy, ret, chandef), 174414e8a3c4SBeni Lev TP_STRUCT__entry( 174514e8a3c4SBeni Lev WIPHY_ENTRY 1746683b6d3bSJohannes Berg __field(int, ret) 1747683b6d3bSJohannes Berg CHAN_DEF_ENTRY 174814e8a3c4SBeni Lev ), 174914e8a3c4SBeni Lev TP_fast_assign( 175014e8a3c4SBeni Lev WIPHY_ASSIGN; 1751683b6d3bSJohannes Berg if (ret == 0) 1752683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 1753683b6d3bSJohannes Berg else 1754683b6d3bSJohannes Berg CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); 1755683b6d3bSJohannes Berg __entry->ret = ret; 175614e8a3c4SBeni Lev ), 1757ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d", 1758683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) 175914e8a3c4SBeni Lev ); 176014e8a3c4SBeni Lev 1761eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device, 1762eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1763eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1764eeb126e9SJohannes Berg ); 1765eeb126e9SJohannes Berg 1766eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device, 1767eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1768eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1769eeb126e9SJohannes Berg ); 1770eeb126e9SJohannes Berg 177177765eafSVasanthakumar Thiagarajan TRACE_EVENT(rdev_set_mac_acl, 177277765eafSVasanthakumar Thiagarajan TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 177377765eafSVasanthakumar Thiagarajan struct cfg80211_acl_data *params), 177477765eafSVasanthakumar Thiagarajan TP_ARGS(wiphy, netdev, params), 177577765eafSVasanthakumar Thiagarajan TP_STRUCT__entry( 177677765eafSVasanthakumar Thiagarajan WIPHY_ENTRY 177777765eafSVasanthakumar Thiagarajan NETDEV_ENTRY 177877765eafSVasanthakumar Thiagarajan __field(u32, acl_policy) 177977765eafSVasanthakumar Thiagarajan ), 178077765eafSVasanthakumar Thiagarajan TP_fast_assign( 178177765eafSVasanthakumar Thiagarajan WIPHY_ASSIGN; 1782021fcdc1SVladimir Kondratiev NETDEV_ASSIGN; 178377765eafSVasanthakumar Thiagarajan __entry->acl_policy = params->acl_policy; 178477765eafSVasanthakumar Thiagarajan ), 178577765eafSVasanthakumar Thiagarajan TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", acl policy: %d", 178677765eafSVasanthakumar Thiagarajan WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) 178777765eafSVasanthakumar Thiagarajan ); 178877765eafSVasanthakumar Thiagarajan 1789355199e0SJouni Malinen TRACE_EVENT(rdev_update_ft_ies, 1790355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1791355199e0SJouni Malinen struct cfg80211_update_ft_ies_params *ftie), 1792355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ftie), 1793355199e0SJouni Malinen TP_STRUCT__entry( 1794355199e0SJouni Malinen WIPHY_ENTRY 1795355199e0SJouni Malinen NETDEV_ENTRY 1796355199e0SJouni Malinen __field(u16, md) 1797355199e0SJouni Malinen __dynamic_array(u8, ie, ftie->ie_len) 1798355199e0SJouni Malinen ), 1799355199e0SJouni Malinen TP_fast_assign( 1800355199e0SJouni Malinen WIPHY_ASSIGN; 1801355199e0SJouni Malinen NETDEV_ASSIGN; 1802355199e0SJouni Malinen __entry->md = ftie->md; 1803355199e0SJouni Malinen memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len); 1804355199e0SJouni Malinen ), 1805355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x", 1806355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md) 1807355199e0SJouni Malinen ); 1808355199e0SJouni Malinen 18095de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_start, 18105de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 18115de17984SArend van Spriel enum nl80211_crit_proto_id protocol, u16 duration), 18125de17984SArend van Spriel TP_ARGS(wiphy, wdev, protocol, duration), 18135de17984SArend van Spriel TP_STRUCT__entry( 18145de17984SArend van Spriel WIPHY_ENTRY 18155de17984SArend van Spriel WDEV_ENTRY 18165de17984SArend van Spriel __field(u16, proto) 18175de17984SArend van Spriel __field(u16, duration) 18185de17984SArend van Spriel ), 18195de17984SArend van Spriel TP_fast_assign( 18205de17984SArend van Spriel WIPHY_ASSIGN; 18215de17984SArend van Spriel WDEV_ASSIGN; 18225de17984SArend van Spriel __entry->proto = protocol; 18235de17984SArend van Spriel __entry->duration = duration; 18245de17984SArend van Spriel ), 18255de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u", 18265de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration) 18275de17984SArend van Spriel ); 18285de17984SArend van Spriel 18295de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_stop, 18305de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 18315de17984SArend van Spriel TP_ARGS(wiphy, wdev), 18325de17984SArend van Spriel TP_STRUCT__entry( 18335de17984SArend van Spriel WIPHY_ENTRY 18345de17984SArend van Spriel WDEV_ENTRY 18355de17984SArend van Spriel ), 18365de17984SArend van Spriel TP_fast_assign( 18375de17984SArend van Spriel WIPHY_ASSIGN; 18385de17984SArend van Spriel WDEV_ASSIGN; 18395de17984SArend van Spriel ), 18405de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 18415de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG) 18425de17984SArend van Spriel ); 18435de17984SArend van Spriel 18444ee3e063SBeni Lev /************************************************************* 18454ee3e063SBeni Lev * cfg80211 exported functions traces * 18464ee3e063SBeni Lev *************************************************************/ 18474ee3e063SBeni Lev 18484ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_bool, 18494ee3e063SBeni Lev TP_PROTO(bool ret), 18504ee3e063SBeni Lev TP_ARGS(ret), 18514ee3e063SBeni Lev TP_STRUCT__entry( 18524ee3e063SBeni Lev __field(bool, ret) 18534ee3e063SBeni Lev ), 18544ee3e063SBeni Lev TP_fast_assign( 18554ee3e063SBeni Lev __entry->ret = ret; 18564ee3e063SBeni Lev ), 18574ee3e063SBeni Lev TP_printk("returned %s", BOOL_TO_STR(__entry->ret)) 18584ee3e063SBeni Lev ); 18594ee3e063SBeni Lev 18604ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt, 18614ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 18624ee3e063SBeni Lev TP_ARGS(netdev, macaddr), 18634ee3e063SBeni Lev TP_STRUCT__entry( 18644ee3e063SBeni Lev NETDEV_ENTRY 18654ee3e063SBeni Lev MAC_ENTRY(macaddr) 18664ee3e063SBeni Lev ), 18674ee3e063SBeni Lev TP_fast_assign( 18684ee3e063SBeni Lev NETDEV_ASSIGN; 18694ee3e063SBeni Lev MAC_ASSIGN(macaddr, macaddr); 18704ee3e063SBeni Lev ), 18714ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 18724ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(macaddr)) 18734ee3e063SBeni Lev ); 18744ee3e063SBeni Lev 18754ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate, 18764ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 18774ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 18784ee3e063SBeni Lev ); 18794ee3e063SBeni Lev 18804ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_evt_only, 18814ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 18824ee3e063SBeni Lev TP_ARGS(netdev), 18834ee3e063SBeni Lev TP_STRUCT__entry( 18844ee3e063SBeni Lev NETDEV_ENTRY 18854ee3e063SBeni Lev ), 18864ee3e063SBeni Lev TP_fast_assign( 18874ee3e063SBeni Lev NETDEV_ASSIGN; 18884ee3e063SBeni Lev ), 18894ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG) 18904ee3e063SBeni Lev ); 18914ee3e063SBeni Lev 18924ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth, 18934ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 18944ee3e063SBeni Lev TP_ARGS(netdev) 18954ee3e063SBeni Lev ); 18964ee3e063SBeni Lev 18974ee3e063SBeni Lev TRACE_EVENT(cfg80211_send_rx_assoc, 18984ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss), 18994ee3e063SBeni Lev TP_ARGS(netdev, bss), 19004ee3e063SBeni Lev TP_STRUCT__entry( 19014ee3e063SBeni Lev NETDEV_ENTRY 19024ee3e063SBeni Lev MAC_ENTRY(bssid) 19034ee3e063SBeni Lev CHAN_ENTRY 19044ee3e063SBeni Lev ), 19054ee3e063SBeni Lev TP_fast_assign( 19064ee3e063SBeni Lev NETDEV_ASSIGN; 19074ee3e063SBeni Lev MAC_ASSIGN(bssid, bss->bssid); 19084ee3e063SBeni Lev CHAN_ASSIGN(bss->channel); 19094ee3e063SBeni Lev ), 1910ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", " CHAN_PR_FMT, 19114ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) 19124ee3e063SBeni Lev ); 19134ee3e063SBeni Lev 19144ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, __cfg80211_send_deauth, 19154ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 19164ee3e063SBeni Lev TP_ARGS(netdev) 19174ee3e063SBeni Lev ); 19184ee3e063SBeni Lev 19194ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, __cfg80211_send_disassoc, 19204ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 19214ee3e063SBeni Lev TP_ARGS(netdev) 19224ee3e063SBeni Lev ); 19234ee3e063SBeni Lev 19244ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_deauth, 19254ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 19264ee3e063SBeni Lev TP_ARGS(netdev) 19274ee3e063SBeni Lev ); 19284ee3e063SBeni Lev 19294ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, cfg80211_send_unprot_disassoc, 19304ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 19314ee3e063SBeni Lev TP_ARGS(netdev) 19324ee3e063SBeni Lev ); 19334ee3e063SBeni Lev 19344ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_mac_evt, 19354ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 19364ee3e063SBeni Lev TP_ARGS(netdev, mac), 19374ee3e063SBeni Lev TP_STRUCT__entry( 19384ee3e063SBeni Lev NETDEV_ENTRY 19394ee3e063SBeni Lev MAC_ENTRY(mac) 19404ee3e063SBeni Lev ), 19414ee3e063SBeni Lev TP_fast_assign( 19424ee3e063SBeni Lev NETDEV_ASSIGN; 19434ee3e063SBeni Lev MAC_ASSIGN(mac, mac) 19444ee3e063SBeni Lev ), 19454ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 19464ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac)) 19474ee3e063SBeni Lev ); 19484ee3e063SBeni Lev 19494ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout, 19504ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 19514ee3e063SBeni Lev TP_ARGS(netdev, mac) 19524ee3e063SBeni Lev ); 19534ee3e063SBeni Lev 19544ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout, 19554ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 19564ee3e063SBeni Lev TP_ARGS(netdev, mac) 19574ee3e063SBeni Lev ); 19584ee3e063SBeni Lev 19594ee3e063SBeni Lev TRACE_EVENT(cfg80211_michael_mic_failure, 19604ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, 19614ee3e063SBeni Lev enum nl80211_key_type key_type, int key_id, const u8 *tsc), 19624ee3e063SBeni Lev TP_ARGS(netdev, addr, key_type, key_id, tsc), 19634ee3e063SBeni Lev TP_STRUCT__entry( 19644ee3e063SBeni Lev NETDEV_ENTRY 19654ee3e063SBeni Lev MAC_ENTRY(addr) 19664ee3e063SBeni Lev __field(enum nl80211_key_type, key_type) 19674ee3e063SBeni Lev __field(int, key_id) 19684ee3e063SBeni Lev __array(u8, tsc, 6) 19694ee3e063SBeni Lev ), 19704ee3e063SBeni Lev TP_fast_assign( 19714ee3e063SBeni Lev NETDEV_ASSIGN; 19724ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 19734ee3e063SBeni Lev __entry->key_type = key_type; 19744ee3e063SBeni Lev __entry->key_id = key_id; 19754ee3e063SBeni Lev memcpy(__entry->tsc, tsc, 6); 19764ee3e063SBeni Lev ), 1977ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm", 19784ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type, 19794ee3e063SBeni Lev __entry->key_id, __entry->tsc) 19804ee3e063SBeni Lev ); 19814ee3e063SBeni Lev 19824ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel, 19834ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 19844ee3e063SBeni Lev struct ieee80211_channel *chan, 198542d97a59SJohannes Berg unsigned int duration), 198642d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan, duration), 19874ee3e063SBeni Lev TP_STRUCT__entry( 19884ee3e063SBeni Lev WDEV_ENTRY 19894ee3e063SBeni Lev __field(u64, cookie) 19904ee3e063SBeni Lev CHAN_ENTRY 19914ee3e063SBeni Lev __field(unsigned int, duration) 19924ee3e063SBeni Lev ), 19934ee3e063SBeni Lev TP_fast_assign( 19944ee3e063SBeni Lev WDEV_ASSIGN; 19954ee3e063SBeni Lev __entry->cookie = cookie; 19964ee3e063SBeni Lev CHAN_ASSIGN(chan); 19974ee3e063SBeni Lev __entry->duration = duration; 19984ee3e063SBeni Lev ), 199942d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u", 20004ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, 200142d97a59SJohannes Berg __entry->duration) 20024ee3e063SBeni Lev ); 20034ee3e063SBeni Lev 20044ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel_expired, 20054ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 200642d97a59SJohannes Berg struct ieee80211_channel *chan), 200742d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan), 20084ee3e063SBeni Lev TP_STRUCT__entry( 20094ee3e063SBeni Lev WDEV_ENTRY 20104ee3e063SBeni Lev __field(u64, cookie) 20114ee3e063SBeni Lev CHAN_ENTRY 20124ee3e063SBeni Lev ), 20134ee3e063SBeni Lev TP_fast_assign( 20144ee3e063SBeni Lev WDEV_ASSIGN; 20154ee3e063SBeni Lev __entry->cookie = cookie; 20164ee3e063SBeni Lev CHAN_ASSIGN(chan); 20174ee3e063SBeni Lev ), 201842d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, 201942d97a59SJohannes Berg WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) 20204ee3e063SBeni Lev ); 20214ee3e063SBeni Lev 20224ee3e063SBeni Lev TRACE_EVENT(cfg80211_new_sta, 20234ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac_addr, 20244ee3e063SBeni Lev struct station_info *sinfo), 20254ee3e063SBeni Lev TP_ARGS(netdev, mac_addr, sinfo), 20264ee3e063SBeni Lev TP_STRUCT__entry( 20274ee3e063SBeni Lev NETDEV_ENTRY 20284ee3e063SBeni Lev MAC_ENTRY(mac_addr) 20294ee3e063SBeni Lev SINFO_ENTRY 20304ee3e063SBeni Lev ), 20314ee3e063SBeni Lev TP_fast_assign( 20324ee3e063SBeni Lev NETDEV_ASSIGN; 20334ee3e063SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 20344ee3e063SBeni Lev SINFO_ASSIGN; 20354ee3e063SBeni Lev ), 2036ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, 20374ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac_addr)) 20384ee3e063SBeni Lev ); 20394ee3e063SBeni Lev 20404ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta, 20414ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 20424ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 20434ee3e063SBeni Lev ); 20444ee3e063SBeni Lev 20454ee3e063SBeni Lev TRACE_EVENT(cfg80211_rx_mgmt, 20464ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, int freq, int sig_mbm), 20474ee3e063SBeni Lev TP_ARGS(wdev, freq, sig_mbm), 20484ee3e063SBeni Lev TP_STRUCT__entry( 20494ee3e063SBeni Lev WDEV_ENTRY 20504ee3e063SBeni Lev __field(int, freq) 20514ee3e063SBeni Lev __field(int, sig_mbm) 20524ee3e063SBeni Lev ), 20534ee3e063SBeni Lev TP_fast_assign( 20544ee3e063SBeni Lev WDEV_ASSIGN; 20554ee3e063SBeni Lev __entry->freq = freq; 20564ee3e063SBeni Lev __entry->sig_mbm = sig_mbm; 20574ee3e063SBeni Lev ), 20584ee3e063SBeni Lev TP_printk(WDEV_PR_FMT ", freq: %d, sig mbm: %d", 20594ee3e063SBeni Lev WDEV_PR_ARG, __entry->freq, __entry->sig_mbm) 20604ee3e063SBeni Lev ); 20614ee3e063SBeni Lev 20624ee3e063SBeni Lev TRACE_EVENT(cfg80211_mgmt_tx_status, 20634ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), 20644ee3e063SBeni Lev TP_ARGS(wdev, cookie, ack), 20654ee3e063SBeni Lev TP_STRUCT__entry( 20664ee3e063SBeni Lev WDEV_ENTRY 20674ee3e063SBeni Lev __field(u64, cookie) 20684ee3e063SBeni Lev __field(bool, ack) 20694ee3e063SBeni Lev ), 20704ee3e063SBeni Lev TP_fast_assign( 20714ee3e063SBeni Lev WDEV_ASSIGN; 20724ee3e063SBeni Lev __entry->cookie = cookie; 20734ee3e063SBeni Lev __entry->ack = ack; 20744ee3e063SBeni Lev ), 20754ee3e063SBeni Lev TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", 20764ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) 20774ee3e063SBeni Lev ); 20784ee3e063SBeni Lev 20794ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_rssi_notify, 20804ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, 20814ee3e063SBeni Lev enum nl80211_cqm_rssi_threshold_event rssi_event), 20824ee3e063SBeni Lev TP_ARGS(netdev, rssi_event), 20834ee3e063SBeni Lev TP_STRUCT__entry( 20844ee3e063SBeni Lev NETDEV_ENTRY 20854ee3e063SBeni Lev __field(enum nl80211_cqm_rssi_threshold_event, rssi_event) 20864ee3e063SBeni Lev ), 20874ee3e063SBeni Lev TP_fast_assign( 20884ee3e063SBeni Lev NETDEV_ASSIGN; 20894ee3e063SBeni Lev __entry->rssi_event = rssi_event; 20904ee3e063SBeni Lev ), 20914ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", rssi event: %d", 20924ee3e063SBeni Lev NETDEV_PR_ARG, __entry->rssi_event) 20934ee3e063SBeni Lev ); 20944ee3e063SBeni Lev 2095683b6d3bSJohannes Berg TRACE_EVENT(cfg80211_reg_can_beacon, 2096683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 2097683b6d3bSJohannes Berg TP_ARGS(wiphy, chandef), 20984ee3e063SBeni Lev TP_STRUCT__entry( 20994ee3e063SBeni Lev WIPHY_ENTRY 2100683b6d3bSJohannes Berg CHAN_DEF_ENTRY 21014ee3e063SBeni Lev ), 21024ee3e063SBeni Lev TP_fast_assign( 21034ee3e063SBeni Lev WIPHY_ASSIGN; 2104683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 21054ee3e063SBeni Lev ), 2106ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 2107683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 21084ee3e063SBeni Lev ); 21094ee3e063SBeni Lev 211004f39047SSimon Wunderlich TRACE_EVENT(cfg80211_chandef_dfs_required, 211104f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 211204f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 211304f39047SSimon Wunderlich TP_STRUCT__entry( 211404f39047SSimon Wunderlich WIPHY_ENTRY 211504f39047SSimon Wunderlich CHAN_DEF_ENTRY 211604f39047SSimon Wunderlich ), 211704f39047SSimon Wunderlich TP_fast_assign( 211804f39047SSimon Wunderlich WIPHY_ASSIGN; 211904f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 212004f39047SSimon Wunderlich ), 212104f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 212204f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 212304f39047SSimon Wunderlich ); 212404f39047SSimon Wunderlich 21254ee3e063SBeni Lev TRACE_EVENT(cfg80211_ch_switch_notify, 2126683b6d3bSJohannes Berg TP_PROTO(struct net_device *netdev, 2127683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 2128683b6d3bSJohannes Berg TP_ARGS(netdev, chandef), 21294ee3e063SBeni Lev TP_STRUCT__entry( 21304ee3e063SBeni Lev NETDEV_ENTRY 2131683b6d3bSJohannes Berg CHAN_DEF_ENTRY 21324ee3e063SBeni Lev ), 21334ee3e063SBeni Lev TP_fast_assign( 21344ee3e063SBeni Lev NETDEV_ASSIGN; 2135683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 21364ee3e063SBeni Lev ), 2137ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2138683b6d3bSJohannes Berg NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 21394ee3e063SBeni Lev ); 21404ee3e063SBeni Lev 214104f39047SSimon Wunderlich TRACE_EVENT(cfg80211_radar_event, 214204f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 214304f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 214404f39047SSimon Wunderlich TP_STRUCT__entry( 214504f39047SSimon Wunderlich WIPHY_ENTRY 214604f39047SSimon Wunderlich CHAN_DEF_ENTRY 214704f39047SSimon Wunderlich ), 214804f39047SSimon Wunderlich TP_fast_assign( 214904f39047SSimon Wunderlich WIPHY_ASSIGN; 215004f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 215104f39047SSimon Wunderlich ), 215204f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 215304f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 215404f39047SSimon Wunderlich ); 215504f39047SSimon Wunderlich 215604f39047SSimon Wunderlich TRACE_EVENT(cfg80211_cac_event, 215704f39047SSimon Wunderlich TP_PROTO(struct net_device *netdev, enum nl80211_radar_event evt), 215804f39047SSimon Wunderlich TP_ARGS(netdev, evt), 215904f39047SSimon Wunderlich TP_STRUCT__entry( 216004f39047SSimon Wunderlich NETDEV_ENTRY 216104f39047SSimon Wunderlich __field(enum nl80211_radar_event, evt) 216204f39047SSimon Wunderlich ), 216304f39047SSimon Wunderlich TP_fast_assign( 216404f39047SSimon Wunderlich NETDEV_ASSIGN; 216504f39047SSimon Wunderlich __entry->evt = evt; 216604f39047SSimon Wunderlich ), 216704f39047SSimon Wunderlich TP_printk(NETDEV_PR_FMT ", event: %d", 216804f39047SSimon Wunderlich NETDEV_PR_ARG, __entry->evt) 216904f39047SSimon Wunderlich ); 217004f39047SSimon Wunderlich 21714ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_rx_evt, 21724ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 21734ee3e063SBeni Lev TP_ARGS(netdev, addr), 21744ee3e063SBeni Lev TP_STRUCT__entry( 21754ee3e063SBeni Lev NETDEV_ENTRY 21764ee3e063SBeni Lev MAC_ENTRY(addr) 21774ee3e063SBeni Lev ), 21784ee3e063SBeni Lev TP_fast_assign( 21794ee3e063SBeni Lev NETDEV_ASSIGN; 21804ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 21814ee3e063SBeni Lev ), 2182ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr)) 21834ee3e063SBeni Lev ); 21844ee3e063SBeni Lev 21854ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_ibss_joined, 21864ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 21874ee3e063SBeni Lev TP_ARGS(netdev, addr) 21884ee3e063SBeni Lev ); 21894ee3e063SBeni Lev 21904ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame, 21914ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 21924ee3e063SBeni Lev TP_ARGS(netdev, addr) 21934ee3e063SBeni Lev ); 21944ee3e063SBeni Lev 21954ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame, 21964ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 21974ee3e063SBeni Lev TP_ARGS(netdev, addr) 21984ee3e063SBeni Lev ); 21994ee3e063SBeni Lev 22004ee3e063SBeni Lev TRACE_EVENT(cfg80211_probe_status, 22014ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie, 22024ee3e063SBeni Lev bool acked), 22034ee3e063SBeni Lev TP_ARGS(netdev, addr, cookie, acked), 22044ee3e063SBeni Lev TP_STRUCT__entry( 22054ee3e063SBeni Lev NETDEV_ENTRY 22064ee3e063SBeni Lev MAC_ENTRY(addr) 22074ee3e063SBeni Lev __field(u64, cookie) 22084ee3e063SBeni Lev __field(bool, acked) 22094ee3e063SBeni Lev ), 22104ee3e063SBeni Lev TP_fast_assign( 22114ee3e063SBeni Lev NETDEV_ASSIGN; 22124ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 22134ee3e063SBeni Lev __entry->cookie = cookie; 22144ee3e063SBeni Lev __entry->acked = acked; 22154ee3e063SBeni Lev ), 2216ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT " addr:" MAC_PR_FMT ", cookie: %llu, acked: %s", 22174ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie, 22184ee3e063SBeni Lev BOOL_TO_STR(__entry->acked)) 22194ee3e063SBeni Lev ); 22204ee3e063SBeni Lev 22214ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_pktloss_notify, 22224ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets), 22234ee3e063SBeni Lev TP_ARGS(netdev, peer, num_packets), 22244ee3e063SBeni Lev TP_STRUCT__entry( 22254ee3e063SBeni Lev NETDEV_ENTRY 22264ee3e063SBeni Lev MAC_ENTRY(peer) 22274ee3e063SBeni Lev __field(u32, num_packets) 22284ee3e063SBeni Lev ), 22294ee3e063SBeni Lev TP_fast_assign( 22304ee3e063SBeni Lev NETDEV_ASSIGN; 22314ee3e063SBeni Lev MAC_ASSIGN(peer, peer); 22324ee3e063SBeni Lev __entry->num_packets = num_packets; 22334ee3e063SBeni Lev ), 22344ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u", 22354ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets) 22364ee3e063SBeni Lev ); 22374ee3e063SBeni Lev 22384ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify, 22394ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 22404ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 22414ee3e063SBeni Lev ); 22424ee3e063SBeni Lev 22434ee3e063SBeni Lev TRACE_EVENT(cfg80211_pmksa_candidate_notify, 22444ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, int index, const u8 *bssid, 22454ee3e063SBeni Lev bool preauth), 22464ee3e063SBeni Lev TP_ARGS(netdev, index, bssid, preauth), 22474ee3e063SBeni Lev TP_STRUCT__entry( 22484ee3e063SBeni Lev NETDEV_ENTRY 22494ee3e063SBeni Lev __field(int, index) 22504ee3e063SBeni Lev MAC_ENTRY(bssid) 22514ee3e063SBeni Lev __field(bool, preauth) 22524ee3e063SBeni Lev ), 22534ee3e063SBeni Lev TP_fast_assign( 22544ee3e063SBeni Lev NETDEV_ASSIGN; 22554ee3e063SBeni Lev __entry->index = index; 22564ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 22574ee3e063SBeni Lev __entry->preauth = preauth; 22584ee3e063SBeni Lev ), 22594ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s", 22604ee3e063SBeni Lev NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid), 22614ee3e063SBeni Lev BOOL_TO_STR(__entry->preauth)) 22624ee3e063SBeni Lev ); 22634ee3e063SBeni Lev 22644ee3e063SBeni Lev TRACE_EVENT(cfg80211_report_obss_beacon, 22654ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len, 22664ee3e063SBeni Lev int freq, int sig_dbm), 22674ee3e063SBeni Lev TP_ARGS(wiphy, frame, len, freq, sig_dbm), 22684ee3e063SBeni Lev TP_STRUCT__entry( 22694ee3e063SBeni Lev WIPHY_ENTRY 22704ee3e063SBeni Lev __field(int, freq) 22714ee3e063SBeni Lev __field(int, sig_dbm) 22724ee3e063SBeni Lev ), 22734ee3e063SBeni Lev TP_fast_assign( 22744ee3e063SBeni Lev WIPHY_ASSIGN; 22754ee3e063SBeni Lev __entry->freq = freq; 22764ee3e063SBeni Lev __entry->sig_dbm = sig_dbm; 22774ee3e063SBeni Lev ), 22784ee3e063SBeni Lev TP_printk(WIPHY_PR_FMT ", freq: %d, sig_dbm: %d", 22794ee3e063SBeni Lev WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm) 22804ee3e063SBeni Lev ); 22814ee3e063SBeni Lev 22823475b094SJouni Malinen TRACE_EVENT(cfg80211_tdls_oper_request, 22833475b094SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer, 22843475b094SJouni Malinen enum nl80211_tdls_operation oper, u16 reason_code), 22853475b094SJouni Malinen TP_ARGS(wiphy, netdev, peer, oper, reason_code), 22863475b094SJouni Malinen TP_STRUCT__entry( 22873475b094SJouni Malinen WIPHY_ENTRY 22883475b094SJouni Malinen NETDEV_ENTRY 22893475b094SJouni Malinen MAC_ENTRY(peer) 22903475b094SJouni Malinen __field(enum nl80211_tdls_operation, oper) 22913475b094SJouni Malinen __field(u16, reason_code) 22923475b094SJouni Malinen ), 22933475b094SJouni Malinen TP_fast_assign( 22943475b094SJouni Malinen WIPHY_ASSIGN; 22953475b094SJouni Malinen NETDEV_ASSIGN; 22963475b094SJouni Malinen MAC_ASSIGN(peer, peer); 22973475b094SJouni Malinen __entry->oper = oper; 22983475b094SJouni Malinen __entry->reason_code = reason_code; 22993475b094SJouni Malinen ), 23003475b094SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u", 23013475b094SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper, 23023475b094SJouni Malinen __entry->reason_code) 23033475b094SJouni Malinen ); 23043475b094SJouni Malinen 23054ee3e063SBeni Lev TRACE_EVENT(cfg80211_scan_done, 23064ee3e063SBeni Lev TP_PROTO(struct cfg80211_scan_request *request, bool aborted), 23074ee3e063SBeni Lev TP_ARGS(request, aborted), 23084ee3e063SBeni Lev TP_STRUCT__entry( 23094ee3e063SBeni Lev __field(u32, n_channels) 23104ee3e063SBeni Lev __dynamic_array(u8, ie, request ? request->ie_len : 0) 23114ee3e063SBeni Lev __array(u32, rates, IEEE80211_NUM_BANDS) 23124ee3e063SBeni Lev __field(u32, wdev_id) 23134ee3e063SBeni Lev MAC_ENTRY(wiphy_mac) 23144ee3e063SBeni Lev __field(bool, no_cck) 23154ee3e063SBeni Lev __field(bool, aborted) 23164ee3e063SBeni Lev ), 23174ee3e063SBeni Lev TP_fast_assign( 23184ee3e063SBeni Lev if (request) { 23194ee3e063SBeni Lev memcpy(__get_dynamic_array(ie), request->ie, 23204ee3e063SBeni Lev request->ie_len); 23214ee3e063SBeni Lev memcpy(__entry->rates, request->rates, 23224ee3e063SBeni Lev IEEE80211_NUM_BANDS); 23234ee3e063SBeni Lev __entry->wdev_id = request->wdev ? 23244ee3e063SBeni Lev request->wdev->identifier : 0; 23254ee3e063SBeni Lev if (request->wiphy) 23264ee3e063SBeni Lev MAC_ASSIGN(wiphy_mac, 23274ee3e063SBeni Lev request->wiphy->perm_addr); 23284ee3e063SBeni Lev __entry->no_cck = request->no_cck; 23294ee3e063SBeni Lev } 23304ee3e063SBeni Lev __entry->aborted = aborted; 23314ee3e063SBeni Lev ), 23324ee3e063SBeni Lev TP_printk("aborted: %s", BOOL_TO_STR(__entry->aborted)) 23334ee3e063SBeni Lev ); 23344ee3e063SBeni Lev 23354ee3e063SBeni Lev DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_results, 23364ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy), 23374ee3e063SBeni Lev TP_ARGS(wiphy) 23384ee3e063SBeni Lev ); 23394ee3e063SBeni Lev 23404ee3e063SBeni Lev DEFINE_EVENT(wiphy_only_evt, cfg80211_sched_scan_stopped, 23414ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy), 23424ee3e063SBeni Lev TP_ARGS(wiphy) 23434ee3e063SBeni Lev ); 23444ee3e063SBeni Lev 23454ee3e063SBeni Lev TRACE_EVENT(cfg80211_get_bss, 23464ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, 23474ee3e063SBeni Lev const u8 *bssid, const u8 *ssid, size_t ssid_len, 23484ee3e063SBeni Lev u16 capa_mask, u16 capa_val), 23494ee3e063SBeni Lev TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, capa_mask, capa_val), 23504ee3e063SBeni Lev TP_STRUCT__entry( 23514ee3e063SBeni Lev WIPHY_ENTRY 23524ee3e063SBeni Lev CHAN_ENTRY 23534ee3e063SBeni Lev MAC_ENTRY(bssid) 23544ee3e063SBeni Lev __dynamic_array(u8, ssid, ssid_len) 23554ee3e063SBeni Lev __field(u16, capa_mask) 23564ee3e063SBeni Lev __field(u16, capa_val) 23574ee3e063SBeni Lev ), 23584ee3e063SBeni Lev TP_fast_assign( 23594ee3e063SBeni Lev WIPHY_ASSIGN; 23604ee3e063SBeni Lev CHAN_ASSIGN(channel); 23614ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 23624ee3e063SBeni Lev memcpy(__get_dynamic_array(ssid), ssid, ssid_len); 23634ee3e063SBeni Lev __entry->capa_mask = capa_mask; 23644ee3e063SBeni Lev __entry->capa_val = capa_val; 23654ee3e063SBeni Lev ), 2366ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", " MAC_PR_FMT ", buf: %#.2x, " 23674ee3e063SBeni Lev "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG, CHAN_PR_ARG, 23684ee3e063SBeni Lev MAC_PR_ARG(bssid), ((u8 *)__get_dynamic_array(ssid))[0], 23694ee3e063SBeni Lev __entry->capa_mask, __entry->capa_val) 23704ee3e063SBeni Lev ); 23714ee3e063SBeni Lev 23724ee3e063SBeni Lev TRACE_EVENT(cfg80211_inform_bss_frame, 23734ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, 23744ee3e063SBeni Lev struct ieee80211_mgmt *mgmt, size_t len, 23754ee3e063SBeni Lev s32 signal), 23764ee3e063SBeni Lev TP_ARGS(wiphy, channel, mgmt, len, signal), 23774ee3e063SBeni Lev TP_STRUCT__entry( 23784ee3e063SBeni Lev WIPHY_ENTRY 23794ee3e063SBeni Lev CHAN_ENTRY 23804ee3e063SBeni Lev __dynamic_array(u8, mgmt, len) 23814ee3e063SBeni Lev __field(s32, signal) 23824ee3e063SBeni Lev ), 23834ee3e063SBeni Lev TP_fast_assign( 23844ee3e063SBeni Lev WIPHY_ASSIGN; 23854ee3e063SBeni Lev CHAN_ASSIGN(channel); 23864ee3e063SBeni Lev if (mgmt) 23874ee3e063SBeni Lev memcpy(__get_dynamic_array(mgmt), mgmt, len); 23884ee3e063SBeni Lev __entry->signal = signal; 23894ee3e063SBeni Lev ), 2390ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT "signal: %d", 23914ee3e063SBeni Lev WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal) 23924ee3e063SBeni Lev ); 23934ee3e063SBeni Lev 23944ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_bss_evt, 23954ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 23964ee3e063SBeni Lev TP_ARGS(pub), 23974ee3e063SBeni Lev TP_STRUCT__entry( 23984ee3e063SBeni Lev MAC_ENTRY(bssid) 23994ee3e063SBeni Lev CHAN_ENTRY 24004ee3e063SBeni Lev ), 24014ee3e063SBeni Lev TP_fast_assign( 24024ee3e063SBeni Lev MAC_ASSIGN(bssid, pub->bssid); 24034ee3e063SBeni Lev CHAN_ASSIGN(pub->channel); 24044ee3e063SBeni Lev ), 2405ec816087SJohannes Berg TP_printk(MAC_PR_FMT ", " CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG) 24064ee3e063SBeni Lev ); 24074ee3e063SBeni Lev 24084ee3e063SBeni Lev DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, 24094ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 24104ee3e063SBeni Lev TP_ARGS(pub) 24114ee3e063SBeni Lev ); 24124ee3e063SBeni Lev 24134ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_uint, 24144ee3e063SBeni Lev TP_PROTO(unsigned int ret), 24154ee3e063SBeni Lev TP_ARGS(ret), 24164ee3e063SBeni Lev TP_STRUCT__entry( 24174ee3e063SBeni Lev __field(unsigned int, ret) 24184ee3e063SBeni Lev ), 24194ee3e063SBeni Lev TP_fast_assign( 24204ee3e063SBeni Lev __entry->ret = ret; 24214ee3e063SBeni Lev ), 24224ee3e063SBeni Lev TP_printk("ret: %d", __entry->ret) 24234ee3e063SBeni Lev ); 24244ee3e063SBeni Lev 24254ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_u32, 24264ee3e063SBeni Lev TP_PROTO(u32 ret), 24274ee3e063SBeni Lev TP_ARGS(ret), 24284ee3e063SBeni Lev TP_STRUCT__entry( 24294ee3e063SBeni Lev __field(u32, ret) 24304ee3e063SBeni Lev ), 24314ee3e063SBeni Lev TP_fast_assign( 24324ee3e063SBeni Lev __entry->ret = ret; 24334ee3e063SBeni Lev ), 24344ee3e063SBeni Lev TP_printk("ret: %u", __entry->ret) 24354ee3e063SBeni Lev ); 24364ee3e063SBeni Lev 2437cd8f7cb4SJohannes Berg TRACE_EVENT(cfg80211_report_wowlan_wakeup, 2438cd8f7cb4SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2439cd8f7cb4SJohannes Berg struct cfg80211_wowlan_wakeup *wakeup), 2440cd8f7cb4SJohannes Berg TP_ARGS(wiphy, wdev, wakeup), 2441cd8f7cb4SJohannes Berg TP_STRUCT__entry( 2442cd8f7cb4SJohannes Berg WIPHY_ENTRY 2443cd8f7cb4SJohannes Berg WDEV_ENTRY 2444*a92eecbbSJohannes Berg __field(bool, non_wireless) 2445cd8f7cb4SJohannes Berg __field(bool, disconnect) 2446cd8f7cb4SJohannes Berg __field(bool, magic_pkt) 2447cd8f7cb4SJohannes Berg __field(bool, gtk_rekey_failure) 2448cd8f7cb4SJohannes Berg __field(bool, eap_identity_req) 2449cd8f7cb4SJohannes Berg __field(bool, four_way_handshake) 2450cd8f7cb4SJohannes Berg __field(bool, rfkill_release) 2451cd8f7cb4SJohannes Berg __field(s32, pattern_idx) 2452cd8f7cb4SJohannes Berg __field(u32, packet_len) 2453*a92eecbbSJohannes Berg __dynamic_array(u8, packet, 2454*a92eecbbSJohannes Berg wakeup ? wakeup->packet_present_len : 0) 2455cd8f7cb4SJohannes Berg ), 2456cd8f7cb4SJohannes Berg TP_fast_assign( 2457cd8f7cb4SJohannes Berg WIPHY_ASSIGN; 2458cd8f7cb4SJohannes Berg WDEV_ASSIGN; 2459*a92eecbbSJohannes Berg __entry->non_wireless = !wakeup; 2460*a92eecbbSJohannes Berg __entry->disconnect = wakeup ? wakeup->disconnect : false; 2461*a92eecbbSJohannes Berg __entry->magic_pkt = wakeup ? wakeup->magic_pkt : false; 2462*a92eecbbSJohannes Berg __entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false; 2463*a92eecbbSJohannes Berg __entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false; 2464*a92eecbbSJohannes Berg __entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false; 2465*a92eecbbSJohannes Berg __entry->rfkill_release = wakeup ? wakeup->rfkill_release : false; 2466*a92eecbbSJohannes Berg __entry->pattern_idx = wakeup ? wakeup->pattern_idx : false; 2467*a92eecbbSJohannes Berg __entry->packet_len = wakeup ? wakeup->packet_len : false; 2468*a92eecbbSJohannes Berg if (wakeup && wakeup->packet && wakeup->packet_present_len) 2469cd8f7cb4SJohannes Berg memcpy(__get_dynamic_array(packet), wakeup->packet, 2470cd8f7cb4SJohannes Berg wakeup->packet_present_len); 2471cd8f7cb4SJohannes Berg ), 2472cd8f7cb4SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 2473cd8f7cb4SJohannes Berg ); 2474cd8f7cb4SJohannes Berg 2475355199e0SJouni Malinen TRACE_EVENT(cfg80211_ft_event, 2476355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2477355199e0SJouni Malinen struct cfg80211_ft_event_params *ft_event), 2478355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ft_event), 2479355199e0SJouni Malinen TP_STRUCT__entry( 2480355199e0SJouni Malinen WIPHY_ENTRY 2481355199e0SJouni Malinen NETDEV_ENTRY 2482355199e0SJouni Malinen __dynamic_array(u8, ies, ft_event->ies_len) 2483355199e0SJouni Malinen MAC_ENTRY(target_ap) 2484355199e0SJouni Malinen __dynamic_array(u8, ric_ies, ft_event->ric_ies_len) 2485355199e0SJouni Malinen ), 2486355199e0SJouni Malinen TP_fast_assign( 2487355199e0SJouni Malinen WIPHY_ASSIGN; 2488355199e0SJouni Malinen NETDEV_ASSIGN; 2489355199e0SJouni Malinen if (ft_event->ies) 2490355199e0SJouni Malinen memcpy(__get_dynamic_array(ies), ft_event->ies, 2491355199e0SJouni Malinen ft_event->ies_len); 2492355199e0SJouni Malinen MAC_ASSIGN(target_ap, ft_event->target_ap); 2493355199e0SJouni Malinen if (ft_event->ric_ies) 2494355199e0SJouni Malinen memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies, 2495355199e0SJouni Malinen ft_event->ric_ies_len); 2496355199e0SJouni Malinen ), 2497355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: " MAC_PR_FMT, 2498355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(target_ap)) 2499355199e0SJouni Malinen ); 2500355199e0SJouni Malinen 250114e8a3c4SBeni Lev #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 250214e8a3c4SBeni Lev 250314e8a3c4SBeni Lev #undef TRACE_INCLUDE_PATH 250414e8a3c4SBeni Lev #define TRACE_INCLUDE_PATH . 250514e8a3c4SBeni Lev #undef TRACE_INCLUDE_FILE 250614e8a3c4SBeni Lev #define TRACE_INCLUDE_FILE trace 250714e8a3c4SBeni Lev #include <trace/define_trace.h> 2508