1*b2441318SGreg 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) \ 11514e8a3c4SBeni Lev __field(u16, 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 36414e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, 36514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 36614e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 36714e8a3c4SBeni Lev ); 36814e8a3c4SBeni Lev 36914e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf, 37014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 37114e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 37214e8a3c4SBeni Lev ); 37314e8a3c4SBeni Lev 37414e8a3c4SBeni Lev TRACE_EVENT(rdev_change_virtual_intf, 37514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 37614e8a3c4SBeni Lev enum nl80211_iftype type), 37714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, type), 37814e8a3c4SBeni Lev TP_STRUCT__entry( 37914e8a3c4SBeni Lev WIPHY_ENTRY 38014e8a3c4SBeni Lev NETDEV_ENTRY 38114e8a3c4SBeni Lev __field(enum nl80211_iftype, type) 38214e8a3c4SBeni Lev ), 38314e8a3c4SBeni Lev TP_fast_assign( 38414e8a3c4SBeni Lev WIPHY_ASSIGN; 38514e8a3c4SBeni Lev NETDEV_ASSIGN; 38614e8a3c4SBeni Lev __entry->type = type; 38714e8a3c4SBeni Lev ), 388ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d", 38914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) 39014e8a3c4SBeni Lev ); 39114e8a3c4SBeni Lev 39214e8a3c4SBeni Lev DECLARE_EVENT_CLASS(key_handle, 39314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 39414e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 39514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr), 39614e8a3c4SBeni Lev TP_STRUCT__entry( 39714e8a3c4SBeni Lev WIPHY_ENTRY 39814e8a3c4SBeni Lev NETDEV_ENTRY 39914e8a3c4SBeni Lev MAC_ENTRY(mac_addr) 40014e8a3c4SBeni Lev __field(u8, key_index) 40114e8a3c4SBeni Lev __field(bool, pairwise) 40214e8a3c4SBeni Lev ), 40314e8a3c4SBeni Lev TP_fast_assign( 40414e8a3c4SBeni Lev WIPHY_ASSIGN; 40514e8a3c4SBeni Lev NETDEV_ASSIGN; 40614e8a3c4SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 40714e8a3c4SBeni Lev __entry->key_index = key_index; 40814e8a3c4SBeni Lev __entry->pairwise = pairwise; 40914e8a3c4SBeni Lev ), 410ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT, 41114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 41214e8a3c4SBeni Lev BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr)) 41314e8a3c4SBeni Lev ); 41414e8a3c4SBeni Lev 41514e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_add_key, 41614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 41714e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 41814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 41914e8a3c4SBeni Lev ); 42014e8a3c4SBeni Lev 42114e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_get_key, 42214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 42314e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 42414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 42514e8a3c4SBeni Lev ); 42614e8a3c4SBeni Lev 42714e8a3c4SBeni Lev DEFINE_EVENT(key_handle, rdev_del_key, 42814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 42914e8a3c4SBeni Lev bool pairwise, const u8 *mac_addr), 43014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr) 43114e8a3c4SBeni Lev ); 43214e8a3c4SBeni Lev 43314e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_key, 43414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, 43514e8a3c4SBeni Lev bool unicast, bool multicast), 43614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index, unicast, multicast), 43714e8a3c4SBeni Lev TP_STRUCT__entry( 43814e8a3c4SBeni Lev WIPHY_ENTRY 43914e8a3c4SBeni Lev NETDEV_ENTRY 44014e8a3c4SBeni Lev __field(u8, key_index) 44114e8a3c4SBeni Lev __field(bool, unicast) 44214e8a3c4SBeni Lev __field(bool, multicast) 44314e8a3c4SBeni Lev ), 44414e8a3c4SBeni Lev TP_fast_assign( 44514e8a3c4SBeni Lev WIPHY_ASSIGN; 44614e8a3c4SBeni Lev NETDEV_ASSIGN; 44714e8a3c4SBeni Lev __entry->key_index = key_index; 44814e8a3c4SBeni Lev __entry->unicast = unicast; 44914e8a3c4SBeni Lev __entry->multicast = multicast; 45014e8a3c4SBeni Lev ), 451ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s", 45214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, 45314e8a3c4SBeni Lev BOOL_TO_STR(__entry->unicast), 45414e8a3c4SBeni Lev BOOL_TO_STR(__entry->multicast)) 45514e8a3c4SBeni Lev ); 45614e8a3c4SBeni Lev 45714e8a3c4SBeni Lev TRACE_EVENT(rdev_set_default_mgmt_key, 45814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index), 45914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, key_index), 46014e8a3c4SBeni Lev TP_STRUCT__entry( 46114e8a3c4SBeni Lev WIPHY_ENTRY 46214e8a3c4SBeni Lev NETDEV_ENTRY 46314e8a3c4SBeni Lev __field(u8, key_index) 46414e8a3c4SBeni Lev ), 46514e8a3c4SBeni Lev TP_fast_assign( 46614e8a3c4SBeni Lev WIPHY_ASSIGN; 46714e8a3c4SBeni Lev NETDEV_ASSIGN; 46814e8a3c4SBeni Lev __entry->key_index = key_index; 46914e8a3c4SBeni Lev ), 470ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u", 47114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) 47214e8a3c4SBeni Lev ); 47314e8a3c4SBeni Lev 47414e8a3c4SBeni Lev TRACE_EVENT(rdev_start_ap, 47514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 47614e8a3c4SBeni Lev struct cfg80211_ap_settings *settings), 47714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, settings), 47814e8a3c4SBeni Lev TP_STRUCT__entry( 47914e8a3c4SBeni Lev WIPHY_ENTRY 48014e8a3c4SBeni Lev NETDEV_ENTRY 481683b6d3bSJohannes Berg CHAN_DEF_ENTRY 48214e8a3c4SBeni Lev __field(int, beacon_interval) 48314e8a3c4SBeni Lev __field(int, dtim_period) 48414e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 48514e8a3c4SBeni Lev __field(enum nl80211_hidden_ssid, hidden_ssid) 48614e8a3c4SBeni Lev __field(u32, wpa_ver) 48714e8a3c4SBeni Lev __field(bool, privacy) 48814e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 48914e8a3c4SBeni Lev __field(int, inactivity_timeout) 49014e8a3c4SBeni Lev ), 49114e8a3c4SBeni Lev TP_fast_assign( 49214e8a3c4SBeni Lev WIPHY_ASSIGN; 49314e8a3c4SBeni Lev NETDEV_ASSIGN; 494683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(&settings->chandef); 49514e8a3c4SBeni Lev __entry->beacon_interval = settings->beacon_interval; 49614e8a3c4SBeni Lev __entry->dtim_period = settings->dtim_period; 49714e8a3c4SBeni Lev __entry->hidden_ssid = settings->hidden_ssid; 49814e8a3c4SBeni Lev __entry->wpa_ver = settings->crypto.wpa_versions; 49914e8a3c4SBeni Lev __entry->privacy = settings->privacy; 50014e8a3c4SBeni Lev __entry->auth_type = settings->auth_type; 50114e8a3c4SBeni Lev __entry->inactivity_timeout = settings->inactivity_timeout; 50214e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 50314e8a3c4SBeni Lev memcpy(__entry->ssid, settings->ssid, settings->ssid_len); 50414e8a3c4SBeni Lev ), 505ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, " 506683b6d3bSJohannes Berg CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " 50714e8a3c4SBeni Lev "hidden ssid: %d, wpa versions: %u, privacy: %s, " 50814e8a3c4SBeni Lev "auth type: %d, inactivity timeout: %d", 509683b6d3bSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG, 51014e8a3c4SBeni Lev __entry->beacon_interval, __entry->dtim_period, 51114e8a3c4SBeni Lev __entry->hidden_ssid, __entry->wpa_ver, 51214e8a3c4SBeni Lev BOOL_TO_STR(__entry->privacy), __entry->auth_type, 51314e8a3c4SBeni Lev __entry->inactivity_timeout) 51414e8a3c4SBeni Lev ); 51514e8a3c4SBeni Lev 51614e8a3c4SBeni Lev TRACE_EVENT(rdev_change_beacon, 51714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 51814e8a3c4SBeni Lev struct cfg80211_beacon_data *info), 51914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, info), 52014e8a3c4SBeni Lev TP_STRUCT__entry( 52114e8a3c4SBeni Lev WIPHY_ENTRY 52214e8a3c4SBeni Lev NETDEV_ENTRY 52314e8a3c4SBeni Lev __dynamic_array(u8, head, info ? info->head_len : 0) 52414e8a3c4SBeni Lev __dynamic_array(u8, tail, info ? info->tail_len : 0) 52514e8a3c4SBeni Lev __dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0) 52614e8a3c4SBeni Lev __dynamic_array(u8, proberesp_ies, 52714e8a3c4SBeni Lev info ? info->proberesp_ies_len : 0) 52814e8a3c4SBeni Lev __dynamic_array(u8, assocresp_ies, 52914e8a3c4SBeni Lev info ? info->assocresp_ies_len : 0) 53014e8a3c4SBeni Lev __dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0) 53114e8a3c4SBeni Lev ), 53214e8a3c4SBeni Lev TP_fast_assign( 53314e8a3c4SBeni Lev WIPHY_ASSIGN; 53414e8a3c4SBeni Lev NETDEV_ASSIGN; 53514e8a3c4SBeni Lev if (info) { 53614e8a3c4SBeni Lev if (info->head) 53714e8a3c4SBeni Lev memcpy(__get_dynamic_array(head), info->head, 53814e8a3c4SBeni Lev info->head_len); 53914e8a3c4SBeni Lev if (info->tail) 54014e8a3c4SBeni Lev memcpy(__get_dynamic_array(tail), info->tail, 54114e8a3c4SBeni Lev info->tail_len); 54214e8a3c4SBeni Lev if (info->beacon_ies) 54314e8a3c4SBeni Lev memcpy(__get_dynamic_array(beacon_ies), 54414e8a3c4SBeni Lev info->beacon_ies, info->beacon_ies_len); 54514e8a3c4SBeni Lev if (info->proberesp_ies) 54614e8a3c4SBeni Lev memcpy(__get_dynamic_array(proberesp_ies), 54714e8a3c4SBeni Lev info->proberesp_ies, 54814e8a3c4SBeni Lev info->proberesp_ies_len); 54914e8a3c4SBeni Lev if (info->assocresp_ies) 55014e8a3c4SBeni Lev memcpy(__get_dynamic_array(assocresp_ies), 55114e8a3c4SBeni Lev info->assocresp_ies, 55214e8a3c4SBeni Lev info->assocresp_ies_len); 55314e8a3c4SBeni Lev if (info->probe_resp) 55414e8a3c4SBeni Lev memcpy(__get_dynamic_array(probe_resp), 55514e8a3c4SBeni Lev info->probe_resp, info->probe_resp_len); 55614e8a3c4SBeni Lev } 55714e8a3c4SBeni Lev ), 558ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 55914e8a3c4SBeni Lev ); 56014e8a3c4SBeni Lev 56114e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_evt, 56214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 56314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev), 56414e8a3c4SBeni Lev TP_STRUCT__entry( 56514e8a3c4SBeni Lev WIPHY_ENTRY 56614e8a3c4SBeni Lev NETDEV_ENTRY 56714e8a3c4SBeni Lev ), 56814e8a3c4SBeni Lev TP_fast_assign( 56914e8a3c4SBeni Lev WIPHY_ASSIGN; 57014e8a3c4SBeni Lev NETDEV_ASSIGN; 57114e8a3c4SBeni Lev ), 572ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 57314e8a3c4SBeni Lev ); 57414e8a3c4SBeni Lev 57514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap, 57614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 57714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 57814e8a3c4SBeni Lev ); 57914e8a3c4SBeni Lev 58014e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data, 58114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 58214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 58314e8a3c4SBeni Lev ); 58414e8a3c4SBeni Lev 58514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config, 58614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 58714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 58814e8a3c4SBeni Lev ); 58914e8a3c4SBeni Lev 59014e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh, 59114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 59214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 59314e8a3c4SBeni Lev ); 59414e8a3c4SBeni Lev 59514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss, 59614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 59714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 59814e8a3c4SBeni Lev ); 59914e8a3c4SBeni Lev 6006e0bd6c3SRostislav Lisovy DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ocb, 6016e0bd6c3SRostislav Lisovy TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 6026e0bd6c3SRostislav Lisovy TP_ARGS(wiphy, netdev) 6036e0bd6c3SRostislav Lisovy ); 6046e0bd6c3SRostislav Lisovy 60514e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa, 60614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 60714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev) 60814e8a3c4SBeni Lev ); 60914e8a3c4SBeni Lev 61014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(station_add_change, 61114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 61214e8a3c4SBeni Lev struct station_parameters *params), 61314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params), 61414e8a3c4SBeni Lev TP_STRUCT__entry( 61514e8a3c4SBeni Lev WIPHY_ENTRY 61614e8a3c4SBeni Lev NETDEV_ENTRY 61714e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 61814e8a3c4SBeni Lev __field(u32, sta_flags_mask) 61914e8a3c4SBeni Lev __field(u32, sta_flags_set) 62014e8a3c4SBeni Lev __field(u32, sta_modify_mask) 62114e8a3c4SBeni Lev __field(int, listen_interval) 6226e045905SJohannes Berg __field(u16, capability) 62314e8a3c4SBeni Lev __field(u16, aid) 62414e8a3c4SBeni Lev __field(u8, plink_action) 62514e8a3c4SBeni Lev __field(u8, plink_state) 62614e8a3c4SBeni Lev __field(u8, uapsd_queues) 6276e045905SJohannes Berg __field(u8, max_sp) 6286e045905SJohannes Berg __field(u8, opmode_notif) 6296e045905SJohannes Berg __field(bool, opmode_notif_used) 63014e8a3c4SBeni Lev __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap)) 6316e045905SJohannes Berg __array(u8, vht_capa, (int)sizeof(struct ieee80211_vht_cap)) 6325d8325ecSJohannes Berg __array(char, vlan, IFNAMSIZ) 6336e045905SJohannes Berg __dynamic_array(u8, supported_rates, 6346e045905SJohannes Berg params->supported_rates_len) 6356e045905SJohannes Berg __dynamic_array(u8, ext_capab, params->ext_capab_len) 6366e045905SJohannes Berg __dynamic_array(u8, supported_channels, 6376e045905SJohannes Berg params->supported_channels_len) 6386e045905SJohannes Berg __dynamic_array(u8, supported_oper_classes, 6396e045905SJohannes Berg params->supported_oper_classes_len) 64014e8a3c4SBeni Lev ), 64114e8a3c4SBeni Lev TP_fast_assign( 64214e8a3c4SBeni Lev WIPHY_ASSIGN; 64314e8a3c4SBeni Lev NETDEV_ASSIGN; 64414e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 64514e8a3c4SBeni Lev __entry->sta_flags_mask = params->sta_flags_mask; 64614e8a3c4SBeni Lev __entry->sta_flags_set = params->sta_flags_set; 64714e8a3c4SBeni Lev __entry->sta_modify_mask = params->sta_modify_mask; 64814e8a3c4SBeni Lev __entry->listen_interval = params->listen_interval; 64914e8a3c4SBeni Lev __entry->aid = params->aid; 65014e8a3c4SBeni Lev __entry->plink_action = params->plink_action; 65114e8a3c4SBeni Lev __entry->plink_state = params->plink_state; 65214e8a3c4SBeni Lev __entry->uapsd_queues = params->uapsd_queues; 65314e8a3c4SBeni Lev memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap)); 65414e8a3c4SBeni Lev if (params->ht_capa) 65514e8a3c4SBeni Lev memcpy(__entry->ht_capa, params->ht_capa, 65614e8a3c4SBeni Lev sizeof(struct ieee80211_ht_cap)); 6576e045905SJohannes Berg memset(__entry->vht_capa, 0, sizeof(struct ieee80211_vht_cap)); 6586e045905SJohannes Berg if (params->vht_capa) 6596e045905SJohannes Berg memcpy(__entry->vht_capa, params->vht_capa, 6606e045905SJohannes Berg sizeof(struct ieee80211_vht_cap)); 6615d8325ecSJohannes Berg memset(__entry->vlan, 0, sizeof(__entry->vlan)); 6625d8325ecSJohannes Berg if (params->vlan) 6635d8325ecSJohannes Berg memcpy(__entry->vlan, params->vlan->name, IFNAMSIZ); 6646e045905SJohannes Berg if (params->supported_rates && params->supported_rates_len) 6656e045905SJohannes Berg memcpy(__get_dynamic_array(supported_rates), 6666e045905SJohannes Berg params->supported_rates, 6676e045905SJohannes Berg params->supported_rates_len); 6686e045905SJohannes Berg if (params->ext_capab && params->ext_capab_len) 6696e045905SJohannes Berg memcpy(__get_dynamic_array(ext_capab), 6706e045905SJohannes Berg params->ext_capab, 6716e045905SJohannes Berg params->ext_capab_len); 6726e045905SJohannes Berg if (params->supported_channels && 6736e045905SJohannes Berg params->supported_channels_len) 6746e045905SJohannes Berg memcpy(__get_dynamic_array(supported_channels), 6756e045905SJohannes Berg params->supported_channels, 6766e045905SJohannes Berg params->supported_channels_len); 6776e045905SJohannes Berg if (params->supported_oper_classes && 6786e045905SJohannes Berg params->supported_oper_classes_len) 6796e045905SJohannes Berg memcpy(__get_dynamic_array(supported_oper_classes), 6806e045905SJohannes Berg params->supported_oper_classes, 6816e045905SJohannes Berg params->supported_oper_classes_len); 6826e045905SJohannes Berg __entry->max_sp = params->max_sp; 6836e045905SJohannes Berg __entry->capability = params->capability; 6846e045905SJohannes Berg __entry->opmode_notif = params->opmode_notif; 6856e045905SJohannes Berg __entry->opmode_notif_used = params->opmode_notif_used; 68614e8a3c4SBeni Lev ), 687ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT 68814e8a3c4SBeni Lev ", station flags mask: %u, station flags set: %u, " 68914e8a3c4SBeni Lev "station modify mask: %u, listen interval: %d, aid: %u, " 6905d8325ecSJohannes Berg "plink action: %u, plink state: %u, uapsd queues: %u, vlan:%s", 69114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 69214e8a3c4SBeni Lev __entry->sta_flags_mask, __entry->sta_flags_set, 69314e8a3c4SBeni Lev __entry->sta_modify_mask, __entry->listen_interval, 69414e8a3c4SBeni Lev __entry->aid, __entry->plink_action, __entry->plink_state, 6955d8325ecSJohannes Berg __entry->uapsd_queues, __entry->vlan) 69614e8a3c4SBeni Lev ); 69714e8a3c4SBeni Lev 69814e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_add_station, 69914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 70014e8a3c4SBeni Lev struct station_parameters *params), 70114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 70214e8a3c4SBeni Lev ); 70314e8a3c4SBeni Lev 70414e8a3c4SBeni Lev DEFINE_EVENT(station_add_change, rdev_change_station, 70514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac, 70614e8a3c4SBeni Lev struct station_parameters *params), 70714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac, params) 70814e8a3c4SBeni Lev ); 70914e8a3c4SBeni Lev 71014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt, 71114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 71214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac), 71314e8a3c4SBeni Lev TP_STRUCT__entry( 71414e8a3c4SBeni Lev WIPHY_ENTRY 71514e8a3c4SBeni Lev NETDEV_ENTRY 71614e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 71714e8a3c4SBeni Lev ), 71814e8a3c4SBeni Lev TP_fast_assign( 71914e8a3c4SBeni Lev WIPHY_ASSIGN; 72014e8a3c4SBeni Lev NETDEV_ASSIGN; 72114e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 72214e8a3c4SBeni Lev ), 723ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 72414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) 72514e8a3c4SBeni Lev ); 72614e8a3c4SBeni Lev 72789c771e5SJouni Malinen DECLARE_EVENT_CLASS(station_del, 72889c771e5SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 72989c771e5SJouni Malinen struct station_del_parameters *params), 73089c771e5SJouni Malinen TP_ARGS(wiphy, netdev, params), 73189c771e5SJouni Malinen TP_STRUCT__entry( 73289c771e5SJouni Malinen WIPHY_ENTRY 73389c771e5SJouni Malinen NETDEV_ENTRY 73489c771e5SJouni Malinen MAC_ENTRY(sta_mac) 73598856866SJouni Malinen __field(u8, subtype) 73698856866SJouni Malinen __field(u16, reason_code) 73789c771e5SJouni Malinen ), 73889c771e5SJouni Malinen TP_fast_assign( 73989c771e5SJouni Malinen WIPHY_ASSIGN; 74089c771e5SJouni Malinen NETDEV_ASSIGN; 74189c771e5SJouni Malinen MAC_ASSIGN(sta_mac, params->mac); 74298856866SJouni Malinen __entry->subtype = params->subtype; 74398856866SJouni Malinen __entry->reason_code = params->reason_code; 74489c771e5SJouni Malinen ), 74598856866SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT 74698856866SJouni Malinen ", subtype: %u, reason_code: %u", 74798856866SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 74898856866SJouni Malinen __entry->subtype, __entry->reason_code) 74989c771e5SJouni Malinen ); 75089c771e5SJouni Malinen 75189c771e5SJouni Malinen DEFINE_EVENT(station_del, rdev_del_station, 75289c771e5SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 75389c771e5SJouni Malinen struct station_del_parameters *params), 75489c771e5SJouni Malinen TP_ARGS(wiphy, netdev, params) 75514e8a3c4SBeni Lev ); 75614e8a3c4SBeni Lev 75714e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station, 75814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 75914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 76014e8a3c4SBeni Lev ); 76114e8a3c4SBeni Lev 76214e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath, 76314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 76414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 76514e8a3c4SBeni Lev ); 76614e8a3c4SBeni Lev 76714e8a3c4SBeni Lev DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer, 76814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 76914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mac) 77014e8a3c4SBeni Lev ); 77114e8a3c4SBeni Lev 77214e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_station, 77314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx, 77414e8a3c4SBeni Lev u8 *mac), 77514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx, mac), 77614e8a3c4SBeni Lev TP_STRUCT__entry( 77714e8a3c4SBeni Lev WIPHY_ENTRY 77814e8a3c4SBeni Lev NETDEV_ENTRY 77914e8a3c4SBeni Lev MAC_ENTRY(sta_mac) 78014e8a3c4SBeni Lev __field(int, idx) 78114e8a3c4SBeni Lev ), 78214e8a3c4SBeni Lev TP_fast_assign( 78314e8a3c4SBeni Lev WIPHY_ASSIGN; 78414e8a3c4SBeni Lev NETDEV_ASSIGN; 78514e8a3c4SBeni Lev MAC_ASSIGN(sta_mac, mac); 78614e8a3c4SBeni Lev __entry->idx = idx; 78714e8a3c4SBeni Lev ), 788ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d", 78914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), 79014e8a3c4SBeni Lev __entry->idx) 79114e8a3c4SBeni Lev ); 79214e8a3c4SBeni Lev 79314e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_station_info, 79414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo), 79514e8a3c4SBeni Lev TP_ARGS(wiphy, ret, sinfo), 79614e8a3c4SBeni Lev TP_STRUCT__entry( 79714e8a3c4SBeni Lev WIPHY_ENTRY 79814e8a3c4SBeni Lev __field(int, ret) 79914e8a3c4SBeni Lev SINFO_ENTRY 80014e8a3c4SBeni Lev ), 80114e8a3c4SBeni Lev TP_fast_assign( 80214e8a3c4SBeni Lev WIPHY_ASSIGN; 80314e8a3c4SBeni Lev __entry->ret = ret; 80414e8a3c4SBeni Lev SINFO_ASSIGN; 80514e8a3c4SBeni Lev ), 80614e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d" , 80714e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 80814e8a3c4SBeni Lev ); 80914e8a3c4SBeni Lev 81014e8a3c4SBeni Lev DECLARE_EVENT_CLASS(mpath_evt, 81114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 81214e8a3c4SBeni Lev u8 *next_hop), 81314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop), 81414e8a3c4SBeni Lev TP_STRUCT__entry( 81514e8a3c4SBeni Lev WIPHY_ENTRY 81614e8a3c4SBeni Lev NETDEV_ENTRY 81714e8a3c4SBeni Lev MAC_ENTRY(dst) 81814e8a3c4SBeni Lev MAC_ENTRY(next_hop) 81914e8a3c4SBeni Lev ), 82014e8a3c4SBeni Lev TP_fast_assign( 82114e8a3c4SBeni Lev WIPHY_ASSIGN; 82214e8a3c4SBeni Lev NETDEV_ASSIGN; 82314e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 82414e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 82514e8a3c4SBeni Lev ), 826ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT, 82714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst), 82814e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 82914e8a3c4SBeni Lev ); 83014e8a3c4SBeni Lev 83114e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_add_mpath, 83214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 83314e8a3c4SBeni Lev u8 *next_hop), 83414e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 83514e8a3c4SBeni Lev ); 83614e8a3c4SBeni Lev 83714e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_change_mpath, 83814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 83914e8a3c4SBeni Lev u8 *next_hop), 84014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 84114e8a3c4SBeni Lev ); 84214e8a3c4SBeni Lev 84314e8a3c4SBeni Lev DEFINE_EVENT(mpath_evt, rdev_get_mpath, 84414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 84514e8a3c4SBeni Lev u8 *next_hop), 84614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, dst, next_hop) 84714e8a3c4SBeni Lev ); 84814e8a3c4SBeni Lev 84914e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_mpath, 85014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx, 85114e8a3c4SBeni Lev u8 *dst, u8 *next_hop), 85214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx, dst, next_hop), 85314e8a3c4SBeni Lev TP_STRUCT__entry( 85414e8a3c4SBeni Lev WIPHY_ENTRY 85514e8a3c4SBeni Lev NETDEV_ENTRY 85614e8a3c4SBeni Lev MAC_ENTRY(dst) 85714e8a3c4SBeni Lev MAC_ENTRY(next_hop) 85814e8a3c4SBeni Lev __field(int, idx) 85914e8a3c4SBeni Lev ), 86014e8a3c4SBeni Lev TP_fast_assign( 86114e8a3c4SBeni Lev WIPHY_ASSIGN; 86214e8a3c4SBeni Lev NETDEV_ASSIGN; 86314e8a3c4SBeni Lev MAC_ASSIGN(dst, dst); 86414e8a3c4SBeni Lev MAC_ASSIGN(next_hop, next_hop); 86514e8a3c4SBeni Lev __entry->idx = idx; 86614e8a3c4SBeni Lev ), 867ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " 86814e8a3c4SBeni Lev MAC_PR_FMT ", next hop: " MAC_PR_FMT, 86914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), 87014e8a3c4SBeni Lev MAC_PR_ARG(next_hop)) 87114e8a3c4SBeni Lev ); 87214e8a3c4SBeni Lev 87366be7d2bSHenning Rogge TRACE_EVENT(rdev_get_mpp, 87466be7d2bSHenning Rogge TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 87566be7d2bSHenning Rogge u8 *dst, u8 *mpp), 87666be7d2bSHenning Rogge TP_ARGS(wiphy, netdev, dst, mpp), 87766be7d2bSHenning Rogge TP_STRUCT__entry( 87866be7d2bSHenning Rogge WIPHY_ENTRY 87966be7d2bSHenning Rogge NETDEV_ENTRY 88066be7d2bSHenning Rogge MAC_ENTRY(dst) 88166be7d2bSHenning Rogge MAC_ENTRY(mpp) 88266be7d2bSHenning Rogge ), 88366be7d2bSHenning Rogge TP_fast_assign( 88466be7d2bSHenning Rogge WIPHY_ASSIGN; 88566be7d2bSHenning Rogge NETDEV_ASSIGN; 88666be7d2bSHenning Rogge MAC_ASSIGN(dst, dst); 88766be7d2bSHenning Rogge MAC_ASSIGN(mpp, mpp); 88866be7d2bSHenning Rogge ), 88966be7d2bSHenning Rogge TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT 89066be7d2bSHenning Rogge ", mpp: " MAC_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG, 89166be7d2bSHenning Rogge MAC_PR_ARG(dst), MAC_PR_ARG(mpp)) 89266be7d2bSHenning Rogge ); 89366be7d2bSHenning Rogge 89466be7d2bSHenning Rogge TRACE_EVENT(rdev_dump_mpp, 89566be7d2bSHenning Rogge TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx, 89666be7d2bSHenning Rogge u8 *dst, u8 *mpp), 89766be7d2bSHenning Rogge TP_ARGS(wiphy, netdev, idx, mpp, dst), 89866be7d2bSHenning Rogge TP_STRUCT__entry( 89966be7d2bSHenning Rogge WIPHY_ENTRY 90066be7d2bSHenning Rogge NETDEV_ENTRY 90166be7d2bSHenning Rogge MAC_ENTRY(dst) 90266be7d2bSHenning Rogge MAC_ENTRY(mpp) 90366be7d2bSHenning Rogge __field(int, idx) 90466be7d2bSHenning Rogge ), 90566be7d2bSHenning Rogge TP_fast_assign( 90666be7d2bSHenning Rogge WIPHY_ASSIGN; 90766be7d2bSHenning Rogge NETDEV_ASSIGN; 90866be7d2bSHenning Rogge MAC_ASSIGN(dst, dst); 90966be7d2bSHenning Rogge MAC_ASSIGN(mpp, mpp); 91066be7d2bSHenning Rogge __entry->idx = idx; 91166be7d2bSHenning Rogge ), 91266be7d2bSHenning Rogge TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " 91366be7d2bSHenning Rogge MAC_PR_FMT ", mpp: " MAC_PR_FMT, 91466be7d2bSHenning Rogge WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), 91566be7d2bSHenning Rogge MAC_PR_ARG(mpp)) 91666be7d2bSHenning Rogge ); 91766be7d2bSHenning Rogge 91814e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mpath_info, 91914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo), 92014e8a3c4SBeni Lev TP_ARGS(wiphy, ret, pinfo), 92114e8a3c4SBeni Lev TP_STRUCT__entry( 92214e8a3c4SBeni Lev WIPHY_ENTRY 92314e8a3c4SBeni Lev __field(int, ret) 92414e8a3c4SBeni Lev __field(int, generation) 92514e8a3c4SBeni Lev __field(u32, filled) 92614e8a3c4SBeni Lev __field(u32, frame_qlen) 92714e8a3c4SBeni Lev __field(u32, sn) 92814e8a3c4SBeni Lev __field(u32, metric) 92914e8a3c4SBeni Lev __field(u32, exptime) 93014e8a3c4SBeni Lev __field(u32, discovery_timeout) 93114e8a3c4SBeni Lev __field(u8, discovery_retries) 93214e8a3c4SBeni Lev __field(u8, flags) 93314e8a3c4SBeni Lev ), 93414e8a3c4SBeni Lev TP_fast_assign( 93514e8a3c4SBeni Lev WIPHY_ASSIGN; 93614e8a3c4SBeni Lev __entry->ret = ret; 93714e8a3c4SBeni Lev __entry->generation = pinfo->generation; 93814e8a3c4SBeni Lev __entry->filled = pinfo->filled; 93914e8a3c4SBeni Lev __entry->frame_qlen = pinfo->frame_qlen; 94014e8a3c4SBeni Lev __entry->sn = pinfo->sn; 94114e8a3c4SBeni Lev __entry->metric = pinfo->metric; 94214e8a3c4SBeni Lev __entry->exptime = pinfo->exptime; 94314e8a3c4SBeni Lev __entry->discovery_timeout = pinfo->discovery_timeout; 94414e8a3c4SBeni Lev __entry->discovery_retries = pinfo->discovery_retries; 94514e8a3c4SBeni Lev __entry->flags = pinfo->flags; 94614e8a3c4SBeni Lev ), 94714e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, " 94814e8a3c4SBeni Lev "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u," 94914e8a3c4SBeni Lev " discovery timeout: %u, discovery retries: %u, flags: %u", 95014e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->generation, 95114e8a3c4SBeni Lev __entry->filled, __entry->frame_qlen, __entry->sn, 95214e8a3c4SBeni Lev __entry->metric, __entry->exptime, __entry->discovery_timeout, 95314e8a3c4SBeni Lev __entry->discovery_retries, __entry->flags) 95414e8a3c4SBeni Lev ); 95514e8a3c4SBeni Lev 95614e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_mesh_config, 95714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf), 95814e8a3c4SBeni Lev TP_ARGS(wiphy, ret, conf), 95914e8a3c4SBeni Lev TP_STRUCT__entry( 96014e8a3c4SBeni Lev WIPHY_ENTRY 96114e8a3c4SBeni Lev MESH_CFG_ENTRY 96214e8a3c4SBeni Lev __field(int, ret) 96314e8a3c4SBeni Lev ), 96414e8a3c4SBeni Lev TP_fast_assign( 96514e8a3c4SBeni Lev WIPHY_ASSIGN; 96614e8a3c4SBeni Lev MESH_CFG_ASSIGN; 96714e8a3c4SBeni Lev __entry->ret = ret; 96814e8a3c4SBeni Lev ), 96914e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d", 97014e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret) 97114e8a3c4SBeni Lev ); 97214e8a3c4SBeni Lev 97314e8a3c4SBeni Lev TRACE_EVENT(rdev_update_mesh_config, 97414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask, 97514e8a3c4SBeni Lev const struct mesh_config *conf), 97614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, mask, conf), 97714e8a3c4SBeni Lev TP_STRUCT__entry( 97814e8a3c4SBeni Lev WIPHY_ENTRY 97914e8a3c4SBeni Lev NETDEV_ENTRY 98014e8a3c4SBeni Lev MESH_CFG_ENTRY 98114e8a3c4SBeni Lev __field(u32, mask) 98214e8a3c4SBeni Lev ), 98314e8a3c4SBeni Lev TP_fast_assign( 98414e8a3c4SBeni Lev WIPHY_ASSIGN; 98514e8a3c4SBeni Lev NETDEV_ASSIGN; 98614e8a3c4SBeni Lev MESH_CFG_ASSIGN; 98714e8a3c4SBeni Lev __entry->mask = mask; 98814e8a3c4SBeni Lev ), 989ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u", 99014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) 99114e8a3c4SBeni Lev ); 99214e8a3c4SBeni Lev 99314e8a3c4SBeni Lev TRACE_EVENT(rdev_join_mesh, 99414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 99514e8a3c4SBeni Lev const struct mesh_config *conf, 99614e8a3c4SBeni Lev const struct mesh_setup *setup), 99714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, conf, setup), 99814e8a3c4SBeni Lev TP_STRUCT__entry( 99914e8a3c4SBeni Lev WIPHY_ENTRY 100014e8a3c4SBeni Lev NETDEV_ENTRY 100114e8a3c4SBeni Lev MESH_CFG_ENTRY 100214e8a3c4SBeni Lev ), 100314e8a3c4SBeni Lev TP_fast_assign( 100414e8a3c4SBeni Lev WIPHY_ASSIGN; 100514e8a3c4SBeni Lev NETDEV_ASSIGN; 100614e8a3c4SBeni Lev MESH_CFG_ASSIGN; 100714e8a3c4SBeni Lev ), 1008ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 100914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG) 101014e8a3c4SBeni Lev ); 101114e8a3c4SBeni Lev 101214e8a3c4SBeni Lev TRACE_EVENT(rdev_change_bss, 101314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 101414e8a3c4SBeni Lev struct bss_parameters *params), 101514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 101614e8a3c4SBeni Lev TP_STRUCT__entry( 101714e8a3c4SBeni Lev WIPHY_ENTRY 101814e8a3c4SBeni Lev NETDEV_ENTRY 101914e8a3c4SBeni Lev __field(int, use_cts_prot) 102014e8a3c4SBeni Lev __field(int, use_short_preamble) 102114e8a3c4SBeni Lev __field(int, use_short_slot_time) 102214e8a3c4SBeni Lev __field(int, ap_isolate) 102314e8a3c4SBeni Lev __field(int, ht_opmode) 102414e8a3c4SBeni Lev ), 102514e8a3c4SBeni Lev TP_fast_assign( 102614e8a3c4SBeni Lev WIPHY_ASSIGN; 102714e8a3c4SBeni Lev NETDEV_ASSIGN; 102814e8a3c4SBeni Lev __entry->use_cts_prot = params->use_cts_prot; 102914e8a3c4SBeni Lev __entry->use_short_preamble = params->use_short_preamble; 103014e8a3c4SBeni Lev __entry->use_short_slot_time = params->use_short_slot_time; 103114e8a3c4SBeni Lev __entry->ap_isolate = params->ap_isolate; 103214e8a3c4SBeni Lev __entry->ht_opmode = params->ht_opmode; 103314e8a3c4SBeni Lev ), 1034ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, " 103514e8a3c4SBeni Lev "use short preamble: %d, use short slot time: %d, " 103614e8a3c4SBeni Lev "ap isolate: %d, ht opmode: %d", 103714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, 103814e8a3c4SBeni Lev __entry->use_short_preamble, __entry->use_short_slot_time, 103914e8a3c4SBeni Lev __entry->ap_isolate, __entry->ht_opmode) 104014e8a3c4SBeni Lev ); 104114e8a3c4SBeni Lev 104214e8a3c4SBeni Lev TRACE_EVENT(rdev_set_txq_params, 104314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 104414e8a3c4SBeni Lev struct ieee80211_txq_params *params), 104514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 104614e8a3c4SBeni Lev TP_STRUCT__entry( 104714e8a3c4SBeni Lev WIPHY_ENTRY 104814e8a3c4SBeni Lev NETDEV_ENTRY 104914e8a3c4SBeni Lev __field(enum nl80211_ac, ac) 105014e8a3c4SBeni Lev __field(u16, txop) 105114e8a3c4SBeni Lev __field(u16, cwmin) 105214e8a3c4SBeni Lev __field(u16, cwmax) 105314e8a3c4SBeni Lev __field(u8, aifs) 105414e8a3c4SBeni Lev ), 105514e8a3c4SBeni Lev TP_fast_assign( 105614e8a3c4SBeni Lev WIPHY_ASSIGN; 105714e8a3c4SBeni Lev NETDEV_ASSIGN; 105814e8a3c4SBeni Lev __entry->ac = params->ac; 105914e8a3c4SBeni Lev __entry->txop = params->txop; 106014e8a3c4SBeni Lev __entry->cwmin = params->cwmin; 106114e8a3c4SBeni Lev __entry->cwmax = params->cwmax; 106214e8a3c4SBeni Lev __entry->aifs = params->aifs; 106314e8a3c4SBeni Lev ), 1064ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", 106514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, 106614e8a3c4SBeni Lev __entry->cwmin, __entry->cwmax, __entry->aifs) 106714e8a3c4SBeni Lev ); 106814e8a3c4SBeni Lev 106914e8a3c4SBeni Lev TRACE_EVENT(rdev_libertas_set_mesh_channel, 107014e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 107114e8a3c4SBeni Lev struct ieee80211_channel *chan), 107214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, chan), 107314e8a3c4SBeni Lev TP_STRUCT__entry( 107414e8a3c4SBeni Lev WIPHY_ENTRY 107514e8a3c4SBeni Lev NETDEV_ENTRY 107614e8a3c4SBeni Lev CHAN_ENTRY 107714e8a3c4SBeni Lev ), 107814e8a3c4SBeni Lev TP_fast_assign( 107914e8a3c4SBeni Lev WIPHY_ASSIGN; 108014e8a3c4SBeni Lev NETDEV_ASSIGN; 108114e8a3c4SBeni Lev CHAN_ASSIGN(chan); 108214e8a3c4SBeni Lev ), 1083ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG, 108414e8a3c4SBeni Lev NETDEV_PR_ARG, CHAN_PR_ARG) 108514e8a3c4SBeni Lev ); 108614e8a3c4SBeni Lev 108714e8a3c4SBeni Lev TRACE_EVENT(rdev_set_monitor_channel, 1088683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, 1089683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 1090683b6d3bSJohannes Berg TP_ARGS(wiphy, chandef), 109114e8a3c4SBeni Lev TP_STRUCT__entry( 109214e8a3c4SBeni Lev WIPHY_ENTRY 1093683b6d3bSJohannes Berg CHAN_DEF_ENTRY 109414e8a3c4SBeni Lev ), 109514e8a3c4SBeni Lev TP_fast_assign( 109614e8a3c4SBeni Lev WIPHY_ASSIGN; 1097683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 109814e8a3c4SBeni Lev ), 1099ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 1100683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 110114e8a3c4SBeni Lev ); 110214e8a3c4SBeni Lev 110314e8a3c4SBeni Lev TRACE_EVENT(rdev_auth, 110414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 110514e8a3c4SBeni Lev struct cfg80211_auth_request *req), 110614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 110714e8a3c4SBeni Lev TP_STRUCT__entry( 110814e8a3c4SBeni Lev WIPHY_ENTRY 110914e8a3c4SBeni Lev NETDEV_ENTRY 111014e8a3c4SBeni Lev MAC_ENTRY(bssid) 111114e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 111214e8a3c4SBeni Lev ), 111314e8a3c4SBeni Lev TP_fast_assign( 111414e8a3c4SBeni Lev WIPHY_ASSIGN; 111514e8a3c4SBeni Lev NETDEV_ASSIGN; 111614e8a3c4SBeni Lev if (req->bss) 111714e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 111814e8a3c4SBeni Lev else 1119d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 112014e8a3c4SBeni Lev __entry->auth_type = req->auth_type; 112114e8a3c4SBeni Lev ), 1122ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT, 112314e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, 112414e8a3c4SBeni Lev MAC_PR_ARG(bssid)) 112514e8a3c4SBeni Lev ); 112614e8a3c4SBeni Lev 112714e8a3c4SBeni Lev TRACE_EVENT(rdev_assoc, 112814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 112914e8a3c4SBeni Lev struct cfg80211_assoc_request *req), 113014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 113114e8a3c4SBeni Lev TP_STRUCT__entry( 113214e8a3c4SBeni Lev WIPHY_ENTRY 113314e8a3c4SBeni Lev NETDEV_ENTRY 113414e8a3c4SBeni Lev MAC_ENTRY(bssid) 113514e8a3c4SBeni Lev MAC_ENTRY(prev_bssid) 113614e8a3c4SBeni Lev __field(bool, use_mfp) 113714e8a3c4SBeni Lev __field(u32, flags) 113814e8a3c4SBeni Lev ), 113914e8a3c4SBeni Lev TP_fast_assign( 114014e8a3c4SBeni Lev WIPHY_ASSIGN; 114114e8a3c4SBeni Lev NETDEV_ASSIGN; 114214e8a3c4SBeni Lev if (req->bss) 114314e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 114414e8a3c4SBeni Lev else 1145d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 114614e8a3c4SBeni Lev MAC_ASSIGN(prev_bssid, req->prev_bssid); 114714e8a3c4SBeni Lev __entry->use_mfp = req->use_mfp; 114814e8a3c4SBeni Lev __entry->flags = req->flags; 114914e8a3c4SBeni Lev ), 1150ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 115114e8a3c4SBeni Lev ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u", 115214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 115314e8a3c4SBeni Lev MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp), 115414e8a3c4SBeni Lev __entry->flags) 115514e8a3c4SBeni Lev ); 115614e8a3c4SBeni Lev 115714e8a3c4SBeni Lev TRACE_EVENT(rdev_deauth, 115814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 115914e8a3c4SBeni Lev struct cfg80211_deauth_request *req), 116014e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 116114e8a3c4SBeni Lev TP_STRUCT__entry( 116214e8a3c4SBeni Lev WIPHY_ENTRY 116314e8a3c4SBeni Lev NETDEV_ENTRY 116414e8a3c4SBeni Lev MAC_ENTRY(bssid) 116514e8a3c4SBeni Lev __field(u16, reason_code) 116614e8a3c4SBeni Lev ), 116714e8a3c4SBeni Lev TP_fast_assign( 116814e8a3c4SBeni Lev WIPHY_ASSIGN; 116914e8a3c4SBeni Lev NETDEV_ASSIGN; 117014e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bssid); 117114e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 117214e8a3c4SBeni Lev ), 1173ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u", 117414e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 117514e8a3c4SBeni Lev __entry->reason_code) 117614e8a3c4SBeni Lev ); 117714e8a3c4SBeni Lev 117814e8a3c4SBeni Lev TRACE_EVENT(rdev_disassoc, 117914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 118014e8a3c4SBeni Lev struct cfg80211_disassoc_request *req), 118114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, req), 118214e8a3c4SBeni Lev TP_STRUCT__entry( 118314e8a3c4SBeni Lev WIPHY_ENTRY 118414e8a3c4SBeni Lev NETDEV_ENTRY 118514e8a3c4SBeni Lev MAC_ENTRY(bssid) 118614e8a3c4SBeni Lev __field(u16, reason_code) 118714e8a3c4SBeni Lev __field(bool, local_state_change) 118814e8a3c4SBeni Lev ), 118914e8a3c4SBeni Lev TP_fast_assign( 119014e8a3c4SBeni Lev WIPHY_ASSIGN; 119114e8a3c4SBeni Lev NETDEV_ASSIGN; 119214e8a3c4SBeni Lev if (req->bss) 119314e8a3c4SBeni Lev MAC_ASSIGN(bssid, req->bss->bssid); 119414e8a3c4SBeni Lev else 1195d2beae10SJoe Perches eth_zero_addr(__entry->bssid); 119614e8a3c4SBeni Lev __entry->reason_code = req->reason_code; 119714e8a3c4SBeni Lev __entry->local_state_change = req->local_state_change; 119814e8a3c4SBeni Lev ), 1199ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 120014e8a3c4SBeni Lev ", reason: %u, local state change: %s", 120114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), 120214e8a3c4SBeni Lev __entry->reason_code, 120314e8a3c4SBeni Lev BOOL_TO_STR(__entry->local_state_change)) 120414e8a3c4SBeni Lev ); 120514e8a3c4SBeni Lev 120614e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx_cancel_wait, 120714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 120814e8a3c4SBeni Lev struct wireless_dev *wdev, u64 cookie), 120914e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 121014e8a3c4SBeni Lev TP_STRUCT__entry( 121114e8a3c4SBeni Lev WIPHY_ENTRY 121214e8a3c4SBeni Lev WDEV_ENTRY 121314e8a3c4SBeni Lev __field(u64, cookie) 121414e8a3c4SBeni Lev ), 121514e8a3c4SBeni Lev TP_fast_assign( 121614e8a3c4SBeni Lev WIPHY_ASSIGN; 121714e8a3c4SBeni Lev WDEV_ASSIGN; 121814e8a3c4SBeni Lev __entry->cookie = cookie; 121914e8a3c4SBeni Lev ), 1220ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ", 122114e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 122214e8a3c4SBeni Lev ); 122314e8a3c4SBeni Lev 122414e8a3c4SBeni Lev TRACE_EVENT(rdev_set_power_mgmt, 122514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 122614e8a3c4SBeni Lev bool enabled, int timeout), 122714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, enabled, timeout), 122814e8a3c4SBeni Lev TP_STRUCT__entry( 122914e8a3c4SBeni Lev WIPHY_ENTRY 123014e8a3c4SBeni Lev NETDEV_ENTRY 123114e8a3c4SBeni Lev __field(bool, enabled) 123214e8a3c4SBeni Lev __field(int, timeout) 123314e8a3c4SBeni Lev ), 123414e8a3c4SBeni Lev TP_fast_assign( 123514e8a3c4SBeni Lev WIPHY_ASSIGN; 123614e8a3c4SBeni Lev NETDEV_ASSIGN; 123714e8a3c4SBeni Lev __entry->enabled = enabled; 123814e8a3c4SBeni Lev __entry->timeout = timeout; 123914e8a3c4SBeni Lev ), 1240ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ", 124114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 124214e8a3c4SBeni Lev __entry->enabled ? "" : "not ", __entry->timeout) 124314e8a3c4SBeni Lev ); 124414e8a3c4SBeni Lev 124514e8a3c4SBeni Lev TRACE_EVENT(rdev_connect, 124614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 124714e8a3c4SBeni Lev struct cfg80211_connect_params *sme), 124814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, sme), 124914e8a3c4SBeni Lev TP_STRUCT__entry( 125014e8a3c4SBeni Lev WIPHY_ENTRY 125114e8a3c4SBeni Lev NETDEV_ENTRY 125214e8a3c4SBeni Lev MAC_ENTRY(bssid) 125314e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 125414e8a3c4SBeni Lev __field(enum nl80211_auth_type, auth_type) 125514e8a3c4SBeni Lev __field(bool, privacy) 125614e8a3c4SBeni Lev __field(u32, wpa_versions) 125714e8a3c4SBeni Lev __field(u32, flags) 1258ba6fbacfSJouni Malinen MAC_ENTRY(prev_bssid) 125914e8a3c4SBeni Lev ), 126014e8a3c4SBeni Lev TP_fast_assign( 126114e8a3c4SBeni Lev WIPHY_ASSIGN; 126214e8a3c4SBeni Lev NETDEV_ASSIGN; 126314e8a3c4SBeni Lev MAC_ASSIGN(bssid, sme->bssid); 126414e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 126514e8a3c4SBeni Lev memcpy(__entry->ssid, sme->ssid, sme->ssid_len); 126614e8a3c4SBeni Lev __entry->auth_type = sme->auth_type; 126714e8a3c4SBeni Lev __entry->privacy = sme->privacy; 126814e8a3c4SBeni Lev __entry->wpa_versions = sme->crypto.wpa_versions; 126914e8a3c4SBeni Lev __entry->flags = sme->flags; 1270ba6fbacfSJouni Malinen MAC_ASSIGN(prev_bssid, sme->prev_bssid); 127114e8a3c4SBeni Lev ), 1272ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 127314e8a3c4SBeni Lev ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " 1274ba6fbacfSJouni Malinen "flags: %u, previous bssid: " MAC_PR_FMT, 127514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid, 127614e8a3c4SBeni Lev __entry->auth_type, BOOL_TO_STR(__entry->privacy), 1277ba6fbacfSJouni Malinen __entry->wpa_versions, __entry->flags, MAC_PR_ARG(prev_bssid)) 127814e8a3c4SBeni Lev ); 127914e8a3c4SBeni Lev 1280088e8df8Svamsi krishna TRACE_EVENT(rdev_update_connect_params, 1281088e8df8Svamsi krishna TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1282088e8df8Svamsi krishna struct cfg80211_connect_params *sme, u32 changed), 1283088e8df8Svamsi krishna TP_ARGS(wiphy, netdev, sme, changed), 1284088e8df8Svamsi krishna TP_STRUCT__entry( 1285088e8df8Svamsi krishna WIPHY_ENTRY 1286088e8df8Svamsi krishna NETDEV_ENTRY 1287088e8df8Svamsi krishna __field(u32, changed) 1288088e8df8Svamsi krishna ), 1289088e8df8Svamsi krishna TP_fast_assign( 1290088e8df8Svamsi krishna WIPHY_ASSIGN; 1291088e8df8Svamsi krishna NETDEV_ASSIGN; 1292088e8df8Svamsi krishna __entry->changed = changed; 1293088e8df8Svamsi krishna ), 1294088e8df8Svamsi krishna TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", parameters changed: %u", 1295088e8df8Svamsi krishna WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->changed) 1296088e8df8Svamsi krishna ); 1297088e8df8Svamsi krishna 129814e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_rssi_config, 129914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, 130014e8a3c4SBeni Lev struct net_device *netdev, s32 rssi_thold, 130114e8a3c4SBeni Lev u32 rssi_hyst), 130214e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst), 130314e8a3c4SBeni Lev TP_STRUCT__entry( 130414e8a3c4SBeni Lev WIPHY_ENTRY 130514e8a3c4SBeni Lev NETDEV_ENTRY 130614e8a3c4SBeni Lev __field(s32, rssi_thold) 130714e8a3c4SBeni Lev __field(u32, rssi_hyst) 130814e8a3c4SBeni Lev ), 130914e8a3c4SBeni Lev TP_fast_assign( 131014e8a3c4SBeni Lev WIPHY_ASSIGN; 131114e8a3c4SBeni Lev NETDEV_ASSIGN; 131214e8a3c4SBeni Lev __entry->rssi_thold = rssi_thold; 131314e8a3c4SBeni Lev __entry->rssi_hyst = rssi_hyst; 131414e8a3c4SBeni Lev ), 1315ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 131614e8a3c4SBeni Lev ", rssi_thold: %d, rssi_hyst: %u ", 131714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, 131814e8a3c4SBeni Lev __entry->rssi_thold, __entry->rssi_hyst) 131914e8a3c4SBeni Lev ); 132014e8a3c4SBeni Lev 13214a4b8169SAndrew Zaborowski TRACE_EVENT(rdev_set_cqm_rssi_range_config, 13224a4b8169SAndrew Zaborowski TP_PROTO(struct wiphy *wiphy, 13234a4b8169SAndrew Zaborowski struct net_device *netdev, s32 low, s32 high), 13244a4b8169SAndrew Zaborowski TP_ARGS(wiphy, netdev, low, high), 13254a4b8169SAndrew Zaborowski TP_STRUCT__entry( 13264a4b8169SAndrew Zaborowski WIPHY_ENTRY 13274a4b8169SAndrew Zaborowski NETDEV_ENTRY 13284a4b8169SAndrew Zaborowski __field(s32, rssi_low) 13294a4b8169SAndrew Zaborowski __field(s32, rssi_high) 13304a4b8169SAndrew Zaborowski ), 13314a4b8169SAndrew Zaborowski TP_fast_assign( 13324a4b8169SAndrew Zaborowski WIPHY_ASSIGN; 13334a4b8169SAndrew Zaborowski NETDEV_ASSIGN; 13344a4b8169SAndrew Zaborowski __entry->rssi_low = low; 13354a4b8169SAndrew Zaborowski __entry->rssi_high = high; 13364a4b8169SAndrew Zaborowski ), 13374a4b8169SAndrew Zaborowski TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 13384a4b8169SAndrew Zaborowski ", range: %d - %d ", 13394a4b8169SAndrew Zaborowski WIPHY_PR_ARG, NETDEV_PR_ARG, 13404a4b8169SAndrew Zaborowski __entry->rssi_low, __entry->rssi_high) 13414a4b8169SAndrew Zaborowski ); 13424a4b8169SAndrew Zaborowski 134314e8a3c4SBeni Lev TRACE_EVENT(rdev_set_cqm_txe_config, 134414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate, 134514e8a3c4SBeni Lev u32 pkts, u32 intvl), 134614e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, rate, pkts, intvl), 134714e8a3c4SBeni Lev TP_STRUCT__entry( 134814e8a3c4SBeni Lev WIPHY_ENTRY 134914e8a3c4SBeni Lev NETDEV_ENTRY 135014e8a3c4SBeni Lev __field(u32, rate) 135114e8a3c4SBeni Lev __field(u32, pkts) 135214e8a3c4SBeni Lev __field(u32, intvl) 135314e8a3c4SBeni Lev ), 135414e8a3c4SBeni Lev TP_fast_assign( 135514e8a3c4SBeni Lev WIPHY_ASSIGN; 135614e8a3c4SBeni Lev NETDEV_ASSIGN; 135714e8a3c4SBeni Lev __entry->rate = rate; 135814e8a3c4SBeni Lev __entry->pkts = pkts; 135914e8a3c4SBeni Lev __entry->intvl = intvl; 136014e8a3c4SBeni Lev ), 1361ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", 136214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, 136314e8a3c4SBeni Lev __entry->intvl) 136414e8a3c4SBeni Lev ); 136514e8a3c4SBeni Lev 136614e8a3c4SBeni Lev TRACE_EVENT(rdev_disconnect, 136714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 136814e8a3c4SBeni Lev u16 reason_code), 136914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, reason_code), 137014e8a3c4SBeni Lev TP_STRUCT__entry( 137114e8a3c4SBeni Lev WIPHY_ENTRY 137214e8a3c4SBeni Lev NETDEV_ENTRY 137314e8a3c4SBeni Lev __field(u16, reason_code) 137414e8a3c4SBeni Lev ), 137514e8a3c4SBeni Lev TP_fast_assign( 137614e8a3c4SBeni Lev WIPHY_ASSIGN; 137714e8a3c4SBeni Lev NETDEV_ASSIGN; 137814e8a3c4SBeni Lev __entry->reason_code = reason_code; 137914e8a3c4SBeni Lev ), 1380ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, 138114e8a3c4SBeni Lev NETDEV_PR_ARG, __entry->reason_code) 138214e8a3c4SBeni Lev ); 138314e8a3c4SBeni Lev 138414e8a3c4SBeni Lev TRACE_EVENT(rdev_join_ibss, 138514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 138614e8a3c4SBeni Lev struct cfg80211_ibss_params *params), 138714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, params), 138814e8a3c4SBeni Lev TP_STRUCT__entry( 138914e8a3c4SBeni Lev WIPHY_ENTRY 139014e8a3c4SBeni Lev NETDEV_ENTRY 139114e8a3c4SBeni Lev MAC_ENTRY(bssid) 139214e8a3c4SBeni Lev __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 139314e8a3c4SBeni Lev ), 139414e8a3c4SBeni Lev TP_fast_assign( 139514e8a3c4SBeni Lev WIPHY_ASSIGN; 139614e8a3c4SBeni Lev NETDEV_ASSIGN; 139714e8a3c4SBeni Lev MAC_ASSIGN(bssid, params->bssid); 139814e8a3c4SBeni Lev memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 139914e8a3c4SBeni Lev memcpy(__entry->ssid, params->ssid, params->ssid_len); 140014e8a3c4SBeni Lev ), 1401ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s", 140214e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid) 140314e8a3c4SBeni Lev ); 140414e8a3c4SBeni Lev 14056e0bd6c3SRostislav Lisovy TRACE_EVENT(rdev_join_ocb, 14066e0bd6c3SRostislav Lisovy TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 14076e0bd6c3SRostislav Lisovy const struct ocb_setup *setup), 14086e0bd6c3SRostislav Lisovy TP_ARGS(wiphy, netdev, setup), 14096e0bd6c3SRostislav Lisovy TP_STRUCT__entry( 14106e0bd6c3SRostislav Lisovy WIPHY_ENTRY 14116e0bd6c3SRostislav Lisovy NETDEV_ENTRY 14126e0bd6c3SRostislav Lisovy ), 14136e0bd6c3SRostislav Lisovy TP_fast_assign( 14146e0bd6c3SRostislav Lisovy WIPHY_ASSIGN; 14156e0bd6c3SRostislav Lisovy NETDEV_ASSIGN; 14166e0bd6c3SRostislav Lisovy ), 14176e0bd6c3SRostislav Lisovy TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 14186e0bd6c3SRostislav Lisovy WIPHY_PR_ARG, NETDEV_PR_ARG) 14196e0bd6c3SRostislav Lisovy ); 14206e0bd6c3SRostislav Lisovy 142114e8a3c4SBeni Lev TRACE_EVENT(rdev_set_wiphy_params, 142214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 changed), 142314e8a3c4SBeni Lev TP_ARGS(wiphy, changed), 142414e8a3c4SBeni Lev TP_STRUCT__entry( 142514e8a3c4SBeni Lev WIPHY_ENTRY 142614e8a3c4SBeni Lev __field(u32, changed) 142714e8a3c4SBeni Lev ), 142814e8a3c4SBeni Lev TP_fast_assign( 142914e8a3c4SBeni Lev WIPHY_ASSIGN; 143014e8a3c4SBeni Lev __entry->changed = changed; 143114e8a3c4SBeni Lev ), 143214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", changed: %u", 143314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->changed) 143414e8a3c4SBeni Lev ); 143514e8a3c4SBeni Lev 1436c8442118SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power, 1437c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1438c8442118SJohannes Berg TP_ARGS(wiphy, wdev) 1439c8442118SJohannes Berg ); 1440c8442118SJohannes Berg 144114e8a3c4SBeni Lev TRACE_EVENT(rdev_set_tx_power, 1442c8442118SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1443c8442118SJohannes Berg enum nl80211_tx_power_setting type, int mbm), 1444c8442118SJohannes Berg TP_ARGS(wiphy, wdev, type, mbm), 144514e8a3c4SBeni Lev TP_STRUCT__entry( 144614e8a3c4SBeni Lev WIPHY_ENTRY 1447c8442118SJohannes Berg WDEV_ENTRY 144814e8a3c4SBeni Lev __field(enum nl80211_tx_power_setting, type) 144914e8a3c4SBeni Lev __field(int, mbm) 145014e8a3c4SBeni Lev ), 145114e8a3c4SBeni Lev TP_fast_assign( 145214e8a3c4SBeni Lev WIPHY_ASSIGN; 1453c8442118SJohannes Berg WDEV_ASSIGN; 145414e8a3c4SBeni Lev __entry->type = type; 145514e8a3c4SBeni Lev __entry->mbm = mbm; 145614e8a3c4SBeni Lev ), 1457ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type: %u, mbm: %d", 1458c8442118SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm) 145914e8a3c4SBeni Lev ); 146014e8a3c4SBeni Lev 146114e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_int, 146214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill), 146314e8a3c4SBeni Lev TP_ARGS(wiphy, func_ret, func_fill), 146414e8a3c4SBeni Lev TP_STRUCT__entry( 146514e8a3c4SBeni Lev WIPHY_ENTRY 146614e8a3c4SBeni Lev __field(int, func_ret) 146714e8a3c4SBeni Lev __field(int, func_fill) 146814e8a3c4SBeni Lev ), 146914e8a3c4SBeni Lev TP_fast_assign( 147014e8a3c4SBeni Lev WIPHY_ASSIGN; 147114e8a3c4SBeni Lev __entry->func_ret = func_ret; 147214e8a3c4SBeni Lev __entry->func_fill = func_fill; 147314e8a3c4SBeni Lev ), 147414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d", 147514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill) 147614e8a3c4SBeni Lev ); 147714e8a3c4SBeni Lev 147814e8a3c4SBeni Lev #ifdef CONFIG_NL80211_TESTMODE 147914e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_cmd, 1480fc73f11fSDavid Spinadel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1481fc73f11fSDavid Spinadel TP_ARGS(wiphy, wdev), 148214e8a3c4SBeni Lev TP_STRUCT__entry( 148314e8a3c4SBeni Lev WIPHY_ENTRY 1484fc73f11fSDavid Spinadel WDEV_ENTRY 148514e8a3c4SBeni Lev ), 148614e8a3c4SBeni Lev TP_fast_assign( 148714e8a3c4SBeni Lev WIPHY_ASSIGN; 1488fc73f11fSDavid Spinadel WDEV_ASSIGN; 148914e8a3c4SBeni Lev ), 1490fc73f11fSDavid Spinadel TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 149114e8a3c4SBeni Lev ); 149214e8a3c4SBeni Lev 149314e8a3c4SBeni Lev TRACE_EVENT(rdev_testmode_dump, 149414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy), 149514e8a3c4SBeni Lev TP_ARGS(wiphy), 149614e8a3c4SBeni Lev TP_STRUCT__entry( 149714e8a3c4SBeni Lev WIPHY_ENTRY 149814e8a3c4SBeni Lev ), 149914e8a3c4SBeni Lev TP_fast_assign( 150014e8a3c4SBeni Lev WIPHY_ASSIGN; 150114e8a3c4SBeni Lev ), 150214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 150314e8a3c4SBeni Lev ); 150414e8a3c4SBeni Lev #endif /* CONFIG_NL80211_TESTMODE */ 150514e8a3c4SBeni Lev 150614e8a3c4SBeni Lev TRACE_EVENT(rdev_set_bitrate_mask, 150714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 150814e8a3c4SBeni Lev const u8 *peer, const struct cfg80211_bitrate_mask *mask), 150914e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, mask), 151014e8a3c4SBeni Lev TP_STRUCT__entry( 151114e8a3c4SBeni Lev WIPHY_ENTRY 151214e8a3c4SBeni Lev NETDEV_ENTRY 151314e8a3c4SBeni Lev MAC_ENTRY(peer) 151414e8a3c4SBeni Lev ), 151514e8a3c4SBeni Lev TP_fast_assign( 151614e8a3c4SBeni Lev WIPHY_ASSIGN; 151714e8a3c4SBeni Lev NETDEV_ASSIGN; 151814e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 151914e8a3c4SBeni Lev ), 1520ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT, 152114e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 152214e8a3c4SBeni Lev ); 152314e8a3c4SBeni Lev 152414e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_frame_register, 152514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 152614e8a3c4SBeni Lev u16 frame_type, bool reg), 152714e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, frame_type, reg), 152814e8a3c4SBeni Lev TP_STRUCT__entry( 152914e8a3c4SBeni Lev WIPHY_ENTRY 153014e8a3c4SBeni Lev WDEV_ENTRY 153114e8a3c4SBeni Lev __field(u16, frame_type) 153214e8a3c4SBeni Lev __field(bool, reg) 153314e8a3c4SBeni Lev ), 153414e8a3c4SBeni Lev TP_fast_assign( 153514e8a3c4SBeni Lev WIPHY_ASSIGN; 153614e8a3c4SBeni Lev WDEV_ASSIGN; 153714e8a3c4SBeni Lev __entry->frame_type = frame_type; 153814e8a3c4SBeni Lev __entry->reg = reg; 153914e8a3c4SBeni Lev ), 1540ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", frame_type: 0x%.2x, reg: %s ", 154114e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type, 154214e8a3c4SBeni Lev __entry->reg ? "true" : "false") 154314e8a3c4SBeni Lev ); 154414e8a3c4SBeni Lev 154514e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_tx_rx, 154614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx), 154714e8a3c4SBeni Lev TP_ARGS(wiphy, ret, tx, rx), 154814e8a3c4SBeni Lev TP_STRUCT__entry( 154914e8a3c4SBeni Lev WIPHY_ENTRY 155014e8a3c4SBeni Lev __field(int, ret) 155114e8a3c4SBeni Lev __field(u32, tx) 155214e8a3c4SBeni Lev __field(u32, rx) 155314e8a3c4SBeni Lev ), 155414e8a3c4SBeni Lev TP_fast_assign( 155514e8a3c4SBeni Lev WIPHY_ASSIGN; 155614e8a3c4SBeni Lev __entry->ret = ret; 155714e8a3c4SBeni Lev __entry->tx = tx; 155814e8a3c4SBeni Lev __entry->rx = rx; 155914e8a3c4SBeni Lev ), 156014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u", 156114e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx) 156214e8a3c4SBeni Lev ); 156314e8a3c4SBeni Lev 156414e8a3c4SBeni Lev TRACE_EVENT(rdev_return_void_tx_rx, 156514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max, 156614e8a3c4SBeni Lev u32 rx, u32 rx_max), 156714e8a3c4SBeni Lev TP_ARGS(wiphy, tx, tx_max, rx, rx_max), 156814e8a3c4SBeni Lev TP_STRUCT__entry( 156914e8a3c4SBeni Lev WIPHY_ENTRY 157014e8a3c4SBeni Lev __field(u32, tx) 157114e8a3c4SBeni Lev __field(u32, tx_max) 157214e8a3c4SBeni Lev __field(u32, rx) 157314e8a3c4SBeni Lev __field(u32, rx_max) 157414e8a3c4SBeni Lev ), 157514e8a3c4SBeni Lev TP_fast_assign( 157614e8a3c4SBeni Lev WIPHY_ASSIGN; 157714e8a3c4SBeni Lev __entry->tx = tx; 157814e8a3c4SBeni Lev __entry->tx_max = tx_max; 157914e8a3c4SBeni Lev __entry->rx = rx; 158014e8a3c4SBeni Lev __entry->rx_max = rx_max; 158114e8a3c4SBeni Lev ), 158214e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ", 158314e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx, 158414e8a3c4SBeni Lev __entry->rx_max) 158514e8a3c4SBeni Lev ); 158614e8a3c4SBeni Lev 158714e8a3c4SBeni Lev DECLARE_EVENT_CLASS(tx_rx_evt, 158814e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 158914e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx), 159014e8a3c4SBeni Lev TP_STRUCT__entry( 159114e8a3c4SBeni Lev WIPHY_ENTRY 159214e8a3c4SBeni Lev __field(u32, tx) 159314e8a3c4SBeni Lev __field(u32, rx) 159414e8a3c4SBeni Lev ), 159514e8a3c4SBeni Lev TP_fast_assign( 159614e8a3c4SBeni Lev WIPHY_ASSIGN; 159714e8a3c4SBeni Lev __entry->tx = tx; 159814e8a3c4SBeni Lev __entry->rx = rx; 159914e8a3c4SBeni Lev ), 160014e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ", 160114e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->tx, __entry->rx) 160214e8a3c4SBeni Lev ); 160314e8a3c4SBeni Lev 160414e8a3c4SBeni Lev DEFINE_EVENT(tx_rx_evt, rdev_set_antenna, 160514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx), 160614e8a3c4SBeni Lev TP_ARGS(wiphy, rx, tx) 160714e8a3c4SBeni Lev ); 160814e8a3c4SBeni Lev 1609ca986ad9SArend Van Spriel DECLARE_EVENT_CLASS(wiphy_netdev_id_evt, 1610ca986ad9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1611ca986ad9SArend Van Spriel TP_ARGS(wiphy, netdev, id), 161214e8a3c4SBeni Lev TP_STRUCT__entry( 161314e8a3c4SBeni Lev WIPHY_ENTRY 161414e8a3c4SBeni Lev NETDEV_ENTRY 1615ca986ad9SArend Van Spriel __field(u64, id) 161614e8a3c4SBeni Lev ), 161714e8a3c4SBeni Lev TP_fast_assign( 161814e8a3c4SBeni Lev WIPHY_ASSIGN; 161914e8a3c4SBeni Lev NETDEV_ASSIGN; 1620ca986ad9SArend Van Spriel __entry->id = id; 162114e8a3c4SBeni Lev ), 1622ca986ad9SArend Van Spriel TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", id: %llu", 1623ca986ad9SArend Van Spriel WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->id) 1624ca986ad9SArend Van Spriel ); 1625ca986ad9SArend Van Spriel 1626ca986ad9SArend Van Spriel DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_start, 1627ca986ad9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1628ca986ad9SArend Van Spriel TP_ARGS(wiphy, netdev, id) 162914e8a3c4SBeni Lev ); 163014e8a3c4SBeni Lev 16313a3ecf1dSArend Van Spriel DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_stop, 16323a3ecf1dSArend Van Spriel TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 16333a3ecf1dSArend Van Spriel TP_ARGS(wiphy, netdev, id) 16343a3ecf1dSArend Van Spriel ); 16353a3ecf1dSArend Van Spriel 163614e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_mgmt, 163714e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 163814e8a3c4SBeni Lev u8 *peer, u8 action_code, u8 dialog_token, 1639df942e7bSSunil Dutt Undekari u16 status_code, u32 peer_capability, 164031fa97c5SArik Nemtsov bool initiator, const u8 *buf, size_t len), 164114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code, 164231fa97c5SArik Nemtsov peer_capability, initiator, buf, len), 164314e8a3c4SBeni Lev TP_STRUCT__entry( 164414e8a3c4SBeni Lev WIPHY_ENTRY 164514e8a3c4SBeni Lev NETDEV_ENTRY 164614e8a3c4SBeni Lev MAC_ENTRY(peer) 164714e8a3c4SBeni Lev __field(u8, action_code) 164814e8a3c4SBeni Lev __field(u8, dialog_token) 164914e8a3c4SBeni Lev __field(u16, status_code) 1650df942e7bSSunil Dutt Undekari __field(u32, peer_capability) 165131fa97c5SArik Nemtsov __field(bool, initiator) 165214e8a3c4SBeni Lev __dynamic_array(u8, buf, len) 165314e8a3c4SBeni Lev ), 165414e8a3c4SBeni Lev TP_fast_assign( 165514e8a3c4SBeni Lev WIPHY_ASSIGN; 165614e8a3c4SBeni Lev NETDEV_ASSIGN; 165714e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 165814e8a3c4SBeni Lev __entry->action_code = action_code; 165914e8a3c4SBeni Lev __entry->dialog_token = dialog_token; 166014e8a3c4SBeni Lev __entry->status_code = status_code; 1661df942e7bSSunil Dutt Undekari __entry->peer_capability = peer_capability; 166231fa97c5SArik Nemtsov __entry->initiator = initiator; 166314e8a3c4SBeni Lev memcpy(__get_dynamic_array(buf), buf, len); 166414e8a3c4SBeni Lev ), 1665ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", action_code: %u, " 166631fa97c5SArik Nemtsov "dialog_token: %u, status_code: %u, peer_capability: %u " 166731fa97c5SArik Nemtsov "initiator: %s buf: %#.2x ", 166814e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 166914e8a3c4SBeni Lev __entry->action_code, __entry->dialog_token, 1670df942e7bSSunil Dutt Undekari __entry->status_code, __entry->peer_capability, 167131fa97c5SArik Nemtsov BOOL_TO_STR(__entry->initiator), 1672df942e7bSSunil Dutt Undekari ((u8 *)__get_dynamic_array(buf))[0]) 167314e8a3c4SBeni Lev ); 167414e8a3c4SBeni Lev 167514e8a3c4SBeni Lev TRACE_EVENT(rdev_dump_survey, 167614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int idx), 167714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, idx), 167814e8a3c4SBeni Lev TP_STRUCT__entry( 167914e8a3c4SBeni Lev WIPHY_ENTRY 168014e8a3c4SBeni Lev NETDEV_ENTRY 168114e8a3c4SBeni Lev __field(int, idx) 168214e8a3c4SBeni Lev ), 168314e8a3c4SBeni Lev TP_fast_assign( 168414e8a3c4SBeni Lev WIPHY_ASSIGN; 168514e8a3c4SBeni Lev NETDEV_ASSIGN; 168614e8a3c4SBeni Lev __entry->idx = idx; 168714e8a3c4SBeni Lev ), 1688ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d", 168914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) 169014e8a3c4SBeni Lev ); 169114e8a3c4SBeni Lev 169214e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_survey_info, 169314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info), 169414e8a3c4SBeni Lev TP_ARGS(wiphy, ret, info), 169514e8a3c4SBeni Lev TP_STRUCT__entry( 169614e8a3c4SBeni Lev WIPHY_ENTRY 169714e8a3c4SBeni Lev CHAN_ENTRY 169814e8a3c4SBeni Lev __field(int, ret) 16994ed20bebSJohannes Berg __field(u64, time) 17004ed20bebSJohannes Berg __field(u64, time_busy) 17014ed20bebSJohannes Berg __field(u64, time_ext_busy) 17024ed20bebSJohannes Berg __field(u64, time_rx) 17034ed20bebSJohannes Berg __field(u64, time_tx) 1704052536abSJohannes Berg __field(u64, time_scan) 170514e8a3c4SBeni Lev __field(u32, filled) 170614e8a3c4SBeni Lev __field(s8, noise) 170714e8a3c4SBeni Lev ), 170814e8a3c4SBeni Lev TP_fast_assign( 170914e8a3c4SBeni Lev WIPHY_ASSIGN; 171014e8a3c4SBeni Lev CHAN_ASSIGN(info->channel); 171114e8a3c4SBeni Lev __entry->ret = ret; 17124ed20bebSJohannes Berg __entry->time = info->time; 17134ed20bebSJohannes Berg __entry->time_busy = info->time_busy; 17144ed20bebSJohannes Berg __entry->time_ext_busy = info->time_ext_busy; 17154ed20bebSJohannes Berg __entry->time_rx = info->time_rx; 17164ed20bebSJohannes Berg __entry->time_tx = info->time_tx; 1717052536abSJohannes Berg __entry->time_scan = info->time_scan; 171814e8a3c4SBeni Lev __entry->filled = info->filled; 171914e8a3c4SBeni Lev __entry->noise = info->noise; 172014e8a3c4SBeni Lev ), 172114e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT 172214e8a3c4SBeni Lev ", channel time: %llu, channel time busy: %llu, " 172314e8a3c4SBeni Lev "channel time extension busy: %llu, channel time rx: %llu, " 1724052536abSJohannes Berg "channel time tx: %llu, scan time: %llu, filled: %u, noise: %d", 172514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG, 17264ed20bebSJohannes Berg __entry->time, __entry->time_busy, 17274ed20bebSJohannes Berg __entry->time_ext_busy, __entry->time_rx, 1728052536abSJohannes Berg __entry->time_tx, __entry->time_scan, 1729052536abSJohannes Berg __entry->filled, __entry->noise) 173014e8a3c4SBeni Lev ); 173114e8a3c4SBeni Lev 173214e8a3c4SBeni Lev TRACE_EVENT(rdev_tdls_oper, 173314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 173414e8a3c4SBeni Lev u8 *peer, enum nl80211_tdls_operation oper), 173514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer, oper), 173614e8a3c4SBeni Lev TP_STRUCT__entry( 173714e8a3c4SBeni Lev WIPHY_ENTRY 173814e8a3c4SBeni Lev NETDEV_ENTRY 173914e8a3c4SBeni Lev MAC_ENTRY(peer) 174014e8a3c4SBeni Lev __field(enum nl80211_tdls_operation, oper) 174114e8a3c4SBeni Lev ), 174214e8a3c4SBeni Lev TP_fast_assign( 174314e8a3c4SBeni Lev WIPHY_ASSIGN; 174414e8a3c4SBeni Lev NETDEV_ASSIGN; 174514e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 174614e8a3c4SBeni Lev __entry->oper = oper; 174714e8a3c4SBeni Lev ), 1748ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", oper: %d", 174914e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper) 175014e8a3c4SBeni Lev ); 175114e8a3c4SBeni Lev 175214e8a3c4SBeni Lev DECLARE_EVENT_CLASS(rdev_pmksa, 175314e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 175414e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 175514e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa), 175614e8a3c4SBeni Lev TP_STRUCT__entry( 175714e8a3c4SBeni Lev WIPHY_ENTRY 175814e8a3c4SBeni Lev NETDEV_ENTRY 175914e8a3c4SBeni Lev MAC_ENTRY(bssid) 176014e8a3c4SBeni Lev ), 176114e8a3c4SBeni Lev TP_fast_assign( 176214e8a3c4SBeni Lev WIPHY_ASSIGN; 176314e8a3c4SBeni Lev NETDEV_ASSIGN; 176414e8a3c4SBeni Lev MAC_ASSIGN(bssid, pmksa->bssid); 176514e8a3c4SBeni Lev ), 1766ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT, 176714e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid)) 176814e8a3c4SBeni Lev ); 176914e8a3c4SBeni Lev 177014e8a3c4SBeni Lev TRACE_EVENT(rdev_probe_client, 177114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 177214e8a3c4SBeni Lev const u8 *peer), 177314e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, peer), 177414e8a3c4SBeni Lev TP_STRUCT__entry( 177514e8a3c4SBeni Lev WIPHY_ENTRY 177614e8a3c4SBeni Lev NETDEV_ENTRY 177714e8a3c4SBeni Lev MAC_ENTRY(peer) 177814e8a3c4SBeni Lev ), 177914e8a3c4SBeni Lev TP_fast_assign( 178014e8a3c4SBeni Lev WIPHY_ASSIGN; 178114e8a3c4SBeni Lev NETDEV_ASSIGN; 178214e8a3c4SBeni Lev MAC_ASSIGN(peer, peer); 178314e8a3c4SBeni Lev ), 1784ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 178514e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) 178614e8a3c4SBeni Lev ); 178714e8a3c4SBeni Lev 178814e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa, 178914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 179014e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 179114e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 179214e8a3c4SBeni Lev ); 179314e8a3c4SBeni Lev 179414e8a3c4SBeni Lev DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa, 179514e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 179614e8a3c4SBeni Lev struct cfg80211_pmksa *pmksa), 179714e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, pmksa) 179814e8a3c4SBeni Lev ); 179914e8a3c4SBeni Lev 180014e8a3c4SBeni Lev TRACE_EVENT(rdev_remain_on_channel, 180114e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 180214e8a3c4SBeni Lev struct ieee80211_channel *chan, 180342d97a59SJohannes Berg unsigned int duration), 180442d97a59SJohannes Berg TP_ARGS(wiphy, wdev, chan, duration), 180514e8a3c4SBeni Lev TP_STRUCT__entry( 180614e8a3c4SBeni Lev WIPHY_ENTRY 180714e8a3c4SBeni Lev WDEV_ENTRY 180814e8a3c4SBeni Lev CHAN_ENTRY 180914e8a3c4SBeni Lev __field(unsigned int, duration) 181014e8a3c4SBeni Lev ), 181114e8a3c4SBeni Lev TP_fast_assign( 181214e8a3c4SBeni Lev WIPHY_ASSIGN; 181314e8a3c4SBeni Lev WDEV_ASSIGN; 181414e8a3c4SBeni Lev CHAN_ASSIGN(chan); 181514e8a3c4SBeni Lev __entry->duration = duration; 181614e8a3c4SBeni Lev ), 1817ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u", 181842d97a59SJohannes Berg WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) 181914e8a3c4SBeni Lev ); 182014e8a3c4SBeni Lev 182114e8a3c4SBeni Lev TRACE_EVENT(rdev_return_int_cookie, 182214e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie), 182314e8a3c4SBeni Lev TP_ARGS(wiphy, ret, cookie), 182414e8a3c4SBeni Lev TP_STRUCT__entry( 182514e8a3c4SBeni Lev WIPHY_ENTRY 182614e8a3c4SBeni Lev __field(int, ret) 182714e8a3c4SBeni Lev __field(u64, cookie) 182814e8a3c4SBeni Lev ), 182914e8a3c4SBeni Lev TP_fast_assign( 183014e8a3c4SBeni Lev WIPHY_ASSIGN; 183114e8a3c4SBeni Lev __entry->ret = ret; 183214e8a3c4SBeni Lev __entry->cookie = cookie; 183314e8a3c4SBeni Lev ), 183414e8a3c4SBeni Lev TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu", 183514e8a3c4SBeni Lev WIPHY_PR_ARG, __entry->ret, __entry->cookie) 183614e8a3c4SBeni Lev ); 183714e8a3c4SBeni Lev 183814e8a3c4SBeni Lev TRACE_EVENT(rdev_cancel_remain_on_channel, 183914e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 184014e8a3c4SBeni Lev TP_ARGS(wiphy, wdev, cookie), 184114e8a3c4SBeni Lev TP_STRUCT__entry( 184214e8a3c4SBeni Lev WIPHY_ENTRY 184314e8a3c4SBeni Lev WDEV_ENTRY 184414e8a3c4SBeni Lev __field(u64, cookie) 184514e8a3c4SBeni Lev ), 184614e8a3c4SBeni Lev TP_fast_assign( 184714e8a3c4SBeni Lev WIPHY_ASSIGN; 184814e8a3c4SBeni Lev WDEV_ASSIGN; 184914e8a3c4SBeni Lev __entry->cookie = cookie; 185014e8a3c4SBeni Lev ), 1851ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu", 185214e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 185314e8a3c4SBeni Lev ); 185414e8a3c4SBeni Lev 185514e8a3c4SBeni Lev TRACE_EVENT(rdev_mgmt_tx, 185614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1857b176e629SAndrei Otcheretianski struct cfg80211_mgmt_tx_params *params), 1858b176e629SAndrei Otcheretianski TP_ARGS(wiphy, wdev, params), 185914e8a3c4SBeni Lev TP_STRUCT__entry( 186014e8a3c4SBeni Lev WIPHY_ENTRY 186114e8a3c4SBeni Lev WDEV_ENTRY 186214e8a3c4SBeni Lev CHAN_ENTRY 186314e8a3c4SBeni Lev __field(bool, offchan) 186414e8a3c4SBeni Lev __field(unsigned int, wait) 186514e8a3c4SBeni Lev __field(bool, no_cck) 186614e8a3c4SBeni Lev __field(bool, dont_wait_for_ack) 186714e8a3c4SBeni Lev ), 186814e8a3c4SBeni Lev TP_fast_assign( 186914e8a3c4SBeni Lev WIPHY_ASSIGN; 187014e8a3c4SBeni Lev WDEV_ASSIGN; 1871b176e629SAndrei Otcheretianski CHAN_ASSIGN(params->chan); 1872b176e629SAndrei Otcheretianski __entry->offchan = params->offchan; 1873b176e629SAndrei Otcheretianski __entry->wait = params->wait; 1874b176e629SAndrei Otcheretianski __entry->no_cck = params->no_cck; 1875b176e629SAndrei Otcheretianski __entry->dont_wait_for_ack = params->dont_wait_for_ack; 187614e8a3c4SBeni Lev ), 1877ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s," 187842d97a59SJohannes Berg " wait: %u, no cck: %s, dont wait for ack: %s", 187914e8a3c4SBeni Lev WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, 188042d97a59SJohannes Berg BOOL_TO_STR(__entry->offchan), __entry->wait, 188114e8a3c4SBeni Lev BOOL_TO_STR(__entry->no_cck), 188214e8a3c4SBeni Lev BOOL_TO_STR(__entry->dont_wait_for_ack)) 188314e8a3c4SBeni Lev ); 188414e8a3c4SBeni Lev 188514e8a3c4SBeni Lev TRACE_EVENT(rdev_set_noack_map, 188614e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 188714e8a3c4SBeni Lev u16 noack_map), 188814e8a3c4SBeni Lev TP_ARGS(wiphy, netdev, noack_map), 188914e8a3c4SBeni Lev TP_STRUCT__entry( 189014e8a3c4SBeni Lev WIPHY_ENTRY 189114e8a3c4SBeni Lev NETDEV_ENTRY 189214e8a3c4SBeni Lev __field(u16, noack_map) 189314e8a3c4SBeni Lev ), 189414e8a3c4SBeni Lev TP_fast_assign( 189514e8a3c4SBeni Lev WIPHY_ASSIGN; 189614e8a3c4SBeni Lev NETDEV_ASSIGN; 189714e8a3c4SBeni Lev __entry->noack_map = noack_map; 189814e8a3c4SBeni Lev ), 1899ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u", 190014e8a3c4SBeni Lev WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) 190114e8a3c4SBeni Lev ); 190214e8a3c4SBeni Lev 190314e8a3c4SBeni Lev DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel, 190414e8a3c4SBeni Lev TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 190514e8a3c4SBeni Lev TP_ARGS(wiphy, wdev) 190614e8a3c4SBeni Lev ); 190714e8a3c4SBeni Lev 1908683b6d3bSJohannes Berg TRACE_EVENT(rdev_return_chandef, 1909683b6d3bSJohannes Berg TP_PROTO(struct wiphy *wiphy, int ret, 1910683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 1911683b6d3bSJohannes Berg TP_ARGS(wiphy, ret, chandef), 191214e8a3c4SBeni Lev TP_STRUCT__entry( 191314e8a3c4SBeni Lev WIPHY_ENTRY 1914683b6d3bSJohannes Berg __field(int, ret) 1915683b6d3bSJohannes Berg CHAN_DEF_ENTRY 191614e8a3c4SBeni Lev ), 191714e8a3c4SBeni Lev TP_fast_assign( 191814e8a3c4SBeni Lev WIPHY_ASSIGN; 1919683b6d3bSJohannes Berg if (ret == 0) 1920683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 1921683b6d3bSJohannes Berg else 1922683b6d3bSJohannes Berg CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); 1923683b6d3bSJohannes Berg __entry->ret = ret; 192414e8a3c4SBeni Lev ), 1925ec816087SJohannes Berg TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d", 1926683b6d3bSJohannes Berg WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) 192714e8a3c4SBeni Lev ); 192814e8a3c4SBeni Lev 1929eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device, 1930eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1931eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1932eeb126e9SJohannes Berg ); 1933eeb126e9SJohannes Berg 1934eeb126e9SJohannes Berg DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device, 1935eeb126e9SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1936eeb126e9SJohannes Berg TP_ARGS(wiphy, wdev) 1937eeb126e9SJohannes Berg ); 1938eeb126e9SJohannes Berg 1939cb3b7d87SAyala Beker TRACE_EVENT(rdev_start_nan, 1940cb3b7d87SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1941cb3b7d87SAyala Beker struct cfg80211_nan_conf *conf), 1942cb3b7d87SAyala Beker TP_ARGS(wiphy, wdev, conf), 1943cb3b7d87SAyala Beker TP_STRUCT__entry( 1944cb3b7d87SAyala Beker WIPHY_ENTRY 1945cb3b7d87SAyala Beker WDEV_ENTRY 1946cb3b7d87SAyala Beker __field(u8, master_pref) 19478585989dSLuca Coelho __field(u8, bands); 1948cb3b7d87SAyala Beker ), 1949cb3b7d87SAyala Beker TP_fast_assign( 1950cb3b7d87SAyala Beker WIPHY_ASSIGN; 1951cb3b7d87SAyala Beker WDEV_ASSIGN; 1952cb3b7d87SAyala Beker __entry->master_pref = conf->master_pref; 19538585989dSLuca Coelho __entry->bands = conf->bands; 1954cb3b7d87SAyala Beker ), 1955cb3b7d87SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 19568585989dSLuca Coelho ", master preference: %u, bands: 0x%0x", 1957cb3b7d87SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 19588585989dSLuca Coelho __entry->bands) 1959cb3b7d87SAyala Beker ); 1960cb3b7d87SAyala Beker 1961a5a9dcf2SAyala Beker TRACE_EVENT(rdev_nan_change_conf, 1962a5a9dcf2SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1963a5a9dcf2SAyala Beker struct cfg80211_nan_conf *conf, u32 changes), 1964a5a9dcf2SAyala Beker TP_ARGS(wiphy, wdev, conf, changes), 1965a5a9dcf2SAyala Beker TP_STRUCT__entry( 1966a5a9dcf2SAyala Beker WIPHY_ENTRY 1967a5a9dcf2SAyala Beker WDEV_ENTRY 1968a5a9dcf2SAyala Beker __field(u8, master_pref) 19698585989dSLuca Coelho __field(u8, bands); 1970a5a9dcf2SAyala Beker __field(u32, changes); 1971a5a9dcf2SAyala Beker ), 1972a5a9dcf2SAyala Beker TP_fast_assign( 1973a5a9dcf2SAyala Beker WIPHY_ASSIGN; 1974a5a9dcf2SAyala Beker WDEV_ASSIGN; 1975a5a9dcf2SAyala Beker __entry->master_pref = conf->master_pref; 19768585989dSLuca Coelho __entry->bands = conf->bands; 1977a5a9dcf2SAyala Beker __entry->changes = changes; 1978a5a9dcf2SAyala Beker ), 1979a5a9dcf2SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 19808585989dSLuca Coelho ", master preference: %u, bands: 0x%0x, changes: %x", 1981a5a9dcf2SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 19828585989dSLuca Coelho __entry->bands, __entry->changes) 1983a5a9dcf2SAyala Beker ); 1984a5a9dcf2SAyala Beker 1985cb3b7d87SAyala Beker DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_nan, 1986cb3b7d87SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1987cb3b7d87SAyala Beker TP_ARGS(wiphy, wdev) 1988cb3b7d87SAyala Beker ); 1989cb3b7d87SAyala Beker 1990a442b761SAyala Beker TRACE_EVENT(rdev_add_nan_func, 1991a442b761SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1992a442b761SAyala Beker const struct cfg80211_nan_func *func), 1993a442b761SAyala Beker TP_ARGS(wiphy, wdev, func), 1994a442b761SAyala Beker TP_STRUCT__entry( 1995a442b761SAyala Beker WIPHY_ENTRY 1996a442b761SAyala Beker WDEV_ENTRY 1997a442b761SAyala Beker __field(u8, func_type) 1998a442b761SAyala Beker __field(u64, cookie) 1999a442b761SAyala Beker ), 2000a442b761SAyala Beker TP_fast_assign( 2001a442b761SAyala Beker WIPHY_ASSIGN; 2002a442b761SAyala Beker WDEV_ASSIGN; 2003a442b761SAyala Beker __entry->func_type = func->type; 2004a442b761SAyala Beker __entry->cookie = func->cookie 2005a442b761SAyala Beker ), 2006a442b761SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type=%u, cookie=%llu", 2007a442b761SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->func_type, 2008a442b761SAyala Beker __entry->cookie) 2009a442b761SAyala Beker ); 2010a442b761SAyala Beker 2011a442b761SAyala Beker TRACE_EVENT(rdev_del_nan_func, 2012a442b761SAyala Beker TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2013a442b761SAyala Beker u64 cookie), 2014a442b761SAyala Beker TP_ARGS(wiphy, wdev, cookie), 2015a442b761SAyala Beker TP_STRUCT__entry( 2016a442b761SAyala Beker WIPHY_ENTRY 2017a442b761SAyala Beker WDEV_ENTRY 2018a442b761SAyala Beker __field(u64, cookie) 2019a442b761SAyala Beker ), 2020a442b761SAyala Beker TP_fast_assign( 2021a442b761SAyala Beker WIPHY_ASSIGN; 2022a442b761SAyala Beker WDEV_ASSIGN; 2023a442b761SAyala Beker __entry->cookie = cookie; 2024a442b761SAyala Beker ), 2025a442b761SAyala Beker TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie=%llu", 2026a442b761SAyala Beker WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 2027a442b761SAyala Beker ); 2028a442b761SAyala Beker 202977765eafSVasanthakumar Thiagarajan TRACE_EVENT(rdev_set_mac_acl, 203077765eafSVasanthakumar Thiagarajan TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 203177765eafSVasanthakumar Thiagarajan struct cfg80211_acl_data *params), 203277765eafSVasanthakumar Thiagarajan TP_ARGS(wiphy, netdev, params), 203377765eafSVasanthakumar Thiagarajan TP_STRUCT__entry( 203477765eafSVasanthakumar Thiagarajan WIPHY_ENTRY 203577765eafSVasanthakumar Thiagarajan NETDEV_ENTRY 203677765eafSVasanthakumar Thiagarajan __field(u32, acl_policy) 203777765eafSVasanthakumar Thiagarajan ), 203877765eafSVasanthakumar Thiagarajan TP_fast_assign( 203977765eafSVasanthakumar Thiagarajan WIPHY_ASSIGN; 2040021fcdc1SVladimir Kondratiev NETDEV_ASSIGN; 204177765eafSVasanthakumar Thiagarajan __entry->acl_policy = params->acl_policy; 204277765eafSVasanthakumar Thiagarajan ), 204377765eafSVasanthakumar Thiagarajan TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", acl policy: %d", 204477765eafSVasanthakumar Thiagarajan WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) 204577765eafSVasanthakumar Thiagarajan ); 204677765eafSVasanthakumar Thiagarajan 2047355199e0SJouni Malinen TRACE_EVENT(rdev_update_ft_ies, 2048355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2049355199e0SJouni Malinen struct cfg80211_update_ft_ies_params *ftie), 2050355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ftie), 2051355199e0SJouni Malinen TP_STRUCT__entry( 2052355199e0SJouni Malinen WIPHY_ENTRY 2053355199e0SJouni Malinen NETDEV_ENTRY 2054355199e0SJouni Malinen __field(u16, md) 2055355199e0SJouni Malinen __dynamic_array(u8, ie, ftie->ie_len) 2056355199e0SJouni Malinen ), 2057355199e0SJouni Malinen TP_fast_assign( 2058355199e0SJouni Malinen WIPHY_ASSIGN; 2059355199e0SJouni Malinen NETDEV_ASSIGN; 2060355199e0SJouni Malinen __entry->md = ftie->md; 2061355199e0SJouni Malinen memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len); 2062355199e0SJouni Malinen ), 2063355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x", 2064355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md) 2065355199e0SJouni Malinen ); 2066355199e0SJouni Malinen 20675de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_start, 20685de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 20695de17984SArend van Spriel enum nl80211_crit_proto_id protocol, u16 duration), 20705de17984SArend van Spriel TP_ARGS(wiphy, wdev, protocol, duration), 20715de17984SArend van Spriel TP_STRUCT__entry( 20725de17984SArend van Spriel WIPHY_ENTRY 20735de17984SArend van Spriel WDEV_ENTRY 20745de17984SArend van Spriel __field(u16, proto) 20755de17984SArend van Spriel __field(u16, duration) 20765de17984SArend van Spriel ), 20775de17984SArend van Spriel TP_fast_assign( 20785de17984SArend van Spriel WIPHY_ASSIGN; 20795de17984SArend van Spriel WDEV_ASSIGN; 20805de17984SArend van Spriel __entry->proto = protocol; 20815de17984SArend van Spriel __entry->duration = duration; 20825de17984SArend van Spriel ), 20835de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u", 20845de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration) 20855de17984SArend van Spriel ); 20865de17984SArend van Spriel 20875de17984SArend van Spriel TRACE_EVENT(rdev_crit_proto_stop, 20885de17984SArend van Spriel TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 20895de17984SArend van Spriel TP_ARGS(wiphy, wdev), 20905de17984SArend van Spriel TP_STRUCT__entry( 20915de17984SArend van Spriel WIPHY_ENTRY 20925de17984SArend van Spriel WDEV_ENTRY 20935de17984SArend van Spriel ), 20945de17984SArend van Spriel TP_fast_assign( 20955de17984SArend van Spriel WIPHY_ASSIGN; 20965de17984SArend van Spriel WDEV_ASSIGN; 20975de17984SArend van Spriel ), 20985de17984SArend van Spriel TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 20995de17984SArend van Spriel WIPHY_PR_ARG, WDEV_PR_ARG) 21005de17984SArend van Spriel ); 21015de17984SArend van Spriel 210216ef1fe2SSimon Wunderlich TRACE_EVENT(rdev_channel_switch, 210316ef1fe2SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 210416ef1fe2SSimon Wunderlich struct cfg80211_csa_settings *params), 210516ef1fe2SSimon Wunderlich TP_ARGS(wiphy, netdev, params), 210616ef1fe2SSimon Wunderlich TP_STRUCT__entry( 210716ef1fe2SSimon Wunderlich WIPHY_ENTRY 210816ef1fe2SSimon Wunderlich NETDEV_ENTRY 210916ef1fe2SSimon Wunderlich CHAN_DEF_ENTRY 211016ef1fe2SSimon Wunderlich __field(bool, radar_required) 211116ef1fe2SSimon Wunderlich __field(bool, block_tx) 211216ef1fe2SSimon Wunderlich __field(u8, count) 21139a774c78SAndrei Otcheretianski __dynamic_array(u16, bcn_ofs, params->n_counter_offsets_beacon) 21149a774c78SAndrei Otcheretianski __dynamic_array(u16, pres_ofs, params->n_counter_offsets_presp) 211516ef1fe2SSimon Wunderlich ), 211616ef1fe2SSimon Wunderlich TP_fast_assign( 211716ef1fe2SSimon Wunderlich WIPHY_ASSIGN; 211816ef1fe2SSimon Wunderlich NETDEV_ASSIGN; 211916ef1fe2SSimon Wunderlich CHAN_DEF_ASSIGN(¶ms->chandef); 212016ef1fe2SSimon Wunderlich __entry->radar_required = params->radar_required; 212116ef1fe2SSimon Wunderlich __entry->block_tx = params->block_tx; 212216ef1fe2SSimon Wunderlich __entry->count = params->count; 21239a774c78SAndrei Otcheretianski memcpy(__get_dynamic_array(bcn_ofs), 21249a774c78SAndrei Otcheretianski params->counter_offsets_beacon, 21259a774c78SAndrei Otcheretianski params->n_counter_offsets_beacon * sizeof(u16)); 21269a774c78SAndrei Otcheretianski 21279a774c78SAndrei Otcheretianski /* probe response offsets are optional */ 21289a774c78SAndrei Otcheretianski if (params->n_counter_offsets_presp) 21299a774c78SAndrei Otcheretianski memcpy(__get_dynamic_array(pres_ofs), 21309a774c78SAndrei Otcheretianski params->counter_offsets_presp, 21319a774c78SAndrei Otcheretianski params->n_counter_offsets_presp * sizeof(u16)); 213216ef1fe2SSimon Wunderlich ), 213316ef1fe2SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 21349a774c78SAndrei Otcheretianski ", block_tx: %d, count: %u, radar_required: %d", 213516ef1fe2SSimon Wunderlich WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 21369a774c78SAndrei Otcheretianski __entry->block_tx, __entry->count, __entry->radar_required) 213716ef1fe2SSimon Wunderlich ); 213816ef1fe2SSimon Wunderlich 2139fa9ffc74SKyeyoon Park TRACE_EVENT(rdev_set_qos_map, 2140fa9ffc74SKyeyoon Park TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2141fa9ffc74SKyeyoon Park struct cfg80211_qos_map *qos_map), 2142fa9ffc74SKyeyoon Park TP_ARGS(wiphy, netdev, qos_map), 2143fa9ffc74SKyeyoon Park TP_STRUCT__entry( 2144fa9ffc74SKyeyoon Park WIPHY_ENTRY 2145fa9ffc74SKyeyoon Park NETDEV_ENTRY 2146fa9ffc74SKyeyoon Park QOS_MAP_ENTRY 2147fa9ffc74SKyeyoon Park ), 2148fa9ffc74SKyeyoon Park TP_fast_assign( 2149fa9ffc74SKyeyoon Park WIPHY_ASSIGN; 2150fa9ffc74SKyeyoon Park NETDEV_ASSIGN; 2151fa9ffc74SKyeyoon Park QOS_MAP_ASSIGN(qos_map); 2152fa9ffc74SKyeyoon Park ), 2153fa9ffc74SKyeyoon Park TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", num_des: %u", 2154fa9ffc74SKyeyoon Park WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->num_des) 2155fa9ffc74SKyeyoon Park ); 2156fa9ffc74SKyeyoon Park 2157e16821bcSJouni Malinen TRACE_EVENT(rdev_set_ap_chanwidth, 2158e16821bcSJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2159e16821bcSJouni Malinen struct cfg80211_chan_def *chandef), 2160e16821bcSJouni Malinen TP_ARGS(wiphy, netdev, chandef), 2161e16821bcSJouni Malinen TP_STRUCT__entry( 2162e16821bcSJouni Malinen WIPHY_ENTRY 2163e16821bcSJouni Malinen NETDEV_ENTRY 2164e16821bcSJouni Malinen CHAN_DEF_ENTRY 2165e16821bcSJouni Malinen ), 2166e16821bcSJouni Malinen TP_fast_assign( 2167e16821bcSJouni Malinen WIPHY_ASSIGN; 2168e16821bcSJouni Malinen NETDEV_ASSIGN; 2169e16821bcSJouni Malinen CHAN_DEF_ASSIGN(chandef); 2170e16821bcSJouni Malinen ), 2171e16821bcSJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2172e16821bcSJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 2173e16821bcSJouni Malinen ); 2174e16821bcSJouni Malinen 2175960d01acSJohannes Berg TRACE_EVENT(rdev_add_tx_ts, 2176960d01acSJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2177960d01acSJohannes Berg u8 tsid, const u8 *peer, u8 user_prio, u16 admitted_time), 2178960d01acSJohannes Berg TP_ARGS(wiphy, netdev, tsid, peer, user_prio, admitted_time), 2179960d01acSJohannes Berg TP_STRUCT__entry( 2180960d01acSJohannes Berg WIPHY_ENTRY 2181960d01acSJohannes Berg NETDEV_ENTRY 2182960d01acSJohannes Berg MAC_ENTRY(peer) 2183960d01acSJohannes Berg __field(u8, tsid) 2184960d01acSJohannes Berg __field(u8, user_prio) 2185960d01acSJohannes Berg __field(u16, admitted_time) 2186960d01acSJohannes Berg ), 2187960d01acSJohannes Berg TP_fast_assign( 2188960d01acSJohannes Berg WIPHY_ASSIGN; 2189960d01acSJohannes Berg NETDEV_ASSIGN; 2190960d01acSJohannes Berg MAC_ASSIGN(peer, peer); 2191960d01acSJohannes Berg __entry->tsid = tsid; 2192960d01acSJohannes Berg __entry->user_prio = user_prio; 2193960d01acSJohannes Berg __entry->admitted_time = admitted_time; 2194960d01acSJohannes Berg ), 2195960d01acSJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d, UP %d, time %d", 2196960d01acSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), 2197960d01acSJohannes Berg __entry->tsid, __entry->user_prio, __entry->admitted_time) 2198960d01acSJohannes Berg ); 2199960d01acSJohannes Berg 2200960d01acSJohannes Berg TRACE_EVENT(rdev_del_tx_ts, 2201960d01acSJohannes Berg TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2202960d01acSJohannes Berg u8 tsid, const u8 *peer), 2203960d01acSJohannes Berg TP_ARGS(wiphy, netdev, tsid, peer), 2204960d01acSJohannes Berg TP_STRUCT__entry( 2205960d01acSJohannes Berg WIPHY_ENTRY 2206960d01acSJohannes Berg NETDEV_ENTRY 2207960d01acSJohannes Berg MAC_ENTRY(peer) 2208960d01acSJohannes Berg __field(u8, tsid) 2209960d01acSJohannes Berg ), 2210960d01acSJohannes Berg TP_fast_assign( 2211960d01acSJohannes Berg WIPHY_ASSIGN; 2212960d01acSJohannes Berg NETDEV_ASSIGN; 2213960d01acSJohannes Berg MAC_ASSIGN(peer, peer); 2214960d01acSJohannes Berg __entry->tsid = tsid; 2215960d01acSJohannes Berg ), 2216960d01acSJohannes Berg TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d", 2217960d01acSJohannes Berg WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tsid) 2218960d01acSJohannes Berg ); 2219960d01acSJohannes Berg 22201057d35eSArik Nemtsov TRACE_EVENT(rdev_tdls_channel_switch, 22211057d35eSArik Nemtsov TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 22221057d35eSArik Nemtsov const u8 *addr, u8 oper_class, 22231057d35eSArik Nemtsov struct cfg80211_chan_def *chandef), 22241057d35eSArik Nemtsov TP_ARGS(wiphy, netdev, addr, oper_class, chandef), 22251057d35eSArik Nemtsov TP_STRUCT__entry( 22261057d35eSArik Nemtsov WIPHY_ENTRY 22271057d35eSArik Nemtsov NETDEV_ENTRY 22281057d35eSArik Nemtsov MAC_ENTRY(addr) 22291057d35eSArik Nemtsov __field(u8, oper_class) 22301057d35eSArik Nemtsov CHAN_DEF_ENTRY 22311057d35eSArik Nemtsov ), 22321057d35eSArik Nemtsov TP_fast_assign( 22331057d35eSArik Nemtsov WIPHY_ASSIGN; 22341057d35eSArik Nemtsov NETDEV_ASSIGN; 22351057d35eSArik Nemtsov MAC_ASSIGN(addr, addr); 22361057d35eSArik Nemtsov CHAN_DEF_ASSIGN(chandef); 22371057d35eSArik Nemtsov ), 22381057d35eSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT 22391057d35eSArik Nemtsov " oper class %d, " CHAN_DEF_PR_FMT, 22401057d35eSArik Nemtsov WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr), 22411057d35eSArik Nemtsov __entry->oper_class, CHAN_DEF_PR_ARG) 22421057d35eSArik Nemtsov ); 22431057d35eSArik Nemtsov 22441057d35eSArik Nemtsov TRACE_EVENT(rdev_tdls_cancel_channel_switch, 22451057d35eSArik Nemtsov TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 22461057d35eSArik Nemtsov const u8 *addr), 22471057d35eSArik Nemtsov TP_ARGS(wiphy, netdev, addr), 22481057d35eSArik Nemtsov TP_STRUCT__entry( 22491057d35eSArik Nemtsov WIPHY_ENTRY 22501057d35eSArik Nemtsov NETDEV_ENTRY 22511057d35eSArik Nemtsov MAC_ENTRY(addr) 22521057d35eSArik Nemtsov ), 22531057d35eSArik Nemtsov TP_fast_assign( 22541057d35eSArik Nemtsov WIPHY_ASSIGN; 22551057d35eSArik Nemtsov NETDEV_ASSIGN; 22561057d35eSArik Nemtsov MAC_ASSIGN(addr, addr); 22571057d35eSArik Nemtsov ), 22581057d35eSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 22591057d35eSArik Nemtsov WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr)) 22601057d35eSArik Nemtsov ); 22611057d35eSArik Nemtsov 22623a00df57SAvraham Stern TRACE_EVENT(rdev_set_pmk, 22633a00df57SAvraham Stern TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 22643a00df57SAvraham Stern struct cfg80211_pmk_conf *pmk_conf), 22653a00df57SAvraham Stern 22663a00df57SAvraham Stern TP_ARGS(wiphy, netdev, pmk_conf), 22673a00df57SAvraham Stern 22683a00df57SAvraham Stern TP_STRUCT__entry( 22693a00df57SAvraham Stern WIPHY_ENTRY 22703a00df57SAvraham Stern NETDEV_ENTRY 22713a00df57SAvraham Stern MAC_ENTRY(aa) 22723a00df57SAvraham Stern __field(u8, pmk_len) 22733a00df57SAvraham Stern __field(u8, pmk_r0_name_len) 22743a00df57SAvraham Stern __dynamic_array(u8, pmk, pmk_conf->pmk_len) 22753a00df57SAvraham Stern __dynamic_array(u8, pmk_r0_name, WLAN_PMK_NAME_LEN) 22763a00df57SAvraham Stern ), 22773a00df57SAvraham Stern 22783a00df57SAvraham Stern TP_fast_assign( 22793a00df57SAvraham Stern WIPHY_ASSIGN; 22803a00df57SAvraham Stern NETDEV_ASSIGN; 22813a00df57SAvraham Stern MAC_ASSIGN(aa, pmk_conf->aa); 22823a00df57SAvraham Stern __entry->pmk_len = pmk_conf->pmk_len; 22833a00df57SAvraham Stern __entry->pmk_r0_name_len = 22843a00df57SAvraham Stern pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0; 22853a00df57SAvraham Stern memcpy(__get_dynamic_array(pmk), pmk_conf->pmk, 22863a00df57SAvraham Stern pmk_conf->pmk_len); 22873a00df57SAvraham Stern memcpy(__get_dynamic_array(pmk_r0_name), pmk_conf->pmk_r0_name, 22883a00df57SAvraham Stern pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0); 22893a00df57SAvraham Stern ), 22903a00df57SAvraham Stern 22913a00df57SAvraham Stern TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT 22923a00df57SAvraham Stern "pmk_len=%u, pmk: %s pmk_r0_name: %s", WIPHY_PR_ARG, 22933a00df57SAvraham Stern NETDEV_PR_ARG, MAC_PR_ARG(aa), __entry->pmk_len, 22943a00df57SAvraham Stern __print_array(__get_dynamic_array(pmk), 22953a00df57SAvraham Stern __get_dynamic_array_len(pmk), 1), 22963a00df57SAvraham Stern __entry->pmk_r0_name_len ? 22973a00df57SAvraham Stern __print_array(__get_dynamic_array(pmk_r0_name), 22983a00df57SAvraham Stern __get_dynamic_array_len(pmk_r0_name), 1) : "") 22993a00df57SAvraham Stern ); 23003a00df57SAvraham Stern 23013a00df57SAvraham Stern TRACE_EVENT(rdev_del_pmk, 23023a00df57SAvraham Stern TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *aa), 23033a00df57SAvraham Stern 23043a00df57SAvraham Stern TP_ARGS(wiphy, netdev, aa), 23053a00df57SAvraham Stern 23063a00df57SAvraham Stern TP_STRUCT__entry( 23073a00df57SAvraham Stern WIPHY_ENTRY 23083a00df57SAvraham Stern NETDEV_ENTRY 23093a00df57SAvraham Stern MAC_ENTRY(aa) 23103a00df57SAvraham Stern ), 23113a00df57SAvraham Stern 23123a00df57SAvraham Stern TP_fast_assign( 23133a00df57SAvraham Stern WIPHY_ASSIGN; 23143a00df57SAvraham Stern NETDEV_ASSIGN; 23153a00df57SAvraham Stern MAC_ASSIGN(aa, aa); 23163a00df57SAvraham Stern ), 23173a00df57SAvraham Stern 23183a00df57SAvraham Stern TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, 23193a00df57SAvraham Stern WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(aa)) 23203a00df57SAvraham Stern ); 23213a00df57SAvraham Stern 23224ee3e063SBeni Lev /************************************************************* 23234ee3e063SBeni Lev * cfg80211 exported functions traces * 23244ee3e063SBeni Lev *************************************************************/ 23254ee3e063SBeni Lev 23264ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_bool, 23274ee3e063SBeni Lev TP_PROTO(bool ret), 23284ee3e063SBeni Lev TP_ARGS(ret), 23294ee3e063SBeni Lev TP_STRUCT__entry( 23304ee3e063SBeni Lev __field(bool, ret) 23314ee3e063SBeni Lev ), 23324ee3e063SBeni Lev TP_fast_assign( 23334ee3e063SBeni Lev __entry->ret = ret; 23344ee3e063SBeni Lev ), 23354ee3e063SBeni Lev TP_printk("returned %s", BOOL_TO_STR(__entry->ret)) 23364ee3e063SBeni Lev ); 23374ee3e063SBeni Lev 23384ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt, 23394ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 23404ee3e063SBeni Lev TP_ARGS(netdev, macaddr), 23414ee3e063SBeni Lev TP_STRUCT__entry( 23424ee3e063SBeni Lev NETDEV_ENTRY 23434ee3e063SBeni Lev MAC_ENTRY(macaddr) 23444ee3e063SBeni Lev ), 23454ee3e063SBeni Lev TP_fast_assign( 23464ee3e063SBeni Lev NETDEV_ASSIGN; 23474ee3e063SBeni Lev MAC_ASSIGN(macaddr, macaddr); 23484ee3e063SBeni Lev ), 23494ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 23504ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(macaddr)) 23514ee3e063SBeni Lev ); 23524ee3e063SBeni Lev 23534ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate, 23544ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 23554ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 23564ee3e063SBeni Lev ); 23574ee3e063SBeni Lev 23584ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_evt_only, 23594ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 23604ee3e063SBeni Lev TP_ARGS(netdev), 23614ee3e063SBeni Lev TP_STRUCT__entry( 23624ee3e063SBeni Lev NETDEV_ENTRY 23634ee3e063SBeni Lev ), 23644ee3e063SBeni Lev TP_fast_assign( 23654ee3e063SBeni Lev NETDEV_ASSIGN; 23664ee3e063SBeni Lev ), 23674ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG) 23684ee3e063SBeni Lev ); 23694ee3e063SBeni Lev 23704ee3e063SBeni Lev DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth, 23714ee3e063SBeni Lev TP_PROTO(struct net_device *netdev), 23724ee3e063SBeni Lev TP_ARGS(netdev) 23734ee3e063SBeni Lev ); 23744ee3e063SBeni Lev 23754ee3e063SBeni Lev TRACE_EVENT(cfg80211_send_rx_assoc, 23764ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss), 23774ee3e063SBeni Lev TP_ARGS(netdev, bss), 23784ee3e063SBeni Lev TP_STRUCT__entry( 23794ee3e063SBeni Lev NETDEV_ENTRY 23804ee3e063SBeni Lev MAC_ENTRY(bssid) 23814ee3e063SBeni Lev CHAN_ENTRY 23824ee3e063SBeni Lev ), 23834ee3e063SBeni Lev TP_fast_assign( 23844ee3e063SBeni Lev NETDEV_ASSIGN; 23854ee3e063SBeni Lev MAC_ASSIGN(bssid, bss->bssid); 23864ee3e063SBeni Lev CHAN_ASSIGN(bss->channel); 23874ee3e063SBeni Lev ), 2388ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", " CHAN_PR_FMT, 23894ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) 23904ee3e063SBeni Lev ); 23914ee3e063SBeni Lev 23926ff57cf8SJohannes Berg DECLARE_EVENT_CLASS(netdev_frame_event, 23936ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 23946ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len), 23956ff57cf8SJohannes Berg TP_STRUCT__entry( 23966ff57cf8SJohannes Berg NETDEV_ENTRY 23976ff57cf8SJohannes Berg __dynamic_array(u8, frame, len) 23986ff57cf8SJohannes Berg ), 23996ff57cf8SJohannes Berg TP_fast_assign( 24006ff57cf8SJohannes Berg NETDEV_ASSIGN; 24016ff57cf8SJohannes Berg memcpy(__get_dynamic_array(frame), buf, len); 24026ff57cf8SJohannes Berg ), 24036ff57cf8SJohannes Berg TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x", 24046ff57cf8SJohannes Berg NETDEV_PR_ARG, 24056ff57cf8SJohannes Berg le16_to_cpup((__le16 *)__get_dynamic_array(frame))) 24064ee3e063SBeni Lev ); 24074ee3e063SBeni Lev 24086ff57cf8SJohannes Berg DEFINE_EVENT(netdev_frame_event, cfg80211_rx_unprot_mlme_mgmt, 24096ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 24106ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len) 24114ee3e063SBeni Lev ); 24124ee3e063SBeni Lev 24136ff57cf8SJohannes Berg DEFINE_EVENT(netdev_frame_event, cfg80211_rx_mlme_mgmt, 24146ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 24156ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len) 24164ee3e063SBeni Lev ); 24174ee3e063SBeni Lev 24186ff57cf8SJohannes Berg TRACE_EVENT(cfg80211_tx_mlme_mgmt, 24196ff57cf8SJohannes Berg TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 24206ff57cf8SJohannes Berg TP_ARGS(netdev, buf, len), 24216ff57cf8SJohannes Berg TP_STRUCT__entry( 24226ff57cf8SJohannes Berg NETDEV_ENTRY 24236ff57cf8SJohannes Berg __dynamic_array(u8, frame, len) 24246ff57cf8SJohannes Berg ), 24256ff57cf8SJohannes Berg TP_fast_assign( 24266ff57cf8SJohannes Berg NETDEV_ASSIGN; 24276ff57cf8SJohannes Berg memcpy(__get_dynamic_array(frame), buf, len); 24286ff57cf8SJohannes Berg ), 24296ff57cf8SJohannes Berg TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x", 24306ff57cf8SJohannes Berg NETDEV_PR_ARG, 24316ff57cf8SJohannes Berg le16_to_cpup((__le16 *)__get_dynamic_array(frame))) 24324ee3e063SBeni Lev ); 24334ee3e063SBeni Lev 24344ee3e063SBeni Lev DECLARE_EVENT_CLASS(netdev_mac_evt, 24354ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 24364ee3e063SBeni Lev TP_ARGS(netdev, mac), 24374ee3e063SBeni Lev TP_STRUCT__entry( 24384ee3e063SBeni Lev NETDEV_ENTRY 24394ee3e063SBeni Lev MAC_ENTRY(mac) 24404ee3e063SBeni Lev ), 24414ee3e063SBeni Lev TP_fast_assign( 24424ee3e063SBeni Lev NETDEV_ASSIGN; 24434ee3e063SBeni Lev MAC_ASSIGN(mac, mac) 24444ee3e063SBeni Lev ), 24454ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT, 24464ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac)) 24474ee3e063SBeni Lev ); 24484ee3e063SBeni Lev 24494ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout, 24504ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 24514ee3e063SBeni Lev TP_ARGS(netdev, mac) 24524ee3e063SBeni Lev ); 24534ee3e063SBeni Lev 24544ee3e063SBeni Lev DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout, 24554ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac), 24564ee3e063SBeni Lev TP_ARGS(netdev, mac) 24574ee3e063SBeni Lev ); 24584ee3e063SBeni Lev 24594ee3e063SBeni Lev TRACE_EVENT(cfg80211_michael_mic_failure, 24604ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, 24614ee3e063SBeni Lev enum nl80211_key_type key_type, int key_id, const u8 *tsc), 24624ee3e063SBeni Lev TP_ARGS(netdev, addr, key_type, key_id, tsc), 24634ee3e063SBeni Lev TP_STRUCT__entry( 24644ee3e063SBeni Lev NETDEV_ENTRY 24654ee3e063SBeni Lev MAC_ENTRY(addr) 24664ee3e063SBeni Lev __field(enum nl80211_key_type, key_type) 24674ee3e063SBeni Lev __field(int, key_id) 24684ee3e063SBeni Lev __array(u8, tsc, 6) 24694ee3e063SBeni Lev ), 24704ee3e063SBeni Lev TP_fast_assign( 24714ee3e063SBeni Lev NETDEV_ASSIGN; 24724ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 24734ee3e063SBeni Lev __entry->key_type = key_type; 24744ee3e063SBeni Lev __entry->key_id = key_id; 24758c26d458SEliad Peller if (tsc) 24764ee3e063SBeni Lev memcpy(__entry->tsc, tsc, 6); 24774ee3e063SBeni Lev ), 2478ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm", 24794ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type, 24804ee3e063SBeni Lev __entry->key_id, __entry->tsc) 24814ee3e063SBeni Lev ); 24824ee3e063SBeni Lev 24834ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel, 24844ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 24854ee3e063SBeni Lev struct ieee80211_channel *chan, 248642d97a59SJohannes Berg unsigned int duration), 248742d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan, duration), 24884ee3e063SBeni Lev TP_STRUCT__entry( 24894ee3e063SBeni Lev WDEV_ENTRY 24904ee3e063SBeni Lev __field(u64, cookie) 24914ee3e063SBeni Lev CHAN_ENTRY 24924ee3e063SBeni Lev __field(unsigned int, duration) 24934ee3e063SBeni Lev ), 24944ee3e063SBeni Lev TP_fast_assign( 24954ee3e063SBeni Lev WDEV_ASSIGN; 24964ee3e063SBeni Lev __entry->cookie = cookie; 24974ee3e063SBeni Lev CHAN_ASSIGN(chan); 24984ee3e063SBeni Lev __entry->duration = duration; 24994ee3e063SBeni Lev ), 250042d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u", 25014ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, 250242d97a59SJohannes Berg __entry->duration) 25034ee3e063SBeni Lev ); 25044ee3e063SBeni Lev 25054ee3e063SBeni Lev TRACE_EVENT(cfg80211_ready_on_channel_expired, 25064ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, 250742d97a59SJohannes Berg struct ieee80211_channel *chan), 250842d97a59SJohannes Berg TP_ARGS(wdev, cookie, chan), 25094ee3e063SBeni Lev TP_STRUCT__entry( 25104ee3e063SBeni Lev WDEV_ENTRY 25114ee3e063SBeni Lev __field(u64, cookie) 25124ee3e063SBeni Lev CHAN_ENTRY 25134ee3e063SBeni Lev ), 25144ee3e063SBeni Lev TP_fast_assign( 25154ee3e063SBeni Lev WDEV_ASSIGN; 25164ee3e063SBeni Lev __entry->cookie = cookie; 25174ee3e063SBeni Lev CHAN_ASSIGN(chan); 25184ee3e063SBeni Lev ), 251942d97a59SJohannes Berg TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, 252042d97a59SJohannes Berg WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) 25214ee3e063SBeni Lev ); 25224ee3e063SBeni Lev 25234ee3e063SBeni Lev TRACE_EVENT(cfg80211_new_sta, 25244ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *mac_addr, 25254ee3e063SBeni Lev struct station_info *sinfo), 25264ee3e063SBeni Lev TP_ARGS(netdev, mac_addr, sinfo), 25274ee3e063SBeni Lev TP_STRUCT__entry( 25284ee3e063SBeni Lev NETDEV_ENTRY 25294ee3e063SBeni Lev MAC_ENTRY(mac_addr) 25304ee3e063SBeni Lev SINFO_ENTRY 25314ee3e063SBeni Lev ), 25324ee3e063SBeni Lev TP_fast_assign( 25334ee3e063SBeni Lev NETDEV_ASSIGN; 25344ee3e063SBeni Lev MAC_ASSIGN(mac_addr, mac_addr); 25354ee3e063SBeni Lev SINFO_ASSIGN; 25364ee3e063SBeni Lev ), 2537ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, 25384ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(mac_addr)) 25394ee3e063SBeni Lev ); 25404ee3e063SBeni Lev 25414ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta, 25424ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 25434ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 25444ee3e063SBeni Lev ); 25454ee3e063SBeni Lev 25464ee3e063SBeni Lev TRACE_EVENT(cfg80211_rx_mgmt, 25474ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, int freq, int sig_mbm), 25484ee3e063SBeni Lev TP_ARGS(wdev, freq, sig_mbm), 25494ee3e063SBeni Lev TP_STRUCT__entry( 25504ee3e063SBeni Lev WDEV_ENTRY 25514ee3e063SBeni Lev __field(int, freq) 25524ee3e063SBeni Lev __field(int, sig_mbm) 25534ee3e063SBeni Lev ), 25544ee3e063SBeni Lev TP_fast_assign( 25554ee3e063SBeni Lev WDEV_ASSIGN; 25564ee3e063SBeni Lev __entry->freq = freq; 25574ee3e063SBeni Lev __entry->sig_mbm = sig_mbm; 25584ee3e063SBeni Lev ), 25594ee3e063SBeni Lev TP_printk(WDEV_PR_FMT ", freq: %d, sig mbm: %d", 25604ee3e063SBeni Lev WDEV_PR_ARG, __entry->freq, __entry->sig_mbm) 25614ee3e063SBeni Lev ); 25624ee3e063SBeni Lev 25634ee3e063SBeni Lev TRACE_EVENT(cfg80211_mgmt_tx_status, 25644ee3e063SBeni Lev TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), 25654ee3e063SBeni Lev TP_ARGS(wdev, cookie, ack), 25664ee3e063SBeni Lev TP_STRUCT__entry( 25674ee3e063SBeni Lev WDEV_ENTRY 25684ee3e063SBeni Lev __field(u64, cookie) 25694ee3e063SBeni Lev __field(bool, ack) 25704ee3e063SBeni Lev ), 25714ee3e063SBeni Lev TP_fast_assign( 25724ee3e063SBeni Lev WDEV_ASSIGN; 25734ee3e063SBeni Lev __entry->cookie = cookie; 25744ee3e063SBeni Lev __entry->ack = ack; 25754ee3e063SBeni Lev ), 25764ee3e063SBeni Lev TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", 25774ee3e063SBeni Lev WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) 25784ee3e063SBeni Lev ); 25794ee3e063SBeni Lev 25804ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_rssi_notify, 25814ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, 2582bee427b8SAndrzej Zaborowski enum nl80211_cqm_rssi_threshold_event rssi_event, 2583bee427b8SAndrzej Zaborowski s32 rssi_level), 2584bee427b8SAndrzej Zaborowski TP_ARGS(netdev, rssi_event, rssi_level), 25854ee3e063SBeni Lev TP_STRUCT__entry( 25864ee3e063SBeni Lev NETDEV_ENTRY 25874ee3e063SBeni Lev __field(enum nl80211_cqm_rssi_threshold_event, rssi_event) 2588bee427b8SAndrzej Zaborowski __field(s32, rssi_level) 25894ee3e063SBeni Lev ), 25904ee3e063SBeni Lev TP_fast_assign( 25914ee3e063SBeni Lev NETDEV_ASSIGN; 25924ee3e063SBeni Lev __entry->rssi_event = rssi_event; 2593bee427b8SAndrzej Zaborowski __entry->rssi_level = rssi_level; 25944ee3e063SBeni Lev ), 2595bee427b8SAndrzej Zaborowski TP_printk(NETDEV_PR_FMT ", rssi event: %d, level: %d", 2596bee427b8SAndrzej Zaborowski NETDEV_PR_ARG, __entry->rssi_event, __entry->rssi_level) 25974ee3e063SBeni Lev ); 25984ee3e063SBeni Lev 2599683b6d3bSJohannes Berg TRACE_EVENT(cfg80211_reg_can_beacon, 2600174e0cd2SIlan Peer TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, 2601923b352fSArik Nemtsov enum nl80211_iftype iftype, bool check_no_ir), 2602923b352fSArik Nemtsov TP_ARGS(wiphy, chandef, iftype, check_no_ir), 26034ee3e063SBeni Lev TP_STRUCT__entry( 26044ee3e063SBeni Lev WIPHY_ENTRY 2605683b6d3bSJohannes Berg CHAN_DEF_ENTRY 2606174e0cd2SIlan Peer __field(enum nl80211_iftype, iftype) 2607923b352fSArik Nemtsov __field(bool, check_no_ir) 26084ee3e063SBeni Lev ), 26094ee3e063SBeni Lev TP_fast_assign( 26104ee3e063SBeni Lev WIPHY_ASSIGN; 2611683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 2612174e0cd2SIlan Peer __entry->iftype = iftype; 2613923b352fSArik Nemtsov __entry->check_no_ir = check_no_ir; 26144ee3e063SBeni Lev ), 2615923b352fSArik Nemtsov TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", iftype=%d check_no_ir=%s", 2616923b352fSArik Nemtsov WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype, 2617923b352fSArik Nemtsov BOOL_TO_STR(__entry->check_no_ir)) 26184ee3e063SBeni Lev ); 26194ee3e063SBeni Lev 262004f39047SSimon Wunderlich TRACE_EVENT(cfg80211_chandef_dfs_required, 262104f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 262204f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 262304f39047SSimon Wunderlich TP_STRUCT__entry( 262404f39047SSimon Wunderlich WIPHY_ENTRY 262504f39047SSimon Wunderlich CHAN_DEF_ENTRY 262604f39047SSimon Wunderlich ), 262704f39047SSimon Wunderlich TP_fast_assign( 262804f39047SSimon Wunderlich WIPHY_ASSIGN; 262904f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 263004f39047SSimon Wunderlich ), 263104f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 263204f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 263304f39047SSimon Wunderlich ); 263404f39047SSimon Wunderlich 26354ee3e063SBeni Lev TRACE_EVENT(cfg80211_ch_switch_notify, 2636683b6d3bSJohannes Berg TP_PROTO(struct net_device *netdev, 2637683b6d3bSJohannes Berg struct cfg80211_chan_def *chandef), 2638683b6d3bSJohannes Berg TP_ARGS(netdev, chandef), 26394ee3e063SBeni Lev TP_STRUCT__entry( 26404ee3e063SBeni Lev NETDEV_ENTRY 2641683b6d3bSJohannes Berg CHAN_DEF_ENTRY 26424ee3e063SBeni Lev ), 26434ee3e063SBeni Lev TP_fast_assign( 26444ee3e063SBeni Lev NETDEV_ASSIGN; 2645683b6d3bSJohannes Berg CHAN_DEF_ASSIGN(chandef); 26464ee3e063SBeni Lev ), 2647ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2648683b6d3bSJohannes Berg NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 26494ee3e063SBeni Lev ); 26504ee3e063SBeni Lev 2651f8d7552eSLuciano Coelho TRACE_EVENT(cfg80211_ch_switch_started_notify, 2652f8d7552eSLuciano Coelho TP_PROTO(struct net_device *netdev, 2653f8d7552eSLuciano Coelho struct cfg80211_chan_def *chandef), 2654f8d7552eSLuciano Coelho TP_ARGS(netdev, chandef), 2655f8d7552eSLuciano Coelho TP_STRUCT__entry( 2656f8d7552eSLuciano Coelho NETDEV_ENTRY 2657f8d7552eSLuciano Coelho CHAN_DEF_ENTRY 2658f8d7552eSLuciano Coelho ), 2659f8d7552eSLuciano Coelho TP_fast_assign( 2660f8d7552eSLuciano Coelho NETDEV_ASSIGN; 2661f8d7552eSLuciano Coelho CHAN_DEF_ASSIGN(chandef); 2662f8d7552eSLuciano Coelho ), 2663f8d7552eSLuciano Coelho TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 2664f8d7552eSLuciano Coelho NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 2665f8d7552eSLuciano Coelho ); 2666f8d7552eSLuciano Coelho 266704f39047SSimon Wunderlich TRACE_EVENT(cfg80211_radar_event, 266804f39047SSimon Wunderlich TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 266904f39047SSimon Wunderlich TP_ARGS(wiphy, chandef), 267004f39047SSimon Wunderlich TP_STRUCT__entry( 267104f39047SSimon Wunderlich WIPHY_ENTRY 267204f39047SSimon Wunderlich CHAN_DEF_ENTRY 267304f39047SSimon Wunderlich ), 267404f39047SSimon Wunderlich TP_fast_assign( 267504f39047SSimon Wunderlich WIPHY_ASSIGN; 267604f39047SSimon Wunderlich CHAN_DEF_ASSIGN(chandef); 267704f39047SSimon Wunderlich ), 267804f39047SSimon Wunderlich TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 267904f39047SSimon Wunderlich WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 268004f39047SSimon Wunderlich ); 268104f39047SSimon Wunderlich 268204f39047SSimon Wunderlich TRACE_EVENT(cfg80211_cac_event, 268304f39047SSimon Wunderlich TP_PROTO(struct net_device *netdev, enum nl80211_radar_event evt), 268404f39047SSimon Wunderlich TP_ARGS(netdev, evt), 268504f39047SSimon Wunderlich TP_STRUCT__entry( 268604f39047SSimon Wunderlich NETDEV_ENTRY 268704f39047SSimon Wunderlich __field(enum nl80211_radar_event, evt) 268804f39047SSimon Wunderlich ), 268904f39047SSimon Wunderlich TP_fast_assign( 269004f39047SSimon Wunderlich NETDEV_ASSIGN; 269104f39047SSimon Wunderlich __entry->evt = evt; 269204f39047SSimon Wunderlich ), 269304f39047SSimon Wunderlich TP_printk(NETDEV_PR_FMT ", event: %d", 269404f39047SSimon Wunderlich NETDEV_PR_ARG, __entry->evt) 269504f39047SSimon Wunderlich ); 269604f39047SSimon Wunderlich 26974ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_rx_evt, 26984ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 26994ee3e063SBeni Lev TP_ARGS(netdev, addr), 27004ee3e063SBeni Lev TP_STRUCT__entry( 27014ee3e063SBeni Lev NETDEV_ENTRY 27024ee3e063SBeni Lev MAC_ENTRY(addr) 27034ee3e063SBeni Lev ), 27044ee3e063SBeni Lev TP_fast_assign( 27054ee3e063SBeni Lev NETDEV_ASSIGN; 27064ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 27074ee3e063SBeni Lev ), 2708ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr)) 27094ee3e063SBeni Lev ); 27104ee3e063SBeni Lev 27114ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame, 27124ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 27134ee3e063SBeni Lev TP_ARGS(netdev, addr) 27144ee3e063SBeni Lev ); 27154ee3e063SBeni Lev 27164ee3e063SBeni Lev DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame, 27174ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr), 27184ee3e063SBeni Lev TP_ARGS(netdev, addr) 27194ee3e063SBeni Lev ); 27204ee3e063SBeni Lev 2721fe94f3a4SAntonio Quartulli TRACE_EVENT(cfg80211_ibss_joined, 2722fe94f3a4SAntonio Quartulli TP_PROTO(struct net_device *netdev, const u8 *bssid, 2723fe94f3a4SAntonio Quartulli struct ieee80211_channel *channel), 2724fe94f3a4SAntonio Quartulli TP_ARGS(netdev, bssid, channel), 2725fe94f3a4SAntonio Quartulli TP_STRUCT__entry( 2726fe94f3a4SAntonio Quartulli NETDEV_ENTRY 2727fe94f3a4SAntonio Quartulli MAC_ENTRY(bssid) 2728fe94f3a4SAntonio Quartulli CHAN_ENTRY 2729fe94f3a4SAntonio Quartulli ), 2730fe94f3a4SAntonio Quartulli TP_fast_assign( 2731fe94f3a4SAntonio Quartulli NETDEV_ASSIGN; 2732fe94f3a4SAntonio Quartulli MAC_ASSIGN(bssid, bssid); 2733fe94f3a4SAntonio Quartulli CHAN_ASSIGN(channel); 2734fe94f3a4SAntonio Quartulli ), 2735fe94f3a4SAntonio Quartulli TP_printk(NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", " CHAN_PR_FMT, 2736fe94f3a4SAntonio Quartulli NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) 2737fe94f3a4SAntonio Quartulli ); 2738fe94f3a4SAntonio Quartulli 27394ee3e063SBeni Lev TRACE_EVENT(cfg80211_probe_status, 27404ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie, 27414ee3e063SBeni Lev bool acked), 27424ee3e063SBeni Lev TP_ARGS(netdev, addr, cookie, acked), 27434ee3e063SBeni Lev TP_STRUCT__entry( 27444ee3e063SBeni Lev NETDEV_ENTRY 27454ee3e063SBeni Lev MAC_ENTRY(addr) 27464ee3e063SBeni Lev __field(u64, cookie) 27474ee3e063SBeni Lev __field(bool, acked) 27484ee3e063SBeni Lev ), 27494ee3e063SBeni Lev TP_fast_assign( 27504ee3e063SBeni Lev NETDEV_ASSIGN; 27514ee3e063SBeni Lev MAC_ASSIGN(addr, addr); 27524ee3e063SBeni Lev __entry->cookie = cookie; 27534ee3e063SBeni Lev __entry->acked = acked; 27544ee3e063SBeni Lev ), 2755ec816087SJohannes Berg TP_printk(NETDEV_PR_FMT " addr:" MAC_PR_FMT ", cookie: %llu, acked: %s", 27564ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie, 27574ee3e063SBeni Lev BOOL_TO_STR(__entry->acked)) 27584ee3e063SBeni Lev ); 27594ee3e063SBeni Lev 27604ee3e063SBeni Lev TRACE_EVENT(cfg80211_cqm_pktloss_notify, 27614ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets), 27624ee3e063SBeni Lev TP_ARGS(netdev, peer, num_packets), 27634ee3e063SBeni Lev TP_STRUCT__entry( 27644ee3e063SBeni Lev NETDEV_ENTRY 27654ee3e063SBeni Lev MAC_ENTRY(peer) 27664ee3e063SBeni Lev __field(u32, num_packets) 27674ee3e063SBeni Lev ), 27684ee3e063SBeni Lev TP_fast_assign( 27694ee3e063SBeni Lev NETDEV_ASSIGN; 27704ee3e063SBeni Lev MAC_ASSIGN(peer, peer); 27714ee3e063SBeni Lev __entry->num_packets = num_packets; 27724ee3e063SBeni Lev ), 27734ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u", 27744ee3e063SBeni Lev NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets) 27754ee3e063SBeni Lev ); 27764ee3e063SBeni Lev 27774ee3e063SBeni Lev DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify, 27784ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, const u8 *macaddr), 27794ee3e063SBeni Lev TP_ARGS(netdev, macaddr) 27804ee3e063SBeni Lev ); 27814ee3e063SBeni Lev 27824ee3e063SBeni Lev TRACE_EVENT(cfg80211_pmksa_candidate_notify, 27834ee3e063SBeni Lev TP_PROTO(struct net_device *netdev, int index, const u8 *bssid, 27844ee3e063SBeni Lev bool preauth), 27854ee3e063SBeni Lev TP_ARGS(netdev, index, bssid, preauth), 27864ee3e063SBeni Lev TP_STRUCT__entry( 27874ee3e063SBeni Lev NETDEV_ENTRY 27884ee3e063SBeni Lev __field(int, index) 27894ee3e063SBeni Lev MAC_ENTRY(bssid) 27904ee3e063SBeni Lev __field(bool, preauth) 27914ee3e063SBeni Lev ), 27924ee3e063SBeni Lev TP_fast_assign( 27934ee3e063SBeni Lev NETDEV_ASSIGN; 27944ee3e063SBeni Lev __entry->index = index; 27954ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 27964ee3e063SBeni Lev __entry->preauth = preauth; 27974ee3e063SBeni Lev ), 27984ee3e063SBeni Lev TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s", 27994ee3e063SBeni Lev NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid), 28004ee3e063SBeni Lev BOOL_TO_STR(__entry->preauth)) 28014ee3e063SBeni Lev ); 28024ee3e063SBeni Lev 28034ee3e063SBeni Lev TRACE_EVENT(cfg80211_report_obss_beacon, 28044ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len, 28054ee3e063SBeni Lev int freq, int sig_dbm), 28064ee3e063SBeni Lev TP_ARGS(wiphy, frame, len, freq, sig_dbm), 28074ee3e063SBeni Lev TP_STRUCT__entry( 28084ee3e063SBeni Lev WIPHY_ENTRY 28094ee3e063SBeni Lev __field(int, freq) 28104ee3e063SBeni Lev __field(int, sig_dbm) 28114ee3e063SBeni Lev ), 28124ee3e063SBeni Lev TP_fast_assign( 28134ee3e063SBeni Lev WIPHY_ASSIGN; 28144ee3e063SBeni Lev __entry->freq = freq; 28154ee3e063SBeni Lev __entry->sig_dbm = sig_dbm; 28164ee3e063SBeni Lev ), 28174ee3e063SBeni Lev TP_printk(WIPHY_PR_FMT ", freq: %d, sig_dbm: %d", 28184ee3e063SBeni Lev WIPHY_PR_ARG, __entry->freq, __entry->sig_dbm) 28194ee3e063SBeni Lev ); 28204ee3e063SBeni Lev 28213475b094SJouni Malinen TRACE_EVENT(cfg80211_tdls_oper_request, 28223475b094SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer, 28233475b094SJouni Malinen enum nl80211_tdls_operation oper, u16 reason_code), 28243475b094SJouni Malinen TP_ARGS(wiphy, netdev, peer, oper, reason_code), 28253475b094SJouni Malinen TP_STRUCT__entry( 28263475b094SJouni Malinen WIPHY_ENTRY 28273475b094SJouni Malinen NETDEV_ENTRY 28283475b094SJouni Malinen MAC_ENTRY(peer) 28293475b094SJouni Malinen __field(enum nl80211_tdls_operation, oper) 28303475b094SJouni Malinen __field(u16, reason_code) 28313475b094SJouni Malinen ), 28323475b094SJouni Malinen TP_fast_assign( 28333475b094SJouni Malinen WIPHY_ASSIGN; 28343475b094SJouni Malinen NETDEV_ASSIGN; 28353475b094SJouni Malinen MAC_ASSIGN(peer, peer); 28363475b094SJouni Malinen __entry->oper = oper; 28373475b094SJouni Malinen __entry->reason_code = reason_code; 28383475b094SJouni Malinen ), 28393475b094SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u", 28403475b094SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper, 28413475b094SJouni Malinen __entry->reason_code) 28423475b094SJouni Malinen ); 28433475b094SJouni Malinen 28444ee3e063SBeni Lev TRACE_EVENT(cfg80211_scan_done, 28451d76250bSAvraham Stern TP_PROTO(struct cfg80211_scan_request *request, 28461d76250bSAvraham Stern struct cfg80211_scan_info *info), 28471d76250bSAvraham Stern TP_ARGS(request, info), 28484ee3e063SBeni Lev TP_STRUCT__entry( 28494ee3e063SBeni Lev __field(u32, n_channels) 28504ee3e063SBeni Lev __dynamic_array(u8, ie, request ? request->ie_len : 0) 285157fbcce3SJohannes Berg __array(u32, rates, NUM_NL80211_BANDS) 28524ee3e063SBeni Lev __field(u32, wdev_id) 28534ee3e063SBeni Lev MAC_ENTRY(wiphy_mac) 28544ee3e063SBeni Lev __field(bool, no_cck) 28554ee3e063SBeni Lev __field(bool, aborted) 28561d76250bSAvraham Stern __field(u64, scan_start_tsf) 28571d76250bSAvraham Stern MAC_ENTRY(tsf_bssid) 28584ee3e063SBeni Lev ), 28594ee3e063SBeni Lev TP_fast_assign( 28604ee3e063SBeni Lev if (request) { 28614ee3e063SBeni Lev memcpy(__get_dynamic_array(ie), request->ie, 28624ee3e063SBeni Lev request->ie_len); 28634ee3e063SBeni Lev memcpy(__entry->rates, request->rates, 286457fbcce3SJohannes Berg NUM_NL80211_BANDS); 28654ee3e063SBeni Lev __entry->wdev_id = request->wdev ? 28664ee3e063SBeni Lev request->wdev->identifier : 0; 28674ee3e063SBeni Lev if (request->wiphy) 28684ee3e063SBeni Lev MAC_ASSIGN(wiphy_mac, 28694ee3e063SBeni Lev request->wiphy->perm_addr); 28704ee3e063SBeni Lev __entry->no_cck = request->no_cck; 28714ee3e063SBeni Lev } 28721d76250bSAvraham Stern if (info) { 28731d76250bSAvraham Stern __entry->aborted = info->aborted; 28741d76250bSAvraham Stern __entry->scan_start_tsf = info->scan_start_tsf; 28751d76250bSAvraham Stern MAC_ASSIGN(tsf_bssid, info->tsf_bssid); 28761d76250bSAvraham Stern } 28774ee3e063SBeni Lev ), 28781d76250bSAvraham Stern TP_printk("aborted: %s, scan start (TSF): %llu, tsf_bssid: " MAC_PR_FMT, 28791d76250bSAvraham Stern BOOL_TO_STR(__entry->aborted), 28801d76250bSAvraham Stern (unsigned long long)__entry->scan_start_tsf, 28811d76250bSAvraham Stern MAC_PR_ARG(tsf_bssid)) 28824ee3e063SBeni Lev ); 28834ee3e063SBeni Lev 2884b34939b9SArend Van Spriel DECLARE_EVENT_CLASS(wiphy_id_evt, 2885b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 2886b34939b9SArend Van Spriel TP_ARGS(wiphy, id), 2887b34939b9SArend Van Spriel TP_STRUCT__entry( 2888b34939b9SArend Van Spriel WIPHY_ENTRY 2889b34939b9SArend Van Spriel __field(u64, id) 2890b34939b9SArend Van Spriel ), 2891b34939b9SArend Van Spriel TP_fast_assign( 2892b34939b9SArend Van Spriel WIPHY_ASSIGN; 2893b34939b9SArend Van Spriel __entry->id = id; 2894b34939b9SArend Van Spriel ), 2895b34939b9SArend Van Spriel TP_printk(WIPHY_PR_FMT ", id: %llu", WIPHY_PR_ARG, __entry->id) 28964ee3e063SBeni Lev ); 28974ee3e063SBeni Lev 2898b34939b9SArend Van Spriel DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_stopped, 2899b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 2900b34939b9SArend Van Spriel TP_ARGS(wiphy, id) 2901b34939b9SArend Van Spriel ); 2902b34939b9SArend Van Spriel 2903b34939b9SArend Van Spriel DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_results, 2904b34939b9SArend Van Spriel TP_PROTO(struct wiphy *wiphy, u64 id), 2905b34939b9SArend Van Spriel TP_ARGS(wiphy, id) 29064ee3e063SBeni Lev ); 29074ee3e063SBeni Lev 29084ee3e063SBeni Lev TRACE_EVENT(cfg80211_get_bss, 29094ee3e063SBeni Lev TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, 29104ee3e063SBeni Lev const u8 *bssid, const u8 *ssid, size_t ssid_len, 29116eb18137SDedy Lansky enum ieee80211_bss_type bss_type, 29126eb18137SDedy Lansky enum ieee80211_privacy privacy), 29136eb18137SDedy Lansky TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, bss_type, privacy), 29144ee3e063SBeni Lev TP_STRUCT__entry( 29154ee3e063SBeni Lev WIPHY_ENTRY 29164ee3e063SBeni Lev CHAN_ENTRY 29174ee3e063SBeni Lev MAC_ENTRY(bssid) 29184ee3e063SBeni Lev __dynamic_array(u8, ssid, ssid_len) 29196eb18137SDedy Lansky __field(enum ieee80211_bss_type, bss_type) 29206eb18137SDedy Lansky __field(enum ieee80211_privacy, privacy) 29214ee3e063SBeni Lev ), 29224ee3e063SBeni Lev TP_fast_assign( 29234ee3e063SBeni Lev WIPHY_ASSIGN; 29244ee3e063SBeni Lev CHAN_ASSIGN(channel); 29254ee3e063SBeni Lev MAC_ASSIGN(bssid, bssid); 29264ee3e063SBeni Lev memcpy(__get_dynamic_array(ssid), ssid, ssid_len); 29276eb18137SDedy Lansky __entry->bss_type = bss_type; 29286eb18137SDedy Lansky __entry->privacy = privacy; 29294ee3e063SBeni Lev ), 29306eb18137SDedy Lansky TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", " MAC_PR_FMT 29316eb18137SDedy Lansky ", buf: %#.2x, bss_type: %d, privacy: %d", 29326eb18137SDedy Lansky WIPHY_PR_ARG, CHAN_PR_ARG, MAC_PR_ARG(bssid), 29336eb18137SDedy Lansky ((u8 *)__get_dynamic_array(ssid))[0], __entry->bss_type, 29346eb18137SDedy Lansky __entry->privacy) 29354ee3e063SBeni Lev ); 29364ee3e063SBeni Lev 29376e19bc4bSDmitry Shmidt TRACE_EVENT(cfg80211_inform_bss_frame, 29386e19bc4bSDmitry Shmidt TP_PROTO(struct wiphy *wiphy, struct cfg80211_inform_bss *data, 29396e19bc4bSDmitry Shmidt struct ieee80211_mgmt *mgmt, size_t len), 29406e19bc4bSDmitry Shmidt TP_ARGS(wiphy, data, mgmt, len), 29414ee3e063SBeni Lev TP_STRUCT__entry( 29424ee3e063SBeni Lev WIPHY_ENTRY 29434ee3e063SBeni Lev CHAN_ENTRY 2944dcd6eac1SSimon Wunderlich __field(enum nl80211_bss_scan_width, scan_width) 29454ee3e063SBeni Lev __dynamic_array(u8, mgmt, len) 29464ee3e063SBeni Lev __field(s32, signal) 29476e19bc4bSDmitry Shmidt __field(u64, ts_boottime) 29481d76250bSAvraham Stern __field(u64, parent_tsf) 29491d76250bSAvraham Stern MAC_ENTRY(parent_bssid) 29504ee3e063SBeni Lev ), 29514ee3e063SBeni Lev TP_fast_assign( 29524ee3e063SBeni Lev WIPHY_ASSIGN; 29536e19bc4bSDmitry Shmidt CHAN_ASSIGN(data->chan); 29546e19bc4bSDmitry Shmidt __entry->scan_width = data->scan_width; 29554ee3e063SBeni Lev if (mgmt) 29564ee3e063SBeni Lev memcpy(__get_dynamic_array(mgmt), mgmt, len); 29576e19bc4bSDmitry Shmidt __entry->signal = data->signal; 29586e19bc4bSDmitry Shmidt __entry->ts_boottime = data->boottime_ns; 29591d76250bSAvraham Stern __entry->parent_tsf = data->parent_tsf; 29601d76250bSAvraham Stern MAC_ASSIGN(parent_bssid, data->parent_bssid); 29614ee3e063SBeni Lev ), 29621d76250bSAvraham Stern TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT 29631d76250bSAvraham Stern "(scan_width: %d) signal: %d, tsb:%llu, detect_tsf:%llu, tsf_bssid: " 29641d76250bSAvraham Stern MAC_PR_FMT, WIPHY_PR_ARG, CHAN_PR_ARG, __entry->scan_width, 29651d76250bSAvraham Stern __entry->signal, (unsigned long long)__entry->ts_boottime, 29661d76250bSAvraham Stern (unsigned long long)__entry->parent_tsf, 29671d76250bSAvraham Stern MAC_PR_ARG(parent_bssid)) 29684ee3e063SBeni Lev ); 29694ee3e063SBeni Lev 29704ee3e063SBeni Lev DECLARE_EVENT_CLASS(cfg80211_bss_evt, 29714ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 29724ee3e063SBeni Lev TP_ARGS(pub), 29734ee3e063SBeni Lev TP_STRUCT__entry( 29744ee3e063SBeni Lev MAC_ENTRY(bssid) 29754ee3e063SBeni Lev CHAN_ENTRY 29764ee3e063SBeni Lev ), 29774ee3e063SBeni Lev TP_fast_assign( 29784ee3e063SBeni Lev MAC_ASSIGN(bssid, pub->bssid); 29794ee3e063SBeni Lev CHAN_ASSIGN(pub->channel); 29804ee3e063SBeni Lev ), 2981ec816087SJohannes Berg TP_printk(MAC_PR_FMT ", " CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG) 29824ee3e063SBeni Lev ); 29834ee3e063SBeni Lev 29844ee3e063SBeni Lev DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, 29854ee3e063SBeni Lev TP_PROTO(struct cfg80211_bss *pub), 29864ee3e063SBeni Lev TP_ARGS(pub) 29874ee3e063SBeni Lev ); 29884ee3e063SBeni Lev 29894ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_uint, 29904ee3e063SBeni Lev TP_PROTO(unsigned int ret), 29914ee3e063SBeni Lev TP_ARGS(ret), 29924ee3e063SBeni Lev TP_STRUCT__entry( 29934ee3e063SBeni Lev __field(unsigned int, ret) 29944ee3e063SBeni Lev ), 29954ee3e063SBeni Lev TP_fast_assign( 29964ee3e063SBeni Lev __entry->ret = ret; 29974ee3e063SBeni Lev ), 29984ee3e063SBeni Lev TP_printk("ret: %d", __entry->ret) 29994ee3e063SBeni Lev ); 30004ee3e063SBeni Lev 30014ee3e063SBeni Lev TRACE_EVENT(cfg80211_return_u32, 30024ee3e063SBeni Lev TP_PROTO(u32 ret), 30034ee3e063SBeni Lev TP_ARGS(ret), 30044ee3e063SBeni Lev TP_STRUCT__entry( 30054ee3e063SBeni Lev __field(u32, ret) 30064ee3e063SBeni Lev ), 30074ee3e063SBeni Lev TP_fast_assign( 30084ee3e063SBeni Lev __entry->ret = ret; 30094ee3e063SBeni Lev ), 30104ee3e063SBeni Lev TP_printk("ret: %u", __entry->ret) 30114ee3e063SBeni Lev ); 30124ee3e063SBeni Lev 3013cd8f7cb4SJohannes Berg TRACE_EVENT(cfg80211_report_wowlan_wakeup, 3014cd8f7cb4SJohannes Berg TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3015cd8f7cb4SJohannes Berg struct cfg80211_wowlan_wakeup *wakeup), 3016cd8f7cb4SJohannes Berg TP_ARGS(wiphy, wdev, wakeup), 3017cd8f7cb4SJohannes Berg TP_STRUCT__entry( 3018cd8f7cb4SJohannes Berg WIPHY_ENTRY 3019cd8f7cb4SJohannes Berg WDEV_ENTRY 3020a92eecbbSJohannes Berg __field(bool, non_wireless) 3021cd8f7cb4SJohannes Berg __field(bool, disconnect) 3022cd8f7cb4SJohannes Berg __field(bool, magic_pkt) 3023cd8f7cb4SJohannes Berg __field(bool, gtk_rekey_failure) 3024cd8f7cb4SJohannes Berg __field(bool, eap_identity_req) 3025cd8f7cb4SJohannes Berg __field(bool, four_way_handshake) 3026cd8f7cb4SJohannes Berg __field(bool, rfkill_release) 3027cd8f7cb4SJohannes Berg __field(s32, pattern_idx) 3028cd8f7cb4SJohannes Berg __field(u32, packet_len) 3029a92eecbbSJohannes Berg __dynamic_array(u8, packet, 3030a92eecbbSJohannes Berg wakeup ? wakeup->packet_present_len : 0) 3031cd8f7cb4SJohannes Berg ), 3032cd8f7cb4SJohannes Berg TP_fast_assign( 3033cd8f7cb4SJohannes Berg WIPHY_ASSIGN; 3034cd8f7cb4SJohannes Berg WDEV_ASSIGN; 3035a92eecbbSJohannes Berg __entry->non_wireless = !wakeup; 3036a92eecbbSJohannes Berg __entry->disconnect = wakeup ? wakeup->disconnect : false; 3037a92eecbbSJohannes Berg __entry->magic_pkt = wakeup ? wakeup->magic_pkt : false; 3038a92eecbbSJohannes Berg __entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false; 3039a92eecbbSJohannes Berg __entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false; 3040a92eecbbSJohannes Berg __entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false; 3041a92eecbbSJohannes Berg __entry->rfkill_release = wakeup ? wakeup->rfkill_release : false; 3042a92eecbbSJohannes Berg __entry->pattern_idx = wakeup ? wakeup->pattern_idx : false; 3043a92eecbbSJohannes Berg __entry->packet_len = wakeup ? wakeup->packet_len : false; 3044a92eecbbSJohannes Berg if (wakeup && wakeup->packet && wakeup->packet_present_len) 3045cd8f7cb4SJohannes Berg memcpy(__get_dynamic_array(packet), wakeup->packet, 3046cd8f7cb4SJohannes Berg wakeup->packet_present_len); 3047cd8f7cb4SJohannes Berg ), 3048cd8f7cb4SJohannes Berg TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 3049cd8f7cb4SJohannes Berg ); 3050cd8f7cb4SJohannes Berg 3051355199e0SJouni Malinen TRACE_EVENT(cfg80211_ft_event, 3052355199e0SJouni Malinen TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3053355199e0SJouni Malinen struct cfg80211_ft_event_params *ft_event), 3054355199e0SJouni Malinen TP_ARGS(wiphy, netdev, ft_event), 3055355199e0SJouni Malinen TP_STRUCT__entry( 3056355199e0SJouni Malinen WIPHY_ENTRY 3057355199e0SJouni Malinen NETDEV_ENTRY 3058355199e0SJouni Malinen __dynamic_array(u8, ies, ft_event->ies_len) 3059355199e0SJouni Malinen MAC_ENTRY(target_ap) 3060355199e0SJouni Malinen __dynamic_array(u8, ric_ies, ft_event->ric_ies_len) 3061355199e0SJouni Malinen ), 3062355199e0SJouni Malinen TP_fast_assign( 3063355199e0SJouni Malinen WIPHY_ASSIGN; 3064355199e0SJouni Malinen NETDEV_ASSIGN; 3065355199e0SJouni Malinen if (ft_event->ies) 3066355199e0SJouni Malinen memcpy(__get_dynamic_array(ies), ft_event->ies, 3067355199e0SJouni Malinen ft_event->ies_len); 3068355199e0SJouni Malinen MAC_ASSIGN(target_ap, ft_event->target_ap); 3069355199e0SJouni Malinen if (ft_event->ric_ies) 3070355199e0SJouni Malinen memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies, 3071355199e0SJouni Malinen ft_event->ric_ies_len); 3072355199e0SJouni Malinen ), 3073355199e0SJouni Malinen TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: " MAC_PR_FMT, 3074355199e0SJouni Malinen WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(target_ap)) 3075355199e0SJouni Malinen ); 3076355199e0SJouni Malinen 3077f04c2203SMichal Kazior TRACE_EVENT(cfg80211_stop_iface, 3078f04c2203SMichal Kazior TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 3079f04c2203SMichal Kazior TP_ARGS(wiphy, wdev), 3080f04c2203SMichal Kazior TP_STRUCT__entry( 3081f04c2203SMichal Kazior WIPHY_ENTRY 3082f04c2203SMichal Kazior WDEV_ENTRY 3083f04c2203SMichal Kazior ), 3084f04c2203SMichal Kazior TP_fast_assign( 3085f04c2203SMichal Kazior WIPHY_ASSIGN; 3086f04c2203SMichal Kazior WDEV_ASSIGN; 3087f04c2203SMichal Kazior ), 3088f04c2203SMichal Kazior TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 3089f04c2203SMichal Kazior WIPHY_PR_ARG, WDEV_PR_ARG) 3090f04c2203SMichal Kazior ); 3091f04c2203SMichal Kazior 3092a1056b1bSIlan Peer TRACE_EVENT(rdev_start_radar_detection, 3093a1056b1bSIlan Peer TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3094a1056b1bSIlan Peer struct cfg80211_chan_def *chandef, 3095a1056b1bSIlan Peer u32 cac_time_ms), 3096a1056b1bSIlan Peer TP_ARGS(wiphy, netdev, chandef, cac_time_ms), 3097a1056b1bSIlan Peer TP_STRUCT__entry( 3098a1056b1bSIlan Peer WIPHY_ENTRY 3099a1056b1bSIlan Peer NETDEV_ENTRY 3100a1056b1bSIlan Peer CHAN_DEF_ENTRY 3101a1056b1bSIlan Peer __field(u32, cac_time_ms) 3102a1056b1bSIlan Peer ), 3103a1056b1bSIlan Peer TP_fast_assign( 3104a1056b1bSIlan Peer WIPHY_ASSIGN; 3105a1056b1bSIlan Peer NETDEV_ASSIGN; 3106a1056b1bSIlan Peer CHAN_DEF_ASSIGN(chandef); 3107a1056b1bSIlan Peer __entry->cac_time_ms = cac_time_ms; 3108a1056b1bSIlan Peer ), 3109a1056b1bSIlan Peer TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 3110a1056b1bSIlan Peer ", cac_time_ms=%u", 3111a1056b1bSIlan Peer WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 3112a1056b1bSIlan Peer __entry->cac_time_ms) 3113a1056b1bSIlan Peer ); 3114a1056b1bSIlan Peer 3115a1056b1bSIlan Peer TRACE_EVENT(rdev_set_mcast_rate, 3116a1056b1bSIlan Peer TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 311757fbcce3SJohannes Berg int mcast_rate[NUM_NL80211_BANDS]), 3118a1056b1bSIlan Peer TP_ARGS(wiphy, netdev, mcast_rate), 3119a1056b1bSIlan Peer TP_STRUCT__entry( 3120a1056b1bSIlan Peer WIPHY_ENTRY 3121a1056b1bSIlan Peer NETDEV_ENTRY 312257fbcce3SJohannes Berg __array(int, mcast_rate, NUM_NL80211_BANDS) 3123a1056b1bSIlan Peer ), 3124a1056b1bSIlan Peer TP_fast_assign( 3125a1056b1bSIlan Peer WIPHY_ASSIGN; 3126a1056b1bSIlan Peer NETDEV_ASSIGN; 3127a1056b1bSIlan Peer memcpy(__entry->mcast_rate, mcast_rate, 312857fbcce3SJohannes Berg sizeof(int) * NUM_NL80211_BANDS); 3129a1056b1bSIlan Peer ), 3130a1056b1bSIlan Peer TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " 3131a1056b1bSIlan Peer "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]", 3132a1056b1bSIlan Peer WIPHY_PR_ARG, NETDEV_PR_ARG, 313357fbcce3SJohannes Berg __entry->mcast_rate[NL80211_BAND_2GHZ], 313457fbcce3SJohannes Berg __entry->mcast_rate[NL80211_BAND_5GHZ], 313557fbcce3SJohannes Berg __entry->mcast_rate[NL80211_BAND_60GHZ]) 3136a1056b1bSIlan Peer ); 3137a1056b1bSIlan Peer 3138a1056b1bSIlan Peer TRACE_EVENT(rdev_set_coalesce, 3139a1056b1bSIlan Peer TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce), 3140a1056b1bSIlan Peer TP_ARGS(wiphy, coalesce), 3141a1056b1bSIlan Peer TP_STRUCT__entry( 3142a1056b1bSIlan Peer WIPHY_ENTRY 3143a1056b1bSIlan Peer __field(int, n_rules) 3144a1056b1bSIlan Peer ), 3145a1056b1bSIlan Peer TP_fast_assign( 3146a1056b1bSIlan Peer WIPHY_ASSIGN; 3147a1056b1bSIlan Peer __entry->n_rules = coalesce ? coalesce->n_rules : 0; 3148a1056b1bSIlan Peer ), 3149a1056b1bSIlan Peer TP_printk(WIPHY_PR_FMT ", n_rules=%d", 3150a1056b1bSIlan Peer WIPHY_PR_ARG, __entry->n_rules) 3151a1056b1bSIlan Peer ); 3152a1056b1bSIlan Peer 315391d3ab46SVidyullatha Kanchanapally DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan, 315491d3ab46SVidyullatha Kanchanapally TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 315591d3ab46SVidyullatha Kanchanapally TP_ARGS(wiphy, wdev) 315691d3ab46SVidyullatha Kanchanapally ); 3157ce0ce13aSMichael Braun 3158ce0ce13aSMichael Braun TRACE_EVENT(rdev_set_multicast_to_unicast, 3159ce0ce13aSMichael Braun TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3160ce0ce13aSMichael Braun const bool enabled), 3161ce0ce13aSMichael Braun TP_ARGS(wiphy, netdev, enabled), 3162ce0ce13aSMichael Braun TP_STRUCT__entry( 3163ce0ce13aSMichael Braun WIPHY_ENTRY 3164ce0ce13aSMichael Braun NETDEV_ENTRY 3165ce0ce13aSMichael Braun __field(bool, enabled) 3166ce0ce13aSMichael Braun ), 3167ce0ce13aSMichael Braun TP_fast_assign( 3168ce0ce13aSMichael Braun WIPHY_ASSIGN; 3169ce0ce13aSMichael Braun NETDEV_ASSIGN; 3170ce0ce13aSMichael Braun __entry->enabled = enabled; 3171ce0ce13aSMichael Braun ), 3172ce0ce13aSMichael Braun TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s", 3173ce0ce13aSMichael Braun WIPHY_PR_ARG, NETDEV_PR_ARG, 3174ce0ce13aSMichael Braun BOOL_TO_STR(__entry->enabled)) 3175ce0ce13aSMichael Braun ); 317614e8a3c4SBeni Lev #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 317714e8a3c4SBeni Lev 317814e8a3c4SBeni Lev #undef TRACE_INCLUDE_PATH 317914e8a3c4SBeni Lev #define TRACE_INCLUDE_PATH . 318014e8a3c4SBeni Lev #undef TRACE_INCLUDE_FILE 318114e8a3c4SBeni Lev #define TRACE_INCLUDE_FILE trace 318214e8a3c4SBeni Lev #include <trace/define_trace.h> 3183