1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 214e8a3c4SBeni Lev #undef TRACE_SYSTEM 314e8a3c4SBeni Lev #define TRACE_SYSTEM cfg80211 414e8a3c4SBeni Lev 514e8a3c4SBeni Lev #if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ) 614e8a3c4SBeni Lev #define __RDEV_OPS_TRACE 714e8a3c4SBeni Lev 814e8a3c4SBeni Lev #include <linux/tracepoint.h> 914e8a3c4SBeni Lev 1014e8a3c4SBeni Lev #include <linux/rtnetlink.h> 11d2beae10SJoe Perches #include <linux/etherdevice.h> 1214e8a3c4SBeni Lev #include <net/cfg80211.h> 1314e8a3c4SBeni Lev #include "core.h" 1414e8a3c4SBeni Lev 1514e8a3c4SBeni Lev #define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN) 1614e8a3c4SBeni Lev #define MAC_ASSIGN(entry_mac, given_mac) do { \ 1714e8a3c4SBeni Lev if (given_mac) \ 1814e8a3c4SBeni Lev memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \ 1914e8a3c4SBeni Lev else \ 20d2beae10SJoe Perches eth_zero_addr(__entry->entry_mac); \ 2114e8a3c4SBeni Lev } while (0) 2214e8a3c4SBeni Lev #define MAC_PR_FMT "%pM" 2314e8a3c4SBeni Lev #define MAC_PR_ARG(entry_mac) (__entry->entry_mac) 2414e8a3c4SBeni Lev 25ec816087SJohannes Berg #define MAXNAME 32 26ec816087SJohannes Berg #define WIPHY_ENTRY __array(char, wiphy_name, 32) 27ec816087SJohannes Berg #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME) 28ec816087SJohannes Berg #define WIPHY_PR_FMT "%s" 29ec816087SJohannes Berg #define WIPHY_PR_ARG __entry->wiphy_name 3014e8a3c4SBeni Lev 3114e8a3c4SBeni Lev #define WDEV_ENTRY __field(u32, id) 32ce1eaddaSJohannes Berg #define WDEV_ASSIGN (__entry->id) = (!IS_ERR_OR_NULL(wdev) \ 33ce1eaddaSJohannes Berg ? wdev->identifier : 0) 34ec816087SJohannes Berg #define WDEV_PR_FMT "wdev(%u)" 3514e8a3c4SBeni Lev #define WDEV_PR_ARG (__entry->id) 3614e8a3c4SBeni Lev 3714e8a3c4SBeni Lev #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \ 3814e8a3c4SBeni Lev __field(int, ifindex) 3914e8a3c4SBeni Lev #define NETDEV_ASSIGN \ 4014e8a3c4SBeni Lev do { \ 4114e8a3c4SBeni Lev memcpy(__entry->name, netdev->name, IFNAMSIZ); \ 4214e8a3c4SBeni Lev (__entry->ifindex) = (netdev->ifindex); \ 4314e8a3c4SBeni Lev } while (0) 44ec816087SJohannes Berg #define NETDEV_PR_FMT "netdev:%s(%d)" 45ec816087SJohannes Berg #define NETDEV_PR_ARG __entry->name, __entry->ifindex 4614e8a3c4SBeni Lev 4714e8a3c4SBeni Lev #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \ 4814e8a3c4SBeni Lev __field(u16, dot11MeshConfirmTimeout) \ 4914e8a3c4SBeni Lev __field(u16, dot11MeshHoldingTimeout) \ 5014e8a3c4SBeni Lev __field(u16, dot11MeshMaxPeerLinks) \ 5114e8a3c4SBeni Lev __field(u8, dot11MeshMaxRetries) \ 5214e8a3c4SBeni Lev __field(u8, dot11MeshTTL) \ 5314e8a3c4SBeni Lev __field(u8, element_ttl) \ 5414e8a3c4SBeni Lev __field(bool, auto_open_plinks) \ 5514e8a3c4SBeni Lev __field(u32, dot11MeshNbrOffsetMaxNeighbor) \ 5614e8a3c4SBeni Lev __field(u8, dot11MeshHWMPmaxPREQretries) \ 5714e8a3c4SBeni Lev __field(u32, path_refresh_time) \ 5814e8a3c4SBeni Lev __field(u32, dot11MeshHWMPactivePathTimeout) \ 5914e8a3c4SBeni Lev __field(u16, min_discovery_timeout) \ 6014e8a3c4SBeni Lev __field(u16, dot11MeshHWMPpreqMinInterval) \ 6114e8a3c4SBeni Lev __field(u16, dot11MeshHWMPperrMinInterval) \ 6214e8a3c4SBeni Lev __field(u16, dot11MeshHWMPnetDiameterTraversalTime) \ 6314e8a3c4SBeni Lev __field(u8, dot11MeshHWMPRootMode) \ 6414e8a3c4SBeni Lev __field(u16, dot11MeshHWMPRannInterval) \ 6514e8a3c4SBeni Lev __field(bool, dot11MeshGateAnnouncementProtocol) \ 6614e8a3c4SBeni Lev __field(bool, dot11MeshForwarding) \ 6714e8a3c4SBeni Lev __field(s32, rssi_threshold) \ 6814e8a3c4SBeni Lev __field(u16, ht_opmode) \ 6914e8a3c4SBeni Lev __field(u32, dot11MeshHWMPactivePathToRootTimeout) \ 7014e8a3c4SBeni Lev __field(u16, dot11MeshHWMProotInterval) \ 7114e8a3c4SBeni Lev __field(u16, dot11MeshHWMPconfirmationInterval) 7214e8a3c4SBeni Lev #define MESH_CFG_ASSIGN \ 7314e8a3c4SBeni Lev do { \ 7414e8a3c4SBeni Lev __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \ 7514e8a3c4SBeni Lev __entry->dot11MeshConfirmTimeout = \ 7614e8a3c4SBeni Lev conf->dot11MeshConfirmTimeout; \ 7714e8a3c4SBeni Lev __entry->dot11MeshHoldingTimeout = \ 7814e8a3c4SBeni Lev conf->dot11MeshHoldingTimeout; \ 7914e8a3c4SBeni Lev __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \ 8014e8a3c4SBeni Lev __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \ 8114e8a3c4SBeni Lev __entry->dot11MeshTTL = conf->dot11MeshTTL; \ 8214e8a3c4SBeni Lev __entry->element_ttl = conf->element_ttl; \ 8314e8a3c4SBeni Lev __entry->auto_open_plinks = conf->auto_open_plinks; \ 8414e8a3c4SBeni Lev __entry->dot11MeshNbrOffsetMaxNeighbor = \ 8514e8a3c4SBeni Lev conf->dot11MeshNbrOffsetMaxNeighbor; \ 8614e8a3c4SBeni Lev __entry->dot11MeshHWMPmaxPREQretries = \ 8714e8a3c4SBeni Lev conf->dot11MeshHWMPmaxPREQretries; \ 8814e8a3c4SBeni Lev __entry->path_refresh_time = conf->path_refresh_time; \ 8914e8a3c4SBeni Lev __entry->dot11MeshHWMPactivePathTimeout = \ 9014e8a3c4SBeni Lev conf->dot11MeshHWMPactivePathTimeout; \ 9114e8a3c4SBeni Lev __entry->min_discovery_timeout = conf->min_discovery_timeout; \ 9214e8a3c4SBeni Lev __entry->dot11MeshHWMPpreqMinInterval = \ 9314e8a3c4SBeni Lev conf->dot11MeshHWMPpreqMinInterval; \ 9414e8a3c4SBeni Lev __entry->dot11MeshHWMPperrMinInterval = \ 9514e8a3c4SBeni Lev conf->dot11MeshHWMPperrMinInterval; \ 9614e8a3c4SBeni Lev __entry->dot11MeshHWMPnetDiameterTraversalTime = \ 9714e8a3c4SBeni Lev conf->dot11MeshHWMPnetDiameterTraversalTime; \ 9814e8a3c4SBeni Lev __entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \ 9914e8a3c4SBeni Lev __entry->dot11MeshHWMPRannInterval = \ 10014e8a3c4SBeni Lev conf->dot11MeshHWMPRannInterval; \ 10114e8a3c4SBeni Lev __entry->dot11MeshGateAnnouncementProtocol = \ 10214e8a3c4SBeni Lev conf->dot11MeshGateAnnouncementProtocol; \ 10314e8a3c4SBeni Lev __entry->dot11MeshForwarding = conf->dot11MeshForwarding; \ 10414e8a3c4SBeni Lev __entry->rssi_threshold = conf->rssi_threshold; \ 10514e8a3c4SBeni Lev __entry->ht_opmode = conf->ht_opmode; \ 10614e8a3c4SBeni Lev __entry->dot11MeshHWMPactivePathToRootTimeout = \ 10714e8a3c4SBeni Lev conf->dot11MeshHWMPactivePathToRootTimeout; \ 10814e8a3c4SBeni Lev __entry->dot11MeshHWMProotInterval = \ 10914e8a3c4SBeni Lev conf->dot11MeshHWMProotInterval; \ 11014e8a3c4SBeni Lev __entry->dot11MeshHWMPconfirmationInterval = \ 11114e8a3c4SBeni Lev conf->dot11MeshHWMPconfirmationInterval; \ 11214e8a3c4SBeni Lev } while (0) 11314e8a3c4SBeni Lev 11457fbcce3SJohannes Berg #define CHAN_ENTRY __field(enum nl80211_band, band) \ 1159cf0a0b4SAlexei Avshalom Lazar __field(u32, center_freq) 11614e8a3c4SBeni Lev #define CHAN_ASSIGN(chan) \ 11714e8a3c4SBeni Lev do { \ 11814e8a3c4SBeni Lev if (chan) { \ 11914e8a3c4SBeni Lev __entry->band = chan->band; \ 12014e8a3c4SBeni Lev __entry->center_freq = chan->center_freq; \ 12114e8a3c4SBeni Lev } else { \ 12214e8a3c4SBeni Lev __entry->band = 0; \ 12314e8a3c4SBeni Lev __entry->center_freq = 0; \ 12414e8a3c4SBeni Lev } \ 12514e8a3c4SBeni Lev } while (0) 126ec816087SJohannes Berg #define CHAN_PR_FMT "band: %d, freq: %u" 12714e8a3c4SBeni Lev #define CHAN_PR_ARG __entry->band, __entry->center_freq 12814e8a3c4SBeni Lev 12957fbcce3SJohannes Berg #define CHAN_DEF_ENTRY __field(enum nl80211_band, band) \ 1303d9d1d66SJohannes Berg __field(u32, control_freq) \ 1313d9d1d66SJohannes Berg __field(u32, width) \ 1323d9d1d66SJohannes Berg __field(u32, center_freq1) \ 1333d9d1d66SJohannes Berg __field(u32, center_freq2) 134683b6d3bSJohannes Berg #define CHAN_DEF_ASSIGN(chandef) \ 135683b6d3bSJohannes Berg do { \ 136683b6d3bSJohannes Berg if ((chandef) && (chandef)->chan) { \ 137683b6d3bSJohannes Berg __entry->band = (chandef)->chan->band; \ 1383d9d1d66SJohannes Berg __entry->control_freq = \ 139683b6d3bSJohannes Berg (chandef)->chan->center_freq; \ 1403d9d1d66SJohannes Berg __entry->width = (chandef)->width; \ 1413d9d1d66SJohannes Berg __entry->center_freq1 = (chandef)->center_freq1;\ 1423d9d1d66SJohannes Berg __entry->center_freq2 = (chandef)->center_freq2;\ 143683b6d3bSJohannes Berg } else { \ 144683b6d3bSJohannes Berg __entry->band = 0; \ 1453d9d1d66SJohannes Berg __entry->control_freq = 0; \ 1463d9d1d66SJohannes Berg __entry->width = 0; \ 1473d9d1d66SJohannes Berg __entry->center_freq1 = 0; \ 1483d9d1d66SJohannes Berg __entry->center_freq2 = 0; \ 149683b6d3bSJohannes Berg } \ 150683b6d3bSJohannes Berg } while (0) 1513d9d1d66SJohannes Berg #define CHAN_DEF_PR_FMT \ 152ec816087SJohannes Berg "band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u" 1533d9d1d66SJohannes Berg #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \ 1543d9d1d66SJohannes Berg __entry->width, __entry->center_freq1, \ 1553d9d1d66SJohannes Berg __entry->center_freq2 156683b6d3bSJohannes Berg 15714e8a3c4SBeni Lev #define SINFO_ENTRY __field(int, generation) \ 15814e8a3c4SBeni Lev __field(u32, connected_time) \ 15914e8a3c4SBeni Lev __field(u32, inactive_time) \ 16014e8a3c4SBeni Lev __field(u32, rx_bytes) \ 16114e8a3c4SBeni Lev __field(u32, tx_bytes) \ 16214e8a3c4SBeni Lev __field(u32, rx_packets) \ 16314e8a3c4SBeni Lev __field(u32, tx_packets) \ 16414e8a3c4SBeni Lev __field(u32, tx_retries) \ 16514e8a3c4SBeni Lev __field(u32, tx_failed) \ 16614e8a3c4SBeni Lev __field(u32, rx_dropped_misc) \ 16714e8a3c4SBeni Lev __field(u32, beacon_loss_count) \ 16814e8a3c4SBeni Lev __field(u16, llid) \ 16914e8a3c4SBeni Lev __field(u16, plid) \ 17014e8a3c4SBeni Lev __field(u8, plink_state) 17114e8a3c4SBeni Lev #define SINFO_ASSIGN \ 17214e8a3c4SBeni Lev do { \ 17314e8a3c4SBeni Lev __entry->generation = sinfo->generation; \ 17414e8a3c4SBeni Lev __entry->connected_time = sinfo->connected_time; \ 17514e8a3c4SBeni Lev __entry->inactive_time = sinfo->inactive_time; \ 17614e8a3c4SBeni Lev __entry->rx_bytes = sinfo->rx_bytes; \ 17714e8a3c4SBeni Lev __entry->tx_bytes = sinfo->tx_bytes; \ 17814e8a3c4SBeni Lev __entry->rx_packets = sinfo->rx_packets; \ 17914e8a3c4SBeni Lev __entry->tx_packets = sinfo->tx_packets; \ 18014e8a3c4SBeni Lev __entry->tx_retries = sinfo->tx_retries; \ 18114e8a3c4SBeni Lev __entry->tx_failed = sinfo->tx_failed; \ 18214e8a3c4SBeni Lev __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \ 18314e8a3c4SBeni Lev __entry->beacon_loss_count = sinfo->beacon_loss_count; \ 18414e8a3c4SBeni Lev __entry->llid = sinfo->llid; \ 18514e8a3c4SBeni Lev __entry->plid = sinfo->plid; \ 18614e8a3c4SBeni Lev __entry->plink_state = sinfo->plink_state; \ 18714e8a3c4SBeni Lev } while (0) 18814e8a3c4SBeni Lev 18914e8a3c4SBeni Lev #define BOOL_TO_STR(bo) (bo) ? "true" : "false" 19014e8a3c4SBeni Lev 191fa9ffc74SKyeyoon Park #define QOS_MAP_ENTRY __field(u8, num_des) \ 192fa9ffc74SKyeyoon Park __array(u8, dscp_exception, \ 193fa9ffc74SKyeyoon Park 2 * IEEE80211_QOS_MAP_MAX_EX) \ 194fa9ffc74SKyeyoon Park __array(u8, up, IEEE80211_QOS_MAP_LEN_MIN) 195fa9ffc74SKyeyoon Park #define QOS_MAP_ASSIGN(qos_map) \ 196fa9ffc74SKyeyoon Park do { \ 197fa9ffc74SKyeyoon Park if ((qos_map)) { \ 198fa9ffc74SKyeyoon Park __entry->num_des = (qos_map)->num_des; \ 199fa9ffc74SKyeyoon Park memcpy(__entry->dscp_exception, \ 200fa9ffc74SKyeyoon Park &(qos_map)->dscp_exception, \ 201fa9ffc74SKyeyoon Park 2 * IEEE80211_QOS_MAP_MAX_EX); \ 202fa9ffc74SKyeyoon Park memcpy(__entry->up, &(qos_map)->up, \ 203fa9ffc74SKyeyoon Park IEEE80211_QOS_MAP_LEN_MIN); \ 204fa9ffc74SKyeyoon Park } else { \ 205fa9ffc74SKyeyoon Park __entry->num_des = 0; \ 206fa9ffc74SKyeyoon Park memset(__entry->dscp_exception, 0, \ 207fa9ffc74SKyeyoon Park 2 * IEEE80211_QOS_MAP_MAX_EX); \ 208fa9ffc74SKyeyoon Park memset(__entry->up, 0, \ 209fa9ffc74SKyeyoon Park IEEE80211_QOS_MAP_LEN_MIN); \ 210fa9ffc74SKyeyoon Park } \ 211fa9ffc74SKyeyoon Park } while (0) 212fa9ffc74SKyeyoon Park 21314e8a3c4SBeni Lev /************************************************************* 21414e8a3c4SBeni Lev * rdev->ops traces * 21514e8a3c4SBeni Lev *************************************************************/ 21614e8a3c4SBeni Lev 21714e8a3c4SBeni Lev TRACE_EVENT(rdev_suspend, 21814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow), 21914e8a3c4SBeni Lev TP_ARGS(wiphy, wow), 22014e8a3c4SBeni Lev TP_STRUCT__entry( 22114e8a3c4SBeni Lev WIPHY_ENTRY 22214e8a3c4SBeni Lev __field(bool, any) 22314e8a3c4SBeni Lev __field(bool, disconnect) 22414e8a3c4SBeni Lev __field(bool, magic_pkt) 22514e8a3c4SBeni Lev __field(bool, gtk_rekey_failure) 22614e8a3c4SBeni Lev __field(bool, eap_identity_req) 22714e8a3c4SBeni Lev __field(bool, four_way_handshake) 22814e8a3c4SBeni Lev __field(bool, rfkill_release) 22914e8a3c4SBeni Lev __field(bool, valid_wow) 23014e8a3c4SBeni Lev ), 23114e8a3c4SBeni Lev TP_fast_assign( 23214e8a3c4SBeni Lev WIPHY_ASSIGN; 23314e8a3c4SBeni Lev if (wow) { 23414e8a3c4SBeni Lev __entry->any = wow->any; 23514e8a3c4SBeni Lev __entry->disconnect = wow->disconnect; 23614e8a3c4SBeni Lev __entry->magic_pkt = wow->magic_pkt; 23714e8a3c4SBeni Lev __entry->gtk_rekey_failure = wow->gtk_rekey_failure; 23814e8a3c4SBeni Lev __entry->eap_identity_req = wow->eap_identity_req; 23914e8a3c4SBeni Lev __entry->four_way_handshake = wow->four_way_handshake; 24014e8a3c4SBeni Lev __entry->rfkill_release = wow->rfkill_release; 24114e8a3c4SBeni Lev __entry->valid_wow = true; 24214e8a3c4SBeni Lev } else { 24314e8a3c4SBeni Lev __entry->valid_wow = false; 24414e8a3c4SBeni Lev } 24514e8a3c4SBeni Lev ), 24614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, " 24714e8a3c4SBeni Lev "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, " 24814e8a3c4SBeni Lev "four way handshake: %d, rfkill release: %d.", 24914e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)", 25014e8a3c4SBeni Lev __entry->any, __entry->disconnect, __entry->magic_pkt, 25114e8a3c4SBeni Lev __entry->gtk_rekey_failure, __entry->eap_identity_req, 25214e8a3c4SBeni Lev __entry->four_way_handshake, __entry->rfkill_release) 25314e8a3c4SBeni Lev ); 25414e8a3c4SBeni Lev 25514e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int, 25614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret), 25714e8a3c4SBeni Lev TP_ARGS(wiphy, ret), 25814e8a3c4SBeni Lev TP_STRUCT__entry( 25914e8a3c4SBeni Lev WIPHY_ENTRY 26014e8a3c4SBeni Lev __field(int, ret) 26114e8a3c4SBeni Lev ), 26214e8a3c4SBeni Lev TP_fast_assign( 26314e8a3c4SBeni Lev WIPHY_ASSIGN; 26414e8a3c4SBeni Lev __entry->ret = ret; 26514e8a3c4SBeni Lev ), 26614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret) 26714e8a3c4SBeni Lev ); 26814e8a3c4SBeni Lev 26914e8a3c4SBeni Lev TRACE_EVENT(rdev_scan, 27014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request), 27114e8a3c4SBeni Lev TP_ARGS(wiphy, request), 27214e8a3c4SBeni Lev TP_STRUCT__entry( 27314e8a3c4SBeni Lev WIPHY_ENTRY 27414e8a3c4SBeni Lev ), 27514e8a3c4SBeni Lev TP_fast_assign( 27614e8a3c4SBeni Lev WIPHY_ASSIGN; 27714e8a3c4SBeni Lev ), 27814e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 27914e8a3c4SBeni Lev ); 28014e8a3c4SBeni Lev 28114e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_only_evt, 28214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 28314e8a3c4SBeni Lev TP_ARGS(wiphy), 28414e8a3c4SBeni Lev TP_STRUCT__entry( 28514e8a3c4SBeni Lev WIPHY_ENTRY 28614e8a3c4SBeni Lev ), 28714e8a3c4SBeni Lev TP_fast_assign( 28814e8a3c4SBeni Lev WIPHY_ASSIGN; 28914e8a3c4SBeni Lev ), 29014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 29114e8a3c4SBeni Lev ); 29214e8a3c4SBeni Lev 29314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_resume, 29414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 29514e8a3c4SBeni Lev TP_ARGS(wiphy) 29614e8a3c4SBeni Lev ); 29714e8a3c4SBeni Lev 29814e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_return_void, 29914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 30014e8a3c4SBeni Lev TP_ARGS(wiphy) 30114e8a3c4SBeni Lev ); 30214e8a3c4SBeni Lev 30314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_get_antenna, 30414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 30514e8a3c4SBeni Lev TP_ARGS(wiphy) 30614e8a3c4SBeni Lev ); 30714e8a3c4SBeni Lev 30814e8a3c4SBeni Lev DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll, 30914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 31014e8a3c4SBeni Lev TP_ARGS(wiphy) 31114e8a3c4SBeni Lev ); 31214e8a3c4SBeni Lev 31314e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_enabled_evt, 31414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, bool enabled), 31514e8a3c4SBeni Lev TP_ARGS(wiphy, enabled), 31614e8a3c4SBeni Lev TP_STRUCT__entry( 31714e8a3c4SBeni Lev WIPHY_ENTRY 31814e8a3c4SBeni Lev __field(bool, enabled) 31914e8a3c4SBeni Lev ), 32014e8a3c4SBeni Lev TP_fast_assign( 32114e8a3c4SBeni Lev WIPHY_ASSIGN; 32214e8a3c4SBeni Lev __entry->enabled = enabled; 32314e8a3c4SBeni Lev ), 32414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", %senabled ", 32514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->enabled ? "" : "not ") 32614e8a3c4SBeni Lev ); 32714e8a3c4SBeni Lev 32814e8a3c4SBeni Lev DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup, 32914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, bool enabled), 33014e8a3c4SBeni Lev TP_ARGS(wiphy, enabled) 33114e8a3c4SBeni Lev ); 33214e8a3c4SBeni Lev 33314e8a3c4SBeni Lev TRACE_EVENT(rdev_add_virtual_intf, 33414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type), 33514e8a3c4SBeni Lev TP_ARGS(wiphy, name, type), 33614e8a3c4SBeni Lev TP_STRUCT__entry( 33714e8a3c4SBeni Lev WIPHY_ENTRY 33814e8a3c4SBeni Lev __string(vir_intf_name, name ? name : "<noname>") 33914e8a3c4SBeni Lev __field(enum nl80211_iftype, type) 34014e8a3c4SBeni Lev ), 34114e8a3c4SBeni Lev TP_fast_assign( 34214e8a3c4SBeni Lev WIPHY_ASSIGN; 34314e8a3c4SBeni Lev __assign_str(vir_intf_name, name ? name : "<noname>"); 34414e8a3c4SBeni Lev __entry->type = type; 34514e8a3c4SBeni Lev ), 34614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d", 34714e8a3c4SBeni Lev WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type) 34814e8a3c4SBeni Lev ); 34914e8a3c4SBeni Lev 35014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_wdev_evt, 35114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 35214e8a3c4SBeni Lev TP_ARGS(wiphy, wdev), 35314e8a3c4SBeni Lev TP_STRUCT__entry( 35414e8a3c4SBeni Lev WIPHY_ENTRY 35514e8a3c4SBeni Lev WDEV_ENTRY 35614e8a3c4SBeni Lev ), 35714e8a3c4SBeni Lev TP_fast_assign( 35814e8a3c4SBeni Lev WIPHY_ASSIGN; 35914e8a3c4SBeni Lev WDEV_ASSIGN; 36014e8a3c4SBeni Lev ), 361ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 36214e8a3c4SBeni Lev ); 36314e8a3c4SBeni Lev 3649bb7e0f2SJohannes Berg DECLARE_EVENT_CLASS(wiphy_wdev_cookie_evt, 3659bb7e0f2SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 3669bb7e0f2SJohannes Berg TP_ARGS(wiphy, wdev, cookie), 3679bb7e0f2SJohannes Berg TP_STRUCT__entry( 3689bb7e0f2SJohannes Berg WIPHY_ENTRY 3699bb7e0f2SJohannes Berg WDEV_ENTRY 3709bb7e0f2SJohannes Berg __field(u64, cookie) 3719bb7e0f2SJohannes Berg ), 3729bb7e0f2SJohannes Berg TP_fast_assign( 3739bb7e0f2SJohannes Berg WIPHY_ASSIGN; 3749bb7e0f2SJohannes Berg WDEV_ASSIGN; 3759bb7e0f2SJohannes Berg __entry->cookie = cookie; 3769bb7e0f2SJohannes Berg ), 3779bb7e0f2SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %lld", 3789bb7e0f2SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, 3799bb7e0f2SJohannes Berg (unsigned long long)__entry->cookie) 3809bb7e0f2SJohannes Berg ); 3819bb7e0f2SJohannes Berg 38214e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, 38314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 38414e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 38514e8a3c4SBeni Lev ); 38614e8a3c4SBeni Lev 38714e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf, 38814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 38914e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 39014e8a3c4SBeni Lev ); 39114e8a3c4SBeni Lev 39214e8a3c4SBeni Lev TRACE_EVENT(rdev_change_virtual_intf, 39314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 39414e8a3c4SBeni Lev enum nl80211_iftype type), 39514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, type), 39614e8a3c4SBeni Lev TP_STRUCT__entry( 39714e8a3c4SBeni Lev WIPHY_ENTRY 39814e8a3c4SBeni Lev NETDEV_ENTRY 39914e8a3c4SBeni Lev __field(enum nl80211_iftype, type) 40014e8a3c4SBeni Lev ), 40114e8a3c4SBeni Lev TP_fast_assign( 40214e8a3c4SBeni Lev WIPHY_ASSIGN; 40314e8a3c4SBeni Lev NETDEV_ASSIGN; 40414e8a3c4SBeni Lev __entry->type = type; 40514e8a3c4SBeni Lev ), 406ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d", 40714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) 40814e8a3c4SBeni Lev ); 40914e8a3c4SBeni Lev 41014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(key_handle, 41114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 41214e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 41314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr), 41414e8a3c4SBeni Lev TP_STRUCT__entry( 41514e8a3c4SBeni Lev WIPHY_ENTRY 41614e8a3c4SBeni Lev NETDEV_ENTRY 41714e8a3c4SBeni Lev MAC_ENTRY(mac_addr) 41814e8a3c4SBeni Lev __field(u8, key_index) 41914e8a3c4SBeni Lev __field(bool, pairwise) 42014e8a3c4SBeni Lev ), 42114e8a3c4SBeni Lev TP_fast_assign( 42214e8a3c4SBeni Lev WIPHY_ASSIGN; 42314e8a3c4SBeni Lev NETDEV_ASSIGN; 42414e8a3c4SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 42514e8a3c4SBeni Lev __entry->key_index = key_index; 42614e8a3c4SBeni Lev __entry->pairwise = pairwise; 42714e8a3c4SBeni Lev ), 428ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT, 42914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 43014e8a3c4SBeni Lev BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr)) 43114e8a3c4SBeni Lev ); 43214e8a3c4SBeni Lev 43314e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_add_key, 43414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 43514e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 43614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 43714e8a3c4SBeni Lev ); 43814e8a3c4SBeni Lev 43914e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_get_key, 44014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 44114e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 44214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 44314e8a3c4SBeni Lev ); 44414e8a3c4SBeni Lev 44514e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_del_key, 44614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 44714e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 44814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 44914e8a3c4SBeni Lev ); 45014e8a3c4SBeni Lev 45114e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_key, 45214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 45314e8a3c4SBeni Lev bool unicast, bool multicast), 45414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, unicast, multicast), 45514e8a3c4SBeni Lev TP_STRUCT__entry( 45614e8a3c4SBeni Lev WIPHY_ENTRY 45714e8a3c4SBeni Lev NETDEV_ENTRY 45814e8a3c4SBeni Lev __field(u8, key_index) 45914e8a3c4SBeni Lev __field(bool, unicast) 46014e8a3c4SBeni Lev __field(bool, multicast) 46114e8a3c4SBeni Lev ), 46214e8a3c4SBeni Lev TP_fast_assign( 46314e8a3c4SBeni Lev WIPHY_ASSIGN; 46414e8a3c4SBeni Lev NETDEV_ASSIGN; 46514e8a3c4SBeni Lev __entry->key_index = key_index; 46614e8a3c4SBeni Lev __entry->unicast = unicast; 46714e8a3c4SBeni Lev __entry->multicast = multicast; 46814e8a3c4SBeni Lev ), 469ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s", 47014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 47114e8a3c4SBeni Lev BOOL_TO_STR(__entry->unicast), 47214e8a3c4SBeni Lev BOOL_TO_STR(__entry->multicast)) 47314e8a3c4SBeni Lev ); 47414e8a3c4SBeni Lev 47514e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_mgmt_key, 47614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index), 47714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index), 47814e8a3c4SBeni Lev TP_STRUCT__entry( 47914e8a3c4SBeni Lev WIPHY_ENTRY 48014e8a3c4SBeni Lev NETDEV_ENTRY 48114e8a3c4SBeni Lev __field(u8, key_index) 48214e8a3c4SBeni Lev ), 48314e8a3c4SBeni Lev TP_fast_assign( 48414e8a3c4SBeni Lev WIPHY_ASSIGN; 48514e8a3c4SBeni Lev NETDEV_ASSIGN; 48614e8a3c4SBeni Lev __entry->key_index = key_index; 48714e8a3c4SBeni Lev ), 488ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u", 48914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) 49014e8a3c4SBeni Lev ); 49114e8a3c4SBeni Lev 49214e8a3c4SBeni Lev TRACE_EVENT(rdev_start_ap, 49314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 49414e8a3c4SBeni Lev struct cfg80211_ap_settings *settings), 49514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, settings), 49614e8a3c4SBeni Lev TP_STRUCT__entry( 49714e8a3c4SBeni Lev WIPHY_ENTRY 49814e8a3c4SBeni Lev NETDEV_ENTRY 499683b6d3bSJohannes Berg CHAN_DEF_ENTRY 50014e8a3c4SBeni Lev __field(int, beacon_interval) 50114e8a3c4SBeni Lev __field(int, dtim_period) 50214e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 50314e8a3c4SBeni Lev __field(enum nl80211_hidden_ssid, hidden_ssid) 50414e8a3c4SBeni Lev __field(u32, wpa_ver) 50514e8a3c4SBeni Lev __field(bool, privacy) 50614e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 50714e8a3c4SBeni Lev __field(int, inactivity_timeout) 50814e8a3c4SBeni Lev ), 50914e8a3c4SBeni Lev TP_fast_assign( 51014e8a3c4SBeni Lev WIPHY_ASSIGN; 51114e8a3c4SBeni Lev NETDEV_ASSIGN; 512683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(&settings->chandef); 51314e8a3c4SBeni Lev __entry->beacon_interval = settings->beacon_interval; 51414e8a3c4SBeni Lev __entry->dtim_period = settings->dtim_period; 51514e8a3c4SBeni Lev __entry->hidden_ssid = settings->hidden_ssid; 51614e8a3c4SBeni Lev __entry->wpa_ver = settings->crypto.wpa_versions; 51714e8a3c4SBeni Lev __entry->privacy = settings->privacy; 51814e8a3c4SBeni Lev __entry->auth_type = settings->auth_type; 51914e8a3c4SBeni Lev __entry->inactivity_timeout = settings->inactivity_timeout; 52014e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 52114e8a3c4SBeni Lev memcpy(__entry->ssid, settings->ssid, settings->ssid_len); 52214e8a3c4SBeni Lev ), 523ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, " 524683b6d3bSJohannes Berg CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " 52514e8a3c4SBeni Lev "hidden ssid: %d, wpa versions: %u, privacy: %s, " 52614e8a3c4SBeni Lev "auth type: %d, inactivity timeout: %d", 527683b6d3bSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG, 52814e8a3c4SBeni Lev __entry->beacon_interval, __entry->dtim_period, 52914e8a3c4SBeni Lev __entry->hidden_ssid, __entry->wpa_ver, 53014e8a3c4SBeni Lev BOOL_TO_STR(__entry->privacy), __entry->auth_type, 53114e8a3c4SBeni Lev __entry->inactivity_timeout) 53214e8a3c4SBeni Lev ); 53314e8a3c4SBeni Lev 53414e8a3c4SBeni Lev TRACE_EVENT(rdev_change_beacon, 53514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 53614e8a3c4SBeni Lev struct cfg80211_beacon_data *info), 53714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, info), 53814e8a3c4SBeni Lev TP_STRUCT__entry( 53914e8a3c4SBeni Lev WIPHY_ENTRY 54014e8a3c4SBeni Lev NETDEV_ENTRY 54114e8a3c4SBeni Lev __dynamic_array(u8, head, info ? info->head_len : 0) 54214e8a3c4SBeni Lev __dynamic_array(u8, tail, info ? info->tail_len : 0) 54314e8a3c4SBeni Lev __dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0) 54414e8a3c4SBeni Lev __dynamic_array(u8, proberesp_ies, 54514e8a3c4SBeni Lev info ? info->proberesp_ies_len : 0) 54614e8a3c4SBeni Lev __dynamic_array(u8, assocresp_ies, 54714e8a3c4SBeni Lev info ? info->assocresp_ies_len : 0) 54814e8a3c4SBeni Lev __dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0) 54914e8a3c4SBeni Lev ), 55014e8a3c4SBeni Lev TP_fast_assign( 55114e8a3c4SBeni Lev WIPHY_ASSIGN; 55214e8a3c4SBeni Lev NETDEV_ASSIGN; 55314e8a3c4SBeni Lev if (info) { 55414e8a3c4SBeni Lev if (info->head) 55514e8a3c4SBeni Lev memcpy(__get_dynamic_array(head), info->head, 55614e8a3c4SBeni Lev info->head_len); 55714e8a3c4SBeni Lev if (info->tail) 55814e8a3c4SBeni Lev memcpy(__get_dynamic_array(tail), info->tail, 55914e8a3c4SBeni Lev info->tail_len); 56014e8a3c4SBeni Lev if (info->beacon_ies) 56114e8a3c4SBeni Lev memcpy(__get_dynamic_array(beacon_ies), 56214e8a3c4SBeni Lev info->beacon_ies, info->beacon_ies_len); 56314e8a3c4SBeni Lev if (info->proberesp_ies) 56414e8a3c4SBeni Lev memcpy(__get_dynamic_array(proberesp_ies), 56514e8a3c4SBeni Lev info->proberesp_ies, 56614e8a3c4SBeni Lev info->proberesp_ies_len); 56714e8a3c4SBeni Lev if (info->assocresp_ies) 56814e8a3c4SBeni Lev memcpy(__get_dynamic_array(assocresp_ies), 56914e8a3c4SBeni Lev info->assocresp_ies, 57014e8a3c4SBeni Lev info->assocresp_ies_len); 57114e8a3c4SBeni Lev if (info->probe_resp) 57214e8a3c4SBeni Lev memcpy(__get_dynamic_array(probe_resp), 57314e8a3c4SBeni Lev info->probe_resp, info->probe_resp_len); 57414e8a3c4SBeni Lev } 57514e8a3c4SBeni Lev ), 576ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 57714e8a3c4SBeni Lev ); 57814e8a3c4SBeni Lev 57914e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_evt, 58014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 58114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev), 58214e8a3c4SBeni Lev TP_STRUCT__entry( 58314e8a3c4SBeni Lev WIPHY_ENTRY 58414e8a3c4SBeni Lev NETDEV_ENTRY 58514e8a3c4SBeni Lev ), 58614e8a3c4SBeni Lev TP_fast_assign( 58714e8a3c4SBeni Lev WIPHY_ASSIGN; 58814e8a3c4SBeni Lev NETDEV_ASSIGN; 58914e8a3c4SBeni Lev ), 590ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 59114e8a3c4SBeni Lev ); 59214e8a3c4SBeni Lev 59314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap, 59414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 59514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 59614e8a3c4SBeni Lev ); 59714e8a3c4SBeni Lev 59814e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data, 59914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 60014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 60114e8a3c4SBeni Lev ); 60214e8a3c4SBeni Lev 60314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config, 60414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 60514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 60614e8a3c4SBeni Lev ); 60714e8a3c4SBeni Lev 60814e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh, 60914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 61014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 61114e8a3c4SBeni Lev ); 61214e8a3c4SBeni Lev 61314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss, 61414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 61514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 61614e8a3c4SBeni Lev ); 61714e8a3c4SBeni Lev 6186e0bd6c3SRostislav Lisovy DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ocb, 6196e0bd6c3SRostislav Lisovy TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 6206e0bd6c3SRostislav Lisovy TP_ARGS(wiphy, netdev) 6216e0bd6c3SRostislav Lisovy ); 6226e0bd6c3SRostislav Lisovy 62314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa, 62414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 62514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 62614e8a3c4SBeni Lev ); 62714e8a3c4SBeni Lev 62814e8a3c4SBeni Lev DECLARE_EVENT_CLASS(station_add_change, 62914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 63014e8a3c4SBeni Lev struct station_parameters *params), 63114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params), 63214e8a3c4SBeni Lev TP_STRUCT__entry( 63314e8a3c4SBeni Lev WIPHY_ENTRY 63414e8a3c4SBeni Lev NETDEV_ENTRY 63514e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 63614e8a3c4SBeni Lev __field(u32, sta_flags_mask) 63714e8a3c4SBeni Lev __field(u32, sta_flags_set) 63814e8a3c4SBeni Lev __field(u32, sta_modify_mask) 63914e8a3c4SBeni Lev __field(int, listen_interval) 6406e045905SJohannes Berg __field(u16, capability) 64114e8a3c4SBeni Lev __field(u16, aid) 64214e8a3c4SBeni Lev __field(u8, plink_action) 64314e8a3c4SBeni Lev __field(u8, plink_state) 64414e8a3c4SBeni Lev __field(u8, uapsd_queues) 6456e045905SJohannes Berg __field(u8, max_sp) 6466e045905SJohannes Berg __field(u8, opmode_notif) 6476e045905SJohannes Berg __field(bool, opmode_notif_used) 64814e8a3c4SBeni Lev __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap)) 6496e045905SJohannes Berg __array(u8, vht_capa, (int)sizeof(struct ieee80211_vht_cap)) 6505d8325ecSJohannes Berg __array(char, vlan, IFNAMSIZ) 6516e045905SJohannes Berg __dynamic_array(u8, supported_rates, 6526e045905SJohannes Berg params->supported_rates_len) 6536e045905SJohannes Berg __dynamic_array(u8, ext_capab, params->ext_capab_len) 6546e045905SJohannes Berg __dynamic_array(u8, supported_channels, 6556e045905SJohannes Berg params->supported_channels_len) 6566e045905SJohannes Berg __dynamic_array(u8, supported_oper_classes, 6576e045905SJohannes Berg params->supported_oper_classes_len) 65814e8a3c4SBeni Lev ), 65914e8a3c4SBeni Lev TP_fast_assign( 66014e8a3c4SBeni Lev WIPHY_ASSIGN; 66114e8a3c4SBeni Lev NETDEV_ASSIGN; 66214e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 66314e8a3c4SBeni Lev __entry->sta_flags_mask = params->sta_flags_mask; 66414e8a3c4SBeni Lev __entry->sta_flags_set = params->sta_flags_set; 66514e8a3c4SBeni Lev __entry->sta_modify_mask = params->sta_modify_mask; 66614e8a3c4SBeni Lev __entry->listen_interval = params->listen_interval; 66714e8a3c4SBeni Lev __entry->aid = params->aid; 66814e8a3c4SBeni Lev __entry->plink_action = params->plink_action; 66914e8a3c4SBeni Lev __entry->plink_state = params->plink_state; 67014e8a3c4SBeni Lev __entry->uapsd_queues = params->uapsd_queues; 67114e8a3c4SBeni Lev memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap)); 67214e8a3c4SBeni Lev if (params->ht_capa) 67314e8a3c4SBeni Lev memcpy(__entry->ht_capa, params->ht_capa, 67414e8a3c4SBeni Lev sizeof(struct ieee80211_ht_cap)); 6756e045905SJohannes Berg memset(__entry->vht_capa, 0, sizeof(struct ieee80211_vht_cap)); 6766e045905SJohannes Berg if (params->vht_capa) 6776e045905SJohannes Berg memcpy(__entry->vht_capa, params->vht_capa, 6786e045905SJohannes Berg sizeof(struct ieee80211_vht_cap)); 6795d8325ecSJohannes Berg memset(__entry->vlan, 0, sizeof(__entry->vlan)); 6805d8325ecSJohannes Berg if (params->vlan) 6815d8325ecSJohannes Berg memcpy(__entry->vlan, params->vlan->name, IFNAMSIZ); 6826e045905SJohannes Berg if (params->supported_rates && params->supported_rates_len) 6836e045905SJohannes Berg memcpy(__get_dynamic_array(supported_rates), 6846e045905SJohannes Berg params->supported_rates, 6856e045905SJohannes Berg params->supported_rates_len); 6866e045905SJohannes Berg if (params->ext_capab && params->ext_capab_len) 6876e045905SJohannes Berg memcpy(__get_dynamic_array(ext_capab), 6886e045905SJohannes Berg params->ext_capab, 6896e045905SJohannes Berg params->ext_capab_len); 6906e045905SJohannes Berg if (params->supported_channels && 6916e045905SJohannes Berg params->supported_channels_len) 6926e045905SJohannes Berg memcpy(__get_dynamic_array(supported_channels), 6936e045905SJohannes Berg params->supported_channels, 6946e045905SJohannes Berg params->supported_channels_len); 6956e045905SJohannes Berg if (params->supported_oper_classes && 6966e045905SJohannes Berg params->supported_oper_classes_len) 6976e045905SJohannes Berg memcpy(__get_dynamic_array(supported_oper_classes), 6986e045905SJohannes Berg params->supported_oper_classes, 6996e045905SJohannes Berg params->supported_oper_classes_len); 7006e045905SJohannes Berg __entry->max_sp = params->max_sp; 7016e045905SJohannes Berg __entry->capability = params->capability; 7026e045905SJohannes Berg __entry->opmode_notif = params->opmode_notif; 7036e045905SJohannes Berg __entry->opmode_notif_used = params->opmode_notif_used; 70414e8a3c4SBeni Lev ), 705ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT 70614e8a3c4SBeni Lev ", station flags mask: %u, station flags set: %u, " 70714e8a3c4SBeni Lev "station modify mask: %u, listen interval: %d, aid: %u, " 7085d8325ecSJohannes Berg "plink action: %u, plink state: %u, uapsd queues: %u, vlan:%s", 70914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 71014e8a3c4SBeni Lev __entry->sta_flags_mask, __entry->sta_flags_set, 71114e8a3c4SBeni Lev __entry->sta_modify_mask, __entry->listen_interval, 71214e8a3c4SBeni Lev __entry->aid, __entry->plink_action, __entry->plink_state, 7135d8325ecSJohannes Berg __entry->uapsd_queues, __entry->vlan) 71414e8a3c4SBeni Lev ); 71514e8a3c4SBeni Lev 71614e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_add_station, 71714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 71814e8a3c4SBeni Lev struct station_parameters *params), 71914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 72014e8a3c4SBeni Lev ); 72114e8a3c4SBeni Lev 72214e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_change_station, 72314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 72414e8a3c4SBeni Lev struct station_parameters *params), 72514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 72614e8a3c4SBeni Lev ); 72714e8a3c4SBeni Lev 72814e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt, 72914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 73014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac), 73114e8a3c4SBeni Lev TP_STRUCT__entry( 73214e8a3c4SBeni Lev WIPHY_ENTRY 73314e8a3c4SBeni Lev NETDEV_ENTRY 73414e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 73514e8a3c4SBeni Lev ), 73614e8a3c4SBeni Lev TP_fast_assign( 73714e8a3c4SBeni Lev WIPHY_ASSIGN; 73814e8a3c4SBeni Lev NETDEV_ASSIGN; 73914e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 74014e8a3c4SBeni Lev ), 741ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 74214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) 74314e8a3c4SBeni Lev ); 74414e8a3c4SBeni Lev 74589c771e5SJouni Malinen DECLARE_EVENT_CLASS(station_del, 74689c771e5SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 74789c771e5SJouni Malinen struct station_del_parameters *params), 74889c771e5SJouni Malinen TP_ARGS(wiphy, netdev, params), 74989c771e5SJouni Malinen TP_STRUCT__entry( 75089c771e5SJouni Malinen WIPHY_ENTRY 75189c771e5SJouni Malinen NETDEV_ENTRY 75289c771e5SJouni Malinen MAC_ENTRY(sta_mac) 75398856866SJouni Malinen __field(u8, subtype) 75498856866SJouni Malinen __field(u16, reason_code) 75589c771e5SJouni Malinen ), 75689c771e5SJouni Malinen TP_fast_assign( 75789c771e5SJouni Malinen WIPHY_ASSIGN; 75889c771e5SJouni Malinen NETDEV_ASSIGN; 75989c771e5SJouni Malinen MAC_ASSIGN(sta_mac, params->mac); 76098856866SJouni Malinen __entry->subtype = params->subtype; 76198856866SJouni Malinen __entry->reason_code = params->reason_code; 76289c771e5SJouni Malinen ), 76398856866SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT 76498856866SJouni Malinen ", subtype: %u, reason_code: %u", 76598856866SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 76698856866SJouni Malinen __entry->subtype, __entry->reason_code) 76789c771e5SJouni Malinen ); 76889c771e5SJouni Malinen 76989c771e5SJouni Malinen DEFINE_EVENT(station_del, rdev_del_station, 77089c771e5SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 77189c771e5SJouni Malinen struct station_del_parameters *params), 77289c771e5SJouni Malinen TP_ARGS(wiphy, netdev, params) 77314e8a3c4SBeni Lev ); 77414e8a3c4SBeni Lev 77514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station, 77614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 77714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 77814e8a3c4SBeni Lev ); 77914e8a3c4SBeni Lev 78014e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath, 78114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 78214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 78314e8a3c4SBeni Lev ); 78414e8a3c4SBeni Lev 78514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer, 78614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 78714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 78814e8a3c4SBeni Lev ); 78914e8a3c4SBeni Lev 79014e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_station, 791aaaa10e0SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx, 79214e8a3c4SBeni Lev u8 *mac), 793aaaa10e0SJohannes Berg TP_ARGS(wiphy, netdev, _idx, mac), 79414e8a3c4SBeni Lev TP_STRUCT__entry( 79514e8a3c4SBeni Lev WIPHY_ENTRY 79614e8a3c4SBeni Lev NETDEV_ENTRY 79714e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 79814e8a3c4SBeni Lev __field(int, idx) 79914e8a3c4SBeni Lev ), 80014e8a3c4SBeni Lev TP_fast_assign( 80114e8a3c4SBeni Lev WIPHY_ASSIGN; 80214e8a3c4SBeni Lev NETDEV_ASSIGN; 80314e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 804aaaa10e0SJohannes Berg __entry->idx = _idx; 80514e8a3c4SBeni Lev ), 806ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d", 80714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 80814e8a3c4SBeni Lev __entry->idx) 80914e8a3c4SBeni Lev ); 81014e8a3c4SBeni Lev 81114e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_station_info, 81214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo), 81314e8a3c4SBeni Lev TP_ARGS(wiphy, ret, sinfo), 81414e8a3c4SBeni Lev TP_STRUCT__entry( 81514e8a3c4SBeni Lev WIPHY_ENTRY 81614e8a3c4SBeni Lev __field(int, ret) 81714e8a3c4SBeni Lev SINFO_ENTRY 81814e8a3c4SBeni Lev ), 81914e8a3c4SBeni Lev TP_fast_assign( 82014e8a3c4SBeni Lev WIPHY_ASSIGN; 82114e8a3c4SBeni Lev __entry->ret = ret; 82214e8a3c4SBeni Lev SINFO_ASSIGN; 82314e8a3c4SBeni Lev ), 82414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d" , 82514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 82614e8a3c4SBeni Lev ); 82714e8a3c4SBeni Lev 82814e8a3c4SBeni Lev DECLARE_EVENT_CLASS(mpath_evt, 82914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 83014e8a3c4SBeni Lev u8 *next_hop), 83114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop), 83214e8a3c4SBeni Lev TP_STRUCT__entry( 83314e8a3c4SBeni Lev WIPHY_ENTRY 83414e8a3c4SBeni Lev NETDEV_ENTRY 83514e8a3c4SBeni Lev MAC_ENTRY(dst) 83614e8a3c4SBeni Lev MAC_ENTRY(next_hop) 83714e8a3c4SBeni Lev ), 83814e8a3c4SBeni Lev TP_fast_assign( 83914e8a3c4SBeni Lev WIPHY_ASSIGN; 84014e8a3c4SBeni Lev NETDEV_ASSIGN; 84114e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 84214e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 84314e8a3c4SBeni Lev ), 844ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT, 84514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst), 84614e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 84714e8a3c4SBeni Lev ); 84814e8a3c4SBeni Lev 84914e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_add_mpath, 85014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 85114e8a3c4SBeni Lev u8 *next_hop), 85214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 85314e8a3c4SBeni Lev ); 85414e8a3c4SBeni Lev 85514e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_change_mpath, 85614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 85714e8a3c4SBeni Lev u8 *next_hop), 85814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 85914e8a3c4SBeni Lev ); 86014e8a3c4SBeni Lev 86114e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_get_mpath, 86214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 86314e8a3c4SBeni Lev u8 *next_hop), 86414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 86514e8a3c4SBeni Lev ); 86614e8a3c4SBeni Lev 86714e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_mpath, 868aaaa10e0SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx, 86914e8a3c4SBeni Lev u8 *dst, u8 *next_hop), 870aaaa10e0SJohannes Berg TP_ARGS(wiphy, netdev, _idx, dst, next_hop), 87114e8a3c4SBeni Lev TP_STRUCT__entry( 87214e8a3c4SBeni Lev WIPHY_ENTRY 87314e8a3c4SBeni Lev NETDEV_ENTRY 87414e8a3c4SBeni Lev MAC_ENTRY(dst) 87514e8a3c4SBeni Lev MAC_ENTRY(next_hop) 87614e8a3c4SBeni Lev __field(int, idx) 87714e8a3c4SBeni Lev ), 87814e8a3c4SBeni Lev TP_fast_assign( 87914e8a3c4SBeni Lev WIPHY_ASSIGN; 88014e8a3c4SBeni Lev NETDEV_ASSIGN; 88114e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 88214e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 883aaaa10e0SJohannes Berg __entry->idx = _idx; 88414e8a3c4SBeni Lev ), 885ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " 88614e8a3c4SBeni Lev MAC_PR_FMT ", next hop: " MAC_PR_FMT, 88714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), 88814e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 88914e8a3c4SBeni Lev ); 89014e8a3c4SBeni Lev 89166be7d2bSHenning Rogge TRACE_EVENT(rdev_get_mpp, 89266be7d2bSHenning Rogge TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 89366be7d2bSHenning Rogge u8 *dst, u8 *mpp), 89466be7d2bSHenning Rogge TP_ARGS(wiphy, netdev, dst, mpp), 89566be7d2bSHenning Rogge TP_STRUCT__entry( 89666be7d2bSHenning Rogge WIPHY_ENTRY 89766be7d2bSHenning Rogge NETDEV_ENTRY 89866be7d2bSHenning Rogge MAC_ENTRY(dst) 89966be7d2bSHenning Rogge MAC_ENTRY(mpp) 90066be7d2bSHenning Rogge ), 90166be7d2bSHenning Rogge TP_fast_assign( 90266be7d2bSHenning Rogge WIPHY_ASSIGN; 90366be7d2bSHenning Rogge NETDEV_ASSIGN; 90466be7d2bSHenning Rogge MAC_ASSIGN(dst, dst); 90566be7d2bSHenning Rogge MAC_ASSIGN(mpp, mpp); 90666be7d2bSHenning Rogge ), 90766be7d2bSHenning Rogge TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT 90866be7d2bSHenning Rogge ", mpp: " MAC_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG, 90966be7d2bSHenning Rogge MAC_PR_ARG(dst), MAC_PR_ARG(mpp)) 91066be7d2bSHenning Rogge ); 91166be7d2bSHenning Rogge 91266be7d2bSHenning Rogge TRACE_EVENT(rdev_dump_mpp, 913aaaa10e0SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx, 91466be7d2bSHenning Rogge u8 *dst, u8 *mpp), 915aaaa10e0SJohannes Berg TP_ARGS(wiphy, netdev, _idx, mpp, dst), 91666be7d2bSHenning Rogge TP_STRUCT__entry( 91766be7d2bSHenning Rogge WIPHY_ENTRY 91866be7d2bSHenning Rogge NETDEV_ENTRY 91966be7d2bSHenning Rogge MAC_ENTRY(dst) 92066be7d2bSHenning Rogge MAC_ENTRY(mpp) 92166be7d2bSHenning Rogge __field(int, idx) 92266be7d2bSHenning Rogge ), 92366be7d2bSHenning Rogge TP_fast_assign( 92466be7d2bSHenning Rogge WIPHY_ASSIGN; 92566be7d2bSHenning Rogge NETDEV_ASSIGN; 92666be7d2bSHenning Rogge MAC_ASSIGN(dst, dst); 92766be7d2bSHenning Rogge MAC_ASSIGN(mpp, mpp); 928aaaa10e0SJohannes Berg __entry->idx = _idx; 92966be7d2bSHenning Rogge ), 93066be7d2bSHenning Rogge TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " 93166be7d2bSHenning Rogge MAC_PR_FMT ", mpp: " MAC_PR_FMT, 93266be7d2bSHenning Rogge WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), 93366be7d2bSHenning Rogge MAC_PR_ARG(mpp)) 93466be7d2bSHenning Rogge ); 93566be7d2bSHenning Rogge 93614e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mpath_info, 93714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo), 93814e8a3c4SBeni Lev TP_ARGS(wiphy, ret, pinfo), 93914e8a3c4SBeni Lev TP_STRUCT__entry( 94014e8a3c4SBeni Lev WIPHY_ENTRY 94114e8a3c4SBeni Lev __field(int, ret) 94214e8a3c4SBeni Lev __field(int, generation) 94314e8a3c4SBeni Lev __field(u32, filled) 94414e8a3c4SBeni Lev __field(u32, frame_qlen) 94514e8a3c4SBeni Lev __field(u32, sn) 94614e8a3c4SBeni Lev __field(u32, metric) 94714e8a3c4SBeni Lev __field(u32, exptime) 94814e8a3c4SBeni Lev __field(u32, discovery_timeout) 94914e8a3c4SBeni Lev __field(u8, discovery_retries) 95014e8a3c4SBeni Lev __field(u8, flags) 95114e8a3c4SBeni Lev ), 95214e8a3c4SBeni Lev TP_fast_assign( 95314e8a3c4SBeni Lev WIPHY_ASSIGN; 95414e8a3c4SBeni Lev __entry->ret = ret; 95514e8a3c4SBeni Lev __entry->generation = pinfo->generation; 95614e8a3c4SBeni Lev __entry->filled = pinfo->filled; 95714e8a3c4SBeni Lev __entry->frame_qlen = pinfo->frame_qlen; 95814e8a3c4SBeni Lev __entry->sn = pinfo->sn; 95914e8a3c4SBeni Lev __entry->metric = pinfo->metric; 96014e8a3c4SBeni Lev __entry->exptime = pinfo->exptime; 96114e8a3c4SBeni Lev __entry->discovery_timeout = pinfo->discovery_timeout; 96214e8a3c4SBeni Lev __entry->discovery_retries = pinfo->discovery_retries; 96314e8a3c4SBeni Lev __entry->flags = pinfo->flags; 96414e8a3c4SBeni Lev ), 96514e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, " 96614e8a3c4SBeni Lev "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u," 96714e8a3c4SBeni Lev " discovery timeout: %u, discovery retries: %u, flags: %u", 96814e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->generation, 96914e8a3c4SBeni Lev __entry->filled, __entry->frame_qlen, __entry->sn, 97014e8a3c4SBeni Lev __entry->metric, __entry->exptime, __entry->discovery_timeout, 97114e8a3c4SBeni Lev __entry->discovery_retries, __entry->flags) 97214e8a3c4SBeni Lev ); 97314e8a3c4SBeni Lev 97414e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mesh_config, 97514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf), 97614e8a3c4SBeni Lev TP_ARGS(wiphy, ret, conf), 97714e8a3c4SBeni Lev TP_STRUCT__entry( 97814e8a3c4SBeni Lev WIPHY_ENTRY 97914e8a3c4SBeni Lev MESH_CFG_ENTRY 98014e8a3c4SBeni Lev __field(int, ret) 98114e8a3c4SBeni Lev ), 98214e8a3c4SBeni Lev TP_fast_assign( 98314e8a3c4SBeni Lev WIPHY_ASSIGN; 98414e8a3c4SBeni Lev MESH_CFG_ASSIGN; 98514e8a3c4SBeni Lev __entry->ret = ret; 98614e8a3c4SBeni Lev ), 98714e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d", 98814e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 98914e8a3c4SBeni Lev ); 99014e8a3c4SBeni Lev 99114e8a3c4SBeni Lev TRACE_EVENT(rdev_update_mesh_config, 99214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask, 99314e8a3c4SBeni Lev const struct mesh_config *conf), 99414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mask, conf), 99514e8a3c4SBeni Lev TP_STRUCT__entry( 99614e8a3c4SBeni Lev WIPHY_ENTRY 99714e8a3c4SBeni Lev NETDEV_ENTRY 99814e8a3c4SBeni Lev MESH_CFG_ENTRY 99914e8a3c4SBeni Lev __field(u32, mask) 100014e8a3c4SBeni Lev ), 100114e8a3c4SBeni Lev TP_fast_assign( 100214e8a3c4SBeni Lev WIPHY_ASSIGN; 100314e8a3c4SBeni Lev NETDEV_ASSIGN; 100414e8a3c4SBeni Lev MESH_CFG_ASSIGN; 100514e8a3c4SBeni Lev __entry->mask = mask; 100614e8a3c4SBeni Lev ), 1007ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u", 100814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) 100914e8a3c4SBeni Lev ); 101014e8a3c4SBeni Lev 101114e8a3c4SBeni Lev TRACE_EVENT(rdev_join_mesh, 101214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 101314e8a3c4SBeni Lev const struct mesh_config *conf, 101414e8a3c4SBeni Lev const struct mesh_setup *setup), 101514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, conf, setup), 101614e8a3c4SBeni Lev TP_STRUCT__entry( 101714e8a3c4SBeni Lev WIPHY_ENTRY 101814e8a3c4SBeni Lev NETDEV_ENTRY 101914e8a3c4SBeni Lev MESH_CFG_ENTRY 102014e8a3c4SBeni Lev ), 102114e8a3c4SBeni Lev TP_fast_assign( 102214e8a3c4SBeni Lev WIPHY_ASSIGN; 102314e8a3c4SBeni Lev NETDEV_ASSIGN; 102414e8a3c4SBeni Lev MESH_CFG_ASSIGN; 102514e8a3c4SBeni Lev ), 1026ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 102714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG) 102814e8a3c4SBeni Lev ); 102914e8a3c4SBeni Lev 103014e8a3c4SBeni Lev TRACE_EVENT(rdev_change_bss, 103114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 103214e8a3c4SBeni Lev struct bss_parameters *params), 103314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 103414e8a3c4SBeni Lev TP_STRUCT__entry( 103514e8a3c4SBeni Lev WIPHY_ENTRY 103614e8a3c4SBeni Lev NETDEV_ENTRY 103714e8a3c4SBeni Lev __field(int, use_cts_prot) 103814e8a3c4SBeni Lev __field(int, use_short_preamble) 103914e8a3c4SBeni Lev __field(int, use_short_slot_time) 104014e8a3c4SBeni Lev __field(int, ap_isolate) 104114e8a3c4SBeni Lev __field(int, ht_opmode) 104214e8a3c4SBeni Lev ), 104314e8a3c4SBeni Lev TP_fast_assign( 104414e8a3c4SBeni Lev WIPHY_ASSIGN; 104514e8a3c4SBeni Lev NETDEV_ASSIGN; 104614e8a3c4SBeni Lev __entry->use_cts_prot = params->use_cts_prot; 104714e8a3c4SBeni Lev __entry->use_short_preamble = params->use_short_preamble; 104814e8a3c4SBeni Lev __entry->use_short_slot_time = params->use_short_slot_time; 104914e8a3c4SBeni Lev __entry->ap_isolate = params->ap_isolate; 105014e8a3c4SBeni Lev __entry->ht_opmode = params->ht_opmode; 105114e8a3c4SBeni Lev ), 1052ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, " 105314e8a3c4SBeni Lev "use short preamble: %d, use short slot time: %d, " 105414e8a3c4SBeni Lev "ap isolate: %d, ht opmode: %d", 105514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, 105614e8a3c4SBeni Lev __entry->use_short_preamble, __entry->use_short_slot_time, 105714e8a3c4SBeni Lev __entry->ap_isolate, __entry->ht_opmode) 105814e8a3c4SBeni Lev ); 105914e8a3c4SBeni Lev 106014e8a3c4SBeni Lev TRACE_EVENT(rdev_set_txq_params, 106114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 106214e8a3c4SBeni Lev struct ieee80211_txq_params *params), 106314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 106414e8a3c4SBeni Lev TP_STRUCT__entry( 106514e8a3c4SBeni Lev WIPHY_ENTRY 106614e8a3c4SBeni Lev NETDEV_ENTRY 106714e8a3c4SBeni Lev __field(enum nl80211_ac, ac) 106814e8a3c4SBeni Lev __field(u16, txop) 106914e8a3c4SBeni Lev __field(u16, cwmin) 107014e8a3c4SBeni Lev __field(u16, cwmax) 107114e8a3c4SBeni Lev __field(u8, aifs) 107214e8a3c4SBeni Lev ), 107314e8a3c4SBeni Lev TP_fast_assign( 107414e8a3c4SBeni Lev WIPHY_ASSIGN; 107514e8a3c4SBeni Lev NETDEV_ASSIGN; 107614e8a3c4SBeni Lev __entry->ac = params->ac; 107714e8a3c4SBeni Lev __entry->txop = params->txop; 107814e8a3c4SBeni Lev __entry->cwmin = params->cwmin; 107914e8a3c4SBeni Lev __entry->cwmax = params->cwmax; 108014e8a3c4SBeni Lev __entry->aifs = params->aifs; 108114e8a3c4SBeni Lev ), 1082ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", 108314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, 108414e8a3c4SBeni Lev __entry->cwmin, __entry->cwmax, __entry->aifs) 108514e8a3c4SBeni Lev ); 108614e8a3c4SBeni Lev 108714e8a3c4SBeni Lev TRACE_EVENT(rdev_libertas_set_mesh_channel, 108814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 108914e8a3c4SBeni Lev struct ieee80211_channel *chan), 109014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, chan), 109114e8a3c4SBeni Lev TP_STRUCT__entry( 109214e8a3c4SBeni Lev WIPHY_ENTRY 109314e8a3c4SBeni Lev NETDEV_ENTRY 109414e8a3c4SBeni Lev CHAN_ENTRY 109514e8a3c4SBeni Lev ), 109614e8a3c4SBeni Lev TP_fast_assign( 109714e8a3c4SBeni Lev WIPHY_ASSIGN; 109814e8a3c4SBeni Lev NETDEV_ASSIGN; 109914e8a3c4SBeni Lev CHAN_ASSIGN(chan); 110014e8a3c4SBeni Lev ), 1101ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG, 110214e8a3c4SBeni Lev NETDEV_PR_ARG, CHAN_PR_ARG) 110314e8a3c4SBeni Lev ); 110414e8a3c4SBeni Lev 110514e8a3c4SBeni Lev TRACE_EVENT(rdev_set_monitor_channel, 1106683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, 1107683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 1108683b6d3bSJohannes Berg TP_ARGS(wiphy, chandef), 110914e8a3c4SBeni Lev TP_STRUCT__entry( 111014e8a3c4SBeni Lev WIPHY_ENTRY 1111683b6d3bSJohannes Berg CHAN_DEF_ENTRY 111214e8a3c4SBeni Lev ), 111314e8a3c4SBeni Lev TP_fast_assign( 111414e8a3c4SBeni Lev WIPHY_ASSIGN; 1115683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 111614e8a3c4SBeni Lev ), 1117ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 1118683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 111914e8a3c4SBeni Lev ); 112014e8a3c4SBeni Lev 112114e8a3c4SBeni Lev TRACE_EVENT(rdev_auth, 112214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 112314e8a3c4SBeni Lev struct cfg80211_auth_request *req), 112414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 112514e8a3c4SBeni Lev TP_STRUCT__entry( 112614e8a3c4SBeni Lev WIPHY_ENTRY 112714e8a3c4SBeni Lev NETDEV_ENTRY 112814e8a3c4SBeni Lev MAC_ENTRY(bssid) 112914e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 113014e8a3c4SBeni Lev ), 113114e8a3c4SBeni Lev TP_fast_assign( 113214e8a3c4SBeni Lev WIPHY_ASSIGN; 113314e8a3c4SBeni Lev NETDEV_ASSIGN; 113414e8a3c4SBeni Lev if (req->bss) 113514e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 113614e8a3c4SBeni Lev else 1137d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 113814e8a3c4SBeni Lev __entry->auth_type = req->auth_type; 113914e8a3c4SBeni Lev ), 1140ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT, 114114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, 114214e8a3c4SBeni Lev MAC_PR_ARG(bssid)) 114314e8a3c4SBeni Lev ); 114414e8a3c4SBeni Lev 114514e8a3c4SBeni Lev TRACE_EVENT(rdev_assoc, 114614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 114714e8a3c4SBeni Lev struct cfg80211_assoc_request *req), 114814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 114914e8a3c4SBeni Lev TP_STRUCT__entry( 115014e8a3c4SBeni Lev WIPHY_ENTRY 115114e8a3c4SBeni Lev NETDEV_ENTRY 115214e8a3c4SBeni Lev MAC_ENTRY(bssid) 115314e8a3c4SBeni Lev MAC_ENTRY(prev_bssid) 115414e8a3c4SBeni Lev __field(bool, use_mfp) 115514e8a3c4SBeni Lev __field(u32, flags) 115614e8a3c4SBeni Lev ), 115714e8a3c4SBeni Lev TP_fast_assign( 115814e8a3c4SBeni Lev WIPHY_ASSIGN; 115914e8a3c4SBeni Lev NETDEV_ASSIGN; 116014e8a3c4SBeni Lev if (req->bss) 116114e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 116214e8a3c4SBeni Lev else 1163d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 116414e8a3c4SBeni Lev MAC_ASSIGN(prev_bssid, req->prev_bssid); 116514e8a3c4SBeni Lev __entry->use_mfp = req->use_mfp; 116614e8a3c4SBeni Lev __entry->flags = req->flags; 116714e8a3c4SBeni Lev ), 1168ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 116914e8a3c4SBeni Lev ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u", 117014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 117114e8a3c4SBeni Lev MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp), 117214e8a3c4SBeni Lev __entry->flags) 117314e8a3c4SBeni Lev ); 117414e8a3c4SBeni Lev 117514e8a3c4SBeni Lev TRACE_EVENT(rdev_deauth, 117614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 117714e8a3c4SBeni Lev struct cfg80211_deauth_request *req), 117814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 117914e8a3c4SBeni Lev TP_STRUCT__entry( 118014e8a3c4SBeni Lev WIPHY_ENTRY 118114e8a3c4SBeni Lev NETDEV_ENTRY 118214e8a3c4SBeni Lev MAC_ENTRY(bssid) 118314e8a3c4SBeni Lev __field(u16, reason_code) 118414e8a3c4SBeni Lev ), 118514e8a3c4SBeni Lev TP_fast_assign( 118614e8a3c4SBeni Lev WIPHY_ASSIGN; 118714e8a3c4SBeni Lev NETDEV_ASSIGN; 118814e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bssid); 118914e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 119014e8a3c4SBeni Lev ), 1191ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u", 119214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 119314e8a3c4SBeni Lev __entry->reason_code) 119414e8a3c4SBeni Lev ); 119514e8a3c4SBeni Lev 119614e8a3c4SBeni Lev TRACE_EVENT(rdev_disassoc, 119714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 119814e8a3c4SBeni Lev struct cfg80211_disassoc_request *req), 119914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 120014e8a3c4SBeni Lev TP_STRUCT__entry( 120114e8a3c4SBeni Lev WIPHY_ENTRY 120214e8a3c4SBeni Lev NETDEV_ENTRY 120314e8a3c4SBeni Lev MAC_ENTRY(bssid) 120414e8a3c4SBeni Lev __field(u16, reason_code) 120514e8a3c4SBeni Lev __field(bool, local_state_change) 120614e8a3c4SBeni Lev ), 120714e8a3c4SBeni Lev TP_fast_assign( 120814e8a3c4SBeni Lev WIPHY_ASSIGN; 120914e8a3c4SBeni Lev NETDEV_ASSIGN; 121014e8a3c4SBeni Lev if (req->bss) 121114e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 121214e8a3c4SBeni Lev else 1213d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 121414e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 121514e8a3c4SBeni Lev __entry->local_state_change = req->local_state_change; 121614e8a3c4SBeni Lev ), 1217ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 121814e8a3c4SBeni Lev ", reason: %u, local state change: %s", 121914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 122014e8a3c4SBeni Lev __entry->reason_code, 122114e8a3c4SBeni Lev BOOL_TO_STR(__entry->local_state_change)) 122214e8a3c4SBeni Lev ); 122314e8a3c4SBeni Lev 122414e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx_cancel_wait, 122514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 122614e8a3c4SBeni Lev struct wireless_dev *wdev, u64 cookie), 122714e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 122814e8a3c4SBeni Lev TP_STRUCT__entry( 122914e8a3c4SBeni Lev WIPHY_ENTRY 123014e8a3c4SBeni Lev WDEV_ENTRY 123114e8a3c4SBeni Lev __field(u64, cookie) 123214e8a3c4SBeni Lev ), 123314e8a3c4SBeni Lev TP_fast_assign( 123414e8a3c4SBeni Lev WIPHY_ASSIGN; 123514e8a3c4SBeni Lev WDEV_ASSIGN; 123614e8a3c4SBeni Lev __entry->cookie = cookie; 123714e8a3c4SBeni Lev ), 1238ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ", 123914e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 124014e8a3c4SBeni Lev ); 124114e8a3c4SBeni Lev 124214e8a3c4SBeni Lev TRACE_EVENT(rdev_set_power_mgmt, 124314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 124414e8a3c4SBeni Lev bool enabled, int timeout), 124514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, enabled, timeout), 124614e8a3c4SBeni Lev TP_STRUCT__entry( 124714e8a3c4SBeni Lev WIPHY_ENTRY 124814e8a3c4SBeni Lev NETDEV_ENTRY 124914e8a3c4SBeni Lev __field(bool, enabled) 125014e8a3c4SBeni Lev __field(int, timeout) 125114e8a3c4SBeni Lev ), 125214e8a3c4SBeni Lev TP_fast_assign( 125314e8a3c4SBeni Lev WIPHY_ASSIGN; 125414e8a3c4SBeni Lev NETDEV_ASSIGN; 125514e8a3c4SBeni Lev __entry->enabled = enabled; 125614e8a3c4SBeni Lev __entry->timeout = timeout; 125714e8a3c4SBeni Lev ), 1258ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ", 125914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 126014e8a3c4SBeni Lev __entry->enabled ? "" : "not ", __entry->timeout) 126114e8a3c4SBeni Lev ); 126214e8a3c4SBeni Lev 126314e8a3c4SBeni Lev TRACE_EVENT(rdev_connect, 126414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 126514e8a3c4SBeni Lev struct cfg80211_connect_params *sme), 126614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, sme), 126714e8a3c4SBeni Lev TP_STRUCT__entry( 126814e8a3c4SBeni Lev WIPHY_ENTRY 126914e8a3c4SBeni Lev NETDEV_ENTRY 127014e8a3c4SBeni Lev MAC_ENTRY(bssid) 127114e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 127214e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 127314e8a3c4SBeni Lev __field(bool, privacy) 127414e8a3c4SBeni Lev __field(u32, wpa_versions) 127514e8a3c4SBeni Lev __field(u32, flags) 1276ba6fbacfSJouni Malinen MAC_ENTRY(prev_bssid) 127714e8a3c4SBeni Lev ), 127814e8a3c4SBeni Lev TP_fast_assign( 127914e8a3c4SBeni Lev WIPHY_ASSIGN; 128014e8a3c4SBeni Lev NETDEV_ASSIGN; 128114e8a3c4SBeni Lev MAC_ASSIGN(bssid, sme->bssid); 128214e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 128314e8a3c4SBeni Lev memcpy(__entry->ssid, sme->ssid, sme->ssid_len); 128414e8a3c4SBeni Lev __entry->auth_type = sme->auth_type; 128514e8a3c4SBeni Lev __entry->privacy = sme->privacy; 128614e8a3c4SBeni Lev __entry->wpa_versions = sme->crypto.wpa_versions; 128714e8a3c4SBeni Lev __entry->flags = sme->flags; 1288ba6fbacfSJouni Malinen MAC_ASSIGN(prev_bssid, sme->prev_bssid); 128914e8a3c4SBeni Lev ), 1290ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 129114e8a3c4SBeni Lev ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " 1292ba6fbacfSJouni Malinen "flags: %u, previous bssid: " MAC_PR_FMT, 129314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid, 129414e8a3c4SBeni Lev __entry->auth_type, BOOL_TO_STR(__entry->privacy), 1295ba6fbacfSJouni Malinen __entry->wpa_versions, __entry->flags, MAC_PR_ARG(prev_bssid)) 129614e8a3c4SBeni Lev ); 129714e8a3c4SBeni Lev 1298088e8df8Svamsi krishna TRACE_EVENT(rdev_update_connect_params, 1299088e8df8Svamsi krishna TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1300088e8df8Svamsi krishna struct cfg80211_connect_params *sme, u32 changed), 1301088e8df8Svamsi krishna TP_ARGS(wiphy, netdev, sme, changed), 1302088e8df8Svamsi krishna TP_STRUCT__entry( 1303088e8df8Svamsi krishna WIPHY_ENTRY 1304088e8df8Svamsi krishna NETDEV_ENTRY 1305088e8df8Svamsi krishna __field(u32, changed) 1306088e8df8Svamsi krishna ), 1307088e8df8Svamsi krishna TP_fast_assign( 1308088e8df8Svamsi krishna WIPHY_ASSIGN; 1309088e8df8Svamsi krishna NETDEV_ASSIGN; 1310088e8df8Svamsi krishna __entry->changed = changed; 1311088e8df8Svamsi krishna ), 1312088e8df8Svamsi krishna TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", parameters changed: %u", 1313088e8df8Svamsi krishna WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->changed) 1314088e8df8Svamsi krishna ); 1315088e8df8Svamsi krishna 131614e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_rssi_config, 131714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 131814e8a3c4SBeni Lev struct net_device *netdev, s32 rssi_thold, 131914e8a3c4SBeni Lev u32 rssi_hyst), 132014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst), 132114e8a3c4SBeni Lev TP_STRUCT__entry( 132214e8a3c4SBeni Lev WIPHY_ENTRY 132314e8a3c4SBeni Lev NETDEV_ENTRY 132414e8a3c4SBeni Lev __field(s32, rssi_thold) 132514e8a3c4SBeni Lev __field(u32, rssi_hyst) 132614e8a3c4SBeni Lev ), 132714e8a3c4SBeni Lev TP_fast_assign( 132814e8a3c4SBeni Lev WIPHY_ASSIGN; 132914e8a3c4SBeni Lev NETDEV_ASSIGN; 133014e8a3c4SBeni Lev __entry->rssi_thold = rssi_thold; 133114e8a3c4SBeni Lev __entry->rssi_hyst = rssi_hyst; 133214e8a3c4SBeni Lev ), 1333ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 133414e8a3c4SBeni Lev ", rssi_thold: %d, rssi_hyst: %u ", 133514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 133614e8a3c4SBeni Lev __entry->rssi_thold, __entry->rssi_hyst) 133714e8a3c4SBeni Lev ); 133814e8a3c4SBeni Lev 13394a4b8169SAndrew Zaborowski TRACE_EVENT(rdev_set_cqm_rssi_range_config, 13404a4b8169SAndrew Zaborowski TP_PROTO(struct wiphy *wiphy, 13414a4b8169SAndrew Zaborowski struct net_device *netdev, s32 low, s32 high), 13424a4b8169SAndrew Zaborowski TP_ARGS(wiphy, netdev, low, high), 13434a4b8169SAndrew Zaborowski TP_STRUCT__entry( 13444a4b8169SAndrew Zaborowski WIPHY_ENTRY 13454a4b8169SAndrew Zaborowski NETDEV_ENTRY 13464a4b8169SAndrew Zaborowski __field(s32, rssi_low) 13474a4b8169SAndrew Zaborowski __field(s32, rssi_high) 13484a4b8169SAndrew Zaborowski ), 13494a4b8169SAndrew Zaborowski TP_fast_assign( 13504a4b8169SAndrew Zaborowski WIPHY_ASSIGN; 13514a4b8169SAndrew Zaborowski NETDEV_ASSIGN; 13524a4b8169SAndrew Zaborowski __entry->rssi_low = low; 13534a4b8169SAndrew Zaborowski __entry->rssi_high = high; 13544a4b8169SAndrew Zaborowski ), 13554a4b8169SAndrew Zaborowski TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 13564a4b8169SAndrew Zaborowski ", range: %d - %d ", 13574a4b8169SAndrew Zaborowski WIPHY_PR_ARG, NETDEV_PR_ARG, 13584a4b8169SAndrew Zaborowski __entry->rssi_low, __entry->rssi_high) 13594a4b8169SAndrew Zaborowski ); 13604a4b8169SAndrew Zaborowski 136114e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_txe_config, 136214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate, 136314e8a3c4SBeni Lev u32 pkts, u32 intvl), 136414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rate, pkts, intvl), 136514e8a3c4SBeni Lev TP_STRUCT__entry( 136614e8a3c4SBeni Lev WIPHY_ENTRY 136714e8a3c4SBeni Lev NETDEV_ENTRY 136814e8a3c4SBeni Lev __field(u32, rate) 136914e8a3c4SBeni Lev __field(u32, pkts) 137014e8a3c4SBeni Lev __field(u32, intvl) 137114e8a3c4SBeni Lev ), 137214e8a3c4SBeni Lev TP_fast_assign( 137314e8a3c4SBeni Lev WIPHY_ASSIGN; 137414e8a3c4SBeni Lev NETDEV_ASSIGN; 137514e8a3c4SBeni Lev __entry->rate = rate; 137614e8a3c4SBeni Lev __entry->pkts = pkts; 137714e8a3c4SBeni Lev __entry->intvl = intvl; 137814e8a3c4SBeni Lev ), 1379ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", 138014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, 138114e8a3c4SBeni Lev __entry->intvl) 138214e8a3c4SBeni Lev ); 138314e8a3c4SBeni Lev 138414e8a3c4SBeni Lev TRACE_EVENT(rdev_disconnect, 138514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 138614e8a3c4SBeni Lev u16 reason_code), 138714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, reason_code), 138814e8a3c4SBeni Lev TP_STRUCT__entry( 138914e8a3c4SBeni Lev WIPHY_ENTRY 139014e8a3c4SBeni Lev NETDEV_ENTRY 139114e8a3c4SBeni Lev __field(u16, reason_code) 139214e8a3c4SBeni Lev ), 139314e8a3c4SBeni Lev TP_fast_assign( 139414e8a3c4SBeni Lev WIPHY_ASSIGN; 139514e8a3c4SBeni Lev NETDEV_ASSIGN; 139614e8a3c4SBeni Lev __entry->reason_code = reason_code; 139714e8a3c4SBeni Lev ), 1398ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, 139914e8a3c4SBeni Lev NETDEV_PR_ARG, __entry->reason_code) 140014e8a3c4SBeni Lev ); 140114e8a3c4SBeni Lev 140214e8a3c4SBeni Lev TRACE_EVENT(rdev_join_ibss, 140314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 140414e8a3c4SBeni Lev struct cfg80211_ibss_params *params), 140514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 140614e8a3c4SBeni Lev TP_STRUCT__entry( 140714e8a3c4SBeni Lev WIPHY_ENTRY 140814e8a3c4SBeni Lev NETDEV_ENTRY 140914e8a3c4SBeni Lev MAC_ENTRY(bssid) 141014e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 141114e8a3c4SBeni Lev ), 141214e8a3c4SBeni Lev TP_fast_assign( 141314e8a3c4SBeni Lev WIPHY_ASSIGN; 141414e8a3c4SBeni Lev NETDEV_ASSIGN; 141514e8a3c4SBeni Lev MAC_ASSIGN(bssid, params->bssid); 141614e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 141714e8a3c4SBeni Lev memcpy(__entry->ssid, params->ssid, params->ssid_len); 141814e8a3c4SBeni Lev ), 1419ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s", 142014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid) 142114e8a3c4SBeni Lev ); 142214e8a3c4SBeni Lev 14236e0bd6c3SRostislav Lisovy TRACE_EVENT(rdev_join_ocb, 14246e0bd6c3SRostislav Lisovy TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 14256e0bd6c3SRostislav Lisovy const struct ocb_setup *setup), 14266e0bd6c3SRostislav Lisovy TP_ARGS(wiphy, netdev, setup), 14276e0bd6c3SRostislav Lisovy TP_STRUCT__entry( 14286e0bd6c3SRostislav Lisovy WIPHY_ENTRY 14296e0bd6c3SRostislav Lisovy NETDEV_ENTRY 14306e0bd6c3SRostislav Lisovy ), 14316e0bd6c3SRostislav Lisovy TP_fast_assign( 14326e0bd6c3SRostislav Lisovy WIPHY_ASSIGN; 14336e0bd6c3SRostislav Lisovy NETDEV_ASSIGN; 14346e0bd6c3SRostislav Lisovy ), 14356e0bd6c3SRostislav Lisovy TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 14366e0bd6c3SRostislav Lisovy WIPHY_PR_ARG, NETDEV_PR_ARG) 14376e0bd6c3SRostislav Lisovy ); 14386e0bd6c3SRostislav Lisovy 143914e8a3c4SBeni Lev TRACE_EVENT(rdev_set_wiphy_params, 144014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 changed), 144114e8a3c4SBeni Lev TP_ARGS(wiphy, changed), 144214e8a3c4SBeni Lev TP_STRUCT__entry( 144314e8a3c4SBeni Lev WIPHY_ENTRY 144414e8a3c4SBeni Lev __field(u32, changed) 144514e8a3c4SBeni Lev ), 144614e8a3c4SBeni Lev TP_fast_assign( 144714e8a3c4SBeni Lev WIPHY_ASSIGN; 144814e8a3c4SBeni Lev __entry->changed = changed; 144914e8a3c4SBeni Lev ), 145014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", changed: %u", 145114e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->changed) 145214e8a3c4SBeni Lev ); 145314e8a3c4SBeni Lev 1454c8442118SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power, 1455c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1456c8442118SJohannes Berg TP_ARGS(wiphy, wdev) 1457c8442118SJohannes Berg ); 1458c8442118SJohannes Berg 145914e8a3c4SBeni Lev TRACE_EVENT(rdev_set_tx_power, 1460c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1461c8442118SJohannes Berg enum nl80211_tx_power_setting type, int mbm), 1462c8442118SJohannes Berg TP_ARGS(wiphy, wdev, type, mbm), 146314e8a3c4SBeni Lev TP_STRUCT__entry( 146414e8a3c4SBeni Lev WIPHY_ENTRY 1465c8442118SJohannes Berg WDEV_ENTRY 146614e8a3c4SBeni Lev __field(enum nl80211_tx_power_setting, type) 146714e8a3c4SBeni Lev __field(int, mbm) 146814e8a3c4SBeni Lev ), 146914e8a3c4SBeni Lev TP_fast_assign( 147014e8a3c4SBeni Lev WIPHY_ASSIGN; 1471c8442118SJohannes Berg WDEV_ASSIGN; 147214e8a3c4SBeni Lev __entry->type = type; 147314e8a3c4SBeni Lev __entry->mbm = mbm; 147414e8a3c4SBeni Lev ), 1475ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type: %u, mbm: %d", 1476c8442118SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm) 147714e8a3c4SBeni Lev ); 147814e8a3c4SBeni Lev 147914e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_int, 148014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill), 148114e8a3c4SBeni Lev TP_ARGS(wiphy, func_ret, func_fill), 148214e8a3c4SBeni Lev TP_STRUCT__entry( 148314e8a3c4SBeni Lev WIPHY_ENTRY 148414e8a3c4SBeni Lev __field(int, func_ret) 148514e8a3c4SBeni Lev __field(int, func_fill) 148614e8a3c4SBeni Lev ), 148714e8a3c4SBeni Lev TP_fast_assign( 148814e8a3c4SBeni Lev WIPHY_ASSIGN; 148914e8a3c4SBeni Lev __entry->func_ret = func_ret; 149014e8a3c4SBeni Lev __entry->func_fill = func_fill; 149114e8a3c4SBeni Lev ), 149214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d", 149314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill) 149414e8a3c4SBeni Lev ); 149514e8a3c4SBeni Lev 149614e8a3c4SBeni Lev #ifdef CONFIG_NL80211_TESTMODE 149714e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_cmd, 1498fc73f11fSDavid Spinadel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1499fc73f11fSDavid Spinadel TP_ARGS(wiphy, wdev), 150014e8a3c4SBeni Lev TP_STRUCT__entry( 150114e8a3c4SBeni Lev WIPHY_ENTRY 1502fc73f11fSDavid Spinadel WDEV_ENTRY 150314e8a3c4SBeni Lev ), 150414e8a3c4SBeni Lev TP_fast_assign( 150514e8a3c4SBeni Lev WIPHY_ASSIGN; 1506fc73f11fSDavid Spinadel WDEV_ASSIGN; 150714e8a3c4SBeni Lev ), 1508fc73f11fSDavid Spinadel TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 150914e8a3c4SBeni Lev ); 151014e8a3c4SBeni Lev 151114e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_dump, 151214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 151314e8a3c4SBeni Lev TP_ARGS(wiphy), 151414e8a3c4SBeni Lev TP_STRUCT__entry( 151514e8a3c4SBeni Lev WIPHY_ENTRY 151614e8a3c4SBeni Lev ), 151714e8a3c4SBeni Lev TP_fast_assign( 151814e8a3c4SBeni Lev WIPHY_ASSIGN; 151914e8a3c4SBeni Lev ), 152014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 152114e8a3c4SBeni Lev ); 152214e8a3c4SBeni Lev #endif /* CONFIG_NL80211_TESTMODE */ 152314e8a3c4SBeni Lev 152414e8a3c4SBeni Lev TRACE_EVENT(rdev_set_bitrate_mask, 152514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 152614e8a3c4SBeni Lev const u8 *peer, const struct cfg80211_bitrate_mask *mask), 152714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, mask), 152814e8a3c4SBeni Lev TP_STRUCT__entry( 152914e8a3c4SBeni Lev WIPHY_ENTRY 153014e8a3c4SBeni Lev NETDEV_ENTRY 153114e8a3c4SBeni Lev MAC_ENTRY(peer) 153214e8a3c4SBeni Lev ), 153314e8a3c4SBeni Lev TP_fast_assign( 153414e8a3c4SBeni Lev WIPHY_ASSIGN; 153514e8a3c4SBeni Lev NETDEV_ASSIGN; 153614e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 153714e8a3c4SBeni Lev ), 1538ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT, 153914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 154014e8a3c4SBeni Lev ); 154114e8a3c4SBeni Lev 154214e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_frame_register, 154314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 154414e8a3c4SBeni Lev u16 frame_type, bool reg), 154514e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, frame_type, reg), 154614e8a3c4SBeni Lev TP_STRUCT__entry( 154714e8a3c4SBeni Lev WIPHY_ENTRY 154814e8a3c4SBeni Lev WDEV_ENTRY 154914e8a3c4SBeni Lev __field(u16, frame_type) 155014e8a3c4SBeni Lev __field(bool, reg) 155114e8a3c4SBeni Lev ), 155214e8a3c4SBeni Lev TP_fast_assign( 155314e8a3c4SBeni Lev WIPHY_ASSIGN; 155414e8a3c4SBeni Lev WDEV_ASSIGN; 155514e8a3c4SBeni Lev __entry->frame_type = frame_type; 155614e8a3c4SBeni Lev __entry->reg = reg; 155714e8a3c4SBeni Lev ), 1558ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", frame_type: 0x%.2x, reg: %s ", 155914e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type, 156014e8a3c4SBeni Lev __entry->reg ? "true" : "false") 156114e8a3c4SBeni Lev ); 156214e8a3c4SBeni Lev 156314e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_tx_rx, 156414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx), 156514e8a3c4SBeni Lev TP_ARGS(wiphy, ret, tx, rx), 156614e8a3c4SBeni Lev TP_STRUCT__entry( 156714e8a3c4SBeni Lev WIPHY_ENTRY 156814e8a3c4SBeni Lev __field(int, ret) 156914e8a3c4SBeni Lev __field(u32, tx) 157014e8a3c4SBeni Lev __field(u32, rx) 157114e8a3c4SBeni Lev ), 157214e8a3c4SBeni Lev TP_fast_assign( 157314e8a3c4SBeni Lev WIPHY_ASSIGN; 157414e8a3c4SBeni Lev __entry->ret = ret; 157514e8a3c4SBeni Lev __entry->tx = tx; 157614e8a3c4SBeni Lev __entry->rx = rx; 157714e8a3c4SBeni Lev ), 157814e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u", 157914e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx) 158014e8a3c4SBeni Lev ); 158114e8a3c4SBeni Lev 158214e8a3c4SBeni Lev TRACE_EVENT(rdev_return_void_tx_rx, 158314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max, 158414e8a3c4SBeni Lev u32 rx, u32 rx_max), 158514e8a3c4SBeni Lev TP_ARGS(wiphy, tx, tx_max, rx, rx_max), 158614e8a3c4SBeni Lev TP_STRUCT__entry( 158714e8a3c4SBeni Lev WIPHY_ENTRY 158814e8a3c4SBeni Lev __field(u32, tx) 158914e8a3c4SBeni Lev __field(u32, tx_max) 159014e8a3c4SBeni Lev __field(u32, rx) 159114e8a3c4SBeni Lev __field(u32, rx_max) 159214e8a3c4SBeni Lev ), 159314e8a3c4SBeni Lev TP_fast_assign( 159414e8a3c4SBeni Lev WIPHY_ASSIGN; 159514e8a3c4SBeni Lev __entry->tx = tx; 159614e8a3c4SBeni Lev __entry->tx_max = tx_max; 159714e8a3c4SBeni Lev __entry->rx = rx; 159814e8a3c4SBeni Lev __entry->rx_max = rx_max; 159914e8a3c4SBeni Lev ), 160014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ", 160114e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx, 160214e8a3c4SBeni Lev __entry->rx_max) 160314e8a3c4SBeni Lev ); 160414e8a3c4SBeni Lev 160514e8a3c4SBeni Lev DECLARE_EVENT_CLASS(tx_rx_evt, 160614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 160714e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx), 160814e8a3c4SBeni Lev TP_STRUCT__entry( 160914e8a3c4SBeni Lev WIPHY_ENTRY 161014e8a3c4SBeni Lev __field(u32, tx) 161114e8a3c4SBeni Lev __field(u32, rx) 161214e8a3c4SBeni Lev ), 161314e8a3c4SBeni Lev TP_fast_assign( 161414e8a3c4SBeni Lev WIPHY_ASSIGN; 161514e8a3c4SBeni Lev __entry->tx = tx; 161614e8a3c4SBeni Lev __entry->rx = rx; 161714e8a3c4SBeni Lev ), 161814e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ", 161914e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->rx) 162014e8a3c4SBeni Lev ); 162114e8a3c4SBeni Lev 162214e8a3c4SBeni Lev DEFINE_EVENT(tx_rx_evt, rdev_set_antenna, 162314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 162414e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx) 162514e8a3c4SBeni Lev ); 162614e8a3c4SBeni Lev 1627ca986ad9SArend Van Spriel DECLARE_EVENT_CLASS(wiphy_netdev_id_evt, 1628ca986ad9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1629ca986ad9SArend Van Spriel TP_ARGS(wiphy, netdev, id), 163014e8a3c4SBeni Lev TP_STRUCT__entry( 163114e8a3c4SBeni Lev WIPHY_ENTRY 163214e8a3c4SBeni Lev NETDEV_ENTRY 1633ca986ad9SArend Van Spriel __field(u64, id) 163414e8a3c4SBeni Lev ), 163514e8a3c4SBeni Lev TP_fast_assign( 163614e8a3c4SBeni Lev WIPHY_ASSIGN; 163714e8a3c4SBeni Lev NETDEV_ASSIGN; 1638ca986ad9SArend Van Spriel __entry->id = id; 163914e8a3c4SBeni Lev ), 1640ca986ad9SArend Van Spriel TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", id: %llu", 1641ca986ad9SArend Van Spriel WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->id) 1642ca986ad9SArend Van Spriel ); 1643ca986ad9SArend Van Spriel 1644ca986ad9SArend Van Spriel DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_start, 1645ca986ad9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1646ca986ad9SArend Van Spriel TP_ARGS(wiphy, netdev, id) 164714e8a3c4SBeni Lev ); 164814e8a3c4SBeni Lev 16493a3ecf1dSArend Van Spriel DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_stop, 16503a3ecf1dSArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 16513a3ecf1dSArend Van Spriel TP_ARGS(wiphy, netdev, id) 16523a3ecf1dSArend Van Spriel ); 16533a3ecf1dSArend Van Spriel 165414e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_mgmt, 165514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 165614e8a3c4SBeni Lev u8 *peer, u8 action_code, u8 dialog_token, 1657df942e7bSSunil Dutt Undekari u16 status_code, u32 peer_capability, 165831fa97c5SArik Nemtsov bool initiator, const u8 *buf, size_t len), 165914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code, 166031fa97c5SArik Nemtsov peer_capability, initiator, buf, len), 166114e8a3c4SBeni Lev TP_STRUCT__entry( 166214e8a3c4SBeni Lev WIPHY_ENTRY 166314e8a3c4SBeni Lev NETDEV_ENTRY 166414e8a3c4SBeni Lev MAC_ENTRY(peer) 166514e8a3c4SBeni Lev __field(u8, action_code) 166614e8a3c4SBeni Lev __field(u8, dialog_token) 166714e8a3c4SBeni Lev __field(u16, status_code) 1668df942e7bSSunil Dutt Undekari __field(u32, peer_capability) 166931fa97c5SArik Nemtsov __field(bool, initiator) 167014e8a3c4SBeni Lev __dynamic_array(u8, buf, len) 167114e8a3c4SBeni Lev ), 167214e8a3c4SBeni Lev TP_fast_assign( 167314e8a3c4SBeni Lev WIPHY_ASSIGN; 167414e8a3c4SBeni Lev NETDEV_ASSIGN; 167514e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 167614e8a3c4SBeni Lev __entry->action_code = action_code; 167714e8a3c4SBeni Lev __entry->dialog_token = dialog_token; 167814e8a3c4SBeni Lev __entry->status_code = status_code; 1679df942e7bSSunil Dutt Undekari __entry->peer_capability = peer_capability; 168031fa97c5SArik Nemtsov __entry->initiator = initiator; 168114e8a3c4SBeni Lev memcpy(__get_dynamic_array(buf), buf, len); 168214e8a3c4SBeni Lev ), 1683ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", action_code: %u, " 168431fa97c5SArik Nemtsov "dialog_token: %u, status_code: %u, peer_capability: %u " 168531fa97c5SArik Nemtsov "initiator: %s buf: %#.2x ", 168614e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 168714e8a3c4SBeni Lev __entry->action_code, __entry->dialog_token, 1688df942e7bSSunil Dutt Undekari __entry->status_code, __entry->peer_capability, 168931fa97c5SArik Nemtsov BOOL_TO_STR(__entry->initiator), 1690df942e7bSSunil Dutt Undekari ((u8 *)__get_dynamic_array(buf))[0]) 169114e8a3c4SBeni Lev ); 169214e8a3c4SBeni Lev 169314e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_survey, 1694aaaa10e0SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx), 1695aaaa10e0SJohannes Berg TP_ARGS(wiphy, netdev, _idx), 169614e8a3c4SBeni Lev TP_STRUCT__entry( 169714e8a3c4SBeni Lev WIPHY_ENTRY 169814e8a3c4SBeni Lev NETDEV_ENTRY 169914e8a3c4SBeni Lev __field(int, idx) 170014e8a3c4SBeni Lev ), 170114e8a3c4SBeni Lev TP_fast_assign( 170214e8a3c4SBeni Lev WIPHY_ASSIGN; 170314e8a3c4SBeni Lev NETDEV_ASSIGN; 1704aaaa10e0SJohannes Berg __entry->idx = _idx; 170514e8a3c4SBeni Lev ), 1706ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d", 170714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) 170814e8a3c4SBeni Lev ); 170914e8a3c4SBeni Lev 171014e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_survey_info, 171114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info), 171214e8a3c4SBeni Lev TP_ARGS(wiphy, ret, info), 171314e8a3c4SBeni Lev TP_STRUCT__entry( 171414e8a3c4SBeni Lev WIPHY_ENTRY 171514e8a3c4SBeni Lev CHAN_ENTRY 171614e8a3c4SBeni Lev __field(int, ret) 17174ed20bebSJohannes Berg __field(u64, time) 17184ed20bebSJohannes Berg __field(u64, time_busy) 17194ed20bebSJohannes Berg __field(u64, time_ext_busy) 17204ed20bebSJohannes Berg __field(u64, time_rx) 17214ed20bebSJohannes Berg __field(u64, time_tx) 1722052536abSJohannes Berg __field(u64, time_scan) 172314e8a3c4SBeni Lev __field(u32, filled) 172414e8a3c4SBeni Lev __field(s8, noise) 172514e8a3c4SBeni Lev ), 172614e8a3c4SBeni Lev TP_fast_assign( 172714e8a3c4SBeni Lev WIPHY_ASSIGN; 172814e8a3c4SBeni Lev CHAN_ASSIGN(info->channel); 172914e8a3c4SBeni Lev __entry->ret = ret; 17304ed20bebSJohannes Berg __entry->time = info->time; 17314ed20bebSJohannes Berg __entry->time_busy = info->time_busy; 17324ed20bebSJohannes Berg __entry->time_ext_busy = info->time_ext_busy; 17334ed20bebSJohannes Berg __entry->time_rx = info->time_rx; 17344ed20bebSJohannes Berg __entry->time_tx = info->time_tx; 1735052536abSJohannes Berg __entry->time_scan = info->time_scan; 173614e8a3c4SBeni Lev __entry->filled = info->filled; 173714e8a3c4SBeni Lev __entry->noise = info->noise; 173814e8a3c4SBeni Lev ), 173914e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT 174014e8a3c4SBeni Lev ", channel time: %llu, channel time busy: %llu, " 174114e8a3c4SBeni Lev "channel time extension busy: %llu, channel time rx: %llu, " 1742052536abSJohannes Berg "channel time tx: %llu, scan time: %llu, filled: %u, noise: %d", 174314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG, 17444ed20bebSJohannes Berg __entry->time, __entry->time_busy, 17454ed20bebSJohannes Berg __entry->time_ext_busy, __entry->time_rx, 1746052536abSJohannes Berg __entry->time_tx, __entry->time_scan, 1747052536abSJohannes Berg __entry->filled, __entry->noise) 174814e8a3c4SBeni Lev ); 174914e8a3c4SBeni Lev 175014e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_oper, 175114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 175214e8a3c4SBeni Lev u8 *peer, enum nl80211_tdls_operation oper), 175314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, oper), 175414e8a3c4SBeni Lev TP_STRUCT__entry( 175514e8a3c4SBeni Lev WIPHY_ENTRY 175614e8a3c4SBeni Lev NETDEV_ENTRY 175714e8a3c4SBeni Lev MAC_ENTRY(peer) 175814e8a3c4SBeni Lev __field(enum nl80211_tdls_operation, oper) 175914e8a3c4SBeni Lev ), 176014e8a3c4SBeni Lev TP_fast_assign( 176114e8a3c4SBeni Lev WIPHY_ASSIGN; 176214e8a3c4SBeni Lev NETDEV_ASSIGN; 176314e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 176414e8a3c4SBeni Lev __entry->oper = oper; 176514e8a3c4SBeni Lev ), 1766ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", oper: %d", 176714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper) 176814e8a3c4SBeni Lev ); 176914e8a3c4SBeni Lev 177014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(rdev_pmksa, 177114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 177214e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 177314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa), 177414e8a3c4SBeni Lev TP_STRUCT__entry( 177514e8a3c4SBeni Lev WIPHY_ENTRY 177614e8a3c4SBeni Lev NETDEV_ENTRY 177714e8a3c4SBeni Lev MAC_ENTRY(bssid) 177814e8a3c4SBeni Lev ), 177914e8a3c4SBeni Lev TP_fast_assign( 178014e8a3c4SBeni Lev WIPHY_ASSIGN; 178114e8a3c4SBeni Lev NETDEV_ASSIGN; 178214e8a3c4SBeni Lev MAC_ASSIGN(bssid, pmksa->bssid); 178314e8a3c4SBeni Lev ), 1784ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT, 178514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid)) 178614e8a3c4SBeni Lev ); 178714e8a3c4SBeni Lev 178814e8a3c4SBeni Lev TRACE_EVENT(rdev_probe_client, 178914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 179014e8a3c4SBeni Lev const u8 *peer), 179114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer), 179214e8a3c4SBeni Lev TP_STRUCT__entry( 179314e8a3c4SBeni Lev WIPHY_ENTRY 179414e8a3c4SBeni Lev NETDEV_ENTRY 179514e8a3c4SBeni Lev MAC_ENTRY(peer) 179614e8a3c4SBeni Lev ), 179714e8a3c4SBeni Lev TP_fast_assign( 179814e8a3c4SBeni Lev WIPHY_ASSIGN; 179914e8a3c4SBeni Lev NETDEV_ASSIGN; 180014e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 180114e8a3c4SBeni Lev ), 1802ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 180314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 180414e8a3c4SBeni Lev ); 180514e8a3c4SBeni Lev 180614e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa, 180714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 180814e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 180914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 181014e8a3c4SBeni Lev ); 181114e8a3c4SBeni Lev 181214e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa, 181314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 181414e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 181514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 181614e8a3c4SBeni Lev ); 181714e8a3c4SBeni Lev 181814e8a3c4SBeni Lev TRACE_EVENT(rdev_remain_on_channel, 181914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 182014e8a3c4SBeni Lev struct ieee80211_channel *chan, 182142d97a59SJohannes Berg unsigned int duration), 182242d97a59SJohannes Berg TP_ARGS(wiphy, wdev, chan, duration), 182314e8a3c4SBeni Lev TP_STRUCT__entry( 182414e8a3c4SBeni Lev WIPHY_ENTRY 182514e8a3c4SBeni Lev WDEV_ENTRY 182614e8a3c4SBeni Lev CHAN_ENTRY 182714e8a3c4SBeni Lev __field(unsigned int, duration) 182814e8a3c4SBeni Lev ), 182914e8a3c4SBeni Lev TP_fast_assign( 183014e8a3c4SBeni Lev WIPHY_ASSIGN; 183114e8a3c4SBeni Lev WDEV_ASSIGN; 183214e8a3c4SBeni Lev CHAN_ASSIGN(chan); 183314e8a3c4SBeni Lev __entry->duration = duration; 183414e8a3c4SBeni Lev ), 1835ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u", 183642d97a59SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) 183714e8a3c4SBeni Lev ); 183814e8a3c4SBeni Lev 183914e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_cookie, 184014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie), 184114e8a3c4SBeni Lev TP_ARGS(wiphy, ret, cookie), 184214e8a3c4SBeni Lev TP_STRUCT__entry( 184314e8a3c4SBeni Lev WIPHY_ENTRY 184414e8a3c4SBeni Lev __field(int, ret) 184514e8a3c4SBeni Lev __field(u64, cookie) 184614e8a3c4SBeni Lev ), 184714e8a3c4SBeni Lev TP_fast_assign( 184814e8a3c4SBeni Lev WIPHY_ASSIGN; 184914e8a3c4SBeni Lev __entry->ret = ret; 185014e8a3c4SBeni Lev __entry->cookie = cookie; 185114e8a3c4SBeni Lev ), 185214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu", 185314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->cookie) 185414e8a3c4SBeni Lev ); 185514e8a3c4SBeni Lev 185614e8a3c4SBeni Lev TRACE_EVENT(rdev_cancel_remain_on_channel, 185714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 185814e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 185914e8a3c4SBeni Lev TP_STRUCT__entry( 186014e8a3c4SBeni Lev WIPHY_ENTRY 186114e8a3c4SBeni Lev WDEV_ENTRY 186214e8a3c4SBeni Lev __field(u64, cookie) 186314e8a3c4SBeni Lev ), 186414e8a3c4SBeni Lev TP_fast_assign( 186514e8a3c4SBeni Lev WIPHY_ASSIGN; 186614e8a3c4SBeni Lev WDEV_ASSIGN; 186714e8a3c4SBeni Lev __entry->cookie = cookie; 186814e8a3c4SBeni Lev ), 1869ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu", 187014e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 187114e8a3c4SBeni Lev ); 187214e8a3c4SBeni Lev 187314e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx, 187414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1875b176e629SAndrei Otcheretianski struct cfg80211_mgmt_tx_params *params), 1876b176e629SAndrei Otcheretianski TP_ARGS(wiphy, wdev, params), 187714e8a3c4SBeni Lev TP_STRUCT__entry( 187814e8a3c4SBeni Lev WIPHY_ENTRY 187914e8a3c4SBeni Lev WDEV_ENTRY 188014e8a3c4SBeni Lev CHAN_ENTRY 188114e8a3c4SBeni Lev __field(bool, offchan) 188214e8a3c4SBeni Lev __field(unsigned int, wait) 188314e8a3c4SBeni Lev __field(bool, no_cck) 188414e8a3c4SBeni Lev __field(bool, dont_wait_for_ack) 188514e8a3c4SBeni Lev ), 188614e8a3c4SBeni Lev TP_fast_assign( 188714e8a3c4SBeni Lev WIPHY_ASSIGN; 188814e8a3c4SBeni Lev WDEV_ASSIGN; 1889b176e629SAndrei Otcheretianski CHAN_ASSIGN(params->chan); 1890b176e629SAndrei Otcheretianski __entry->offchan = params->offchan; 1891b176e629SAndrei Otcheretianski __entry->wait = params->wait; 1892b176e629SAndrei Otcheretianski __entry->no_cck = params->no_cck; 1893b176e629SAndrei Otcheretianski __entry->dont_wait_for_ack = params->dont_wait_for_ack; 189414e8a3c4SBeni Lev ), 1895ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s," 189642d97a59SJohannes Berg " wait: %u, no cck: %s, dont wait for ack: %s", 189714e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, 189842d97a59SJohannes Berg BOOL_TO_STR(__entry->offchan), __entry->wait, 189914e8a3c4SBeni Lev BOOL_TO_STR(__entry->no_cck), 190014e8a3c4SBeni Lev BOOL_TO_STR(__entry->dont_wait_for_ack)) 190114e8a3c4SBeni Lev ); 190214e8a3c4SBeni Lev 19032576a9acSDenis Kenzior TRACE_EVENT(rdev_tx_control_port, 19042576a9acSDenis Kenzior TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 19052576a9acSDenis Kenzior const u8 *buf, size_t len, const u8 *dest, __be16 proto, 19062576a9acSDenis Kenzior bool unencrypted), 19072576a9acSDenis Kenzior TP_ARGS(wiphy, netdev, buf, len, dest, proto, unencrypted), 19082576a9acSDenis Kenzior TP_STRUCT__entry( 19092576a9acSDenis Kenzior WIPHY_ENTRY 19102576a9acSDenis Kenzior NETDEV_ENTRY 19112576a9acSDenis Kenzior MAC_ENTRY(dest) 19122576a9acSDenis Kenzior __field(__be16, proto) 19132576a9acSDenis Kenzior __field(bool, unencrypted) 19142576a9acSDenis Kenzior ), 19152576a9acSDenis Kenzior TP_fast_assign( 19162576a9acSDenis Kenzior WIPHY_ASSIGN; 19172576a9acSDenis Kenzior NETDEV_ASSIGN; 19182576a9acSDenis Kenzior MAC_ASSIGN(dest, dest); 19192576a9acSDenis Kenzior __entry->proto = proto; 19202576a9acSDenis Kenzior __entry->unencrypted = unencrypted; 19212576a9acSDenis Kenzior ), 19222576a9acSDenis Kenzior TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT "," 19232576a9acSDenis Kenzior " proto: 0x%x, unencrypted: %s", 19242576a9acSDenis Kenzior WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dest), 19252576a9acSDenis Kenzior be16_to_cpu(__entry->proto), 19262576a9acSDenis Kenzior BOOL_TO_STR(__entry->unencrypted)) 19272576a9acSDenis Kenzior ); 19282576a9acSDenis Kenzior 192914e8a3c4SBeni Lev TRACE_EVENT(rdev_set_noack_map, 193014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 193114e8a3c4SBeni Lev u16 noack_map), 193214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, noack_map), 193314e8a3c4SBeni Lev TP_STRUCT__entry( 193414e8a3c4SBeni Lev WIPHY_ENTRY 193514e8a3c4SBeni Lev NETDEV_ENTRY 193614e8a3c4SBeni Lev __field(u16, noack_map) 193714e8a3c4SBeni Lev ), 193814e8a3c4SBeni Lev TP_fast_assign( 193914e8a3c4SBeni Lev WIPHY_ASSIGN; 194014e8a3c4SBeni Lev NETDEV_ASSIGN; 194114e8a3c4SBeni Lev __entry->noack_map = noack_map; 194214e8a3c4SBeni Lev ), 1943ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u", 194414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) 194514e8a3c4SBeni Lev ); 194614e8a3c4SBeni Lev 194714e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel, 194814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 194914e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 195014e8a3c4SBeni Lev ); 195114e8a3c4SBeni Lev 1952683b6d3bSJohannes Berg TRACE_EVENT(rdev_return_chandef, 1953683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, int ret, 1954683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 1955683b6d3bSJohannes Berg TP_ARGS(wiphy, ret, chandef), 195614e8a3c4SBeni Lev TP_STRUCT__entry( 195714e8a3c4SBeni Lev WIPHY_ENTRY 1958683b6d3bSJohannes Berg __field(int, ret) 1959683b6d3bSJohannes Berg CHAN_DEF_ENTRY 196014e8a3c4SBeni Lev ), 196114e8a3c4SBeni Lev TP_fast_assign( 196214e8a3c4SBeni Lev WIPHY_ASSIGN; 1963683b6d3bSJohannes Berg if (ret == 0) 1964683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 1965683b6d3bSJohannes Berg else 1966683b6d3bSJohannes Berg CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); 1967683b6d3bSJohannes Berg __entry->ret = ret; 196814e8a3c4SBeni Lev ), 1969ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d", 1970683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) 197114e8a3c4SBeni Lev ); 197214e8a3c4SBeni Lev 1973eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device, 1974eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1975eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1976eeb126e9SJohannes Berg ); 1977eeb126e9SJohannes Berg 1978eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device, 1979eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1980eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1981eeb126e9SJohannes Berg ); 1982eeb126e9SJohannes Berg 1983cb3b7d87SAyala Beker TRACE_EVENT(rdev_start_nan, 1984cb3b7d87SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1985cb3b7d87SAyala Beker struct cfg80211_nan_conf *conf), 1986cb3b7d87SAyala Beker TP_ARGS(wiphy, wdev, conf), 1987cb3b7d87SAyala Beker TP_STRUCT__entry( 1988cb3b7d87SAyala Beker WIPHY_ENTRY 1989cb3b7d87SAyala Beker WDEV_ENTRY 1990cb3b7d87SAyala Beker __field(u8, master_pref) 19918585989dSLuca Coelho __field(u8, bands); 1992cb3b7d87SAyala Beker ), 1993cb3b7d87SAyala Beker TP_fast_assign( 1994cb3b7d87SAyala Beker WIPHY_ASSIGN; 1995cb3b7d87SAyala Beker WDEV_ASSIGN; 1996cb3b7d87SAyala Beker __entry->master_pref = conf->master_pref; 19978585989dSLuca Coelho __entry->bands = conf->bands; 1998cb3b7d87SAyala Beker ), 1999cb3b7d87SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 20008585989dSLuca Coelho ", master preference: %u, bands: 0x%0x", 2001cb3b7d87SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 20028585989dSLuca Coelho __entry->bands) 2003cb3b7d87SAyala Beker ); 2004cb3b7d87SAyala Beker 2005a5a9dcf2SAyala Beker TRACE_EVENT(rdev_nan_change_conf, 2006a5a9dcf2SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2007a5a9dcf2SAyala Beker struct cfg80211_nan_conf *conf, u32 changes), 2008a5a9dcf2SAyala Beker TP_ARGS(wiphy, wdev, conf, changes), 2009a5a9dcf2SAyala Beker TP_STRUCT__entry( 2010a5a9dcf2SAyala Beker WIPHY_ENTRY 2011a5a9dcf2SAyala Beker WDEV_ENTRY 2012a5a9dcf2SAyala Beker __field(u8, master_pref) 20138585989dSLuca Coelho __field(u8, bands); 2014a5a9dcf2SAyala Beker __field(u32, changes); 2015a5a9dcf2SAyala Beker ), 2016a5a9dcf2SAyala Beker TP_fast_assign( 2017a5a9dcf2SAyala Beker WIPHY_ASSIGN; 2018a5a9dcf2SAyala Beker WDEV_ASSIGN; 2019a5a9dcf2SAyala Beker __entry->master_pref = conf->master_pref; 20208585989dSLuca Coelho __entry->bands = conf->bands; 2021a5a9dcf2SAyala Beker __entry->changes = changes; 2022a5a9dcf2SAyala Beker ), 2023a5a9dcf2SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 20248585989dSLuca Coelho ", master preference: %u, bands: 0x%0x, changes: %x", 2025a5a9dcf2SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 20268585989dSLuca Coelho __entry->bands, __entry->changes) 2027a5a9dcf2SAyala Beker ); 2028a5a9dcf2SAyala Beker 2029cb3b7d87SAyala Beker DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_nan, 2030cb3b7d87SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2031cb3b7d87SAyala Beker TP_ARGS(wiphy, wdev) 2032cb3b7d87SAyala Beker ); 2033cb3b7d87SAyala Beker 2034a442b761SAyala Beker TRACE_EVENT(rdev_add_nan_func, 2035a442b761SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2036a442b761SAyala Beker const struct cfg80211_nan_func *func), 2037a442b761SAyala Beker TP_ARGS(wiphy, wdev, func), 2038a442b761SAyala Beker TP_STRUCT__entry( 2039a442b761SAyala Beker WIPHY_ENTRY 2040a442b761SAyala Beker WDEV_ENTRY 2041a442b761SAyala Beker __field(u8, func_type) 2042a442b761SAyala Beker __field(u64, cookie) 2043a442b761SAyala Beker ), 2044a442b761SAyala Beker TP_fast_assign( 2045a442b761SAyala Beker WIPHY_ASSIGN; 2046a442b761SAyala Beker WDEV_ASSIGN; 2047a442b761SAyala Beker __entry->func_type = func->type; 2048a442b761SAyala Beker __entry->cookie = func->cookie 2049a442b761SAyala Beker ), 2050a442b761SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type=%u, cookie=%llu", 2051a442b761SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->func_type, 2052a442b761SAyala Beker __entry->cookie) 2053a442b761SAyala Beker ); 2054a442b761SAyala Beker 2055a442b761SAyala Beker TRACE_EVENT(rdev_del_nan_func, 2056a442b761SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2057a442b761SAyala Beker u64 cookie), 2058a442b761SAyala Beker TP_ARGS(wiphy, wdev, cookie), 2059a442b761SAyala Beker TP_STRUCT__entry( 2060a442b761SAyala Beker WIPHY_ENTRY 2061a442b761SAyala Beker WDEV_ENTRY 2062a442b761SAyala Beker __field(u64, cookie) 2063a442b761SAyala Beker ), 2064a442b761SAyala Beker TP_fast_assign( 2065a442b761SAyala Beker WIPHY_ASSIGN; 2066a442b761SAyala Beker WDEV_ASSIGN; 2067a442b761SAyala Beker __entry->cookie = cookie; 2068a442b761SAyala Beker ), 2069a442b761SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie=%llu", 2070a442b761SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 2071a442b761SAyala Beker ); 2072a442b761SAyala Beker 207377765eafSVasanthakumar Thiagarajan TRACE_EVENT(rdev_set_mac_acl, 207477765eafSVasanthakumar Thiagarajan TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 207577765eafSVasanthakumar Thiagarajan struct cfg80211_acl_data *params), 207677765eafSVasanthakumar Thiagarajan TP_ARGS(wiphy, netdev, params), 207777765eafSVasanthakumar Thiagarajan TP_STRUCT__entry( 207877765eafSVasanthakumar Thiagarajan WIPHY_ENTRY 207977765eafSVasanthakumar Thiagarajan NETDEV_ENTRY 208077765eafSVasanthakumar Thiagarajan __field(u32, acl_policy) 208177765eafSVasanthakumar Thiagarajan ), 208277765eafSVasanthakumar Thiagarajan TP_fast_assign( 208377765eafSVasanthakumar Thiagarajan WIPHY_ASSIGN; 2084021fcdc1SVladimir Kondratiev NETDEV_ASSIGN; 208577765eafSVasanthakumar Thiagarajan __entry->acl_policy = params->acl_policy; 208677765eafSVasanthakumar Thiagarajan ), 208777765eafSVasanthakumar Thiagarajan TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", acl policy: %d", 208877765eafSVasanthakumar Thiagarajan WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) 208977765eafSVasanthakumar Thiagarajan ); 209077765eafSVasanthakumar Thiagarajan 2091355199e0SJouni Malinen TRACE_EVENT(rdev_update_ft_ies, 2092355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2093355199e0SJouni Malinen struct cfg80211_update_ft_ies_params *ftie), 2094355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ftie), 2095355199e0SJouni Malinen TP_STRUCT__entry( 2096355199e0SJouni Malinen WIPHY_ENTRY 2097355199e0SJouni Malinen NETDEV_ENTRY 2098355199e0SJouni Malinen __field(u16, md) 2099355199e0SJouni Malinen __dynamic_array(u8, ie, ftie->ie_len) 2100355199e0SJouni Malinen ), 2101355199e0SJouni Malinen TP_fast_assign( 2102355199e0SJouni Malinen WIPHY_ASSIGN; 2103355199e0SJouni Malinen NETDEV_ASSIGN; 2104355199e0SJouni Malinen __entry->md = ftie->md; 2105355199e0SJouni Malinen memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len); 2106355199e0SJouni Malinen ), 2107355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x", 2108355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md) 2109355199e0SJouni Malinen ); 2110355199e0SJouni Malinen 21115de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_start, 21125de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 21135de17984SArend van Spriel enum nl80211_crit_proto_id protocol, u16 duration), 21145de17984SArend van Spriel TP_ARGS(wiphy, wdev, protocol, duration), 21155de17984SArend van Spriel TP_STRUCT__entry( 21165de17984SArend van Spriel WIPHY_ENTRY 21175de17984SArend van Spriel WDEV_ENTRY 21185de17984SArend van Spriel __field(u16, proto) 21195de17984SArend van Spriel __field(u16, duration) 21205de17984SArend van Spriel ), 21215de17984SArend van Spriel TP_fast_assign( 21225de17984SArend van Spriel WIPHY_ASSIGN; 21235de17984SArend van Spriel WDEV_ASSIGN; 21245de17984SArend van Spriel __entry->proto = protocol; 21255de17984SArend van Spriel __entry->duration = duration; 21265de17984SArend van Spriel ), 21275de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u", 21285de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration) 21295de17984SArend van Spriel ); 21305de17984SArend van Spriel 21315de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_stop, 21325de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 21335de17984SArend van Spriel TP_ARGS(wiphy, wdev), 21345de17984SArend van Spriel TP_STRUCT__entry( 21355de17984SArend van Spriel WIPHY_ENTRY 21365de17984SArend van Spriel WDEV_ENTRY 21375de17984SArend van Spriel ), 21385de17984SArend van Spriel TP_fast_assign( 21395de17984SArend van Spriel WIPHY_ASSIGN; 21405de17984SArend van Spriel WDEV_ASSIGN; 21415de17984SArend van Spriel ), 21425de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 21435de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG) 21445de17984SArend van Spriel ); 21455de17984SArend van Spriel 214616ef1fe2SSimon Wunderlich TRACE_EVENT(rdev_channel_switch, 214716ef1fe2SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 214816ef1fe2SSimon Wunderlich struct cfg80211_csa_settings *params), 214916ef1fe2SSimon Wunderlich TP_ARGS(wiphy, netdev, params), 215016ef1fe2SSimon Wunderlich TP_STRUCT__entry( 215116ef1fe2SSimon Wunderlich WIPHY_ENTRY 215216ef1fe2SSimon Wunderlich NETDEV_ENTRY 215316ef1fe2SSimon Wunderlich CHAN_DEF_ENTRY 215416ef1fe2SSimon Wunderlich __field(bool, radar_required) 215516ef1fe2SSimon Wunderlich __field(bool, block_tx) 215616ef1fe2SSimon Wunderlich __field(u8, count) 21579a774c78SAndrei Otcheretianski __dynamic_array(u16, bcn_ofs, params->n_counter_offsets_beacon) 21589a774c78SAndrei Otcheretianski __dynamic_array(u16, pres_ofs, params->n_counter_offsets_presp) 215916ef1fe2SSimon Wunderlich ), 216016ef1fe2SSimon Wunderlich TP_fast_assign( 216116ef1fe2SSimon Wunderlich WIPHY_ASSIGN; 216216ef1fe2SSimon Wunderlich NETDEV_ASSIGN; 216316ef1fe2SSimon Wunderlich CHAN_DEF_ASSIGN(¶ms->chandef); 216416ef1fe2SSimon Wunderlich __entry->radar_required = params->radar_required; 216516ef1fe2SSimon Wunderlich __entry->block_tx = params->block_tx; 216616ef1fe2SSimon Wunderlich __entry->count = params->count; 21679a774c78SAndrei Otcheretianski memcpy(__get_dynamic_array(bcn_ofs), 21689a774c78SAndrei Otcheretianski params->counter_offsets_beacon, 21699a774c78SAndrei Otcheretianski params->n_counter_offsets_beacon * sizeof(u16)); 21709a774c78SAndrei Otcheretianski 21719a774c78SAndrei Otcheretianski /* probe response offsets are optional */ 21729a774c78SAndrei Otcheretianski if (params->n_counter_offsets_presp) 21739a774c78SAndrei Otcheretianski memcpy(__get_dynamic_array(pres_ofs), 21749a774c78SAndrei Otcheretianski params->counter_offsets_presp, 21759a774c78SAndrei Otcheretianski params->n_counter_offsets_presp * sizeof(u16)); 217616ef1fe2SSimon Wunderlich ), 217716ef1fe2SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 21789a774c78SAndrei Otcheretianski ", block_tx: %d, count: %u, radar_required: %d", 217916ef1fe2SSimon Wunderlich WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 21809a774c78SAndrei Otcheretianski __entry->block_tx, __entry->count, __entry->radar_required) 218116ef1fe2SSimon Wunderlich ); 218216ef1fe2SSimon Wunderlich 2183fa9ffc74SKyeyoon Park TRACE_EVENT(rdev_set_qos_map, 2184fa9ffc74SKyeyoon Park TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2185fa9ffc74SKyeyoon Park struct cfg80211_qos_map *qos_map), 2186fa9ffc74SKyeyoon Park TP_ARGS(wiphy, netdev, qos_map), 2187fa9ffc74SKyeyoon Park TP_STRUCT__entry( 2188fa9ffc74SKyeyoon Park WIPHY_ENTRY 2189fa9ffc74SKyeyoon Park NETDEV_ENTRY 2190fa9ffc74SKyeyoon Park QOS_MAP_ENTRY 2191fa9ffc74SKyeyoon Park ), 2192fa9ffc74SKyeyoon Park TP_fast_assign( 2193fa9ffc74SKyeyoon Park WIPHY_ASSIGN; 2194fa9ffc74SKyeyoon Park NETDEV_ASSIGN; 2195fa9ffc74SKyeyoon Park QOS_MAP_ASSIGN(qos_map); 2196fa9ffc74SKyeyoon Park ), 2197fa9ffc74SKyeyoon Park TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", num_des: %u", 2198fa9ffc74SKyeyoon Park WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->num_des) 2199fa9ffc74SKyeyoon Park ); 2200fa9ffc74SKyeyoon Park 2201e16821bcSJouni Malinen TRACE_EVENT(rdev_set_ap_chanwidth, 2202e16821bcSJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2203e16821bcSJouni Malinen struct cfg80211_chan_def *chandef), 2204e16821bcSJouni Malinen TP_ARGS(wiphy, netdev, chandef), 2205e16821bcSJouni Malinen TP_STRUCT__entry( 2206e16821bcSJouni Malinen WIPHY_ENTRY 2207e16821bcSJouni Malinen NETDEV_ENTRY 2208e16821bcSJouni Malinen CHAN_DEF_ENTRY 2209e16821bcSJouni Malinen ), 2210e16821bcSJouni Malinen TP_fast_assign( 2211e16821bcSJouni Malinen WIPHY_ASSIGN; 2212e16821bcSJouni Malinen NETDEV_ASSIGN; 2213e16821bcSJouni Malinen CHAN_DEF_ASSIGN(chandef); 2214e16821bcSJouni Malinen ), 2215e16821bcSJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2216e16821bcSJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 2217e16821bcSJouni Malinen ); 2218e16821bcSJouni Malinen 2219960d01acSJohannes Berg TRACE_EVENT(rdev_add_tx_ts, 2220960d01acSJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2221960d01acSJohannes Berg u8 tsid, const u8 *peer, u8 user_prio, u16 admitted_time), 2222960d01acSJohannes Berg TP_ARGS(wiphy, netdev, tsid, peer, user_prio, admitted_time), 2223960d01acSJohannes Berg TP_STRUCT__entry( 2224960d01acSJohannes Berg WIPHY_ENTRY 2225960d01acSJohannes Berg NETDEV_ENTRY 2226960d01acSJohannes Berg MAC_ENTRY(peer) 2227960d01acSJohannes Berg __field(u8, tsid) 2228960d01acSJohannes Berg __field(u8, user_prio) 2229960d01acSJohannes Berg __field(u16, admitted_time) 2230960d01acSJohannes Berg ), 2231960d01acSJohannes Berg TP_fast_assign( 2232960d01acSJohannes Berg WIPHY_ASSIGN; 2233960d01acSJohannes Berg NETDEV_ASSIGN; 2234960d01acSJohannes Berg MAC_ASSIGN(peer, peer); 2235960d01acSJohannes Berg __entry->tsid = tsid; 2236960d01acSJohannes Berg __entry->user_prio = user_prio; 2237960d01acSJohannes Berg __entry->admitted_time = admitted_time; 2238960d01acSJohannes Berg ), 2239960d01acSJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d, UP %d, time %d", 2240960d01acSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 2241960d01acSJohannes Berg __entry->tsid, __entry->user_prio, __entry->admitted_time) 2242960d01acSJohannes Berg ); 2243960d01acSJohannes Berg 2244960d01acSJohannes Berg TRACE_EVENT(rdev_del_tx_ts, 2245960d01acSJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2246960d01acSJohannes Berg u8 tsid, const u8 *peer), 2247960d01acSJohannes Berg TP_ARGS(wiphy, netdev, tsid, peer), 2248960d01acSJohannes Berg TP_STRUCT__entry( 2249960d01acSJohannes Berg WIPHY_ENTRY 2250960d01acSJohannes Berg NETDEV_ENTRY 2251960d01acSJohannes Berg MAC_ENTRY(peer) 2252960d01acSJohannes Berg __field(u8, tsid) 2253960d01acSJohannes Berg ), 2254960d01acSJohannes Berg TP_fast_assign( 2255960d01acSJohannes Berg WIPHY_ASSIGN; 2256960d01acSJohannes Berg NETDEV_ASSIGN; 2257960d01acSJohannes Berg MAC_ASSIGN(peer, peer); 2258960d01acSJohannes Berg __entry->tsid = tsid; 2259960d01acSJohannes Berg ), 2260960d01acSJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d", 2261960d01acSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tsid) 2262960d01acSJohannes Berg ); 2263960d01acSJohannes Berg 22641057d35eSArik Nemtsov TRACE_EVENT(rdev_tdls_channel_switch, 22651057d35eSArik Nemtsov TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 22661057d35eSArik Nemtsov const u8 *addr, u8 oper_class, 22671057d35eSArik Nemtsov struct cfg80211_chan_def *chandef), 22681057d35eSArik Nemtsov TP_ARGS(wiphy, netdev, addr, oper_class, chandef), 22691057d35eSArik Nemtsov TP_STRUCT__entry( 22701057d35eSArik Nemtsov WIPHY_ENTRY 22711057d35eSArik Nemtsov NETDEV_ENTRY 22721057d35eSArik Nemtsov MAC_ENTRY(addr) 22731057d35eSArik Nemtsov __field(u8, oper_class) 22741057d35eSArik Nemtsov CHAN_DEF_ENTRY 22751057d35eSArik Nemtsov ), 22761057d35eSArik Nemtsov TP_fast_assign( 22771057d35eSArik Nemtsov WIPHY_ASSIGN; 22781057d35eSArik Nemtsov NETDEV_ASSIGN; 22791057d35eSArik Nemtsov MAC_ASSIGN(addr, addr); 22801057d35eSArik Nemtsov CHAN_DEF_ASSIGN(chandef); 22811057d35eSArik Nemtsov ), 22821057d35eSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT 22831057d35eSArik Nemtsov " oper class %d, " CHAN_DEF_PR_FMT, 22841057d35eSArik Nemtsov WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr), 22851057d35eSArik Nemtsov __entry->oper_class, CHAN_DEF_PR_ARG) 22861057d35eSArik Nemtsov ); 22871057d35eSArik Nemtsov 22881057d35eSArik Nemtsov TRACE_EVENT(rdev_tdls_cancel_channel_switch, 22891057d35eSArik Nemtsov TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 22901057d35eSArik Nemtsov const u8 *addr), 22911057d35eSArik Nemtsov TP_ARGS(wiphy, netdev, addr), 22921057d35eSArik Nemtsov TP_STRUCT__entry( 22931057d35eSArik Nemtsov WIPHY_ENTRY 22941057d35eSArik Nemtsov NETDEV_ENTRY 22951057d35eSArik Nemtsov MAC_ENTRY(addr) 22961057d35eSArik Nemtsov ), 22971057d35eSArik Nemtsov TP_fast_assign( 22981057d35eSArik Nemtsov WIPHY_ASSIGN; 22991057d35eSArik Nemtsov NETDEV_ASSIGN; 23001057d35eSArik Nemtsov MAC_ASSIGN(addr, addr); 23011057d35eSArik Nemtsov ), 23021057d35eSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 23031057d35eSArik Nemtsov WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr)) 23041057d35eSArik Nemtsov ); 23051057d35eSArik Nemtsov 23063a00df57SAvraham Stern TRACE_EVENT(rdev_set_pmk, 23073a00df57SAvraham Stern TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 23083a00df57SAvraham Stern struct cfg80211_pmk_conf *pmk_conf), 23093a00df57SAvraham Stern 23103a00df57SAvraham Stern TP_ARGS(wiphy, netdev, pmk_conf), 23113a00df57SAvraham Stern 23123a00df57SAvraham Stern TP_STRUCT__entry( 23133a00df57SAvraham Stern WIPHY_ENTRY 23143a00df57SAvraham Stern NETDEV_ENTRY 23153a00df57SAvraham Stern MAC_ENTRY(aa) 23163a00df57SAvraham Stern __field(u8, pmk_len) 23173a00df57SAvraham Stern __field(u8, pmk_r0_name_len) 23183a00df57SAvraham Stern __dynamic_array(u8, pmk, pmk_conf->pmk_len) 23193a00df57SAvraham Stern __dynamic_array(u8, pmk_r0_name, WLAN_PMK_NAME_LEN) 23203a00df57SAvraham Stern ), 23213a00df57SAvraham Stern 23223a00df57SAvraham Stern TP_fast_assign( 23233a00df57SAvraham Stern WIPHY_ASSIGN; 23243a00df57SAvraham Stern NETDEV_ASSIGN; 23253a00df57SAvraham Stern MAC_ASSIGN(aa, pmk_conf->aa); 23263a00df57SAvraham Stern __entry->pmk_len = pmk_conf->pmk_len; 23273a00df57SAvraham Stern __entry->pmk_r0_name_len = 23283a00df57SAvraham Stern pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0; 23293a00df57SAvraham Stern memcpy(__get_dynamic_array(pmk), pmk_conf->pmk, 23303a00df57SAvraham Stern pmk_conf->pmk_len); 23313a00df57SAvraham Stern memcpy(__get_dynamic_array(pmk_r0_name), pmk_conf->pmk_r0_name, 23323a00df57SAvraham Stern pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0); 23333a00df57SAvraham Stern ), 23343a00df57SAvraham Stern 23353a00df57SAvraham Stern TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT 23363a00df57SAvraham Stern "pmk_len=%u, pmk: %s pmk_r0_name: %s", WIPHY_PR_ARG, 23373a00df57SAvraham Stern NETDEV_PR_ARG, MAC_PR_ARG(aa), __entry->pmk_len, 23383a00df57SAvraham Stern __print_array(__get_dynamic_array(pmk), 23393a00df57SAvraham Stern __get_dynamic_array_len(pmk), 1), 23403a00df57SAvraham Stern __entry->pmk_r0_name_len ? 23413a00df57SAvraham Stern __print_array(__get_dynamic_array(pmk_r0_name), 23423a00df57SAvraham Stern __get_dynamic_array_len(pmk_r0_name), 1) : "") 23433a00df57SAvraham Stern ); 23443a00df57SAvraham Stern 23453a00df57SAvraham Stern TRACE_EVENT(rdev_del_pmk, 23463a00df57SAvraham Stern TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *aa), 23473a00df57SAvraham Stern 23483a00df57SAvraham Stern TP_ARGS(wiphy, netdev, aa), 23493a00df57SAvraham Stern 23503a00df57SAvraham Stern TP_STRUCT__entry( 23513a00df57SAvraham Stern WIPHY_ENTRY 23523a00df57SAvraham Stern NETDEV_ENTRY 23533a00df57SAvraham Stern MAC_ENTRY(aa) 23543a00df57SAvraham Stern ), 23553a00df57SAvraham Stern 23563a00df57SAvraham Stern TP_fast_assign( 23573a00df57SAvraham Stern WIPHY_ASSIGN; 23583a00df57SAvraham Stern NETDEV_ASSIGN; 23593a00df57SAvraham Stern MAC_ASSIGN(aa, aa); 23603a00df57SAvraham Stern ), 23613a00df57SAvraham Stern 23623a00df57SAvraham Stern TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 23633a00df57SAvraham Stern WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(aa)) 23643a00df57SAvraham Stern ); 23653a00df57SAvraham Stern 236640cbfa90SSrinivas Dasari TRACE_EVENT(rdev_external_auth, 236740cbfa90SSrinivas Dasari TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 236840cbfa90SSrinivas Dasari struct cfg80211_external_auth_params *params), 236940cbfa90SSrinivas Dasari TP_ARGS(wiphy, netdev, params), 237040cbfa90SSrinivas Dasari TP_STRUCT__entry(WIPHY_ENTRY 237140cbfa90SSrinivas Dasari NETDEV_ENTRY 237240cbfa90SSrinivas Dasari MAC_ENTRY(bssid) 237340cbfa90SSrinivas Dasari __array(u8, ssid, IEEE80211_MAX_SSID_LEN + 1) 237440cbfa90SSrinivas Dasari __field(u16, status) 237540cbfa90SSrinivas Dasari ), 237640cbfa90SSrinivas Dasari TP_fast_assign(WIPHY_ASSIGN; 237740cbfa90SSrinivas Dasari NETDEV_ASSIGN; 237840cbfa90SSrinivas Dasari MAC_ASSIGN(bssid, params->bssid); 237940cbfa90SSrinivas Dasari memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 238040cbfa90SSrinivas Dasari memcpy(__entry->ssid, params->ssid.ssid, 238140cbfa90SSrinivas Dasari params->ssid.ssid_len); 238240cbfa90SSrinivas Dasari __entry->status = params->status; 238340cbfa90SSrinivas Dasari ), 238440cbfa90SSrinivas Dasari TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 238540cbfa90SSrinivas Dasari ", ssid: %s, status: %u", WIPHY_PR_ARG, NETDEV_PR_ARG, 238640cbfa90SSrinivas Dasari __entry->bssid, __entry->ssid, __entry->status) 238740cbfa90SSrinivas Dasari ); 238840cbfa90SSrinivas Dasari 23895207ca55SJohannes Berg TRACE_EVENT(rdev_start_radar_detection, 23905207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 23915207ca55SJohannes Berg struct cfg80211_chan_def *chandef, 23925207ca55SJohannes Berg u32 cac_time_ms), 23935207ca55SJohannes Berg TP_ARGS(wiphy, netdev, chandef, cac_time_ms), 23945207ca55SJohannes Berg TP_STRUCT__entry( 23955207ca55SJohannes Berg WIPHY_ENTRY 23965207ca55SJohannes Berg NETDEV_ENTRY 23975207ca55SJohannes Berg CHAN_DEF_ENTRY 23985207ca55SJohannes Berg __field(u32, cac_time_ms) 23995207ca55SJohannes Berg ), 24005207ca55SJohannes Berg TP_fast_assign( 24015207ca55SJohannes Berg WIPHY_ASSIGN; 24025207ca55SJohannes Berg NETDEV_ASSIGN; 24035207ca55SJohannes Berg CHAN_DEF_ASSIGN(chandef); 24045207ca55SJohannes Berg __entry->cac_time_ms = cac_time_ms; 24055207ca55SJohannes Berg ), 24065207ca55SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 24075207ca55SJohannes Berg ", cac_time_ms=%u", 24085207ca55SJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 24095207ca55SJohannes Berg __entry->cac_time_ms) 24105207ca55SJohannes Berg ); 24115207ca55SJohannes Berg 24125207ca55SJohannes Berg TRACE_EVENT(rdev_set_mcast_rate, 24135207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 24145207ca55SJohannes Berg int *mcast_rate), 24155207ca55SJohannes Berg TP_ARGS(wiphy, netdev, mcast_rate), 24165207ca55SJohannes Berg TP_STRUCT__entry( 24175207ca55SJohannes Berg WIPHY_ENTRY 24185207ca55SJohannes Berg NETDEV_ENTRY 24195207ca55SJohannes Berg __array(int, mcast_rate, NUM_NL80211_BANDS) 24205207ca55SJohannes Berg ), 24215207ca55SJohannes Berg TP_fast_assign( 24225207ca55SJohannes Berg WIPHY_ASSIGN; 24235207ca55SJohannes Berg NETDEV_ASSIGN; 24245207ca55SJohannes Berg memcpy(__entry->mcast_rate, mcast_rate, 24255207ca55SJohannes Berg sizeof(int) * NUM_NL80211_BANDS); 24265207ca55SJohannes Berg ), 24275207ca55SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " 24285207ca55SJohannes Berg "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]", 24295207ca55SJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, 24305207ca55SJohannes Berg __entry->mcast_rate[NL80211_BAND_2GHZ], 24315207ca55SJohannes Berg __entry->mcast_rate[NL80211_BAND_5GHZ], 24325207ca55SJohannes Berg __entry->mcast_rate[NL80211_BAND_60GHZ]) 24335207ca55SJohannes Berg ); 24345207ca55SJohannes Berg 24355207ca55SJohannes Berg TRACE_EVENT(rdev_set_coalesce, 24365207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce), 24375207ca55SJohannes Berg TP_ARGS(wiphy, coalesce), 24385207ca55SJohannes Berg TP_STRUCT__entry( 24395207ca55SJohannes Berg WIPHY_ENTRY 24405207ca55SJohannes Berg __field(int, n_rules) 24415207ca55SJohannes Berg ), 24425207ca55SJohannes Berg TP_fast_assign( 24435207ca55SJohannes Berg WIPHY_ASSIGN; 24445207ca55SJohannes Berg __entry->n_rules = coalesce ? coalesce->n_rules : 0; 24455207ca55SJohannes Berg ), 24465207ca55SJohannes Berg TP_printk(WIPHY_PR_FMT ", n_rules=%d", 24475207ca55SJohannes Berg WIPHY_PR_ARG, __entry->n_rules) 24485207ca55SJohannes Berg ); 24495207ca55SJohannes Berg 24505207ca55SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan, 24515207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 24525207ca55SJohannes Berg TP_ARGS(wiphy, wdev) 24535207ca55SJohannes Berg ); 24545207ca55SJohannes Berg 24555207ca55SJohannes Berg TRACE_EVENT(rdev_set_multicast_to_unicast, 24565207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 24575207ca55SJohannes Berg const bool enabled), 24585207ca55SJohannes Berg TP_ARGS(wiphy, netdev, enabled), 24595207ca55SJohannes Berg TP_STRUCT__entry( 24605207ca55SJohannes Berg WIPHY_ENTRY 24615207ca55SJohannes Berg NETDEV_ENTRY 24625207ca55SJohannes Berg __field(bool, enabled) 24635207ca55SJohannes Berg ), 24645207ca55SJohannes Berg TP_fast_assign( 24655207ca55SJohannes Berg WIPHY_ASSIGN; 24665207ca55SJohannes Berg NETDEV_ASSIGN; 24675207ca55SJohannes Berg __entry->enabled = enabled; 24685207ca55SJohannes Berg ), 24695207ca55SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s", 24705207ca55SJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, 24715207ca55SJohannes Berg BOOL_TO_STR(__entry->enabled)) 24725207ca55SJohannes Berg ); 24735207ca55SJohannes Berg 24745207ca55SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats, 24755207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 24765207ca55SJohannes Berg TP_ARGS(wiphy, wdev) 24775207ca55SJohannes Berg ); 24785207ca55SJohannes Berg 24795207ca55SJohannes Berg TRACE_EVENT(rdev_get_ftm_responder_stats, 24805207ca55SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 24815207ca55SJohannes Berg struct cfg80211_ftm_responder_stats *ftm_stats), 24825207ca55SJohannes Berg 24835207ca55SJohannes Berg TP_ARGS(wiphy, netdev, ftm_stats), 24845207ca55SJohannes Berg 24855207ca55SJohannes Berg TP_STRUCT__entry( 24865207ca55SJohannes Berg WIPHY_ENTRY 24875207ca55SJohannes Berg NETDEV_ENTRY 24885207ca55SJohannes Berg __field(u64, timestamp) 24895207ca55SJohannes Berg __field(u32, success_num) 24905207ca55SJohannes Berg __field(u32, partial_num) 24915207ca55SJohannes Berg __field(u32, failed_num) 24925207ca55SJohannes Berg __field(u32, asap_num) 24935207ca55SJohannes Berg __field(u32, non_asap_num) 24945207ca55SJohannes Berg __field(u64, duration) 24955207ca55SJohannes Berg __field(u32, unknown_triggers) 24965207ca55SJohannes Berg __field(u32, reschedule) 24975207ca55SJohannes Berg __field(u32, out_of_window) 24985207ca55SJohannes Berg ), 24995207ca55SJohannes Berg 25005207ca55SJohannes Berg TP_fast_assign( 25015207ca55SJohannes Berg WIPHY_ASSIGN; 25025207ca55SJohannes Berg NETDEV_ASSIGN; 25035207ca55SJohannes Berg __entry->success_num = ftm_stats->success_num; 25045207ca55SJohannes Berg __entry->partial_num = ftm_stats->partial_num; 25055207ca55SJohannes Berg __entry->failed_num = ftm_stats->failed_num; 25065207ca55SJohannes Berg __entry->asap_num = ftm_stats->asap_num; 25075207ca55SJohannes Berg __entry->non_asap_num = ftm_stats->non_asap_num; 25085207ca55SJohannes Berg __entry->duration = ftm_stats->total_duration_ms; 25095207ca55SJohannes Berg __entry->unknown_triggers = ftm_stats->unknown_triggers_num; 25105207ca55SJohannes Berg __entry->reschedule = ftm_stats->reschedule_requests_num; 25115207ca55SJohannes Berg __entry->out_of_window = ftm_stats->out_of_window_triggers_num; 25125207ca55SJohannes Berg ), 25135207ca55SJohannes Berg 25145207ca55SJohannes Berg TP_printk(WIPHY_PR_FMT "Ftm responder stats: success %u, partial %u, " 25155207ca55SJohannes Berg "failed %u, asap %u, non asap %u, total duration %llu, unknown " 25165207ca55SJohannes Berg "triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG, 25175207ca55SJohannes Berg __entry->success_num, __entry->partial_num, __entry->failed_num, 25185207ca55SJohannes Berg __entry->asap_num, __entry->non_asap_num, __entry->duration, 25195207ca55SJohannes Berg __entry->unknown_triggers, __entry->reschedule, 25205207ca55SJohannes Berg __entry->out_of_window) 25215207ca55SJohannes Berg ); 25225207ca55SJohannes Berg 25239bb7e0f2SJohannes Berg DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_start_pmsr, 25249bb7e0f2SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 25259bb7e0f2SJohannes Berg TP_ARGS(wiphy, wdev, cookie) 25269bb7e0f2SJohannes Berg ); 25279bb7e0f2SJohannes Berg 25289bb7e0f2SJohannes Berg DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_abort_pmsr, 25299bb7e0f2SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 25309bb7e0f2SJohannes Berg TP_ARGS(wiphy, wdev, cookie) 25319bb7e0f2SJohannes Berg ); 25329bb7e0f2SJohannes Berg 25334ee3e063SBeni Lev /************************************************************* 25344ee3e063SBeni Lev * cfg80211 exported functions traces * 25354ee3e063SBeni Lev *************************************************************/ 25364ee3e063SBeni Lev 25374ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_bool, 25384ee3e063SBeni Lev TP_PROTO(bool ret), 25394ee3e063SBeni Lev TP_ARGS(ret), 25404ee3e063SBeni Lev TP_STRUCT__entry( 25414ee3e063SBeni Lev __field(bool, ret) 25424ee3e063SBeni Lev ), 25434ee3e063SBeni Lev TP_fast_assign( 25444ee3e063SBeni Lev __entry->ret = ret; 25454ee3e063SBeni Lev ), 25464ee3e063SBeni Lev TP_printk("returned %s", BOOL_TO_STR(__entry->ret)) 25474ee3e063SBeni Lev ); 25484ee3e063SBeni Lev 25494ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt, 25504ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 25514ee3e063SBeni Lev TP_ARGS(netdev, macaddr), 25524ee3e063SBeni Lev TP_STRUCT__entry( 25534ee3e063SBeni Lev NETDEV_ENTRY 25544ee3e063SBeni Lev MAC_ENTRY(macaddr) 25554ee3e063SBeni Lev ), 25564ee3e063SBeni Lev TP_fast_assign( 25574ee3e063SBeni Lev NETDEV_ASSIGN; 25584ee3e063SBeni Lev MAC_ASSIGN(macaddr, macaddr); 25594ee3e063SBeni Lev ), 25604ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 25614ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(macaddr)) 25624ee3e063SBeni Lev ); 25634ee3e063SBeni Lev 25644ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate, 25654ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 25664ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 25674ee3e063SBeni Lev ); 25684ee3e063SBeni Lev 25694ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_evt_only, 25704ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 25714ee3e063SBeni Lev TP_ARGS(netdev), 25724ee3e063SBeni Lev TP_STRUCT__entry( 25734ee3e063SBeni Lev NETDEV_ENTRY 25744ee3e063SBeni Lev ), 25754ee3e063SBeni Lev TP_fast_assign( 25764ee3e063SBeni Lev NETDEV_ASSIGN; 25774ee3e063SBeni Lev ), 25784ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG) 25794ee3e063SBeni Lev ); 25804ee3e063SBeni Lev 25814ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth, 25824ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 25834ee3e063SBeni Lev TP_ARGS(netdev) 25844ee3e063SBeni Lev ); 25854ee3e063SBeni Lev 25864ee3e063SBeni Lev TRACE_EVENT(cfg80211_send_rx_assoc, 25874ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss), 25884ee3e063SBeni Lev TP_ARGS(netdev, bss), 25894ee3e063SBeni Lev TP_STRUCT__entry( 25904ee3e063SBeni Lev NETDEV_ENTRY 25914ee3e063SBeni Lev MAC_ENTRY(bssid) 25924ee3e063SBeni Lev CHAN_ENTRY 25934ee3e063SBeni Lev ), 25944ee3e063SBeni Lev TP_fast_assign( 25954ee3e063SBeni Lev NETDEV_ASSIGN; 25964ee3e063SBeni Lev MAC_ASSIGN(bssid, bss->bssid); 25974ee3e063SBeni Lev CHAN_ASSIGN(bss->channel); 25984ee3e063SBeni Lev ), 2599ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", " CHAN_PR_FMT, 26004ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) 26014ee3e063SBeni Lev ); 26024ee3e063SBeni Lev 26036ff57cf8SJohannes Berg DECLARE_EVENT_CLASS(netdev_frame_event, 26046ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 26056ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len), 26066ff57cf8SJohannes Berg TP_STRUCT__entry( 26076ff57cf8SJohannes Berg NETDEV_ENTRY 26086ff57cf8SJohannes Berg __dynamic_array(u8, frame, len) 26096ff57cf8SJohannes Berg ), 26106ff57cf8SJohannes Berg TP_fast_assign( 26116ff57cf8SJohannes Berg NETDEV_ASSIGN; 26126ff57cf8SJohannes Berg memcpy(__get_dynamic_array(frame), buf, len); 26136ff57cf8SJohannes Berg ), 26146ff57cf8SJohannes Berg TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x", 26156ff57cf8SJohannes Berg NETDEV_PR_ARG, 26166ff57cf8SJohannes Berg le16_to_cpup((__le16 *)__get_dynamic_array(frame))) 26174ee3e063SBeni Lev ); 26184ee3e063SBeni Lev 26196ff57cf8SJohannes Berg DEFINE_EVENT(netdev_frame_event, cfg80211_rx_unprot_mlme_mgmt, 26206ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 26216ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len) 26224ee3e063SBeni Lev ); 26234ee3e063SBeni Lev 26246ff57cf8SJohannes Berg DEFINE_EVENT(netdev_frame_event, cfg80211_rx_mlme_mgmt, 26256ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 26266ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len) 26274ee3e063SBeni Lev ); 26284ee3e063SBeni Lev 26296ff57cf8SJohannes Berg TRACE_EVENT(cfg80211_tx_mlme_mgmt, 26306ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 26316ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len), 26326ff57cf8SJohannes Berg TP_STRUCT__entry( 26336ff57cf8SJohannes Berg NETDEV_ENTRY 26346ff57cf8SJohannes Berg __dynamic_array(u8, frame, len) 26356ff57cf8SJohannes Berg ), 26366ff57cf8SJohannes Berg TP_fast_assign( 26376ff57cf8SJohannes Berg NETDEV_ASSIGN; 26386ff57cf8SJohannes Berg memcpy(__get_dynamic_array(frame), buf, len); 26396ff57cf8SJohannes Berg ), 26406ff57cf8SJohannes Berg TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x", 26416ff57cf8SJohannes Berg NETDEV_PR_ARG, 26426ff57cf8SJohannes Berg le16_to_cpup((__le16 *)__get_dynamic_array(frame))) 26434ee3e063SBeni Lev ); 26444ee3e063SBeni Lev 26454ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_mac_evt, 26464ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 26474ee3e063SBeni Lev TP_ARGS(netdev, mac), 26484ee3e063SBeni Lev TP_STRUCT__entry( 26494ee3e063SBeni Lev NETDEV_ENTRY 26504ee3e063SBeni Lev MAC_ENTRY(mac) 26514ee3e063SBeni Lev ), 26524ee3e063SBeni Lev TP_fast_assign( 26534ee3e063SBeni Lev NETDEV_ASSIGN; 26544ee3e063SBeni Lev MAC_ASSIGN(mac, mac) 26554ee3e063SBeni Lev ), 26564ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 26574ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac)) 26584ee3e063SBeni Lev ); 26594ee3e063SBeni Lev 26604ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout, 26614ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 26624ee3e063SBeni Lev TP_ARGS(netdev, mac) 26634ee3e063SBeni Lev ); 26644ee3e063SBeni Lev 26654ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout, 26664ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 26674ee3e063SBeni Lev TP_ARGS(netdev, mac) 26684ee3e063SBeni Lev ); 26694ee3e063SBeni Lev 26704ee3e063SBeni Lev TRACE_EVENT(cfg80211_michael_mic_failure, 26714ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, 26724ee3e063SBeni Lev enum nl80211_key_type key_type, int key_id, const u8 *tsc), 26734ee3e063SBeni Lev TP_ARGS(netdev, addr, key_type, key_id, tsc), 26744ee3e063SBeni Lev TP_STRUCT__entry( 26754ee3e063SBeni Lev NETDEV_ENTRY 26764ee3e063SBeni Lev MAC_ENTRY(addr) 26774ee3e063SBeni Lev __field(enum nl80211_key_type, key_type) 26784ee3e063SBeni Lev __field(int, key_id) 26794ee3e063SBeni Lev __array(u8, tsc, 6) 26804ee3e063SBeni Lev ), 26814ee3e063SBeni Lev TP_fast_assign( 26824ee3e063SBeni Lev NETDEV_ASSIGN; 26834ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 26844ee3e063SBeni Lev __entry->key_type = key_type; 26854ee3e063SBeni Lev __entry->key_id = key_id; 26868c26d458SEliad Peller if (tsc) 26874ee3e063SBeni Lev memcpy(__entry->tsc, tsc, 6); 26884ee3e063SBeni Lev ), 2689ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm", 26904ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type, 26914ee3e063SBeni Lev __entry->key_id, __entry->tsc) 26924ee3e063SBeni Lev ); 26934ee3e063SBeni Lev 26944ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel, 26954ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 26964ee3e063SBeni Lev struct ieee80211_channel *chan, 269742d97a59SJohannes Berg unsigned int duration), 269842d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan, duration), 26994ee3e063SBeni Lev TP_STRUCT__entry( 27004ee3e063SBeni Lev WDEV_ENTRY 27014ee3e063SBeni Lev __field(u64, cookie) 27024ee3e063SBeni Lev CHAN_ENTRY 27034ee3e063SBeni Lev __field(unsigned int, duration) 27044ee3e063SBeni Lev ), 27054ee3e063SBeni Lev TP_fast_assign( 27064ee3e063SBeni Lev WDEV_ASSIGN; 27074ee3e063SBeni Lev __entry->cookie = cookie; 27084ee3e063SBeni Lev CHAN_ASSIGN(chan); 27094ee3e063SBeni Lev __entry->duration = duration; 27104ee3e063SBeni Lev ), 271142d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u", 27124ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, 271342d97a59SJohannes Berg __entry->duration) 27144ee3e063SBeni Lev ); 27154ee3e063SBeni Lev 27164ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel_expired, 27174ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 271842d97a59SJohannes Berg struct ieee80211_channel *chan), 271942d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan), 27204ee3e063SBeni Lev TP_STRUCT__entry( 27214ee3e063SBeni Lev WDEV_ENTRY 27224ee3e063SBeni Lev __field(u64, cookie) 27234ee3e063SBeni Lev CHAN_ENTRY 27244ee3e063SBeni Lev ), 27254ee3e063SBeni Lev TP_fast_assign( 27264ee3e063SBeni Lev WDEV_ASSIGN; 27274ee3e063SBeni Lev __entry->cookie = cookie; 27284ee3e063SBeni Lev CHAN_ASSIGN(chan); 27294ee3e063SBeni Lev ), 273042d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, 273142d97a59SJohannes Berg WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) 27324ee3e063SBeni Lev ); 27334ee3e063SBeni Lev 27344ee3e063SBeni Lev TRACE_EVENT(cfg80211_new_sta, 27354ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac_addr, 27364ee3e063SBeni Lev struct station_info *sinfo), 27374ee3e063SBeni Lev TP_ARGS(netdev, mac_addr, sinfo), 27384ee3e063SBeni Lev TP_STRUCT__entry( 27394ee3e063SBeni Lev NETDEV_ENTRY 27404ee3e063SBeni Lev MAC_ENTRY(mac_addr) 27414ee3e063SBeni Lev SINFO_ENTRY 27424ee3e063SBeni Lev ), 27434ee3e063SBeni Lev TP_fast_assign( 27444ee3e063SBeni Lev NETDEV_ASSIGN; 27454ee3e063SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 27464ee3e063SBeni Lev SINFO_ASSIGN; 27474ee3e063SBeni Lev ), 2748ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, 27494ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac_addr)) 27504ee3e063SBeni Lev ); 27514ee3e063SBeni Lev 27524ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta, 27534ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 27544ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 27554ee3e063SBeni Lev ); 27564ee3e063SBeni Lev 27574ee3e063SBeni Lev TRACE_EVENT(cfg80211_rx_mgmt, 27586c2fb1e6SSergey Matyukevich TP_PROTO(struct wireless_dev *wdev, int freq, int sig_dbm), 27596c2fb1e6SSergey Matyukevich TP_ARGS(wdev, freq, sig_dbm), 27604ee3e063SBeni Lev TP_STRUCT__entry( 27614ee3e063SBeni Lev WDEV_ENTRY 27624ee3e063SBeni Lev __field(int, freq) 27636c2fb1e6SSergey Matyukevich __field(int, sig_dbm) 27644ee3e063SBeni Lev ), 27654ee3e063SBeni Lev TP_fast_assign( 27664ee3e063SBeni Lev WDEV_ASSIGN; 27674ee3e063SBeni Lev __entry->freq = freq; 27686c2fb1e6SSergey Matyukevich __entry->sig_dbm = sig_dbm; 27694ee3e063SBeni Lev ), 27706c2fb1e6SSergey Matyukevich TP_printk(WDEV_PR_FMT ", freq: %d, sig dbm: %d", 27716c2fb1e6SSergey Matyukevich WDEV_PR_ARG, __entry->freq, __entry->sig_dbm) 27724ee3e063SBeni Lev ); 27734ee3e063SBeni Lev 27744ee3e063SBeni Lev TRACE_EVENT(cfg80211_mgmt_tx_status, 27754ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), 27764ee3e063SBeni Lev TP_ARGS(wdev, cookie, ack), 27774ee3e063SBeni Lev TP_STRUCT__entry( 27784ee3e063SBeni Lev WDEV_ENTRY 27794ee3e063SBeni Lev __field(u64, cookie) 27804ee3e063SBeni Lev __field(bool, ack) 27814ee3e063SBeni Lev ), 27824ee3e063SBeni Lev TP_fast_assign( 27834ee3e063SBeni Lev WDEV_ASSIGN; 27844ee3e063SBeni Lev __entry->cookie = cookie; 27854ee3e063SBeni Lev __entry->ack = ack; 27864ee3e063SBeni Lev ), 27874ee3e063SBeni Lev TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", 27884ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) 27894ee3e063SBeni Lev ); 27904ee3e063SBeni Lev 27916a671a50SDenis Kenzior TRACE_EVENT(cfg80211_rx_control_port, 2792a948f713SDenis Kenzior TP_PROTO(struct net_device *netdev, struct sk_buff *skb, 2793a948f713SDenis Kenzior bool unencrypted), 2794a948f713SDenis Kenzior TP_ARGS(netdev, skb, unencrypted), 27956a671a50SDenis Kenzior TP_STRUCT__entry( 27966a671a50SDenis Kenzior NETDEV_ENTRY 2797a948f713SDenis Kenzior __field(int, len) 2798a948f713SDenis Kenzior MAC_ENTRY(from) 27996a671a50SDenis Kenzior __field(u16, proto) 28006a671a50SDenis Kenzior __field(bool, unencrypted) 28016a671a50SDenis Kenzior ), 28026a671a50SDenis Kenzior TP_fast_assign( 28036a671a50SDenis Kenzior NETDEV_ASSIGN; 2804a948f713SDenis Kenzior __entry->len = skb->len; 2805a948f713SDenis Kenzior MAC_ASSIGN(from, eth_hdr(skb)->h_source); 2806a948f713SDenis Kenzior __entry->proto = be16_to_cpu(skb->protocol); 28076a671a50SDenis Kenzior __entry->unencrypted = unencrypted; 28086a671a50SDenis Kenzior ), 2809a948f713SDenis Kenzior TP_printk(NETDEV_PR_FMT ", len=%d, " MAC_PR_FMT ", proto: 0x%x, unencrypted: %s", 2810a948f713SDenis Kenzior NETDEV_PR_ARG, __entry->len, MAC_PR_ARG(from), 28116a671a50SDenis Kenzior __entry->proto, BOOL_TO_STR(__entry->unencrypted)) 28126a671a50SDenis Kenzior ); 28136a671a50SDenis Kenzior 28144ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_rssi_notify, 28154ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, 2816bee427b8SAndrzej Zaborowski enum nl80211_cqm_rssi_threshold_event rssi_event, 2817bee427b8SAndrzej Zaborowski s32 rssi_level), 2818bee427b8SAndrzej Zaborowski TP_ARGS(netdev, rssi_event, rssi_level), 28194ee3e063SBeni Lev TP_STRUCT__entry( 28204ee3e063SBeni Lev NETDEV_ENTRY 28214ee3e063SBeni Lev __field(enum nl80211_cqm_rssi_threshold_event, rssi_event) 2822bee427b8SAndrzej Zaborowski __field(s32, rssi_level) 28234ee3e063SBeni Lev ), 28244ee3e063SBeni Lev TP_fast_assign( 28254ee3e063SBeni Lev NETDEV_ASSIGN; 28264ee3e063SBeni Lev __entry->rssi_event = rssi_event; 2827bee427b8SAndrzej Zaborowski __entry->rssi_level = rssi_level; 28284ee3e063SBeni Lev ), 2829bee427b8SAndrzej Zaborowski TP_printk(NETDEV_PR_FMT ", rssi event: %d, level: %d", 2830bee427b8SAndrzej Zaborowski NETDEV_PR_ARG, __entry->rssi_event, __entry->rssi_level) 28314ee3e063SBeni Lev ); 28324ee3e063SBeni Lev 2833683b6d3bSJohannes Berg TRACE_EVENT(cfg80211_reg_can_beacon, 2834174e0cd2SIlan Peer TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, 2835923b352fSArik Nemtsov enum nl80211_iftype iftype, bool check_no_ir), 2836923b352fSArik Nemtsov TP_ARGS(wiphy, chandef, iftype, check_no_ir), 28374ee3e063SBeni Lev TP_STRUCT__entry( 28384ee3e063SBeni Lev WIPHY_ENTRY 2839683b6d3bSJohannes Berg CHAN_DEF_ENTRY 2840174e0cd2SIlan Peer __field(enum nl80211_iftype, iftype) 2841923b352fSArik Nemtsov __field(bool, check_no_ir) 28424ee3e063SBeni Lev ), 28434ee3e063SBeni Lev TP_fast_assign( 28444ee3e063SBeni Lev WIPHY_ASSIGN; 2845683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 2846174e0cd2SIlan Peer __entry->iftype = iftype; 2847923b352fSArik Nemtsov __entry->check_no_ir = check_no_ir; 28484ee3e063SBeni Lev ), 2849923b352fSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", iftype=%d check_no_ir=%s", 2850923b352fSArik Nemtsov WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype, 2851923b352fSArik Nemtsov BOOL_TO_STR(__entry->check_no_ir)) 28524ee3e063SBeni Lev ); 28534ee3e063SBeni Lev 285404f39047SSimon Wunderlich TRACE_EVENT(cfg80211_chandef_dfs_required, 285504f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 285604f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 285704f39047SSimon Wunderlich TP_STRUCT__entry( 285804f39047SSimon Wunderlich WIPHY_ENTRY 285904f39047SSimon Wunderlich CHAN_DEF_ENTRY 286004f39047SSimon Wunderlich ), 286104f39047SSimon Wunderlich TP_fast_assign( 286204f39047SSimon Wunderlich WIPHY_ASSIGN; 286304f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 286404f39047SSimon Wunderlich ), 286504f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 286604f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 286704f39047SSimon Wunderlich ); 286804f39047SSimon Wunderlich 28694ee3e063SBeni Lev TRACE_EVENT(cfg80211_ch_switch_notify, 2870683b6d3bSJohannes Berg TP_PROTO(struct net_device *netdev, 2871683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 2872683b6d3bSJohannes Berg TP_ARGS(netdev, chandef), 28734ee3e063SBeni Lev TP_STRUCT__entry( 28744ee3e063SBeni Lev NETDEV_ENTRY 2875683b6d3bSJohannes Berg CHAN_DEF_ENTRY 28764ee3e063SBeni Lev ), 28774ee3e063SBeni Lev TP_fast_assign( 28784ee3e063SBeni Lev NETDEV_ASSIGN; 2879683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 28804ee3e063SBeni Lev ), 2881ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2882683b6d3bSJohannes Berg NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 28834ee3e063SBeni Lev ); 28844ee3e063SBeni Lev 2885f8d7552eSLuciano Coelho TRACE_EVENT(cfg80211_ch_switch_started_notify, 2886f8d7552eSLuciano Coelho TP_PROTO(struct net_device *netdev, 2887f8d7552eSLuciano Coelho struct cfg80211_chan_def *chandef), 2888f8d7552eSLuciano Coelho TP_ARGS(netdev, chandef), 2889f8d7552eSLuciano Coelho TP_STRUCT__entry( 2890f8d7552eSLuciano Coelho NETDEV_ENTRY 2891f8d7552eSLuciano Coelho CHAN_DEF_ENTRY 2892f8d7552eSLuciano Coelho ), 2893f8d7552eSLuciano Coelho TP_fast_assign( 2894f8d7552eSLuciano Coelho NETDEV_ASSIGN; 2895f8d7552eSLuciano Coelho CHAN_DEF_ASSIGN(chandef); 2896f8d7552eSLuciano Coelho ), 2897f8d7552eSLuciano Coelho TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2898f8d7552eSLuciano Coelho NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 2899f8d7552eSLuciano Coelho ); 2900f8d7552eSLuciano Coelho 290104f39047SSimon Wunderlich TRACE_EVENT(cfg80211_radar_event, 290204f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 290304f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 290404f39047SSimon Wunderlich TP_STRUCT__entry( 290504f39047SSimon Wunderlich WIPHY_ENTRY 290604f39047SSimon Wunderlich CHAN_DEF_ENTRY 290704f39047SSimon Wunderlich ), 290804f39047SSimon Wunderlich TP_fast_assign( 290904f39047SSimon Wunderlich WIPHY_ASSIGN; 291004f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 291104f39047SSimon Wunderlich ), 291204f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 291304f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 291404f39047SSimon Wunderlich ); 291504f39047SSimon Wunderlich 291604f39047SSimon Wunderlich TRACE_EVENT(cfg80211_cac_event, 291704f39047SSimon Wunderlich TP_PROTO(struct net_device *netdev, enum nl80211_radar_event evt), 291804f39047SSimon Wunderlich TP_ARGS(netdev, evt), 291904f39047SSimon Wunderlich TP_STRUCT__entry( 292004f39047SSimon Wunderlich NETDEV_ENTRY 292104f39047SSimon Wunderlich __field(enum nl80211_radar_event, evt) 292204f39047SSimon Wunderlich ), 292304f39047SSimon Wunderlich TP_fast_assign( 292404f39047SSimon Wunderlich NETDEV_ASSIGN; 292504f39047SSimon Wunderlich __entry->evt = evt; 292604f39047SSimon Wunderlich ), 292704f39047SSimon Wunderlich TP_printk(NETDEV_PR_FMT ", event: %d", 292804f39047SSimon Wunderlich NETDEV_PR_ARG, __entry->evt) 292904f39047SSimon Wunderlich ); 293004f39047SSimon Wunderlich 29314ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_rx_evt, 29324ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 29334ee3e063SBeni Lev TP_ARGS(netdev, addr), 29344ee3e063SBeni Lev TP_STRUCT__entry( 29354ee3e063SBeni Lev NETDEV_ENTRY 29364ee3e063SBeni Lev MAC_ENTRY(addr) 29374ee3e063SBeni Lev ), 29384ee3e063SBeni Lev TP_fast_assign( 29394ee3e063SBeni Lev NETDEV_ASSIGN; 29404ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 29414ee3e063SBeni Lev ), 2942ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr)) 29434ee3e063SBeni Lev ); 29444ee3e063SBeni Lev 29454ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame, 29464ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 29474ee3e063SBeni Lev TP_ARGS(netdev, addr) 29484ee3e063SBeni Lev ); 29494ee3e063SBeni Lev 29504ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame, 29514ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 29524ee3e063SBeni Lev TP_ARGS(netdev, addr) 29534ee3e063SBeni Lev ); 29544ee3e063SBeni Lev 2955fe94f3a4SAntonio Quartulli TRACE_EVENT(cfg80211_ibss_joined, 2956fe94f3a4SAntonio Quartulli TP_PROTO(struct net_device *netdev, const u8 *bssid, 2957fe94f3a4SAntonio Quartulli struct ieee80211_channel *channel), 2958fe94f3a4SAntonio Quartulli TP_ARGS(netdev, bssid, channel), 2959fe94f3a4SAntonio Quartulli TP_STRUCT__entry( 2960fe94f3a4SAntonio Quartulli NETDEV_ENTRY 2961fe94f3a4SAntonio Quartulli MAC_ENTRY(bssid) 2962fe94f3a4SAntonio Quartulli CHAN_ENTRY 2963fe94f3a4SAntonio Quartulli ), 2964fe94f3a4SAntonio Quartulli TP_fast_assign( 2965fe94f3a4SAntonio Quartulli NETDEV_ASSIGN; 2966fe94f3a4SAntonio Quartulli MAC_ASSIGN(bssid, bssid); 2967fe94f3a4SAntonio Quartulli CHAN_ASSIGN(channel); 2968fe94f3a4SAntonio Quartulli ), 2969fe94f3a4SAntonio Quartulli TP_printk(NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", " CHAN_PR_FMT, 2970fe94f3a4SAntonio Quartulli NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) 2971fe94f3a4SAntonio Quartulli ); 2972fe94f3a4SAntonio Quartulli 29734ee3e063SBeni Lev TRACE_EVENT(cfg80211_probe_status, 29744ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie, 29754ee3e063SBeni Lev bool acked), 29764ee3e063SBeni Lev TP_ARGS(netdev, addr, cookie, acked), 29774ee3e063SBeni Lev TP_STRUCT__entry( 29784ee3e063SBeni Lev NETDEV_ENTRY 29794ee3e063SBeni Lev MAC_ENTRY(addr) 29804ee3e063SBeni Lev __field(u64, cookie) 29814ee3e063SBeni Lev __field(bool, acked) 29824ee3e063SBeni Lev ), 29834ee3e063SBeni Lev TP_fast_assign( 29844ee3e063SBeni Lev NETDEV_ASSIGN; 29854ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 29864ee3e063SBeni Lev __entry->cookie = cookie; 29874ee3e063SBeni Lev __entry->acked = acked; 29884ee3e063SBeni Lev ), 2989ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT " addr:" MAC_PR_FMT ", cookie: %llu, acked: %s", 29904ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie, 29914ee3e063SBeni Lev BOOL_TO_STR(__entry->acked)) 29924ee3e063SBeni Lev ); 29934ee3e063SBeni Lev 29944ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_pktloss_notify, 29954ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets), 29964ee3e063SBeni Lev TP_ARGS(netdev, peer, num_packets), 29974ee3e063SBeni Lev TP_STRUCT__entry( 29984ee3e063SBeni Lev NETDEV_ENTRY 29994ee3e063SBeni Lev MAC_ENTRY(peer) 30004ee3e063SBeni Lev __field(u32, num_packets) 30014ee3e063SBeni Lev ), 30024ee3e063SBeni Lev TP_fast_assign( 30034ee3e063SBeni Lev NETDEV_ASSIGN; 30044ee3e063SBeni Lev MAC_ASSIGN(peer, peer); 30054ee3e063SBeni Lev __entry->num_packets = num_packets; 30064ee3e063SBeni Lev ), 30074ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u", 30084ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets) 30094ee3e063SBeni Lev ); 30104ee3e063SBeni Lev 30114ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify, 30124ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 30134ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 30144ee3e063SBeni Lev ); 30154ee3e063SBeni Lev 30164ee3e063SBeni Lev TRACE_EVENT(cfg80211_pmksa_candidate_notify, 30174ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, int index, const u8 *bssid, 30184ee3e063SBeni Lev bool preauth), 30194ee3e063SBeni Lev TP_ARGS(netdev, index, bssid, preauth), 30204ee3e063SBeni Lev TP_STRUCT__entry( 30214ee3e063SBeni Lev NETDEV_ENTRY 30224ee3e063SBeni Lev __field(int, index) 30234ee3e063SBeni Lev MAC_ENTRY(bssid) 30244ee3e063SBeni Lev __field(bool, preauth) 30254ee3e063SBeni Lev ), 30264ee3e063SBeni Lev TP_fast_assign( 30274ee3e063SBeni Lev NETDEV_ASSIGN; 30284ee3e063SBeni Lev __entry->index = index; 30294ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 30304ee3e063SBeni Lev __entry->preauth = preauth; 30314ee3e063SBeni Lev ), 30324ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s", 30334ee3e063SBeni Lev NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid), 30344ee3e063SBeni Lev BOOL_TO_STR(__entry->preauth)) 30354ee3e063SBeni Lev ); 30364ee3e063SBeni Lev 30374ee3e063SBeni Lev TRACE_EVENT(cfg80211_report_obss_beacon, 30384ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len, 30394ee3e063SBeni Lev int freq, int sig_dbm), 30404ee3e063SBeni Lev TP_ARGS(wiphy, frame, len, freq, sig_dbm), 30414ee3e063SBeni Lev TP_STRUCT__entry( 30424ee3e063SBeni Lev WIPHY_ENTRY 30434ee3e063SBeni Lev __field(int, freq) 30444ee3e063SBeni Lev __field(int, sig_dbm) 30454ee3e063SBeni Lev ), 30464ee3e063SBeni Lev TP_fast_assign( 30474ee3e063SBeni Lev WIPHY_ASSIGN; 30484ee3e063SBeni Lev __entry->freq = freq; 30494ee3e063SBeni Lev __entry->sig_dbm = sig_dbm; 30504ee3e063SBeni Lev ), 30514ee3e063SBeni Lev TP_printk(WIPHY_PR_FMT ", freq: %d, sig_dbm: %d", 30524ee3e063SBeni Lev WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm) 30534ee3e063SBeni Lev ); 30544ee3e063SBeni Lev 30553475b094SJouni Malinen TRACE_EVENT(cfg80211_tdls_oper_request, 30563475b094SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer, 30573475b094SJouni Malinen enum nl80211_tdls_operation oper, u16 reason_code), 30583475b094SJouni Malinen TP_ARGS(wiphy, netdev, peer, oper, reason_code), 30593475b094SJouni Malinen TP_STRUCT__entry( 30603475b094SJouni Malinen WIPHY_ENTRY 30613475b094SJouni Malinen NETDEV_ENTRY 30623475b094SJouni Malinen MAC_ENTRY(peer) 30633475b094SJouni Malinen __field(enum nl80211_tdls_operation, oper) 30643475b094SJouni Malinen __field(u16, reason_code) 30653475b094SJouni Malinen ), 30663475b094SJouni Malinen TP_fast_assign( 30673475b094SJouni Malinen WIPHY_ASSIGN; 30683475b094SJouni Malinen NETDEV_ASSIGN; 30693475b094SJouni Malinen MAC_ASSIGN(peer, peer); 30703475b094SJouni Malinen __entry->oper = oper; 30713475b094SJouni Malinen __entry->reason_code = reason_code; 30723475b094SJouni Malinen ), 30733475b094SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u", 30743475b094SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper, 30753475b094SJouni Malinen __entry->reason_code) 30763475b094SJouni Malinen ); 30773475b094SJouni Malinen 30784ee3e063SBeni Lev TRACE_EVENT(cfg80211_scan_done, 30791d76250bSAvraham Stern TP_PROTO(struct cfg80211_scan_request *request, 30801d76250bSAvraham Stern struct cfg80211_scan_info *info), 30811d76250bSAvraham Stern TP_ARGS(request, info), 30824ee3e063SBeni Lev TP_STRUCT__entry( 30834ee3e063SBeni Lev __field(u32, n_channels) 30844ee3e063SBeni Lev __dynamic_array(u8, ie, request ? request->ie_len : 0) 308557fbcce3SJohannes Berg __array(u32, rates, NUM_NL80211_BANDS) 30864ee3e063SBeni Lev __field(u32, wdev_id) 30874ee3e063SBeni Lev MAC_ENTRY(wiphy_mac) 30884ee3e063SBeni Lev __field(bool, no_cck) 30894ee3e063SBeni Lev __field(bool, aborted) 30901d76250bSAvraham Stern __field(u64, scan_start_tsf) 30911d76250bSAvraham Stern MAC_ENTRY(tsf_bssid) 30924ee3e063SBeni Lev ), 30934ee3e063SBeni Lev TP_fast_assign( 30944ee3e063SBeni Lev if (request) { 30954ee3e063SBeni Lev memcpy(__get_dynamic_array(ie), request->ie, 30964ee3e063SBeni Lev request->ie_len); 30974ee3e063SBeni Lev memcpy(__entry->rates, request->rates, 309857fbcce3SJohannes Berg NUM_NL80211_BANDS); 30994ee3e063SBeni Lev __entry->wdev_id = request->wdev ? 31004ee3e063SBeni Lev request->wdev->identifier : 0; 31014ee3e063SBeni Lev if (request->wiphy) 31024ee3e063SBeni Lev MAC_ASSIGN(wiphy_mac, 31034ee3e063SBeni Lev request->wiphy->perm_addr); 31044ee3e063SBeni Lev __entry->no_cck = request->no_cck; 31054ee3e063SBeni Lev } 31061d76250bSAvraham Stern if (info) { 31071d76250bSAvraham Stern __entry->aborted = info->aborted; 31081d76250bSAvraham Stern __entry->scan_start_tsf = info->scan_start_tsf; 31091d76250bSAvraham Stern MAC_ASSIGN(tsf_bssid, info->tsf_bssid); 31101d76250bSAvraham Stern } 31114ee3e063SBeni Lev ), 31121d76250bSAvraham Stern TP_printk("aborted: %s, scan start (TSF): %llu, tsf_bssid: " MAC_PR_FMT, 31131d76250bSAvraham Stern BOOL_TO_STR(__entry->aborted), 31141d76250bSAvraham Stern (unsigned long long)__entry->scan_start_tsf, 31151d76250bSAvraham Stern MAC_PR_ARG(tsf_bssid)) 31164ee3e063SBeni Lev ); 31174ee3e063SBeni Lev 3118b34939b9SArend Van Spriel DECLARE_EVENT_CLASS(wiphy_id_evt, 3119b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 3120b34939b9SArend Van Spriel TP_ARGS(wiphy, id), 3121b34939b9SArend Van Spriel TP_STRUCT__entry( 3122b34939b9SArend Van Spriel WIPHY_ENTRY 3123b34939b9SArend Van Spriel __field(u64, id) 3124b34939b9SArend Van Spriel ), 3125b34939b9SArend Van Spriel TP_fast_assign( 3126b34939b9SArend Van Spriel WIPHY_ASSIGN; 3127b34939b9SArend Van Spriel __entry->id = id; 3128b34939b9SArend Van Spriel ), 3129b34939b9SArend Van Spriel TP_printk(WIPHY_PR_FMT ", id: %llu", WIPHY_PR_ARG, __entry->id) 31304ee3e063SBeni Lev ); 31314ee3e063SBeni Lev 3132b34939b9SArend Van Spriel DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_stopped, 3133b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 3134b34939b9SArend Van Spriel TP_ARGS(wiphy, id) 3135b34939b9SArend Van Spriel ); 3136b34939b9SArend Van Spriel 3137b34939b9SArend Van Spriel DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_results, 3138b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 3139b34939b9SArend Van Spriel TP_ARGS(wiphy, id) 31404ee3e063SBeni Lev ); 31414ee3e063SBeni Lev 31424ee3e063SBeni Lev TRACE_EVENT(cfg80211_get_bss, 31434ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, 31444ee3e063SBeni Lev const u8 *bssid, const u8 *ssid, size_t ssid_len, 31456eb18137SDedy Lansky enum ieee80211_bss_type bss_type, 31466eb18137SDedy Lansky enum ieee80211_privacy privacy), 31476eb18137SDedy Lansky TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, bss_type, privacy), 31484ee3e063SBeni Lev TP_STRUCT__entry( 31494ee3e063SBeni Lev WIPHY_ENTRY 31504ee3e063SBeni Lev CHAN_ENTRY 31514ee3e063SBeni Lev MAC_ENTRY(bssid) 31524ee3e063SBeni Lev __dynamic_array(u8, ssid, ssid_len) 31536eb18137SDedy Lansky __field(enum ieee80211_bss_type, bss_type) 31546eb18137SDedy Lansky __field(enum ieee80211_privacy, privacy) 31554ee3e063SBeni Lev ), 31564ee3e063SBeni Lev TP_fast_assign( 31574ee3e063SBeni Lev WIPHY_ASSIGN; 31584ee3e063SBeni Lev CHAN_ASSIGN(channel); 31594ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 31604ee3e063SBeni Lev memcpy(__get_dynamic_array(ssid), ssid, ssid_len); 31616eb18137SDedy Lansky __entry->bss_type = bss_type; 31626eb18137SDedy Lansky __entry->privacy = privacy; 31634ee3e063SBeni Lev ), 31646eb18137SDedy Lansky TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", " MAC_PR_FMT 31656eb18137SDedy Lansky ", buf: %#.2x, bss_type: %d, privacy: %d", 31666eb18137SDedy Lansky WIPHY_PR_ARG, CHAN_PR_ARG, MAC_PR_ARG(bssid), 31676eb18137SDedy Lansky ((u8 *)__get_dynamic_array(ssid))[0], __entry->bss_type, 31686eb18137SDedy Lansky __entry->privacy) 31694ee3e063SBeni Lev ); 31704ee3e063SBeni Lev 31716e19bc4bSDmitry Shmidt TRACE_EVENT(cfg80211_inform_bss_frame, 31726e19bc4bSDmitry Shmidt TP_PROTO(struct wiphy *wiphy, struct cfg80211_inform_bss *data, 31736e19bc4bSDmitry Shmidt struct ieee80211_mgmt *mgmt, size_t len), 31746e19bc4bSDmitry Shmidt TP_ARGS(wiphy, data, mgmt, len), 31754ee3e063SBeni Lev TP_STRUCT__entry( 31764ee3e063SBeni Lev WIPHY_ENTRY 31774ee3e063SBeni Lev CHAN_ENTRY 3178dcd6eac1SSimon Wunderlich __field(enum nl80211_bss_scan_width, scan_width) 31794ee3e063SBeni Lev __dynamic_array(u8, mgmt, len) 31804ee3e063SBeni Lev __field(s32, signal) 31816e19bc4bSDmitry Shmidt __field(u64, ts_boottime) 31821d76250bSAvraham Stern __field(u64, parent_tsf) 31831d76250bSAvraham Stern MAC_ENTRY(parent_bssid) 31844ee3e063SBeni Lev ), 31854ee3e063SBeni Lev TP_fast_assign( 31864ee3e063SBeni Lev WIPHY_ASSIGN; 31876e19bc4bSDmitry Shmidt CHAN_ASSIGN(data->chan); 31886e19bc4bSDmitry Shmidt __entry->scan_width = data->scan_width; 31894ee3e063SBeni Lev if (mgmt) 31904ee3e063SBeni Lev memcpy(__get_dynamic_array(mgmt), mgmt, len); 31916e19bc4bSDmitry Shmidt __entry->signal = data->signal; 31926e19bc4bSDmitry Shmidt __entry->ts_boottime = data->boottime_ns; 31931d76250bSAvraham Stern __entry->parent_tsf = data->parent_tsf; 31941d76250bSAvraham Stern MAC_ASSIGN(parent_bssid, data->parent_bssid); 31954ee3e063SBeni Lev ), 31961d76250bSAvraham Stern TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT 31971d76250bSAvraham Stern "(scan_width: %d) signal: %d, tsb:%llu, detect_tsf:%llu, tsf_bssid: " 31981d76250bSAvraham Stern MAC_PR_FMT, WIPHY_PR_ARG, CHAN_PR_ARG, __entry->scan_width, 31991d76250bSAvraham Stern __entry->signal, (unsigned long long)__entry->ts_boottime, 32001d76250bSAvraham Stern (unsigned long long)__entry->parent_tsf, 32011d76250bSAvraham Stern MAC_PR_ARG(parent_bssid)) 32024ee3e063SBeni Lev ); 32034ee3e063SBeni Lev 32044ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_bss_evt, 32054ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 32064ee3e063SBeni Lev TP_ARGS(pub), 32074ee3e063SBeni Lev TP_STRUCT__entry( 32084ee3e063SBeni Lev MAC_ENTRY(bssid) 32094ee3e063SBeni Lev CHAN_ENTRY 32104ee3e063SBeni Lev ), 32114ee3e063SBeni Lev TP_fast_assign( 32124ee3e063SBeni Lev MAC_ASSIGN(bssid, pub->bssid); 32134ee3e063SBeni Lev CHAN_ASSIGN(pub->channel); 32144ee3e063SBeni Lev ), 3215ec816087SJohannes Berg TP_printk(MAC_PR_FMT ", " CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG) 32164ee3e063SBeni Lev ); 32174ee3e063SBeni Lev 32184ee3e063SBeni Lev DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, 32194ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 32204ee3e063SBeni Lev TP_ARGS(pub) 32214ee3e063SBeni Lev ); 32224ee3e063SBeni Lev 32234ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_uint, 32244ee3e063SBeni Lev TP_PROTO(unsigned int ret), 32254ee3e063SBeni Lev TP_ARGS(ret), 32264ee3e063SBeni Lev TP_STRUCT__entry( 32274ee3e063SBeni Lev __field(unsigned int, ret) 32284ee3e063SBeni Lev ), 32294ee3e063SBeni Lev TP_fast_assign( 32304ee3e063SBeni Lev __entry->ret = ret; 32314ee3e063SBeni Lev ), 32324ee3e063SBeni Lev TP_printk("ret: %d", __entry->ret) 32334ee3e063SBeni Lev ); 32344ee3e063SBeni Lev 32354ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_u32, 32364ee3e063SBeni Lev TP_PROTO(u32 ret), 32374ee3e063SBeni Lev TP_ARGS(ret), 32384ee3e063SBeni Lev TP_STRUCT__entry( 32394ee3e063SBeni Lev __field(u32, ret) 32404ee3e063SBeni Lev ), 32414ee3e063SBeni Lev TP_fast_assign( 32424ee3e063SBeni Lev __entry->ret = ret; 32434ee3e063SBeni Lev ), 32444ee3e063SBeni Lev TP_printk("ret: %u", __entry->ret) 32454ee3e063SBeni Lev ); 32464ee3e063SBeni Lev 3247cd8f7cb4SJohannes Berg TRACE_EVENT(cfg80211_report_wowlan_wakeup, 3248cd8f7cb4SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3249cd8f7cb4SJohannes Berg struct cfg80211_wowlan_wakeup *wakeup), 3250cd8f7cb4SJohannes Berg TP_ARGS(wiphy, wdev, wakeup), 3251cd8f7cb4SJohannes Berg TP_STRUCT__entry( 3252cd8f7cb4SJohannes Berg WIPHY_ENTRY 3253cd8f7cb4SJohannes Berg WDEV_ENTRY 3254a92eecbbSJohannes Berg __field(bool, non_wireless) 3255cd8f7cb4SJohannes Berg __field(bool, disconnect) 3256cd8f7cb4SJohannes Berg __field(bool, magic_pkt) 3257cd8f7cb4SJohannes Berg __field(bool, gtk_rekey_failure) 3258cd8f7cb4SJohannes Berg __field(bool, eap_identity_req) 3259cd8f7cb4SJohannes Berg __field(bool, four_way_handshake) 3260cd8f7cb4SJohannes Berg __field(bool, rfkill_release) 3261cd8f7cb4SJohannes Berg __field(s32, pattern_idx) 3262cd8f7cb4SJohannes Berg __field(u32, packet_len) 3263a92eecbbSJohannes Berg __dynamic_array(u8, packet, 3264a92eecbbSJohannes Berg wakeup ? wakeup->packet_present_len : 0) 3265cd8f7cb4SJohannes Berg ), 3266cd8f7cb4SJohannes Berg TP_fast_assign( 3267cd8f7cb4SJohannes Berg WIPHY_ASSIGN; 3268cd8f7cb4SJohannes Berg WDEV_ASSIGN; 3269a92eecbbSJohannes Berg __entry->non_wireless = !wakeup; 3270a92eecbbSJohannes Berg __entry->disconnect = wakeup ? wakeup->disconnect : false; 3271a92eecbbSJohannes Berg __entry->magic_pkt = wakeup ? wakeup->magic_pkt : false; 3272a92eecbbSJohannes Berg __entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false; 3273a92eecbbSJohannes Berg __entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false; 3274a92eecbbSJohannes Berg __entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false; 3275a92eecbbSJohannes Berg __entry->rfkill_release = wakeup ? wakeup->rfkill_release : false; 3276a92eecbbSJohannes Berg __entry->pattern_idx = wakeup ? wakeup->pattern_idx : false; 3277a92eecbbSJohannes Berg __entry->packet_len = wakeup ? wakeup->packet_len : false; 3278a92eecbbSJohannes Berg if (wakeup && wakeup->packet && wakeup->packet_present_len) 3279cd8f7cb4SJohannes Berg memcpy(__get_dynamic_array(packet), wakeup->packet, 3280cd8f7cb4SJohannes Berg wakeup->packet_present_len); 3281cd8f7cb4SJohannes Berg ), 3282cd8f7cb4SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 3283cd8f7cb4SJohannes Berg ); 3284cd8f7cb4SJohannes Berg 3285355199e0SJouni Malinen TRACE_EVENT(cfg80211_ft_event, 3286355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3287355199e0SJouni Malinen struct cfg80211_ft_event_params *ft_event), 3288355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ft_event), 3289355199e0SJouni Malinen TP_STRUCT__entry( 3290355199e0SJouni Malinen WIPHY_ENTRY 3291355199e0SJouni Malinen NETDEV_ENTRY 3292355199e0SJouni Malinen __dynamic_array(u8, ies, ft_event->ies_len) 3293355199e0SJouni Malinen MAC_ENTRY(target_ap) 3294355199e0SJouni Malinen __dynamic_array(u8, ric_ies, ft_event->ric_ies_len) 3295355199e0SJouni Malinen ), 3296355199e0SJouni Malinen TP_fast_assign( 3297355199e0SJouni Malinen WIPHY_ASSIGN; 3298355199e0SJouni Malinen NETDEV_ASSIGN; 3299355199e0SJouni Malinen if (ft_event->ies) 3300355199e0SJouni Malinen memcpy(__get_dynamic_array(ies), ft_event->ies, 3301355199e0SJouni Malinen ft_event->ies_len); 3302355199e0SJouni Malinen MAC_ASSIGN(target_ap, ft_event->target_ap); 3303355199e0SJouni Malinen if (ft_event->ric_ies) 3304355199e0SJouni Malinen memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies, 3305355199e0SJouni Malinen ft_event->ric_ies_len); 3306355199e0SJouni Malinen ), 3307355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: " MAC_PR_FMT, 3308355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(target_ap)) 3309355199e0SJouni Malinen ); 3310355199e0SJouni Malinen 3311f04c2203SMichal Kazior TRACE_EVENT(cfg80211_stop_iface, 3312f04c2203SMichal Kazior TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 3313f04c2203SMichal Kazior TP_ARGS(wiphy, wdev), 3314f04c2203SMichal Kazior TP_STRUCT__entry( 3315f04c2203SMichal Kazior WIPHY_ENTRY 3316f04c2203SMichal Kazior WDEV_ENTRY 3317f04c2203SMichal Kazior ), 3318f04c2203SMichal Kazior TP_fast_assign( 3319f04c2203SMichal Kazior WIPHY_ASSIGN; 3320f04c2203SMichal Kazior WDEV_ASSIGN; 3321f04c2203SMichal Kazior ), 3322f04c2203SMichal Kazior TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 3323f04c2203SMichal Kazior WIPHY_PR_ARG, WDEV_PR_ARG) 3324f04c2203SMichal Kazior ); 33259bb7e0f2SJohannes Berg 33269bb7e0f2SJohannes Berg TRACE_EVENT(cfg80211_pmsr_report, 33279bb7e0f2SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 33289bb7e0f2SJohannes Berg u64 cookie, const u8 *addr), 33299bb7e0f2SJohannes Berg TP_ARGS(wiphy, wdev, cookie, addr), 33309bb7e0f2SJohannes Berg TP_STRUCT__entry( 33319bb7e0f2SJohannes Berg WIPHY_ENTRY 33329bb7e0f2SJohannes Berg WDEV_ENTRY 33339bb7e0f2SJohannes Berg __field(u64, cookie) 33349bb7e0f2SJohannes Berg MAC_ENTRY(addr) 33359bb7e0f2SJohannes Berg ), 33369bb7e0f2SJohannes Berg TP_fast_assign( 33379bb7e0f2SJohannes Berg WIPHY_ASSIGN; 33389bb7e0f2SJohannes Berg WDEV_ASSIGN; 33399bb7e0f2SJohannes Berg __entry->cookie = cookie; 33409bb7e0f2SJohannes Berg MAC_ASSIGN(addr, addr); 33419bb7e0f2SJohannes Berg ), 33429bb7e0f2SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld, " MAC_PR_FMT, 33439bb7e0f2SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, 33449bb7e0f2SJohannes Berg (unsigned long long)__entry->cookie, 33459bb7e0f2SJohannes Berg MAC_PR_ARG(addr)) 33469bb7e0f2SJohannes Berg ); 33479bb7e0f2SJohannes Berg 33489bb7e0f2SJohannes Berg TRACE_EVENT(cfg80211_pmsr_complete, 33499bb7e0f2SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 33509bb7e0f2SJohannes Berg TP_ARGS(wiphy, wdev, cookie), 33519bb7e0f2SJohannes Berg TP_STRUCT__entry( 33529bb7e0f2SJohannes Berg WIPHY_ENTRY 33539bb7e0f2SJohannes Berg WDEV_ENTRY 33549bb7e0f2SJohannes Berg __field(u64, cookie) 33559bb7e0f2SJohannes Berg ), 33569bb7e0f2SJohannes Berg TP_fast_assign( 33579bb7e0f2SJohannes Berg WIPHY_ASSIGN; 33589bb7e0f2SJohannes Berg WDEV_ASSIGN; 33599bb7e0f2SJohannes Berg __entry->cookie = cookie; 33609bb7e0f2SJohannes Berg ), 33619bb7e0f2SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld", 33629bb7e0f2SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, 33639bb7e0f2SJohannes Berg (unsigned long long)__entry->cookie) 33649bb7e0f2SJohannes Berg ); 3365*cb74e977SSunil Dutt 3366*cb74e977SSunil Dutt TRACE_EVENT(rdev_update_owe_info, 3367*cb74e977SSunil Dutt TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3368*cb74e977SSunil Dutt struct cfg80211_update_owe_info *owe_info), 3369*cb74e977SSunil Dutt TP_ARGS(wiphy, netdev, owe_info), 3370*cb74e977SSunil Dutt TP_STRUCT__entry(WIPHY_ENTRY 3371*cb74e977SSunil Dutt NETDEV_ENTRY 3372*cb74e977SSunil Dutt MAC_ENTRY(peer) 3373*cb74e977SSunil Dutt __field(u16, status) 3374*cb74e977SSunil Dutt __dynamic_array(u8, ie, owe_info->ie_len)), 3375*cb74e977SSunil Dutt TP_fast_assign(WIPHY_ASSIGN; 3376*cb74e977SSunil Dutt NETDEV_ASSIGN; 3377*cb74e977SSunil Dutt MAC_ASSIGN(peer, owe_info->peer); 3378*cb74e977SSunil Dutt __entry->status = owe_info->status; 3379*cb74e977SSunil Dutt memcpy(__get_dynamic_array(ie), 3380*cb74e977SSunil Dutt owe_info->ie, owe_info->ie_len);), 3381*cb74e977SSunil Dutt TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT 3382*cb74e977SSunil Dutt " status %d", WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 3383*cb74e977SSunil Dutt __entry->status) 3384*cb74e977SSunil Dutt ); 3385*cb74e977SSunil Dutt 3386*cb74e977SSunil Dutt TRACE_EVENT(cfg80211_update_owe_info_event, 3387*cb74e977SSunil Dutt TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3388*cb74e977SSunil Dutt struct cfg80211_update_owe_info *owe_info), 3389*cb74e977SSunil Dutt TP_ARGS(wiphy, netdev, owe_info), 3390*cb74e977SSunil Dutt TP_STRUCT__entry(WIPHY_ENTRY 3391*cb74e977SSunil Dutt NETDEV_ENTRY 3392*cb74e977SSunil Dutt MAC_ENTRY(peer) 3393*cb74e977SSunil Dutt __dynamic_array(u8, ie, owe_info->ie_len)), 3394*cb74e977SSunil Dutt TP_fast_assign(WIPHY_ASSIGN; 3395*cb74e977SSunil Dutt NETDEV_ASSIGN; 3396*cb74e977SSunil Dutt MAC_ASSIGN(peer, owe_info->peer); 3397*cb74e977SSunil Dutt memcpy(__get_dynamic_array(ie), owe_info->ie, 3398*cb74e977SSunil Dutt owe_info->ie_len);), 3399*cb74e977SSunil Dutt TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT, 3400*cb74e977SSunil Dutt WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 3401*cb74e977SSunil Dutt ); 3402*cb74e977SSunil Dutt 340314e8a3c4SBeni Lev #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 340414e8a3c4SBeni Lev 340514e8a3c4SBeni Lev #undef TRACE_INCLUDE_PATH 340614e8a3c4SBeni Lev #define TRACE_INCLUDE_PATH . 340714e8a3c4SBeni Lev #undef TRACE_INCLUDE_FILE 340814e8a3c4SBeni Lev #define TRACE_INCLUDE_FILE trace 340914e8a3c4SBeni Lev #include <trace/define_trace.h> 3410