1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Portions of this file 4 * Copyright(c) 2016-2017 Intel Deutschland GmbH 5 * Copyright (C) 2018, 2020-2026 Intel Corporation 6 */ 7 #undef TRACE_SYSTEM 8 #define TRACE_SYSTEM cfg80211 9 10 #if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ) 11 #define __RDEV_OPS_TRACE 12 13 #include <linux/tracepoint.h> 14 15 #include <linux/rtnetlink.h> 16 #include <linux/etherdevice.h> 17 #include <net/cfg80211.h> 18 #include "core.h" 19 20 #define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN) 21 #define MAC_ASSIGN(entry_mac, given_mac) do { \ 22 if (given_mac) \ 23 memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \ 24 else \ 25 eth_zero_addr(__entry->entry_mac); \ 26 } while (0) 27 28 #define MAXNAME 32 29 #define WIPHY_ENTRY __array(char, wiphy_name, 32) 30 #define WIPHY_ASSIGN strscpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME) 31 #define WIPHY_PR_FMT "%s" 32 #define WIPHY_PR_ARG __entry->wiphy_name 33 34 #define WDEV_ENTRY __field(u32, id) 35 #define WDEV_ASSIGN (__entry->id) = (!IS_ERR_OR_NULL(wdev) \ 36 ? wdev->identifier : 0) 37 #define WDEV_PR_FMT "wdev(%u)" 38 #define WDEV_PR_ARG (__entry->id) 39 40 #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \ 41 __field(int, ifindex) 42 #define NETDEV_ASSIGN \ 43 do { \ 44 memcpy(__entry->name, netdev->name, IFNAMSIZ); \ 45 (__entry->ifindex) = (netdev->ifindex); \ 46 } while (0) 47 #define NETDEV_PR_FMT "netdev:%s(%d)" 48 #define NETDEV_PR_ARG __entry->name, __entry->ifindex 49 50 #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \ 51 __field(u16, dot11MeshConfirmTimeout) \ 52 __field(u16, dot11MeshHoldingTimeout) \ 53 __field(u16, dot11MeshMaxPeerLinks) \ 54 __field(u8, dot11MeshMaxRetries) \ 55 __field(u8, dot11MeshTTL) \ 56 __field(u8, element_ttl) \ 57 __field(bool, auto_open_plinks) \ 58 __field(u32, dot11MeshNbrOffsetMaxNeighbor) \ 59 __field(u8, dot11MeshHWMPmaxPREQretries) \ 60 __field(u32, path_refresh_time) \ 61 __field(u32, dot11MeshHWMPactivePathTimeout) \ 62 __field(u16, min_discovery_timeout) \ 63 __field(u16, dot11MeshHWMPpreqMinInterval) \ 64 __field(u16, dot11MeshHWMPperrMinInterval) \ 65 __field(u16, dot11MeshHWMPnetDiameterTraversalTime) \ 66 __field(u8, dot11MeshHWMPRootMode) \ 67 __field(u16, dot11MeshHWMPRannInterval) \ 68 __field(bool, dot11MeshGateAnnouncementProtocol) \ 69 __field(bool, dot11MeshForwarding) \ 70 __field(s32, rssi_threshold) \ 71 __field(u16, ht_opmode) \ 72 __field(u32, dot11MeshHWMPactivePathToRootTimeout) \ 73 __field(u16, dot11MeshHWMProotInterval) \ 74 __field(u16, dot11MeshHWMPconfirmationInterval) \ 75 __field(bool, dot11MeshNolearn) 76 #define MESH_CFG_ASSIGN \ 77 do { \ 78 __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \ 79 __entry->dot11MeshConfirmTimeout = \ 80 conf->dot11MeshConfirmTimeout; \ 81 __entry->dot11MeshHoldingTimeout = \ 82 conf->dot11MeshHoldingTimeout; \ 83 __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \ 84 __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \ 85 __entry->dot11MeshTTL = conf->dot11MeshTTL; \ 86 __entry->element_ttl = conf->element_ttl; \ 87 __entry->auto_open_plinks = conf->auto_open_plinks; \ 88 __entry->dot11MeshNbrOffsetMaxNeighbor = \ 89 conf->dot11MeshNbrOffsetMaxNeighbor; \ 90 __entry->dot11MeshHWMPmaxPREQretries = \ 91 conf->dot11MeshHWMPmaxPREQretries; \ 92 __entry->path_refresh_time = conf->path_refresh_time; \ 93 __entry->dot11MeshHWMPactivePathTimeout = \ 94 conf->dot11MeshHWMPactivePathTimeout; \ 95 __entry->min_discovery_timeout = conf->min_discovery_timeout; \ 96 __entry->dot11MeshHWMPpreqMinInterval = \ 97 conf->dot11MeshHWMPpreqMinInterval; \ 98 __entry->dot11MeshHWMPperrMinInterval = \ 99 conf->dot11MeshHWMPperrMinInterval; \ 100 __entry->dot11MeshHWMPnetDiameterTraversalTime = \ 101 conf->dot11MeshHWMPnetDiameterTraversalTime; \ 102 __entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \ 103 __entry->dot11MeshHWMPRannInterval = \ 104 conf->dot11MeshHWMPRannInterval; \ 105 __entry->dot11MeshGateAnnouncementProtocol = \ 106 conf->dot11MeshGateAnnouncementProtocol; \ 107 __entry->dot11MeshForwarding = conf->dot11MeshForwarding; \ 108 __entry->rssi_threshold = conf->rssi_threshold; \ 109 __entry->ht_opmode = conf->ht_opmode; \ 110 __entry->dot11MeshHWMPactivePathToRootTimeout = \ 111 conf->dot11MeshHWMPactivePathToRootTimeout; \ 112 __entry->dot11MeshHWMProotInterval = \ 113 conf->dot11MeshHWMProotInterval; \ 114 __entry->dot11MeshHWMPconfirmationInterval = \ 115 conf->dot11MeshHWMPconfirmationInterval; \ 116 __entry->dot11MeshNolearn = conf->dot11MeshNolearn; \ 117 } while (0) 118 119 #define CHAN_ENTRY __field(enum nl80211_band, band) \ 120 __field(u32, center_freq) \ 121 __field(u16, freq_offset) 122 #define CHAN_ASSIGN(chan) \ 123 do { \ 124 if (chan) { \ 125 __entry->band = chan->band; \ 126 __entry->center_freq = chan->center_freq; \ 127 __entry->freq_offset = chan->freq_offset; \ 128 } else { \ 129 __entry->band = 0; \ 130 __entry->center_freq = 0; \ 131 __entry->freq_offset = 0; \ 132 } \ 133 } while (0) 134 #define CHAN_PR_FMT "band: %d, freq: %u.%03u" 135 #define CHAN_PR_ARG __entry->band, __entry->center_freq, __entry->freq_offset 136 137 #define CHAN_DEF_ENTRY __field(enum nl80211_band, band) \ 138 __field(u32, control_freq) \ 139 __field(u32, freq_offset) \ 140 __field(u32, width) \ 141 __field(u32, center_freq1) \ 142 __field(u32, freq1_offset) \ 143 __field(u32, center_freq2) \ 144 __field(u16, punctured) 145 #define CHAN_DEF_ASSIGN(chandef) \ 146 do { \ 147 if ((chandef) && (chandef)->chan) { \ 148 __entry->band = (chandef)->chan->band; \ 149 __entry->control_freq = \ 150 (chandef)->chan->center_freq; \ 151 __entry->freq_offset = \ 152 (chandef)->chan->freq_offset; \ 153 __entry->width = (chandef)->width; \ 154 __entry->center_freq1 = (chandef)->center_freq1;\ 155 __entry->freq1_offset = (chandef)->freq1_offset;\ 156 __entry->center_freq2 = (chandef)->center_freq2;\ 157 __entry->punctured = (chandef)->punctured; \ 158 } else { \ 159 __entry->band = 0; \ 160 __entry->control_freq = 0; \ 161 __entry->freq_offset = 0; \ 162 __entry->width = 0; \ 163 __entry->center_freq1 = 0; \ 164 __entry->freq1_offset = 0; \ 165 __entry->center_freq2 = 0; \ 166 __entry->punctured = 0; \ 167 } \ 168 } while (0) 169 #define CHAN_DEF_PR_FMT \ 170 "band: %d, control freq: %u.%03u, width: %d, cf1: %u.%03u, cf2: %u, punct: 0x%x" 171 #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \ 172 __entry->freq_offset, __entry->width, \ 173 __entry->center_freq1, __entry->freq1_offset, \ 174 __entry->center_freq2, __entry->punctured 175 176 #define FILS_AAD_ASSIGN(fa) \ 177 do { \ 178 if (fa) { \ 179 ether_addr_copy(__entry->macaddr, fa->macaddr); \ 180 __entry->kek_len = fa->kek_len; \ 181 } else { \ 182 eth_zero_addr(__entry->macaddr); \ 183 __entry->kek_len = 0; \ 184 } \ 185 } while (0) 186 #define FILS_AAD_PR_FMT \ 187 "macaddr: %pM, kek_len: %d" 188 189 #define SINFO_ENTRY __field(int, generation) \ 190 __field(u32, connected_time) \ 191 __field(u32, inactive_time) \ 192 __field(u32, rx_bytes) \ 193 __field(u32, tx_bytes) \ 194 __field(u32, rx_packets) \ 195 __field(u32, tx_packets) \ 196 __field(u32, tx_retries) \ 197 __field(u32, tx_failed) \ 198 __field(u32, rx_dropped_misc) \ 199 __field(u32, beacon_loss_count) \ 200 __field(u16, llid) \ 201 __field(u16, plid) \ 202 __field(u8, plink_state) 203 #define SINFO_ASSIGN \ 204 do { \ 205 __entry->generation = sinfo->generation; \ 206 __entry->connected_time = sinfo->connected_time; \ 207 __entry->inactive_time = sinfo->inactive_time; \ 208 __entry->rx_bytes = sinfo->rx_bytes; \ 209 __entry->tx_bytes = sinfo->tx_bytes; \ 210 __entry->rx_packets = sinfo->rx_packets; \ 211 __entry->tx_packets = sinfo->tx_packets; \ 212 __entry->tx_retries = sinfo->tx_retries; \ 213 __entry->tx_failed = sinfo->tx_failed; \ 214 __entry->rx_dropped_misc = sinfo->rx_dropped_misc; \ 215 __entry->beacon_loss_count = sinfo->beacon_loss_count; \ 216 __entry->llid = sinfo->llid; \ 217 __entry->plid = sinfo->plid; \ 218 __entry->plink_state = sinfo->plink_state; \ 219 } while (0) 220 221 #define BOOL_TO_STR(bo) (bo) ? "true" : "false" 222 223 #define QOS_MAP_ENTRY __field(u8, num_des) \ 224 __array(u8, dscp_exception, \ 225 2 * IEEE80211_QOS_MAP_MAX_EX) \ 226 __array(u8, up, IEEE80211_QOS_MAP_LEN_MIN) 227 #define QOS_MAP_ASSIGN(qos_map) \ 228 do { \ 229 if ((qos_map)) { \ 230 __entry->num_des = (qos_map)->num_des; \ 231 memcpy(__entry->dscp_exception, \ 232 &(qos_map)->dscp_exception, \ 233 2 * IEEE80211_QOS_MAP_MAX_EX); \ 234 memcpy(__entry->up, &(qos_map)->up, \ 235 IEEE80211_QOS_MAP_LEN_MIN); \ 236 } else { \ 237 __entry->num_des = 0; \ 238 memset(__entry->dscp_exception, 0, \ 239 2 * IEEE80211_QOS_MAP_MAX_EX); \ 240 memset(__entry->up, 0, \ 241 IEEE80211_QOS_MAP_LEN_MIN); \ 242 } \ 243 } while (0) 244 245 /************************************************************* 246 * wiphy work traces * 247 *************************************************************/ 248 249 DECLARE_EVENT_CLASS(wiphy_work_event, 250 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work), 251 TP_ARGS(wiphy, work), 252 TP_STRUCT__entry( 253 WIPHY_ENTRY 254 __field(void *, instance) 255 __field(void *, func) 256 ), 257 TP_fast_assign( 258 WIPHY_ASSIGN; 259 __entry->instance = work; 260 __entry->func = work ? work->func : NULL; 261 ), 262 TP_printk(WIPHY_PR_FMT " instance=%p func=%pS", 263 WIPHY_PR_ARG, __entry->instance, __entry->func) 264 ); 265 266 DEFINE_EVENT(wiphy_work_event, wiphy_work_queue, 267 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work), 268 TP_ARGS(wiphy, work) 269 ); 270 271 DEFINE_EVENT(wiphy_work_event, wiphy_work_run, 272 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work), 273 TP_ARGS(wiphy, work) 274 ); 275 276 DEFINE_EVENT(wiphy_work_event, wiphy_work_cancel, 277 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work), 278 TP_ARGS(wiphy, work) 279 ); 280 281 DEFINE_EVENT(wiphy_work_event, wiphy_work_flush, 282 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work), 283 TP_ARGS(wiphy, work) 284 ); 285 286 TRACE_EVENT(wiphy_delayed_work_queue, 287 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work, 288 unsigned long delay), 289 TP_ARGS(wiphy, work, delay), 290 TP_STRUCT__entry( 291 WIPHY_ENTRY 292 __field(void *, instance) 293 __field(void *, func) 294 __field(unsigned long, delay) 295 ), 296 TP_fast_assign( 297 WIPHY_ASSIGN; 298 __entry->instance = work; 299 __entry->func = work->func; 300 __entry->delay = delay; 301 ), 302 TP_printk(WIPHY_PR_FMT " instance=%p func=%pS delay=%ld", 303 WIPHY_PR_ARG, __entry->instance, __entry->func, 304 __entry->delay) 305 ); 306 307 TRACE_EVENT(wiphy_hrtimer_work_queue, 308 TP_PROTO(struct wiphy *wiphy, struct wiphy_work *work, 309 ktime_t delay), 310 TP_ARGS(wiphy, work, delay), 311 TP_STRUCT__entry( 312 WIPHY_ENTRY 313 __field(void *, instance) 314 __field(void *, func) 315 __field(ktime_t, delay) 316 ), 317 TP_fast_assign( 318 WIPHY_ASSIGN; 319 __entry->instance = work; 320 __entry->func = work->func; 321 __entry->delay = delay; 322 ), 323 TP_printk(WIPHY_PR_FMT " instance=%p func=%pS delay=%llu", 324 WIPHY_PR_ARG, __entry->instance, __entry->func, 325 __entry->delay) 326 ); 327 328 TRACE_EVENT(wiphy_work_worker_start, 329 TP_PROTO(struct wiphy *wiphy), 330 TP_ARGS(wiphy), 331 TP_STRUCT__entry( 332 WIPHY_ENTRY 333 ), 334 TP_fast_assign( 335 WIPHY_ASSIGN; 336 ), 337 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 338 ); 339 340 /************************************************************* 341 * rdev->ops traces * 342 *************************************************************/ 343 344 TRACE_EVENT(rdev_suspend, 345 TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow), 346 TP_ARGS(wiphy, wow), 347 TP_STRUCT__entry( 348 WIPHY_ENTRY 349 __field(bool, any) 350 __field(bool, disconnect) 351 __field(bool, magic_pkt) 352 __field(bool, gtk_rekey_failure) 353 __field(bool, eap_identity_req) 354 __field(bool, four_way_handshake) 355 __field(bool, rfkill_release) 356 __field(bool, valid_wow) 357 ), 358 TP_fast_assign( 359 WIPHY_ASSIGN; 360 if (wow) { 361 __entry->any = wow->any; 362 __entry->disconnect = wow->disconnect; 363 __entry->magic_pkt = wow->magic_pkt; 364 __entry->gtk_rekey_failure = wow->gtk_rekey_failure; 365 __entry->eap_identity_req = wow->eap_identity_req; 366 __entry->four_way_handshake = wow->four_way_handshake; 367 __entry->rfkill_release = wow->rfkill_release; 368 __entry->valid_wow = true; 369 } else { 370 __entry->valid_wow = false; 371 } 372 ), 373 TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, " 374 "magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, " 375 "four way handshake: %d, rfkill release: %d.", 376 WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)", 377 __entry->any, __entry->disconnect, __entry->magic_pkt, 378 __entry->gtk_rekey_failure, __entry->eap_identity_req, 379 __entry->four_way_handshake, __entry->rfkill_release) 380 ); 381 382 TRACE_EVENT(rdev_return_int, 383 TP_PROTO(struct wiphy *wiphy, int ret), 384 TP_ARGS(wiphy, ret), 385 TP_STRUCT__entry( 386 WIPHY_ENTRY 387 __field(int, ret) 388 ), 389 TP_fast_assign( 390 WIPHY_ASSIGN; 391 __entry->ret = ret; 392 ), 393 TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret) 394 ); 395 396 TRACE_EVENT(rdev_scan, 397 TP_PROTO(struct wiphy *wiphy, 398 struct cfg80211_scan_request_int *request), 399 TP_ARGS(wiphy, request), 400 TP_STRUCT__entry( 401 WIPHY_ENTRY 402 ), 403 TP_fast_assign( 404 WIPHY_ASSIGN; 405 ), 406 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 407 ); 408 409 DECLARE_EVENT_CLASS(wiphy_only_evt, 410 TP_PROTO(struct wiphy *wiphy), 411 TP_ARGS(wiphy), 412 TP_STRUCT__entry( 413 WIPHY_ENTRY 414 ), 415 TP_fast_assign( 416 WIPHY_ASSIGN; 417 ), 418 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 419 ); 420 421 DEFINE_EVENT(wiphy_only_evt, rdev_resume, 422 TP_PROTO(struct wiphy *wiphy), 423 TP_ARGS(wiphy) 424 ); 425 426 DEFINE_EVENT(wiphy_only_evt, rdev_return_void, 427 TP_PROTO(struct wiphy *wiphy), 428 TP_ARGS(wiphy) 429 ); 430 431 TRACE_EVENT(rdev_get_antenna, 432 TP_PROTO(struct wiphy *wiphy, int radio_idx), 433 TP_ARGS(wiphy, radio_idx), 434 TP_STRUCT__entry( 435 WIPHY_ENTRY 436 __field(int, radio_idx) 437 ), 438 TP_fast_assign( 439 WIPHY_ASSIGN; 440 __entry->radio_idx = radio_idx; 441 ), 442 TP_printk(WIPHY_PR_FMT ", radio_idx: %d", 443 WIPHY_PR_ARG, __entry->radio_idx) 444 ); 445 446 DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll, 447 TP_PROTO(struct wiphy *wiphy), 448 TP_ARGS(wiphy) 449 ); 450 451 DECLARE_EVENT_CLASS(wiphy_enabled_evt, 452 TP_PROTO(struct wiphy *wiphy, bool enabled), 453 TP_ARGS(wiphy, enabled), 454 TP_STRUCT__entry( 455 WIPHY_ENTRY 456 __field(bool, enabled) 457 ), 458 TP_fast_assign( 459 WIPHY_ASSIGN; 460 __entry->enabled = enabled; 461 ), 462 TP_printk(WIPHY_PR_FMT ", %senabled ", 463 WIPHY_PR_ARG, __entry->enabled ? "" : "not ") 464 ); 465 466 DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup, 467 TP_PROTO(struct wiphy *wiphy, bool enabled), 468 TP_ARGS(wiphy, enabled) 469 ); 470 471 TRACE_EVENT(rdev_add_virtual_intf, 472 TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type), 473 TP_ARGS(wiphy, name, type), 474 TP_STRUCT__entry( 475 WIPHY_ENTRY 476 __string(vir_intf_name, name ? name : "<noname>") 477 __field(enum nl80211_iftype, type) 478 ), 479 TP_fast_assign( 480 WIPHY_ASSIGN; 481 __assign_str(vir_intf_name); 482 __entry->type = type; 483 ), 484 TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d", 485 WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type) 486 ); 487 488 DECLARE_EVENT_CLASS(wiphy_wdev_evt, 489 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 490 TP_ARGS(wiphy, wdev), 491 TP_STRUCT__entry( 492 WIPHY_ENTRY 493 WDEV_ENTRY 494 ), 495 TP_fast_assign( 496 WIPHY_ASSIGN; 497 WDEV_ASSIGN; 498 ), 499 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 500 ); 501 502 DECLARE_EVENT_CLASS(wiphy_wdev_cookie_evt, 503 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 504 TP_ARGS(wiphy, wdev, cookie), 505 TP_STRUCT__entry( 506 WIPHY_ENTRY 507 WDEV_ENTRY 508 __field(u64, cookie) 509 ), 510 TP_fast_assign( 511 WIPHY_ASSIGN; 512 WDEV_ASSIGN; 513 __entry->cookie = cookie; 514 ), 515 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %lld", 516 WIPHY_PR_ARG, WDEV_PR_ARG, 517 (unsigned long long)__entry->cookie) 518 ); 519 520 DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, 521 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 522 TP_ARGS(wiphy, wdev) 523 ); 524 525 DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf, 526 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 527 TP_ARGS(wiphy, wdev) 528 ); 529 530 TRACE_EVENT(rdev_change_virtual_intf, 531 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 532 enum nl80211_iftype type), 533 TP_ARGS(wiphy, netdev, type), 534 TP_STRUCT__entry( 535 WIPHY_ENTRY 536 NETDEV_ENTRY 537 __field(enum nl80211_iftype, type) 538 ), 539 TP_fast_assign( 540 WIPHY_ASSIGN; 541 NETDEV_ASSIGN; 542 __entry->type = type; 543 ), 544 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d", 545 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) 546 ); 547 548 DECLARE_EVENT_CLASS(key_handle, 549 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 550 u8 key_index, bool pairwise, const u8 *mac_addr), 551 TP_ARGS(wiphy, wdev, link_id, key_index, pairwise, mac_addr), 552 TP_STRUCT__entry( 553 WIPHY_ENTRY 554 WDEV_ENTRY 555 MAC_ENTRY(mac_addr) 556 __field(int, link_id) 557 __field(u8, key_index) 558 __field(bool, pairwise) 559 ), 560 TP_fast_assign( 561 WIPHY_ASSIGN; 562 WDEV_ASSIGN; 563 MAC_ASSIGN(mac_addr, mac_addr); 564 __entry->link_id = link_id; 565 __entry->key_index = key_index; 566 __entry->pairwise = pairwise; 567 ), 568 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %d, " 569 "key_index: %u, pairwise: %s, mac addr: %pM", 570 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id, 571 __entry->key_index, BOOL_TO_STR(__entry->pairwise), 572 __entry->mac_addr) 573 ); 574 575 DEFINE_EVENT(key_handle, rdev_get_key, 576 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 577 u8 key_index, bool pairwise, const u8 *mac_addr), 578 TP_ARGS(wiphy, wdev, link_id, key_index, pairwise, mac_addr) 579 ); 580 581 DEFINE_EVENT(key_handle, rdev_del_key, 582 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 583 u8 key_index, bool pairwise, const u8 *mac_addr), 584 TP_ARGS(wiphy, wdev, link_id, key_index, pairwise, mac_addr) 585 ); 586 587 TRACE_EVENT(rdev_add_key, 588 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 589 u8 key_index, bool pairwise, const u8 *mac_addr, u8 mode), 590 TP_ARGS(wiphy, wdev, link_id, key_index, pairwise, mac_addr, mode), 591 TP_STRUCT__entry( 592 WIPHY_ENTRY 593 WDEV_ENTRY 594 MAC_ENTRY(mac_addr) 595 __field(int, link_id) 596 __field(u8, key_index) 597 __field(bool, pairwise) 598 __field(u8, mode) 599 ), 600 TP_fast_assign( 601 WIPHY_ASSIGN; 602 WDEV_ASSIGN; 603 MAC_ASSIGN(mac_addr, mac_addr); 604 __entry->link_id = link_id; 605 __entry->key_index = key_index; 606 __entry->pairwise = pairwise; 607 __entry->mode = mode; 608 ), 609 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %d, " 610 "key_index: %u, mode: %u, pairwise: %s, " 611 "mac addr: %pM", 612 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id, 613 __entry->key_index, __entry->mode, 614 BOOL_TO_STR(__entry->pairwise), __entry->mac_addr) 615 ); 616 617 TRACE_EVENT(rdev_set_default_key, 618 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 619 u8 key_index, bool unicast, bool multicast), 620 TP_ARGS(wiphy, netdev, link_id, key_index, unicast, multicast), 621 TP_STRUCT__entry( 622 WIPHY_ENTRY 623 NETDEV_ENTRY 624 __field(int, link_id) 625 __field(u8, key_index) 626 __field(bool, unicast) 627 __field(bool, multicast) 628 ), 629 TP_fast_assign( 630 WIPHY_ASSIGN; 631 NETDEV_ASSIGN; 632 __entry->link_id = link_id; 633 __entry->key_index = key_index; 634 __entry->unicast = unicast; 635 __entry->multicast = multicast; 636 ), 637 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", link_id: %d, " 638 "key index: %u, unicast: %s, multicast: %s", 639 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id, 640 __entry->key_index, BOOL_TO_STR(__entry->unicast), 641 BOOL_TO_STR(__entry->multicast)) 642 ); 643 644 TRACE_EVENT(rdev_set_default_mgmt_key, 645 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 646 u8 key_index), 647 TP_ARGS(wiphy, wdev, link_id, key_index), 648 TP_STRUCT__entry( 649 WIPHY_ENTRY 650 WDEV_ENTRY 651 __field(int, link_id) 652 __field(u8, key_index) 653 ), 654 TP_fast_assign( 655 WIPHY_ASSIGN; 656 WDEV_ASSIGN; 657 __entry->link_id = link_id; 658 __entry->key_index = key_index; 659 ), 660 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %d, key index: %u", 661 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id, 662 __entry->key_index) 663 ); 664 665 TRACE_EVENT(rdev_set_default_beacon_key, 666 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int link_id, 667 u8 key_index), 668 TP_ARGS(wiphy, wdev, link_id, key_index), 669 TP_STRUCT__entry( 670 WIPHY_ENTRY 671 WDEV_ENTRY 672 __field(int, link_id) 673 __field(u8, key_index) 674 ), 675 TP_fast_assign( 676 WIPHY_ASSIGN; 677 WDEV_ASSIGN; 678 __entry->link_id = link_id; 679 __entry->key_index = key_index; 680 ), 681 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %d, key index: %u", 682 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id, 683 __entry->key_index) 684 ); 685 686 TRACE_EVENT(rdev_start_ap, 687 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 688 struct cfg80211_ap_settings *settings), 689 TP_ARGS(wiphy, netdev, settings), 690 TP_STRUCT__entry( 691 WIPHY_ENTRY 692 NETDEV_ENTRY 693 CHAN_DEF_ENTRY 694 __field(int, beacon_interval) 695 __field(int, dtim_period) 696 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 697 __field(enum nl80211_hidden_ssid, hidden_ssid) 698 __field(u32, wpa_ver) 699 __field(bool, privacy) 700 __field(enum nl80211_auth_type, auth_type) 701 __field(int, inactivity_timeout) 702 __field(unsigned int, link_id) 703 ), 704 TP_fast_assign( 705 WIPHY_ASSIGN; 706 NETDEV_ASSIGN; 707 CHAN_DEF_ASSIGN(&settings->chandef); 708 __entry->beacon_interval = settings->beacon_interval; 709 __entry->dtim_period = settings->dtim_period; 710 __entry->hidden_ssid = settings->hidden_ssid; 711 __entry->wpa_ver = settings->crypto.wpa_versions; 712 __entry->privacy = settings->privacy; 713 __entry->auth_type = settings->auth_type; 714 __entry->inactivity_timeout = settings->inactivity_timeout; 715 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 716 memcpy(__entry->ssid, settings->ssid, settings->ssid_len); 717 __entry->link_id = settings->beacon.link_id; 718 ), 719 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, " 720 CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " 721 "hidden ssid: %d, wpa versions: %u, privacy: %s, " 722 "auth type: %d, inactivity timeout: %d, link_id: %d", 723 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG, 724 __entry->beacon_interval, __entry->dtim_period, 725 __entry->hidden_ssid, __entry->wpa_ver, 726 BOOL_TO_STR(__entry->privacy), __entry->auth_type, 727 __entry->inactivity_timeout, __entry->link_id) 728 ); 729 730 TRACE_EVENT(rdev_change_beacon, 731 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 732 struct cfg80211_ap_update *info), 733 TP_ARGS(wiphy, netdev, info), 734 TP_STRUCT__entry( 735 WIPHY_ENTRY 736 NETDEV_ENTRY 737 __field(int, link_id) 738 __dynamic_array(u8, head, info->beacon.head_len) 739 __dynamic_array(u8, tail, info->beacon.tail_len) 740 __dynamic_array(u8, beacon_ies, info->beacon.beacon_ies_len) 741 __dynamic_array(u8, proberesp_ies, info->beacon.proberesp_ies_len) 742 __dynamic_array(u8, assocresp_ies, info->beacon.assocresp_ies_len) 743 __dynamic_array(u8, probe_resp, info->beacon.probe_resp_len) 744 ), 745 TP_fast_assign( 746 WIPHY_ASSIGN; 747 NETDEV_ASSIGN; 748 __entry->link_id = info->beacon.link_id; 749 if (info->beacon.head) 750 memcpy(__get_dynamic_array(head), 751 info->beacon.head, 752 info->beacon.head_len); 753 if (info->beacon.tail) 754 memcpy(__get_dynamic_array(tail), 755 info->beacon.tail, 756 info->beacon.tail_len); 757 if (info->beacon.beacon_ies) 758 memcpy(__get_dynamic_array(beacon_ies), 759 info->beacon.beacon_ies, 760 info->beacon.beacon_ies_len); 761 if (info->beacon.proberesp_ies) 762 memcpy(__get_dynamic_array(proberesp_ies), 763 info->beacon.proberesp_ies, 764 info->beacon.proberesp_ies_len); 765 if (info->beacon.assocresp_ies) 766 memcpy(__get_dynamic_array(assocresp_ies), 767 info->beacon.assocresp_ies, 768 info->beacon.assocresp_ies_len); 769 if (info->beacon.probe_resp) 770 memcpy(__get_dynamic_array(probe_resp), 771 info->beacon.probe_resp, 772 info->beacon.probe_resp_len); 773 ), 774 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", link_id:%d", 775 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id) 776 ); 777 778 TRACE_EVENT(rdev_stop_ap, 779 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 780 unsigned int link_id), 781 TP_ARGS(wiphy, netdev, link_id), 782 TP_STRUCT__entry( 783 WIPHY_ENTRY 784 NETDEV_ENTRY 785 __field(unsigned int, link_id) 786 ), 787 TP_fast_assign( 788 WIPHY_ASSIGN; 789 NETDEV_ASSIGN; 790 __entry->link_id = link_id; 791 ), 792 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", link_id: %d", 793 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id) 794 ); 795 796 DECLARE_EVENT_CLASS(wiphy_netdev_evt, 797 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 798 TP_ARGS(wiphy, netdev), 799 TP_STRUCT__entry( 800 WIPHY_ENTRY 801 NETDEV_ENTRY 802 ), 803 TP_fast_assign( 804 WIPHY_ASSIGN; 805 NETDEV_ASSIGN; 806 ), 807 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 808 ); 809 810 DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data, 811 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 812 TP_ARGS(wiphy, netdev) 813 ); 814 815 DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config, 816 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 817 TP_ARGS(wiphy, netdev) 818 ); 819 820 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh, 821 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 822 TP_ARGS(wiphy, netdev) 823 ); 824 825 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss, 826 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 827 TP_ARGS(wiphy, netdev) 828 ); 829 830 DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ocb, 831 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 832 TP_ARGS(wiphy, netdev) 833 ); 834 835 DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa, 836 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 837 TP_ARGS(wiphy, netdev) 838 ); 839 840 TRACE_EVENT(rdev_end_cac, 841 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 842 unsigned int link_id), 843 TP_ARGS(wiphy, netdev, link_id), 844 TP_STRUCT__entry( 845 WIPHY_ENTRY 846 NETDEV_ENTRY 847 __field(unsigned int, link_id) 848 ), 849 TP_fast_assign( 850 WIPHY_ASSIGN; 851 NETDEV_ASSIGN; 852 __entry->link_id = link_id; 853 ), 854 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", link_id: %d", 855 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id) 856 ); 857 858 DECLARE_EVENT_CLASS(station_add_change, 859 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u8 *mac, 860 struct station_parameters *params), 861 TP_ARGS(wiphy, wdev, mac, params), 862 TP_STRUCT__entry( 863 WIPHY_ENTRY 864 WDEV_ENTRY 865 MAC_ENTRY(sta_mac) 866 __field(u32, sta_flags_mask) 867 __field(u32, sta_flags_set) 868 __field(u32, sta_modify_mask) 869 __field(int, listen_interval) 870 __field(u16, capability) 871 __field(u16, aid) 872 __field(u8, plink_action) 873 __field(u8, plink_state) 874 __field(u8, uapsd_queues) 875 __field(u8, max_sp) 876 __field(u8, opmode_notif) 877 __field(bool, opmode_notif_used) 878 __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap)) 879 __array(u8, vht_capa, (int)sizeof(struct ieee80211_vht_cap)) 880 __array(char, vlan, IFNAMSIZ) 881 __dynamic_array(u8, supported_rates, 882 params->link_sta_params.supported_rates_len) 883 __dynamic_array(u8, ext_capab, params->ext_capab_len) 884 __dynamic_array(u8, supported_channels, 885 params->supported_channels_len) 886 __dynamic_array(u8, supported_oper_classes, 887 params->supported_oper_classes_len) 888 ), 889 TP_fast_assign( 890 WIPHY_ASSIGN; 891 WDEV_ASSIGN; 892 MAC_ASSIGN(sta_mac, mac); 893 __entry->sta_flags_mask = params->sta_flags_mask; 894 __entry->sta_flags_set = params->sta_flags_set; 895 __entry->sta_modify_mask = params->sta_modify_mask; 896 __entry->listen_interval = params->listen_interval; 897 __entry->aid = params->aid; 898 __entry->plink_action = params->plink_action; 899 __entry->plink_state = params->plink_state; 900 __entry->uapsd_queues = params->uapsd_queues; 901 memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap)); 902 if (params->link_sta_params.ht_capa) 903 memcpy(__entry->ht_capa, 904 params->link_sta_params.ht_capa, 905 sizeof(struct ieee80211_ht_cap)); 906 memset(__entry->vht_capa, 0, sizeof(struct ieee80211_vht_cap)); 907 if (params->link_sta_params.vht_capa) 908 memcpy(__entry->vht_capa, 909 params->link_sta_params.vht_capa, 910 sizeof(struct ieee80211_vht_cap)); 911 memset(__entry->vlan, 0, sizeof(__entry->vlan)); 912 if (params->vlan) 913 memcpy(__entry->vlan, params->vlan->name, IFNAMSIZ); 914 if (params->link_sta_params.supported_rates && 915 params->link_sta_params.supported_rates_len) 916 memcpy(__get_dynamic_array(supported_rates), 917 params->link_sta_params.supported_rates, 918 params->link_sta_params.supported_rates_len); 919 if (params->ext_capab && params->ext_capab_len) 920 memcpy(__get_dynamic_array(ext_capab), 921 params->ext_capab, 922 params->ext_capab_len); 923 if (params->supported_channels && 924 params->supported_channels_len) 925 memcpy(__get_dynamic_array(supported_channels), 926 params->supported_channels, 927 params->supported_channels_len); 928 if (params->supported_oper_classes && 929 params->supported_oper_classes_len) 930 memcpy(__get_dynamic_array(supported_oper_classes), 931 params->supported_oper_classes, 932 params->supported_oper_classes_len); 933 __entry->max_sp = params->max_sp; 934 __entry->capability = params->capability; 935 __entry->opmode_notif = params->link_sta_params.opmode_notif; 936 __entry->opmode_notif_used = 937 params->link_sta_params.opmode_notif_used; 938 ), 939 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", station mac: %pM" 940 ", station flags mask: 0x%x, station flags set: 0x%x, " 941 "station modify mask: 0x%x, listen interval: %d, aid: %u, " 942 "plink action: %u, plink state: %u, uapsd queues: %u, vlan:%s", 943 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->sta_mac, 944 __entry->sta_flags_mask, __entry->sta_flags_set, 945 __entry->sta_modify_mask, __entry->listen_interval, 946 __entry->aid, __entry->plink_action, __entry->plink_state, 947 __entry->uapsd_queues, __entry->vlan) 948 ); 949 950 DEFINE_EVENT(station_add_change, rdev_add_station, 951 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u8 *mac, 952 struct station_parameters *params), 953 TP_ARGS(wiphy, wdev, mac, params) 954 ); 955 956 DEFINE_EVENT(station_add_change, rdev_change_station, 957 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u8 *mac, 958 struct station_parameters *params), 959 TP_ARGS(wiphy, wdev, mac, params) 960 ); 961 962 DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt, 963 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 964 TP_ARGS(wiphy, netdev, mac), 965 TP_STRUCT__entry( 966 WIPHY_ENTRY 967 NETDEV_ENTRY 968 MAC_ENTRY(sta_mac) 969 ), 970 TP_fast_assign( 971 WIPHY_ASSIGN; 972 NETDEV_ASSIGN; 973 MAC_ASSIGN(sta_mac, mac); 974 ), 975 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: %pM", 976 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sta_mac) 977 ); 978 979 DECLARE_EVENT_CLASS(station_del, 980 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 981 struct station_del_parameters *params), 982 TP_ARGS(wiphy, wdev, params), 983 TP_STRUCT__entry( 984 WIPHY_ENTRY 985 WDEV_ENTRY 986 MAC_ENTRY(sta_mac) 987 __field(u8, subtype) 988 __field(u16, reason_code) 989 __field(int, link_id) 990 ), 991 TP_fast_assign( 992 WIPHY_ASSIGN; 993 WDEV_ASSIGN; 994 MAC_ASSIGN(sta_mac, params->mac); 995 __entry->subtype = params->subtype; 996 __entry->reason_code = params->reason_code; 997 __entry->link_id = params->link_id; 998 ), 999 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", station mac: %pM" 1000 ", subtype: %u, reason_code: %u, link_id: %d", 1001 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->sta_mac, 1002 __entry->subtype, __entry->reason_code, 1003 __entry->link_id) 1004 ); 1005 1006 DEFINE_EVENT(station_del, rdev_del_station, 1007 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1008 struct station_del_parameters *params), 1009 TP_ARGS(wiphy, wdev, params) 1010 ); 1011 1012 DECLARE_EVENT_CLASS(wiphy_wdev_mac_evt, 1013 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, const u8 *mac), 1014 TP_ARGS(wiphy, wdev, mac), 1015 TP_STRUCT__entry( 1016 WIPHY_ENTRY 1017 WDEV_ENTRY 1018 MAC_ENTRY(sta_mac) 1019 ), 1020 TP_fast_assign( 1021 WIPHY_ASSIGN; 1022 WDEV_ASSIGN; 1023 MAC_ASSIGN(sta_mac, mac); 1024 ), 1025 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", mac: %pM", 1026 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->sta_mac) 1027 ); 1028 1029 DEFINE_EVENT(wiphy_wdev_mac_evt, rdev_get_station, 1030 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, const u8 *mac), 1031 TP_ARGS(wiphy, wdev, mac) 1032 ); 1033 1034 DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath, 1035 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac), 1036 TP_ARGS(wiphy, netdev, mac) 1037 ); 1038 1039 TRACE_EVENT(rdev_dump_station, 1040 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, int _idx, 1041 u8 *mac), 1042 TP_ARGS(wiphy, wdev, _idx, mac), 1043 TP_STRUCT__entry( 1044 WIPHY_ENTRY 1045 WDEV_ENTRY 1046 MAC_ENTRY(sta_mac) 1047 __field(int, idx) 1048 ), 1049 TP_fast_assign( 1050 WIPHY_ASSIGN; 1051 WDEV_ASSIGN; 1052 MAC_ASSIGN(sta_mac, mac); 1053 __entry->idx = _idx; 1054 ), 1055 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", station mac: %pM, idx: %d", 1056 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->sta_mac, 1057 __entry->idx) 1058 ); 1059 1060 TRACE_EVENT(rdev_return_int_station_info, 1061 TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo), 1062 TP_ARGS(wiphy, ret, sinfo), 1063 TP_STRUCT__entry( 1064 WIPHY_ENTRY 1065 __field(int, ret) 1066 SINFO_ENTRY 1067 ), 1068 TP_fast_assign( 1069 WIPHY_ASSIGN; 1070 __entry->ret = ret; 1071 SINFO_ASSIGN; 1072 ), 1073 TP_printk(WIPHY_PR_FMT ", returned %d" , 1074 WIPHY_PR_ARG, __entry->ret) 1075 ); 1076 1077 DECLARE_EVENT_CLASS(mpath_evt, 1078 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 1079 u8 *next_hop), 1080 TP_ARGS(wiphy, netdev, dst, next_hop), 1081 TP_STRUCT__entry( 1082 WIPHY_ENTRY 1083 NETDEV_ENTRY 1084 MAC_ENTRY(dst) 1085 MAC_ENTRY(next_hop) 1086 ), 1087 TP_fast_assign( 1088 WIPHY_ASSIGN; 1089 NETDEV_ASSIGN; 1090 MAC_ASSIGN(dst, dst); 1091 MAC_ASSIGN(next_hop, next_hop); 1092 ), 1093 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: %pM, next hop: %pM", 1094 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->dst, 1095 __entry->next_hop) 1096 ); 1097 1098 DEFINE_EVENT(mpath_evt, rdev_add_mpath, 1099 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 1100 u8 *next_hop), 1101 TP_ARGS(wiphy, netdev, dst, next_hop) 1102 ); 1103 1104 DEFINE_EVENT(mpath_evt, rdev_change_mpath, 1105 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 1106 u8 *next_hop), 1107 TP_ARGS(wiphy, netdev, dst, next_hop) 1108 ); 1109 1110 DEFINE_EVENT(mpath_evt, rdev_get_mpath, 1111 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst, 1112 u8 *next_hop), 1113 TP_ARGS(wiphy, netdev, dst, next_hop) 1114 ); 1115 1116 TRACE_EVENT(rdev_dump_mpath, 1117 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx, 1118 u8 *dst, u8 *next_hop), 1119 TP_ARGS(wiphy, netdev, _idx, dst, next_hop), 1120 TP_STRUCT__entry( 1121 WIPHY_ENTRY 1122 NETDEV_ENTRY 1123 MAC_ENTRY(dst) 1124 MAC_ENTRY(next_hop) 1125 __field(int, idx) 1126 ), 1127 TP_fast_assign( 1128 WIPHY_ASSIGN; 1129 NETDEV_ASSIGN; 1130 MAC_ASSIGN(dst, dst); 1131 MAC_ASSIGN(next_hop, next_hop); 1132 __entry->idx = _idx; 1133 ), 1134 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: %pM, next hop: %pM", 1135 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, __entry->dst, 1136 __entry->next_hop) 1137 ); 1138 1139 TRACE_EVENT(rdev_get_mpp, 1140 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1141 u8 *dst, u8 *mpp), 1142 TP_ARGS(wiphy, netdev, dst, mpp), 1143 TP_STRUCT__entry( 1144 WIPHY_ENTRY 1145 NETDEV_ENTRY 1146 MAC_ENTRY(dst) 1147 MAC_ENTRY(mpp) 1148 ), 1149 TP_fast_assign( 1150 WIPHY_ASSIGN; 1151 NETDEV_ASSIGN; 1152 MAC_ASSIGN(dst, dst); 1153 MAC_ASSIGN(mpp, mpp); 1154 ), 1155 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: %pM" 1156 ", mpp: %pM", WIPHY_PR_ARG, NETDEV_PR_ARG, 1157 __entry->dst, __entry->mpp) 1158 ); 1159 1160 TRACE_EVENT(rdev_dump_mpp, 1161 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx, 1162 u8 *dst, u8 *mpp), 1163 TP_ARGS(wiphy, netdev, _idx, dst, mpp), 1164 TP_STRUCT__entry( 1165 WIPHY_ENTRY 1166 NETDEV_ENTRY 1167 MAC_ENTRY(dst) 1168 MAC_ENTRY(mpp) 1169 __field(int, idx) 1170 ), 1171 TP_fast_assign( 1172 WIPHY_ASSIGN; 1173 NETDEV_ASSIGN; 1174 MAC_ASSIGN(dst, dst); 1175 MAC_ASSIGN(mpp, mpp); 1176 __entry->idx = _idx; 1177 ), 1178 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: %pM, mpp: %pM", 1179 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, __entry->dst, 1180 __entry->mpp) 1181 ); 1182 1183 TRACE_EVENT(rdev_return_int_mpath_info, 1184 TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo), 1185 TP_ARGS(wiphy, ret, pinfo), 1186 TP_STRUCT__entry( 1187 WIPHY_ENTRY 1188 __field(int, ret) 1189 __field(int, generation) 1190 __field(u32, filled) 1191 __field(u32, frame_qlen) 1192 __field(u32, sn) 1193 __field(u32, metric) 1194 __field(u32, exptime) 1195 __field(u32, discovery_timeout) 1196 __field(u8, discovery_retries) 1197 __field(u8, flags) 1198 ), 1199 TP_fast_assign( 1200 WIPHY_ASSIGN; 1201 __entry->ret = ret; 1202 __entry->generation = pinfo->generation; 1203 __entry->filled = pinfo->filled; 1204 __entry->frame_qlen = pinfo->frame_qlen; 1205 __entry->sn = pinfo->sn; 1206 __entry->metric = pinfo->metric; 1207 __entry->exptime = pinfo->exptime; 1208 __entry->discovery_timeout = pinfo->discovery_timeout; 1209 __entry->discovery_retries = pinfo->discovery_retries; 1210 __entry->flags = pinfo->flags; 1211 ), 1212 TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, " 1213 "filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u," 1214 " discovery timeout: %u, discovery retries: %u, flags: 0x%x", 1215 WIPHY_PR_ARG, __entry->ret, __entry->generation, 1216 __entry->filled, __entry->frame_qlen, __entry->sn, 1217 __entry->metric, __entry->exptime, __entry->discovery_timeout, 1218 __entry->discovery_retries, __entry->flags) 1219 ); 1220 1221 TRACE_EVENT(rdev_return_int_mesh_config, 1222 TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf), 1223 TP_ARGS(wiphy, ret, conf), 1224 TP_STRUCT__entry( 1225 WIPHY_ENTRY 1226 MESH_CFG_ENTRY 1227 __field(int, ret) 1228 ), 1229 TP_fast_assign( 1230 WIPHY_ASSIGN; 1231 MESH_CFG_ASSIGN; 1232 __entry->ret = ret; 1233 ), 1234 TP_printk(WIPHY_PR_FMT ", returned: %d", 1235 WIPHY_PR_ARG, __entry->ret) 1236 ); 1237 1238 TRACE_EVENT(rdev_update_mesh_config, 1239 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask, 1240 const struct mesh_config *conf), 1241 TP_ARGS(wiphy, netdev, mask, conf), 1242 TP_STRUCT__entry( 1243 WIPHY_ENTRY 1244 NETDEV_ENTRY 1245 MESH_CFG_ENTRY 1246 __field(u32, mask) 1247 ), 1248 TP_fast_assign( 1249 WIPHY_ASSIGN; 1250 NETDEV_ASSIGN; 1251 MESH_CFG_ASSIGN; 1252 __entry->mask = mask; 1253 ), 1254 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u", 1255 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) 1256 ); 1257 1258 TRACE_EVENT(rdev_join_mesh, 1259 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1260 const struct mesh_config *conf, 1261 const struct mesh_setup *setup), 1262 TP_ARGS(wiphy, netdev, conf, setup), 1263 TP_STRUCT__entry( 1264 WIPHY_ENTRY 1265 NETDEV_ENTRY 1266 MESH_CFG_ENTRY 1267 ), 1268 TP_fast_assign( 1269 WIPHY_ASSIGN; 1270 NETDEV_ASSIGN; 1271 MESH_CFG_ASSIGN; 1272 ), 1273 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 1274 WIPHY_PR_ARG, NETDEV_PR_ARG) 1275 ); 1276 1277 TRACE_EVENT(rdev_change_bss, 1278 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1279 struct bss_parameters *params), 1280 TP_ARGS(wiphy, netdev, params), 1281 TP_STRUCT__entry( 1282 WIPHY_ENTRY 1283 NETDEV_ENTRY 1284 __field(int, use_cts_prot) 1285 __field(int, use_short_preamble) 1286 __field(int, use_short_slot_time) 1287 __field(int, ap_isolate) 1288 __field(int, ht_opmode) 1289 ), 1290 TP_fast_assign( 1291 WIPHY_ASSIGN; 1292 NETDEV_ASSIGN; 1293 __entry->use_cts_prot = params->use_cts_prot; 1294 __entry->use_short_preamble = params->use_short_preamble; 1295 __entry->use_short_slot_time = params->use_short_slot_time; 1296 __entry->ap_isolate = params->ap_isolate; 1297 __entry->ht_opmode = params->ht_opmode; 1298 ), 1299 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, " 1300 "use short preamble: %d, use short slot time: %d, " 1301 "ap isolate: %d, ht opmode: %d", 1302 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, 1303 __entry->use_short_preamble, __entry->use_short_slot_time, 1304 __entry->ap_isolate, __entry->ht_opmode) 1305 ); 1306 1307 TRACE_EVENT(rdev_inform_bss, 1308 TP_PROTO(struct wiphy *wiphy, struct cfg80211_bss *bss), 1309 TP_ARGS(wiphy, bss), 1310 TP_STRUCT__entry( 1311 WIPHY_ENTRY 1312 MAC_ENTRY(bssid) 1313 CHAN_ENTRY 1314 ), 1315 TP_fast_assign( 1316 WIPHY_ASSIGN; 1317 MAC_ASSIGN(bssid, bss->bssid); 1318 CHAN_ASSIGN(bss->channel); 1319 ), 1320 TP_printk(WIPHY_PR_FMT ", %pM, " CHAN_PR_FMT, 1321 WIPHY_PR_ARG, __entry->bssid, CHAN_PR_ARG) 1322 ); 1323 1324 TRACE_EVENT(rdev_set_txq_params, 1325 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1326 struct ieee80211_txq_params *params), 1327 TP_ARGS(wiphy, netdev, params), 1328 TP_STRUCT__entry( 1329 WIPHY_ENTRY 1330 NETDEV_ENTRY 1331 __field(enum nl80211_ac, ac) 1332 __field(u16, txop) 1333 __field(u16, cwmin) 1334 __field(u16, cwmax) 1335 __field(u8, aifs) 1336 ), 1337 TP_fast_assign( 1338 WIPHY_ASSIGN; 1339 NETDEV_ASSIGN; 1340 __entry->ac = params->ac; 1341 __entry->txop = params->txop; 1342 __entry->cwmin = params->cwmin; 1343 __entry->cwmax = params->cwmax; 1344 __entry->aifs = params->aifs; 1345 ), 1346 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", 1347 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, 1348 __entry->cwmin, __entry->cwmax, __entry->aifs) 1349 ); 1350 1351 TRACE_EVENT(rdev_libertas_set_mesh_channel, 1352 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1353 struct ieee80211_channel *chan), 1354 TP_ARGS(wiphy, netdev, chan), 1355 TP_STRUCT__entry( 1356 WIPHY_ENTRY 1357 NETDEV_ENTRY 1358 CHAN_ENTRY 1359 ), 1360 TP_fast_assign( 1361 WIPHY_ASSIGN; 1362 NETDEV_ASSIGN; 1363 CHAN_ASSIGN(chan); 1364 ), 1365 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG, 1366 NETDEV_PR_ARG, CHAN_PR_ARG) 1367 ); 1368 1369 TRACE_EVENT(rdev_set_monitor_channel, 1370 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1371 struct cfg80211_chan_def *chandef), 1372 TP_ARGS(wiphy, netdev, chandef), 1373 TP_STRUCT__entry( 1374 WIPHY_ENTRY 1375 NETDEV_ENTRY 1376 CHAN_DEF_ENTRY 1377 ), 1378 TP_fast_assign( 1379 WIPHY_ASSIGN; 1380 NETDEV_ASSIGN; 1381 CHAN_DEF_ASSIGN(chandef); 1382 ), 1383 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, 1384 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG) 1385 ); 1386 1387 TRACE_EVENT(rdev_auth, 1388 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1389 struct cfg80211_auth_request *req), 1390 TP_ARGS(wiphy, netdev, req), 1391 TP_STRUCT__entry( 1392 WIPHY_ENTRY 1393 NETDEV_ENTRY 1394 MAC_ENTRY(bssid) 1395 __field(enum nl80211_auth_type, auth_type) 1396 ), 1397 TP_fast_assign( 1398 WIPHY_ASSIGN; 1399 NETDEV_ASSIGN; 1400 if (req->bss) 1401 MAC_ASSIGN(bssid, req->bss->bssid); 1402 else 1403 eth_zero_addr(__entry->bssid); 1404 __entry->auth_type = req->auth_type; 1405 ), 1406 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: %pM", 1407 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, 1408 __entry->bssid) 1409 ); 1410 1411 TRACE_EVENT(rdev_assoc, 1412 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1413 struct cfg80211_assoc_request *req), 1414 TP_ARGS(wiphy, netdev, req), 1415 TP_STRUCT__entry( 1416 WIPHY_ENTRY 1417 NETDEV_ENTRY 1418 MAC_ENTRY(bssid) 1419 MAC_ENTRY(prev_bssid) 1420 __field(bool, use_mfp) 1421 __field(u32, flags) 1422 __dynamic_array(u8, elements, req->ie_len) 1423 __array(u8, ht_capa, sizeof(struct ieee80211_ht_cap)) 1424 __array(u8, ht_capa_mask, sizeof(struct ieee80211_ht_cap)) 1425 __array(u8, vht_capa, sizeof(struct ieee80211_vht_cap)) 1426 __array(u8, vht_capa_mask, sizeof(struct ieee80211_vht_cap)) 1427 __dynamic_array(u8, fils_kek, req->fils_kek_len) 1428 __dynamic_array(u8, fils_nonces, 1429 req->fils_nonces ? 2 * FILS_NONCE_LEN : 0) 1430 __field(u16, ext_mld_capa_ops) 1431 ), 1432 TP_fast_assign( 1433 WIPHY_ASSIGN; 1434 NETDEV_ASSIGN; 1435 if (req->bss) 1436 MAC_ASSIGN(bssid, req->bss->bssid); 1437 else 1438 eth_zero_addr(__entry->bssid); 1439 MAC_ASSIGN(prev_bssid, req->prev_bssid); 1440 __entry->use_mfp = req->use_mfp; 1441 __entry->flags = req->flags; 1442 if (req->ie) 1443 memcpy(__get_dynamic_array(elements), 1444 req->ie, req->ie_len); 1445 memcpy(__entry->ht_capa, &req->ht_capa, sizeof(req->ht_capa)); 1446 memcpy(__entry->ht_capa_mask, &req->ht_capa_mask, 1447 sizeof(req->ht_capa_mask)); 1448 memcpy(__entry->vht_capa, &req->vht_capa, sizeof(req->vht_capa)); 1449 memcpy(__entry->vht_capa_mask, &req->vht_capa_mask, 1450 sizeof(req->vht_capa_mask)); 1451 if (req->fils_kek) 1452 memcpy(__get_dynamic_array(fils_kek), 1453 req->fils_kek, req->fils_kek_len); 1454 if (req->fils_nonces) 1455 memcpy(__get_dynamic_array(fils_nonces), 1456 req->fils_nonces, 2 * FILS_NONCE_LEN); 1457 __entry->ext_mld_capa_ops = req->ext_mld_capa_ops; 1458 ), 1459 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM" 1460 ", previous bssid: %pM, use mfp: %s, flags: 0x%x", 1461 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, 1462 __entry->prev_bssid, BOOL_TO_STR(__entry->use_mfp), 1463 __entry->flags) 1464 ); 1465 1466 TRACE_EVENT(rdev_deauth, 1467 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1468 struct cfg80211_deauth_request *req), 1469 TP_ARGS(wiphy, netdev, req), 1470 TP_STRUCT__entry( 1471 WIPHY_ENTRY 1472 NETDEV_ENTRY 1473 MAC_ENTRY(bssid) 1474 __field(u16, reason_code) 1475 __field(bool, local_state_change) 1476 ), 1477 TP_fast_assign( 1478 WIPHY_ASSIGN; 1479 NETDEV_ASSIGN; 1480 MAC_ASSIGN(bssid, req->bssid); 1481 __entry->reason_code = req->reason_code; 1482 __entry->local_state_change = req->local_state_change; 1483 ), 1484 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM, reason: %u, local_state_change:%d", 1485 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, 1486 __entry->reason_code, __entry->local_state_change) 1487 ); 1488 1489 TRACE_EVENT(rdev_disassoc, 1490 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1491 struct cfg80211_disassoc_request *req), 1492 TP_ARGS(wiphy, netdev, req), 1493 TP_STRUCT__entry( 1494 WIPHY_ENTRY 1495 NETDEV_ENTRY 1496 MAC_ENTRY(bssid) 1497 __field(u16, reason_code) 1498 __field(bool, local_state_change) 1499 ), 1500 TP_fast_assign( 1501 WIPHY_ASSIGN; 1502 NETDEV_ASSIGN; 1503 MAC_ASSIGN(bssid, req->ap_addr); 1504 __entry->reason_code = req->reason_code; 1505 __entry->local_state_change = req->local_state_change; 1506 ), 1507 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM" 1508 ", reason: %u, local state change: %s", 1509 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, 1510 __entry->reason_code, 1511 BOOL_TO_STR(__entry->local_state_change)) 1512 ); 1513 1514 TRACE_EVENT(rdev_mgmt_tx_cancel_wait, 1515 TP_PROTO(struct wiphy *wiphy, 1516 struct wireless_dev *wdev, u64 cookie), 1517 TP_ARGS(wiphy, wdev, cookie), 1518 TP_STRUCT__entry( 1519 WIPHY_ENTRY 1520 WDEV_ENTRY 1521 __field(u64, cookie) 1522 ), 1523 TP_fast_assign( 1524 WIPHY_ASSIGN; 1525 WDEV_ASSIGN; 1526 __entry->cookie = cookie; 1527 ), 1528 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ", 1529 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 1530 ); 1531 1532 TRACE_EVENT(rdev_set_power_mgmt, 1533 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1534 bool enabled, int timeout), 1535 TP_ARGS(wiphy, netdev, enabled, timeout), 1536 TP_STRUCT__entry( 1537 WIPHY_ENTRY 1538 NETDEV_ENTRY 1539 __field(bool, enabled) 1540 __field(int, timeout) 1541 ), 1542 TP_fast_assign( 1543 WIPHY_ASSIGN; 1544 NETDEV_ASSIGN; 1545 __entry->enabled = enabled; 1546 __entry->timeout = timeout; 1547 ), 1548 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ", 1549 WIPHY_PR_ARG, NETDEV_PR_ARG, 1550 __entry->enabled ? "" : "not ", __entry->timeout) 1551 ); 1552 1553 TRACE_EVENT(rdev_connect, 1554 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1555 struct cfg80211_connect_params *sme), 1556 TP_ARGS(wiphy, netdev, sme), 1557 TP_STRUCT__entry( 1558 WIPHY_ENTRY 1559 NETDEV_ENTRY 1560 MAC_ENTRY(bssid) 1561 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 1562 __field(enum nl80211_auth_type, auth_type) 1563 __field(bool, privacy) 1564 __field(u32, wpa_versions) 1565 __field(u32, flags) 1566 MAC_ENTRY(prev_bssid) 1567 ), 1568 TP_fast_assign( 1569 WIPHY_ASSIGN; 1570 NETDEV_ASSIGN; 1571 MAC_ASSIGN(bssid, sme->bssid); 1572 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 1573 memcpy(__entry->ssid, sme->ssid, sme->ssid_len); 1574 __entry->auth_type = sme->auth_type; 1575 __entry->privacy = sme->privacy; 1576 __entry->wpa_versions = sme->crypto.wpa_versions; 1577 __entry->flags = sme->flags; 1578 MAC_ASSIGN(prev_bssid, sme->prev_bssid); 1579 ), 1580 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM" 1581 ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " 1582 "flags: 0x%x, previous bssid: %pM", 1583 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, __entry->ssid, 1584 __entry->auth_type, BOOL_TO_STR(__entry->privacy), 1585 __entry->wpa_versions, __entry->flags, __entry->prev_bssid) 1586 ); 1587 1588 TRACE_EVENT(rdev_update_connect_params, 1589 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1590 struct cfg80211_connect_params *sme, u32 changed), 1591 TP_ARGS(wiphy, netdev, sme, changed), 1592 TP_STRUCT__entry( 1593 WIPHY_ENTRY 1594 NETDEV_ENTRY 1595 __field(u32, changed) 1596 ), 1597 TP_fast_assign( 1598 WIPHY_ASSIGN; 1599 NETDEV_ASSIGN; 1600 __entry->changed = changed; 1601 ), 1602 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", parameters changed: %u", 1603 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->changed) 1604 ); 1605 1606 TRACE_EVENT(rdev_set_cqm_rssi_config, 1607 TP_PROTO(struct wiphy *wiphy, 1608 struct net_device *netdev, s32 rssi_thold, 1609 u32 rssi_hyst), 1610 TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst), 1611 TP_STRUCT__entry( 1612 WIPHY_ENTRY 1613 NETDEV_ENTRY 1614 __field(s32, rssi_thold) 1615 __field(u32, rssi_hyst) 1616 ), 1617 TP_fast_assign( 1618 WIPHY_ASSIGN; 1619 NETDEV_ASSIGN; 1620 __entry->rssi_thold = rssi_thold; 1621 __entry->rssi_hyst = rssi_hyst; 1622 ), 1623 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 1624 ", rssi_thold: %d, rssi_hyst: %u ", 1625 WIPHY_PR_ARG, NETDEV_PR_ARG, 1626 __entry->rssi_thold, __entry->rssi_hyst) 1627 ); 1628 1629 TRACE_EVENT(rdev_set_cqm_rssi_range_config, 1630 TP_PROTO(struct wiphy *wiphy, 1631 struct net_device *netdev, s32 low, s32 high), 1632 TP_ARGS(wiphy, netdev, low, high), 1633 TP_STRUCT__entry( 1634 WIPHY_ENTRY 1635 NETDEV_ENTRY 1636 __field(s32, rssi_low) 1637 __field(s32, rssi_high) 1638 ), 1639 TP_fast_assign( 1640 WIPHY_ASSIGN; 1641 NETDEV_ASSIGN; 1642 __entry->rssi_low = low; 1643 __entry->rssi_high = high; 1644 ), 1645 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 1646 ", range: %d - %d ", 1647 WIPHY_PR_ARG, NETDEV_PR_ARG, 1648 __entry->rssi_low, __entry->rssi_high) 1649 ); 1650 1651 TRACE_EVENT(rdev_set_cqm_txe_config, 1652 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate, 1653 u32 pkts, u32 intvl), 1654 TP_ARGS(wiphy, netdev, rate, pkts, intvl), 1655 TP_STRUCT__entry( 1656 WIPHY_ENTRY 1657 NETDEV_ENTRY 1658 __field(u32, rate) 1659 __field(u32, pkts) 1660 __field(u32, intvl) 1661 ), 1662 TP_fast_assign( 1663 WIPHY_ASSIGN; 1664 NETDEV_ASSIGN; 1665 __entry->rate = rate; 1666 __entry->pkts = pkts; 1667 __entry->intvl = intvl; 1668 ), 1669 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", 1670 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, 1671 __entry->intvl) 1672 ); 1673 1674 TRACE_EVENT(rdev_disconnect, 1675 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1676 u16 reason_code), 1677 TP_ARGS(wiphy, netdev, reason_code), 1678 TP_STRUCT__entry( 1679 WIPHY_ENTRY 1680 NETDEV_ENTRY 1681 __field(u16, reason_code) 1682 ), 1683 TP_fast_assign( 1684 WIPHY_ASSIGN; 1685 NETDEV_ASSIGN; 1686 __entry->reason_code = reason_code; 1687 ), 1688 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, 1689 NETDEV_PR_ARG, __entry->reason_code) 1690 ); 1691 1692 TRACE_EVENT(rdev_join_ibss, 1693 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1694 struct cfg80211_ibss_params *params), 1695 TP_ARGS(wiphy, netdev, params), 1696 TP_STRUCT__entry( 1697 WIPHY_ENTRY 1698 NETDEV_ENTRY 1699 MAC_ENTRY(bssid) 1700 __array(char, ssid, IEEE80211_MAX_SSID_LEN + 1) 1701 ), 1702 TP_fast_assign( 1703 WIPHY_ASSIGN; 1704 NETDEV_ASSIGN; 1705 MAC_ASSIGN(bssid, params->bssid); 1706 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 1707 memcpy(__entry->ssid, params->ssid, params->ssid_len); 1708 ), 1709 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM, ssid: %s", 1710 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, __entry->ssid) 1711 ); 1712 1713 TRACE_EVENT(rdev_join_ocb, 1714 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1715 const struct ocb_setup *setup), 1716 TP_ARGS(wiphy, netdev, setup), 1717 TP_STRUCT__entry( 1718 WIPHY_ENTRY 1719 NETDEV_ENTRY 1720 ), 1721 TP_fast_assign( 1722 WIPHY_ASSIGN; 1723 NETDEV_ASSIGN; 1724 ), 1725 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 1726 WIPHY_PR_ARG, NETDEV_PR_ARG) 1727 ); 1728 1729 TRACE_EVENT(rdev_set_wiphy_params, 1730 TP_PROTO(struct wiphy *wiphy, int radio_idx, u32 changed), 1731 TP_ARGS(wiphy, radio_idx, changed), 1732 TP_STRUCT__entry( 1733 WIPHY_ENTRY 1734 __field(int, radio_idx) 1735 __field(u32, changed) 1736 ), 1737 TP_fast_assign( 1738 WIPHY_ASSIGN; 1739 __entry->radio_idx = radio_idx; 1740 __entry->changed = changed; 1741 ), 1742 TP_printk(WIPHY_PR_FMT ", radio_idx: %d, changed: %u", 1743 WIPHY_PR_ARG, __entry->radio_idx, __entry->changed) 1744 ); 1745 1746 DECLARE_EVENT_CLASS(wiphy_wdev_link_evt, 1747 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1748 unsigned int link_id), 1749 TP_ARGS(wiphy, wdev, link_id), 1750 TP_STRUCT__entry( 1751 WIPHY_ENTRY 1752 WDEV_ENTRY 1753 __field(unsigned int, link_id) 1754 ), 1755 TP_fast_assign( 1756 WIPHY_ASSIGN; 1757 WDEV_ASSIGN; 1758 __entry->link_id = link_id; 1759 ), 1760 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %u", 1761 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id) 1762 ); 1763 1764 TRACE_EVENT(rdev_get_tx_power, 1765 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1766 int radio_idx, unsigned int link_id), 1767 TP_ARGS(wiphy, wdev, radio_idx, link_id), 1768 TP_STRUCT__entry( 1769 WIPHY_ENTRY 1770 WDEV_ENTRY 1771 __field(int, radio_idx) 1772 __field(unsigned int, link_id) 1773 ), 1774 TP_fast_assign( 1775 WIPHY_ASSIGN; 1776 WDEV_ASSIGN; 1777 __entry->radio_idx = radio_idx; 1778 __entry->link_id = link_id; 1779 ), 1780 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 1781 ", radio_idx: %d, link_id: %u", 1782 WIPHY_PR_ARG, WDEV_PR_ARG, 1783 __entry->radio_idx, __entry->link_id) 1784 ); 1785 1786 TRACE_EVENT(rdev_set_tx_power, 1787 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1788 int radio_idx, enum nl80211_tx_power_setting type, 1789 int mbm), 1790 TP_ARGS(wiphy, wdev, radio_idx, type, mbm), 1791 TP_STRUCT__entry( 1792 WIPHY_ENTRY 1793 WDEV_ENTRY 1794 __field(int, radio_idx) 1795 __field(enum nl80211_tx_power_setting, type) 1796 __field(int, mbm) 1797 ), 1798 TP_fast_assign( 1799 WIPHY_ASSIGN; 1800 WDEV_ASSIGN; 1801 __entry->radio_idx = radio_idx; 1802 __entry->type = type; 1803 __entry->mbm = mbm; 1804 ), 1805 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 1806 ", radio_idx: %d, type: %u, mbm: %d", 1807 WIPHY_PR_ARG, WDEV_PR_ARG, 1808 __entry->radio_idx, __entry->type, __entry->mbm) 1809 ); 1810 1811 TRACE_EVENT(rdev_return_int_int, 1812 TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill), 1813 TP_ARGS(wiphy, func_ret, func_fill), 1814 TP_STRUCT__entry( 1815 WIPHY_ENTRY 1816 __field(int, func_ret) 1817 __field(int, func_fill) 1818 ), 1819 TP_fast_assign( 1820 WIPHY_ASSIGN; 1821 __entry->func_ret = func_ret; 1822 __entry->func_fill = func_fill; 1823 ), 1824 TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d", 1825 WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill) 1826 ); 1827 1828 #ifdef CONFIG_NL80211_TESTMODE 1829 TRACE_EVENT(rdev_testmode_cmd, 1830 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 1831 TP_ARGS(wiphy, wdev), 1832 TP_STRUCT__entry( 1833 WIPHY_ENTRY 1834 WDEV_ENTRY 1835 ), 1836 TP_fast_assign( 1837 WIPHY_ASSIGN; 1838 WDEV_ASSIGN; 1839 ), 1840 TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 1841 ); 1842 1843 TRACE_EVENT(rdev_testmode_dump, 1844 TP_PROTO(struct wiphy *wiphy), 1845 TP_ARGS(wiphy), 1846 TP_STRUCT__entry( 1847 WIPHY_ENTRY 1848 ), 1849 TP_fast_assign( 1850 WIPHY_ASSIGN; 1851 ), 1852 TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG) 1853 ); 1854 #endif /* CONFIG_NL80211_TESTMODE */ 1855 1856 TRACE_EVENT(rdev_set_bitrate_mask, 1857 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1858 unsigned int link_id, 1859 const u8 *peer, const struct cfg80211_bitrate_mask *mask), 1860 TP_ARGS(wiphy, netdev, link_id, peer, mask), 1861 TP_STRUCT__entry( 1862 WIPHY_ENTRY 1863 NETDEV_ENTRY 1864 __field(unsigned int, link_id) 1865 MAC_ENTRY(peer) 1866 ), 1867 TP_fast_assign( 1868 WIPHY_ASSIGN; 1869 NETDEV_ASSIGN; 1870 __entry->link_id = link_id; 1871 MAC_ASSIGN(peer, peer); 1872 ), 1873 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", link_id: %d, peer: %pM", 1874 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id, 1875 __entry->peer) 1876 ); 1877 1878 TRACE_EVENT(rdev_update_mgmt_frame_registrations, 1879 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 1880 struct mgmt_frame_regs *upd), 1881 TP_ARGS(wiphy, wdev, upd), 1882 TP_STRUCT__entry( 1883 WIPHY_ENTRY 1884 WDEV_ENTRY 1885 __field(u16, global_stypes) 1886 __field(u16, interface_stypes) 1887 ), 1888 TP_fast_assign( 1889 WIPHY_ASSIGN; 1890 WDEV_ASSIGN; 1891 __entry->global_stypes = upd->global_stypes; 1892 __entry->interface_stypes = upd->interface_stypes; 1893 ), 1894 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", global: 0x%.2x, intf: 0x%.2x", 1895 WIPHY_PR_ARG, WDEV_PR_ARG, 1896 __entry->global_stypes, __entry->interface_stypes) 1897 ); 1898 1899 TRACE_EVENT(rdev_return_int_tx_rx, 1900 TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx), 1901 TP_ARGS(wiphy, ret, tx, rx), 1902 TP_STRUCT__entry( 1903 WIPHY_ENTRY 1904 __field(int, ret) 1905 __field(u32, tx) 1906 __field(u32, rx) 1907 ), 1908 TP_fast_assign( 1909 WIPHY_ASSIGN; 1910 __entry->ret = ret; 1911 __entry->tx = tx; 1912 __entry->rx = rx; 1913 ), 1914 TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u", 1915 WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx) 1916 ); 1917 1918 TRACE_EVENT(rdev_return_void_tx_rx, 1919 TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max, 1920 u32 rx, u32 rx_max), 1921 TP_ARGS(wiphy, tx, tx_max, rx, rx_max), 1922 TP_STRUCT__entry( 1923 WIPHY_ENTRY 1924 __field(u32, tx) 1925 __field(u32, tx_max) 1926 __field(u32, rx) 1927 __field(u32, rx_max) 1928 ), 1929 TP_fast_assign( 1930 WIPHY_ASSIGN; 1931 __entry->tx = tx; 1932 __entry->tx_max = tx_max; 1933 __entry->rx = rx; 1934 __entry->rx_max = rx_max; 1935 ), 1936 TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ", 1937 WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx, 1938 __entry->rx_max) 1939 ); 1940 1941 TRACE_EVENT(rdev_set_antenna, 1942 TP_PROTO(struct wiphy *wiphy, int radio_idx, u32 tx, u32 rx), 1943 TP_ARGS(wiphy, radio_idx, tx, rx), 1944 TP_STRUCT__entry( 1945 WIPHY_ENTRY 1946 __field(int, radio_idx) 1947 __field(u32, tx) 1948 __field(u32, rx) 1949 ), 1950 TP_fast_assign( 1951 WIPHY_ASSIGN; 1952 __entry->radio_idx = radio_idx; 1953 __entry->tx = tx; 1954 __entry->rx = rx; 1955 ), 1956 TP_printk(WIPHY_PR_FMT ", radio_idx: %d, tx: %u, rx: %u ", 1957 WIPHY_PR_ARG, __entry->radio_idx, 1958 __entry->tx, __entry->rx) 1959 ); 1960 1961 DECLARE_EVENT_CLASS(wiphy_netdev_id_evt, 1962 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1963 TP_ARGS(wiphy, netdev, id), 1964 TP_STRUCT__entry( 1965 WIPHY_ENTRY 1966 NETDEV_ENTRY 1967 __field(u64, id) 1968 ), 1969 TP_fast_assign( 1970 WIPHY_ASSIGN; 1971 NETDEV_ASSIGN; 1972 __entry->id = id; 1973 ), 1974 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", id: %llu", 1975 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->id) 1976 ); 1977 1978 DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_start, 1979 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1980 TP_ARGS(wiphy, netdev, id) 1981 ); 1982 1983 DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_stop, 1984 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id), 1985 TP_ARGS(wiphy, netdev, id) 1986 ); 1987 1988 TRACE_EVENT(rdev_tdls_mgmt, 1989 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 1990 u8 *peer, int link_id, u8 action_code, u8 dialog_token, 1991 u16 status_code, u32 peer_capability, 1992 bool initiator, const u8 *buf, size_t len), 1993 TP_ARGS(wiphy, netdev, peer, link_id, action_code, dialog_token, 1994 status_code, peer_capability, initiator, buf, len), 1995 TP_STRUCT__entry( 1996 WIPHY_ENTRY 1997 NETDEV_ENTRY 1998 MAC_ENTRY(peer) 1999 __field(int, link_id) 2000 __field(u8, action_code) 2001 __field(u8, dialog_token) 2002 __field(u16, status_code) 2003 __field(u32, peer_capability) 2004 __field(bool, initiator) 2005 __dynamic_array(u8, buf, len) 2006 ), 2007 TP_fast_assign( 2008 WIPHY_ASSIGN; 2009 NETDEV_ASSIGN; 2010 MAC_ASSIGN(peer, peer); 2011 __entry->link_id = link_id; 2012 __entry->action_code = action_code; 2013 __entry->dialog_token = dialog_token; 2014 __entry->status_code = status_code; 2015 __entry->peer_capability = peer_capability; 2016 __entry->initiator = initiator; 2017 memcpy(__get_dynamic_array(buf), buf, len); 2018 ), 2019 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM" 2020 ", link_id: %d, action_code: %u " 2021 "dialog_token: %u, status_code: %u, peer_capability: %u " 2022 "initiator: %s buf: %#.2x ", 2023 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, 2024 __entry->link_id, __entry->action_code, __entry->dialog_token, 2025 __entry->status_code, __entry->peer_capability, 2026 BOOL_TO_STR(__entry->initiator), 2027 ((u8 *)__get_dynamic_array(buf))[0]) 2028 ); 2029 2030 TRACE_EVENT(rdev_dump_survey, 2031 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx), 2032 TP_ARGS(wiphy, netdev, _idx), 2033 TP_STRUCT__entry( 2034 WIPHY_ENTRY 2035 NETDEV_ENTRY 2036 __field(int, idx) 2037 ), 2038 TP_fast_assign( 2039 WIPHY_ASSIGN; 2040 NETDEV_ASSIGN; 2041 __entry->idx = _idx; 2042 ), 2043 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d", 2044 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) 2045 ); 2046 2047 TRACE_EVENT(rdev_return_int_survey_info, 2048 TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info), 2049 TP_ARGS(wiphy, ret, info), 2050 TP_STRUCT__entry( 2051 WIPHY_ENTRY 2052 CHAN_ENTRY 2053 __field(int, ret) 2054 __field(u64, time) 2055 __field(u64, time_busy) 2056 __field(u64, time_ext_busy) 2057 __field(u64, time_rx) 2058 __field(u64, time_tx) 2059 __field(u64, time_scan) 2060 __field(u32, filled) 2061 __field(s8, noise) 2062 ), 2063 TP_fast_assign( 2064 WIPHY_ASSIGN; 2065 CHAN_ASSIGN(info->channel); 2066 __entry->ret = ret; 2067 __entry->time = info->time; 2068 __entry->time_busy = info->time_busy; 2069 __entry->time_ext_busy = info->time_ext_busy; 2070 __entry->time_rx = info->time_rx; 2071 __entry->time_tx = info->time_tx; 2072 __entry->time_scan = info->time_scan; 2073 __entry->filled = info->filled; 2074 __entry->noise = info->noise; 2075 ), 2076 TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT 2077 ", channel time: %llu, channel time busy: %llu, " 2078 "channel time extension busy: %llu, channel time rx: %llu, " 2079 "channel time tx: %llu, scan time: %llu, filled: %u, noise: %d", 2080 WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG, 2081 __entry->time, __entry->time_busy, 2082 __entry->time_ext_busy, __entry->time_rx, 2083 __entry->time_tx, __entry->time_scan, 2084 __entry->filled, __entry->noise) 2085 ); 2086 2087 TRACE_EVENT(rdev_tdls_oper, 2088 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2089 u8 *peer, enum nl80211_tdls_operation oper), 2090 TP_ARGS(wiphy, netdev, peer, oper), 2091 TP_STRUCT__entry( 2092 WIPHY_ENTRY 2093 NETDEV_ENTRY 2094 MAC_ENTRY(peer) 2095 __field(enum nl80211_tdls_operation, oper) 2096 ), 2097 TP_fast_assign( 2098 WIPHY_ASSIGN; 2099 NETDEV_ASSIGN; 2100 MAC_ASSIGN(peer, peer); 2101 __entry->oper = oper; 2102 ), 2103 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM, oper: %d", 2104 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, __entry->oper) 2105 ); 2106 2107 DECLARE_EVENT_CLASS(rdev_pmksa, 2108 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2109 struct cfg80211_pmksa *pmksa), 2110 TP_ARGS(wiphy, netdev, pmksa), 2111 TP_STRUCT__entry( 2112 WIPHY_ENTRY 2113 NETDEV_ENTRY 2114 MAC_ENTRY(bssid) 2115 ), 2116 TP_fast_assign( 2117 WIPHY_ASSIGN; 2118 NETDEV_ASSIGN; 2119 MAC_ASSIGN(bssid, pmksa->bssid); 2120 ), 2121 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM", 2122 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid) 2123 ); 2124 2125 TRACE_EVENT(rdev_probe_client, 2126 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2127 const u8 *peer), 2128 TP_ARGS(wiphy, netdev, peer), 2129 TP_STRUCT__entry( 2130 WIPHY_ENTRY 2131 NETDEV_ENTRY 2132 MAC_ENTRY(peer) 2133 ), 2134 TP_fast_assign( 2135 WIPHY_ASSIGN; 2136 NETDEV_ASSIGN; 2137 MAC_ASSIGN(peer, peer); 2138 ), 2139 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM", 2140 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer) 2141 ); 2142 2143 DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa, 2144 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2145 struct cfg80211_pmksa *pmksa), 2146 TP_ARGS(wiphy, netdev, pmksa) 2147 ); 2148 2149 DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa, 2150 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2151 struct cfg80211_pmksa *pmksa), 2152 TP_ARGS(wiphy, netdev, pmksa) 2153 ); 2154 2155 TRACE_EVENT(rdev_remain_on_channel, 2156 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2157 struct ieee80211_channel *chan, 2158 unsigned int duration), 2159 TP_ARGS(wiphy, wdev, chan, duration), 2160 TP_STRUCT__entry( 2161 WIPHY_ENTRY 2162 WDEV_ENTRY 2163 CHAN_ENTRY 2164 __field(unsigned int, duration) 2165 ), 2166 TP_fast_assign( 2167 WIPHY_ASSIGN; 2168 WDEV_ASSIGN; 2169 CHAN_ASSIGN(chan); 2170 __entry->duration = duration; 2171 ), 2172 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u", 2173 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) 2174 ); 2175 2176 TRACE_EVENT(rdev_return_int_cookie, 2177 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie), 2178 TP_ARGS(wiphy, ret, cookie), 2179 TP_STRUCT__entry( 2180 WIPHY_ENTRY 2181 __field(int, ret) 2182 __field(u64, cookie) 2183 ), 2184 TP_fast_assign( 2185 WIPHY_ASSIGN; 2186 __entry->ret = ret; 2187 __entry->cookie = cookie; 2188 ), 2189 TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu", 2190 WIPHY_PR_ARG, __entry->ret, __entry->cookie) 2191 ); 2192 2193 TRACE_EVENT(rdev_cancel_remain_on_channel, 2194 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 2195 TP_ARGS(wiphy, wdev, cookie), 2196 TP_STRUCT__entry( 2197 WIPHY_ENTRY 2198 WDEV_ENTRY 2199 __field(u64, cookie) 2200 ), 2201 TP_fast_assign( 2202 WIPHY_ASSIGN; 2203 WDEV_ASSIGN; 2204 __entry->cookie = cookie; 2205 ), 2206 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu", 2207 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 2208 ); 2209 2210 TRACE_EVENT(rdev_mgmt_tx, 2211 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2212 struct cfg80211_mgmt_tx_params *params), 2213 TP_ARGS(wiphy, wdev, params), 2214 TP_STRUCT__entry( 2215 WIPHY_ENTRY 2216 WDEV_ENTRY 2217 CHAN_ENTRY 2218 __field(bool, offchan) 2219 __field(unsigned int, wait) 2220 __field(bool, no_cck) 2221 __field(bool, dont_wait_for_ack) 2222 ), 2223 TP_fast_assign( 2224 WIPHY_ASSIGN; 2225 WDEV_ASSIGN; 2226 CHAN_ASSIGN(params->chan); 2227 __entry->offchan = params->offchan; 2228 __entry->wait = params->wait; 2229 __entry->no_cck = params->no_cck; 2230 __entry->dont_wait_for_ack = params->dont_wait_for_ack; 2231 ), 2232 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s," 2233 " wait: %u, no cck: %s, dont wait for ack: %s", 2234 WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, 2235 BOOL_TO_STR(__entry->offchan), __entry->wait, 2236 BOOL_TO_STR(__entry->no_cck), 2237 BOOL_TO_STR(__entry->dont_wait_for_ack)) 2238 ); 2239 2240 TRACE_EVENT(rdev_tx_control_port, 2241 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2242 const u8 *buf, size_t len, const u8 *dest, __be16 proto, 2243 bool unencrypted, int link_id), 2244 TP_ARGS(wiphy, netdev, buf, len, dest, proto, unencrypted, link_id), 2245 TP_STRUCT__entry( 2246 WIPHY_ENTRY 2247 NETDEV_ENTRY 2248 MAC_ENTRY(dest) 2249 __field(__be16, proto) 2250 __field(bool, unencrypted) 2251 __field(int, link_id) 2252 ), 2253 TP_fast_assign( 2254 WIPHY_ASSIGN; 2255 NETDEV_ASSIGN; 2256 MAC_ASSIGN(dest, dest); 2257 __entry->proto = proto; 2258 __entry->unencrypted = unencrypted; 2259 __entry->link_id = link_id; 2260 ), 2261 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM," 2262 " proto: 0x%x, unencrypted: %s, link: %d", 2263 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->dest, 2264 be16_to_cpu(__entry->proto), 2265 BOOL_TO_STR(__entry->unencrypted), 2266 __entry->link_id) 2267 ); 2268 2269 TRACE_EVENT(rdev_set_noack_map, 2270 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2271 u16 noack_map), 2272 TP_ARGS(wiphy, netdev, noack_map), 2273 TP_STRUCT__entry( 2274 WIPHY_ENTRY 2275 NETDEV_ENTRY 2276 __field(u16, noack_map) 2277 ), 2278 TP_fast_assign( 2279 WIPHY_ASSIGN; 2280 NETDEV_ASSIGN; 2281 __entry->noack_map = noack_map; 2282 ), 2283 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u", 2284 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) 2285 ); 2286 DEFINE_EVENT(wiphy_wdev_link_evt, rdev_get_channel, 2287 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2288 unsigned int link_id), 2289 TP_ARGS(wiphy, wdev, link_id) 2290 ); 2291 2292 TRACE_EVENT(rdev_return_chandef, 2293 TP_PROTO(struct wiphy *wiphy, int ret, 2294 struct cfg80211_chan_def *chandef), 2295 TP_ARGS(wiphy, ret, chandef), 2296 TP_STRUCT__entry( 2297 WIPHY_ENTRY 2298 __field(int, ret) 2299 CHAN_DEF_ENTRY 2300 ), 2301 TP_fast_assign( 2302 WIPHY_ASSIGN; 2303 if (ret == 0) 2304 CHAN_DEF_ASSIGN(chandef); 2305 else 2306 CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); 2307 __entry->ret = ret; 2308 ), 2309 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d", 2310 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) 2311 ); 2312 2313 DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device, 2314 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2315 TP_ARGS(wiphy, wdev) 2316 ); 2317 2318 DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device, 2319 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2320 TP_ARGS(wiphy, wdev) 2321 ); 2322 2323 TRACE_EVENT(rdev_start_nan, 2324 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2325 struct cfg80211_nan_conf *conf), 2326 TP_ARGS(wiphy, wdev, conf), 2327 TP_STRUCT__entry( 2328 WIPHY_ENTRY 2329 WDEV_ENTRY 2330 __field(u8, master_pref) 2331 __field(u8, bands) 2332 ), 2333 TP_fast_assign( 2334 WIPHY_ASSIGN; 2335 WDEV_ASSIGN; 2336 __entry->master_pref = conf->master_pref; 2337 __entry->bands = conf->bands; 2338 ), 2339 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 2340 ", master preference: %u, bands: 0x%0x", 2341 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 2342 __entry->bands) 2343 ); 2344 2345 TRACE_EVENT(rdev_nan_change_conf, 2346 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2347 struct cfg80211_nan_conf *conf, u32 changes), 2348 TP_ARGS(wiphy, wdev, conf, changes), 2349 TP_STRUCT__entry( 2350 WIPHY_ENTRY 2351 WDEV_ENTRY 2352 __field(u8, master_pref) 2353 __field(u8, bands) 2354 __field(u32, changes) 2355 ), 2356 TP_fast_assign( 2357 WIPHY_ASSIGN; 2358 WDEV_ASSIGN; 2359 __entry->master_pref = conf->master_pref; 2360 __entry->bands = conf->bands; 2361 __entry->changes = changes; 2362 ), 2363 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT 2364 ", master preference: %u, bands: 0x%0x, changes: %x", 2365 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref, 2366 __entry->bands, __entry->changes) 2367 ); 2368 2369 DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_nan, 2370 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2371 TP_ARGS(wiphy, wdev) 2372 ); 2373 2374 TRACE_EVENT(rdev_add_nan_func, 2375 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2376 const struct cfg80211_nan_func *func), 2377 TP_ARGS(wiphy, wdev, func), 2378 TP_STRUCT__entry( 2379 WIPHY_ENTRY 2380 WDEV_ENTRY 2381 __field(u8, func_type) 2382 __field(u64, cookie) 2383 ), 2384 TP_fast_assign( 2385 WIPHY_ASSIGN; 2386 WDEV_ASSIGN; 2387 __entry->func_type = func->type; 2388 __entry->cookie = func->cookie 2389 ), 2390 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type=%u, cookie=%llu", 2391 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->func_type, 2392 __entry->cookie) 2393 ); 2394 2395 TRACE_EVENT(rdev_del_nan_func, 2396 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2397 u64 cookie), 2398 TP_ARGS(wiphy, wdev, cookie), 2399 TP_STRUCT__entry( 2400 WIPHY_ENTRY 2401 WDEV_ENTRY 2402 __field(u64, cookie) 2403 ), 2404 TP_fast_assign( 2405 WIPHY_ASSIGN; 2406 WDEV_ASSIGN; 2407 __entry->cookie = cookie; 2408 ), 2409 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie=%llu", 2410 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) 2411 ); 2412 2413 TRACE_EVENT(rdev_set_mac_acl, 2414 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2415 struct cfg80211_acl_data *params), 2416 TP_ARGS(wiphy, netdev, params), 2417 TP_STRUCT__entry( 2418 WIPHY_ENTRY 2419 NETDEV_ENTRY 2420 __field(u32, acl_policy) 2421 ), 2422 TP_fast_assign( 2423 WIPHY_ASSIGN; 2424 NETDEV_ASSIGN; 2425 __entry->acl_policy = params->acl_policy; 2426 ), 2427 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", acl policy: %d", 2428 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy) 2429 ); 2430 2431 TRACE_EVENT(rdev_update_ft_ies, 2432 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2433 struct cfg80211_update_ft_ies_params *ftie), 2434 TP_ARGS(wiphy, netdev, ftie), 2435 TP_STRUCT__entry( 2436 WIPHY_ENTRY 2437 NETDEV_ENTRY 2438 __field(u16, md) 2439 __dynamic_array(u8, ie, ftie->ie_len) 2440 ), 2441 TP_fast_assign( 2442 WIPHY_ASSIGN; 2443 NETDEV_ASSIGN; 2444 __entry->md = ftie->md; 2445 memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len); 2446 ), 2447 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x", 2448 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md) 2449 ); 2450 2451 TRACE_EVENT(rdev_crit_proto_start, 2452 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 2453 enum nl80211_crit_proto_id protocol, u16 duration), 2454 TP_ARGS(wiphy, wdev, protocol, duration), 2455 TP_STRUCT__entry( 2456 WIPHY_ENTRY 2457 WDEV_ENTRY 2458 __field(u16, proto) 2459 __field(u16, duration) 2460 ), 2461 TP_fast_assign( 2462 WIPHY_ASSIGN; 2463 WDEV_ASSIGN; 2464 __entry->proto = protocol; 2465 __entry->duration = duration; 2466 ), 2467 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u", 2468 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration) 2469 ); 2470 2471 TRACE_EVENT(rdev_crit_proto_stop, 2472 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2473 TP_ARGS(wiphy, wdev), 2474 TP_STRUCT__entry( 2475 WIPHY_ENTRY 2476 WDEV_ENTRY 2477 ), 2478 TP_fast_assign( 2479 WIPHY_ASSIGN; 2480 WDEV_ASSIGN; 2481 ), 2482 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 2483 WIPHY_PR_ARG, WDEV_PR_ARG) 2484 ); 2485 2486 TRACE_EVENT(rdev_channel_switch, 2487 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2488 struct cfg80211_csa_settings *params), 2489 TP_ARGS(wiphy, netdev, params), 2490 TP_STRUCT__entry( 2491 WIPHY_ENTRY 2492 NETDEV_ENTRY 2493 CHAN_DEF_ENTRY 2494 __field(bool, radar_required) 2495 __field(bool, block_tx) 2496 __field(u8, count) 2497 __dynamic_array(u16, bcn_ofs, params->n_counter_offsets_beacon) 2498 __dynamic_array(u16, pres_ofs, params->n_counter_offsets_presp) 2499 __field(u8, link_id) 2500 ), 2501 TP_fast_assign( 2502 WIPHY_ASSIGN; 2503 NETDEV_ASSIGN; 2504 CHAN_DEF_ASSIGN(¶ms->chandef); 2505 __entry->radar_required = params->radar_required; 2506 __entry->block_tx = params->block_tx; 2507 __entry->count = params->count; 2508 memcpy(__get_dynamic_array(bcn_ofs), 2509 params->counter_offsets_beacon, 2510 params->n_counter_offsets_beacon * sizeof(u16)); 2511 2512 /* probe response offsets are optional */ 2513 if (params->n_counter_offsets_presp) 2514 memcpy(__get_dynamic_array(pres_ofs), 2515 params->counter_offsets_presp, 2516 params->n_counter_offsets_presp * sizeof(u16)); 2517 __entry->link_id = params->link_id; 2518 ), 2519 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 2520 ", block_tx: %d, count: %u, radar_required: %d, link_id: %d", 2521 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 2522 __entry->block_tx, __entry->count, __entry->radar_required, 2523 __entry->link_id) 2524 ); 2525 2526 TRACE_EVENT(rdev_set_qos_map, 2527 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2528 struct cfg80211_qos_map *qos_map), 2529 TP_ARGS(wiphy, netdev, qos_map), 2530 TP_STRUCT__entry( 2531 WIPHY_ENTRY 2532 NETDEV_ENTRY 2533 QOS_MAP_ENTRY 2534 ), 2535 TP_fast_assign( 2536 WIPHY_ASSIGN; 2537 NETDEV_ASSIGN; 2538 QOS_MAP_ASSIGN(qos_map); 2539 ), 2540 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", num_des: %u", 2541 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->num_des) 2542 ); 2543 2544 TRACE_EVENT(rdev_set_ap_chanwidth, 2545 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2546 unsigned int link_id, 2547 struct cfg80211_chan_def *chandef), 2548 TP_ARGS(wiphy, netdev, link_id, chandef), 2549 TP_STRUCT__entry( 2550 WIPHY_ENTRY 2551 NETDEV_ENTRY 2552 CHAN_DEF_ENTRY 2553 __field(unsigned int, link_id) 2554 ), 2555 TP_fast_assign( 2556 WIPHY_ASSIGN; 2557 NETDEV_ASSIGN; 2558 CHAN_DEF_ASSIGN(chandef); 2559 __entry->link_id = link_id; 2560 ), 2561 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT ", link:%d", 2562 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 2563 __entry->link_id) 2564 ); 2565 2566 TRACE_EVENT(rdev_add_tx_ts, 2567 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2568 u8 tsid, const u8 *peer, u8 user_prio, u16 admitted_time), 2569 TP_ARGS(wiphy, netdev, tsid, peer, user_prio, admitted_time), 2570 TP_STRUCT__entry( 2571 WIPHY_ENTRY 2572 NETDEV_ENTRY 2573 MAC_ENTRY(peer) 2574 __field(u8, tsid) 2575 __field(u8, user_prio) 2576 __field(u16, admitted_time) 2577 ), 2578 TP_fast_assign( 2579 WIPHY_ASSIGN; 2580 NETDEV_ASSIGN; 2581 MAC_ASSIGN(peer, peer); 2582 __entry->tsid = tsid; 2583 __entry->user_prio = user_prio; 2584 __entry->admitted_time = admitted_time; 2585 ), 2586 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM, TSID %d, UP %d, time %d", 2587 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, 2588 __entry->tsid, __entry->user_prio, __entry->admitted_time) 2589 ); 2590 2591 TRACE_EVENT(rdev_del_tx_ts, 2592 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2593 u8 tsid, const u8 *peer), 2594 TP_ARGS(wiphy, netdev, tsid, peer), 2595 TP_STRUCT__entry( 2596 WIPHY_ENTRY 2597 NETDEV_ENTRY 2598 MAC_ENTRY(peer) 2599 __field(u8, tsid) 2600 ), 2601 TP_fast_assign( 2602 WIPHY_ASSIGN; 2603 NETDEV_ASSIGN; 2604 MAC_ASSIGN(peer, peer); 2605 __entry->tsid = tsid; 2606 ), 2607 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM, TSID %d", 2608 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, __entry->tsid) 2609 ); 2610 2611 TRACE_EVENT(rdev_tdls_channel_switch, 2612 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2613 const u8 *addr, u8 oper_class, 2614 struct cfg80211_chan_def *chandef), 2615 TP_ARGS(wiphy, netdev, addr, oper_class, chandef), 2616 TP_STRUCT__entry( 2617 WIPHY_ENTRY 2618 NETDEV_ENTRY 2619 MAC_ENTRY(addr) 2620 __field(u8, oper_class) 2621 CHAN_DEF_ENTRY 2622 ), 2623 TP_fast_assign( 2624 WIPHY_ASSIGN; 2625 NETDEV_ASSIGN; 2626 MAC_ASSIGN(addr, addr); 2627 CHAN_DEF_ASSIGN(chandef); 2628 ), 2629 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM" 2630 " oper class %d, " CHAN_DEF_PR_FMT, 2631 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->addr, 2632 __entry->oper_class, CHAN_DEF_PR_ARG) 2633 ); 2634 2635 TRACE_EVENT(rdev_tdls_cancel_channel_switch, 2636 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2637 const u8 *addr), 2638 TP_ARGS(wiphy, netdev, addr), 2639 TP_STRUCT__entry( 2640 WIPHY_ENTRY 2641 NETDEV_ENTRY 2642 MAC_ENTRY(addr) 2643 ), 2644 TP_fast_assign( 2645 WIPHY_ASSIGN; 2646 NETDEV_ASSIGN; 2647 MAC_ASSIGN(addr, addr); 2648 ), 2649 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM", 2650 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->addr) 2651 ); 2652 2653 TRACE_EVENT(rdev_set_pmk, 2654 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2655 struct cfg80211_pmk_conf *pmk_conf), 2656 2657 TP_ARGS(wiphy, netdev, pmk_conf), 2658 2659 TP_STRUCT__entry( 2660 WIPHY_ENTRY 2661 NETDEV_ENTRY 2662 MAC_ENTRY(aa) 2663 __field(u8, pmk_len) 2664 __field(u8, pmk_r0_name_len) 2665 __dynamic_array(u8, pmk, pmk_conf->pmk_len) 2666 __dynamic_array(u8, pmk_r0_name, WLAN_PMK_NAME_LEN) 2667 ), 2668 2669 TP_fast_assign( 2670 WIPHY_ASSIGN; 2671 NETDEV_ASSIGN; 2672 MAC_ASSIGN(aa, pmk_conf->aa); 2673 __entry->pmk_len = pmk_conf->pmk_len; 2674 __entry->pmk_r0_name_len = 2675 pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0; 2676 memcpy(__get_dynamic_array(pmk), pmk_conf->pmk, 2677 pmk_conf->pmk_len); 2678 memcpy(__get_dynamic_array(pmk_r0_name), pmk_conf->pmk_r0_name, 2679 pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0); 2680 ), 2681 2682 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM" 2683 "pmk_len=%u, pmk: %s pmk_r0_name: %s", WIPHY_PR_ARG, 2684 NETDEV_PR_ARG, __entry->aa, __entry->pmk_len, 2685 __print_array(__get_dynamic_array(pmk), 2686 __get_dynamic_array_len(pmk), 1), 2687 __entry->pmk_r0_name_len ? 2688 __print_array(__get_dynamic_array(pmk_r0_name), 2689 __get_dynamic_array_len(pmk_r0_name), 1) : "") 2690 ); 2691 2692 TRACE_EVENT(rdev_del_pmk, 2693 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *aa), 2694 2695 TP_ARGS(wiphy, netdev, aa), 2696 2697 TP_STRUCT__entry( 2698 WIPHY_ENTRY 2699 NETDEV_ENTRY 2700 MAC_ENTRY(aa) 2701 ), 2702 2703 TP_fast_assign( 2704 WIPHY_ASSIGN; 2705 NETDEV_ASSIGN; 2706 MAC_ASSIGN(aa, aa); 2707 ), 2708 2709 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM", 2710 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->aa) 2711 ); 2712 2713 TRACE_EVENT(rdev_external_auth, 2714 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2715 struct cfg80211_external_auth_params *params), 2716 TP_ARGS(wiphy, netdev, params), 2717 TP_STRUCT__entry(WIPHY_ENTRY 2718 NETDEV_ENTRY 2719 MAC_ENTRY(bssid) 2720 __array(u8, ssid, IEEE80211_MAX_SSID_LEN + 1) 2721 __field(u16, status) 2722 MAC_ENTRY(mld_addr) 2723 ), 2724 TP_fast_assign(WIPHY_ASSIGN; 2725 NETDEV_ASSIGN; 2726 MAC_ASSIGN(bssid, params->bssid); 2727 memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); 2728 memcpy(__entry->ssid, params->ssid.ssid, 2729 params->ssid.ssid_len); 2730 __entry->status = params->status; 2731 MAC_ASSIGN(mld_addr, params->mld_addr); 2732 ), 2733 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: %pM" 2734 ", ssid: %s, status: %u, mld_addr: %pM", 2735 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->bssid, 2736 __entry->ssid, __entry->status, __entry->mld_addr) 2737 ); 2738 2739 TRACE_EVENT(rdev_start_radar_detection, 2740 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2741 struct cfg80211_chan_def *chandef, 2742 u32 cac_time_ms, int link_id), 2743 TP_ARGS(wiphy, netdev, chandef, cac_time_ms, link_id), 2744 TP_STRUCT__entry( 2745 WIPHY_ENTRY 2746 NETDEV_ENTRY 2747 CHAN_DEF_ENTRY 2748 __field(u32, cac_time_ms) 2749 __field(int, link_id) 2750 ), 2751 TP_fast_assign( 2752 WIPHY_ASSIGN; 2753 NETDEV_ASSIGN; 2754 CHAN_DEF_ASSIGN(chandef); 2755 __entry->cac_time_ms = cac_time_ms; 2756 __entry->link_id = link_id; 2757 ), 2758 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 2759 ", cac_time_ms=%u, link_id=%d", 2760 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 2761 __entry->cac_time_ms, __entry->link_id) 2762 ); 2763 2764 TRACE_EVENT(rdev_set_mcast_rate, 2765 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2766 int *mcast_rate), 2767 TP_ARGS(wiphy, netdev, mcast_rate), 2768 TP_STRUCT__entry( 2769 WIPHY_ENTRY 2770 NETDEV_ENTRY 2771 __array(int, mcast_rate, NUM_NL80211_BANDS) 2772 ), 2773 TP_fast_assign( 2774 WIPHY_ASSIGN; 2775 NETDEV_ASSIGN; 2776 memcpy(__entry->mcast_rate, mcast_rate, 2777 sizeof(int) * NUM_NL80211_BANDS); 2778 ), 2779 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " 2780 "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 6GHz=0x%x, 60GHz=0x%x]", 2781 WIPHY_PR_ARG, NETDEV_PR_ARG, 2782 __entry->mcast_rate[NL80211_BAND_2GHZ], 2783 __entry->mcast_rate[NL80211_BAND_5GHZ], 2784 __entry->mcast_rate[NL80211_BAND_6GHZ], 2785 __entry->mcast_rate[NL80211_BAND_60GHZ]) 2786 ); 2787 2788 TRACE_EVENT(rdev_set_coalesce, 2789 TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce), 2790 TP_ARGS(wiphy, coalesce), 2791 TP_STRUCT__entry( 2792 WIPHY_ENTRY 2793 __field(int, n_rules) 2794 ), 2795 TP_fast_assign( 2796 WIPHY_ASSIGN; 2797 __entry->n_rules = coalesce ? coalesce->n_rules : 0; 2798 ), 2799 TP_printk(WIPHY_PR_FMT ", n_rules=%d", 2800 WIPHY_PR_ARG, __entry->n_rules) 2801 ); 2802 2803 DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan, 2804 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2805 TP_ARGS(wiphy, wdev) 2806 ); 2807 2808 TRACE_EVENT(rdev_set_multicast_to_unicast, 2809 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2810 const bool enabled), 2811 TP_ARGS(wiphy, netdev, enabled), 2812 TP_STRUCT__entry( 2813 WIPHY_ENTRY 2814 NETDEV_ENTRY 2815 __field(bool, enabled) 2816 ), 2817 TP_fast_assign( 2818 WIPHY_ASSIGN; 2819 NETDEV_ASSIGN; 2820 __entry->enabled = enabled; 2821 ), 2822 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s", 2823 WIPHY_PR_ARG, NETDEV_PR_ARG, 2824 BOOL_TO_STR(__entry->enabled)) 2825 ); 2826 2827 DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats, 2828 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2829 TP_ARGS(wiphy, wdev) 2830 ); 2831 2832 TRACE_EVENT(rdev_get_ftm_responder_stats, 2833 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2834 struct cfg80211_ftm_responder_stats *ftm_stats), 2835 2836 TP_ARGS(wiphy, netdev, ftm_stats), 2837 2838 TP_STRUCT__entry( 2839 WIPHY_ENTRY 2840 NETDEV_ENTRY 2841 __field(u64, timestamp) 2842 __field(u32, success_num) 2843 __field(u32, partial_num) 2844 __field(u32, failed_num) 2845 __field(u32, asap_num) 2846 __field(u32, non_asap_num) 2847 __field(u64, duration) 2848 __field(u32, unknown_triggers) 2849 __field(u32, reschedule) 2850 __field(u32, out_of_window) 2851 ), 2852 2853 TP_fast_assign( 2854 WIPHY_ASSIGN; 2855 NETDEV_ASSIGN; 2856 __entry->success_num = ftm_stats->success_num; 2857 __entry->partial_num = ftm_stats->partial_num; 2858 __entry->failed_num = ftm_stats->failed_num; 2859 __entry->asap_num = ftm_stats->asap_num; 2860 __entry->non_asap_num = ftm_stats->non_asap_num; 2861 __entry->duration = ftm_stats->total_duration_ms; 2862 __entry->unknown_triggers = ftm_stats->unknown_triggers_num; 2863 __entry->reschedule = ftm_stats->reschedule_requests_num; 2864 __entry->out_of_window = ftm_stats->out_of_window_triggers_num; 2865 ), 2866 2867 TP_printk(WIPHY_PR_FMT "Ftm responder stats: success %u, partial %u, " 2868 "failed %u, asap %u, non asap %u, total duration %llu, unknown " 2869 "triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG, 2870 __entry->success_num, __entry->partial_num, __entry->failed_num, 2871 __entry->asap_num, __entry->non_asap_num, __entry->duration, 2872 __entry->unknown_triggers, __entry->reschedule, 2873 __entry->out_of_window) 2874 ); 2875 2876 DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_start_pmsr, 2877 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 2878 TP_ARGS(wiphy, wdev, cookie) 2879 ); 2880 2881 DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_abort_pmsr, 2882 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 2883 TP_ARGS(wiphy, wdev, cookie) 2884 ); 2885 2886 TRACE_EVENT(rdev_set_fils_aad, 2887 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2888 struct cfg80211_fils_aad *fils_aad), 2889 TP_ARGS(wiphy, netdev, fils_aad), 2890 TP_STRUCT__entry(WIPHY_ENTRY 2891 NETDEV_ENTRY 2892 __array(u8, macaddr, ETH_ALEN) 2893 __field(u8, kek_len) 2894 ), 2895 TP_fast_assign(WIPHY_ASSIGN; 2896 NETDEV_ASSIGN; 2897 FILS_AAD_ASSIGN(fils_aad); 2898 ), 2899 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " FILS_AAD_PR_FMT, 2900 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, 2901 __entry->kek_len) 2902 ); 2903 2904 TRACE_EVENT(rdev_update_owe_info, 2905 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2906 struct cfg80211_update_owe_info *owe_info), 2907 TP_ARGS(wiphy, netdev, owe_info), 2908 TP_STRUCT__entry(WIPHY_ENTRY 2909 NETDEV_ENTRY 2910 MAC_ENTRY(peer) 2911 __field(u16, status) 2912 __dynamic_array(u8, ie, owe_info->ie_len)), 2913 TP_fast_assign(WIPHY_ASSIGN; 2914 NETDEV_ASSIGN; 2915 MAC_ASSIGN(peer, owe_info->peer); 2916 __entry->status = owe_info->status; 2917 memcpy(__get_dynamic_array(ie), 2918 owe_info->ie, owe_info->ie_len);), 2919 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: %pM" 2920 " status %d", WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, 2921 __entry->status) 2922 ); 2923 2924 TRACE_EVENT(rdev_probe_mesh_link, 2925 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2926 const u8 *dest, const u8 *buf, size_t len), 2927 TP_ARGS(wiphy, netdev, dest, buf, len), 2928 TP_STRUCT__entry( 2929 WIPHY_ENTRY 2930 NETDEV_ENTRY 2931 MAC_ENTRY(dest) 2932 ), 2933 TP_fast_assign( 2934 WIPHY_ASSIGN; 2935 NETDEV_ASSIGN; 2936 MAC_ASSIGN(dest, dest); 2937 ), 2938 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %pM", 2939 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->dest) 2940 ); 2941 2942 TRACE_EVENT(rdev_set_tid_config, 2943 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2944 struct cfg80211_tid_config *tid_conf), 2945 TP_ARGS(wiphy, netdev, tid_conf), 2946 TP_STRUCT__entry( 2947 WIPHY_ENTRY 2948 NETDEV_ENTRY 2949 MAC_ENTRY(peer) 2950 ), 2951 TP_fast_assign( 2952 WIPHY_ASSIGN; 2953 NETDEV_ASSIGN; 2954 MAC_ASSIGN(peer, tid_conf->peer); 2955 ), 2956 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: %pM", 2957 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer) 2958 ); 2959 2960 TRACE_EVENT(rdev_reset_tid_config, 2961 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2962 const u8 *peer, u8 tids), 2963 TP_ARGS(wiphy, netdev, peer, tids), 2964 TP_STRUCT__entry( 2965 WIPHY_ENTRY 2966 NETDEV_ENTRY 2967 MAC_ENTRY(peer) 2968 __field(u8, tids) 2969 ), 2970 TP_fast_assign( 2971 WIPHY_ASSIGN; 2972 NETDEV_ASSIGN; 2973 MAC_ASSIGN(peer, peer); 2974 __entry->tids = tids; 2975 ), 2976 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: %pM, tids: 0x%x", 2977 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, __entry->tids) 2978 ); 2979 2980 TRACE_EVENT(rdev_set_sar_specs, 2981 TP_PROTO(struct wiphy *wiphy, struct cfg80211_sar_specs *sar), 2982 TP_ARGS(wiphy, sar), 2983 TP_STRUCT__entry( 2984 WIPHY_ENTRY 2985 __field(u16, type) 2986 __field(u16, num) 2987 ), 2988 TP_fast_assign( 2989 WIPHY_ASSIGN; 2990 __entry->type = sar->type; 2991 __entry->num = sar->num_sub_specs; 2992 2993 ), 2994 TP_printk(WIPHY_PR_FMT ", Set type:%d, num_specs:%d", 2995 WIPHY_PR_ARG, __entry->type, __entry->num) 2996 ); 2997 2998 TRACE_EVENT(rdev_color_change, 2999 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3000 struct cfg80211_color_change_settings *params), 3001 TP_ARGS(wiphy, netdev, params), 3002 TP_STRUCT__entry( 3003 WIPHY_ENTRY 3004 NETDEV_ENTRY 3005 __field(u8, count) 3006 __field(u16, bcn_ofs) 3007 __field(u16, pres_ofs) 3008 __field(u8, link_id) 3009 ), 3010 TP_fast_assign( 3011 WIPHY_ASSIGN; 3012 NETDEV_ASSIGN; 3013 __entry->count = params->count; 3014 __entry->bcn_ofs = params->counter_offset_beacon; 3015 __entry->pres_ofs = params->counter_offset_presp; 3016 __entry->link_id = params->link_id; 3017 ), 3018 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT 3019 ", count: %u, link_id: %d", 3020 WIPHY_PR_ARG, NETDEV_PR_ARG, 3021 __entry->count, __entry->link_id) 3022 ); 3023 3024 TRACE_EVENT(rdev_set_radar_background, 3025 TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 3026 3027 TP_ARGS(wiphy, chandef), 3028 3029 TP_STRUCT__entry( 3030 WIPHY_ENTRY 3031 CHAN_DEF_ENTRY 3032 ), 3033 3034 TP_fast_assign( 3035 WIPHY_ASSIGN; 3036 CHAN_DEF_ASSIGN(chandef) 3037 ), 3038 3039 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 3040 WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 3041 ); 3042 3043 DEFINE_EVENT(wiphy_wdev_link_evt, rdev_add_intf_link, 3044 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3045 unsigned int link_id), 3046 TP_ARGS(wiphy, wdev, link_id) 3047 ); 3048 3049 DEFINE_EVENT(wiphy_wdev_link_evt, rdev_del_intf_link, 3050 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3051 unsigned int link_id), 3052 TP_ARGS(wiphy, wdev, link_id) 3053 ); 3054 3055 TRACE_EVENT(rdev_del_link_station, 3056 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3057 struct link_station_del_parameters *params), 3058 TP_ARGS(wiphy, netdev, params), 3059 TP_STRUCT__entry( 3060 WIPHY_ENTRY 3061 NETDEV_ENTRY 3062 __array(u8, mld_mac, 6) 3063 __field(u32, link_id) 3064 ), 3065 TP_fast_assign( 3066 WIPHY_ASSIGN; 3067 NETDEV_ASSIGN; 3068 memset(__entry->mld_mac, 0, 6); 3069 if (params->mld_mac) 3070 memcpy(__entry->mld_mac, params->mld_mac, 6); 3071 __entry->link_id = params->link_id; 3072 ), 3073 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: %pM" 3074 ", link id: %u", 3075 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mld_mac, 3076 __entry->link_id) 3077 ); 3078 3079 TRACE_EVENT(rdev_set_hw_timestamp, 3080 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3081 struct cfg80211_set_hw_timestamp *hwts), 3082 3083 TP_ARGS(wiphy, netdev, hwts), 3084 3085 TP_STRUCT__entry( 3086 WIPHY_ENTRY 3087 NETDEV_ENTRY 3088 MAC_ENTRY(macaddr) 3089 __field(bool, enable) 3090 ), 3091 3092 TP_fast_assign( 3093 WIPHY_ASSIGN; 3094 NETDEV_ASSIGN; 3095 MAC_ASSIGN(macaddr, hwts->macaddr); 3096 __entry->enable = hwts->enable; 3097 ), 3098 3099 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac %pM, enable: %u", 3100 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, 3101 __entry->enable) 3102 ); 3103 3104 TRACE_EVENT(rdev_set_ttlm, 3105 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3106 struct cfg80211_ttlm_params *params), 3107 TP_ARGS(wiphy, netdev, params), 3108 TP_STRUCT__entry( 3109 WIPHY_ENTRY 3110 NETDEV_ENTRY 3111 __array(u8, dlink, sizeof(u16) * 8) 3112 __array(u8, ulink, sizeof(u16) * 8) 3113 ), 3114 TP_fast_assign( 3115 WIPHY_ASSIGN; 3116 NETDEV_ASSIGN; 3117 memcpy(__entry->dlink, params->dlink, sizeof(params->dlink)); 3118 memcpy(__entry->ulink, params->ulink, sizeof(params->ulink)); 3119 ), 3120 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, 3121 WIPHY_PR_ARG, NETDEV_PR_ARG) 3122 ); 3123 3124 TRACE_EVENT(rdev_set_epcs, 3125 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3126 bool val), 3127 TP_ARGS(wiphy, netdev, val), 3128 TP_STRUCT__entry( 3129 WIPHY_ENTRY 3130 NETDEV_ENTRY 3131 __field(bool, val) 3132 ), 3133 TP_fast_assign( 3134 WIPHY_ASSIGN; 3135 NETDEV_ASSIGN; 3136 __entry->val = val; 3137 ), 3138 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", config=%u", 3139 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->val) 3140 ); 3141 3142 /************************************************************* 3143 * cfg80211 exported functions traces * 3144 *************************************************************/ 3145 3146 TRACE_EVENT(cfg80211_return_bool, 3147 TP_PROTO(bool ret), 3148 TP_ARGS(ret), 3149 TP_STRUCT__entry( 3150 __field(bool, ret) 3151 ), 3152 TP_fast_assign( 3153 __entry->ret = ret; 3154 ), 3155 TP_printk("returned %s", BOOL_TO_STR(__entry->ret)) 3156 ); 3157 3158 DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt, 3159 TP_PROTO(struct net_device *netdev, const u8 *macaddr), 3160 TP_ARGS(netdev, macaddr), 3161 TP_STRUCT__entry( 3162 NETDEV_ENTRY 3163 MAC_ENTRY(macaddr) 3164 ), 3165 TP_fast_assign( 3166 NETDEV_ASSIGN; 3167 MAC_ASSIGN(macaddr, macaddr); 3168 ), 3169 TP_printk(NETDEV_PR_FMT ", mac: %pM", 3170 NETDEV_PR_ARG, __entry->macaddr) 3171 ); 3172 3173 DECLARE_EVENT_CLASS(cfg80211_wdev_mac_evt, 3174 TP_PROTO(struct wireless_dev *wdev, const u8 *macaddr), 3175 TP_ARGS(wdev, macaddr), 3176 TP_STRUCT__entry( 3177 WDEV_ENTRY 3178 MAC_ENTRY(macaddr) 3179 ), 3180 TP_fast_assign( 3181 WDEV_ASSIGN; 3182 MAC_ASSIGN(macaddr, macaddr); 3183 ), 3184 TP_printk(WDEV_PR_FMT ", mac: %pM", 3185 WDEV_PR_ARG, __entry->macaddr) 3186 ); 3187 3188 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate, 3189 TP_PROTO(struct net_device *netdev, const u8 *macaddr), 3190 TP_ARGS(netdev, macaddr) 3191 ); 3192 3193 TRACE_EVENT(cfg80211_send_rx_assoc, 3194 TP_PROTO(struct net_device *netdev, 3195 const struct cfg80211_rx_assoc_resp_data *data), 3196 TP_ARGS(netdev, data), 3197 TP_STRUCT__entry( 3198 NETDEV_ENTRY 3199 MAC_ENTRY(ap_addr) 3200 ), 3201 TP_fast_assign( 3202 NETDEV_ASSIGN; 3203 MAC_ASSIGN(ap_addr, 3204 data->ap_mld_addr ?: data->links[0].bss->bssid); 3205 ), 3206 TP_printk(NETDEV_PR_FMT ", %pM", 3207 NETDEV_PR_ARG, __entry->ap_addr) 3208 ); 3209 3210 DECLARE_EVENT_CLASS(netdev_frame_event, 3211 TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 3212 TP_ARGS(netdev, buf, len), 3213 TP_STRUCT__entry( 3214 NETDEV_ENTRY 3215 __dynamic_array(u8, frame, len) 3216 ), 3217 TP_fast_assign( 3218 NETDEV_ASSIGN; 3219 memcpy(__get_dynamic_array(frame), buf, len); 3220 ), 3221 TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x", 3222 NETDEV_PR_ARG, 3223 le16_to_cpup((__le16 *)__get_dynamic_array(frame))) 3224 ); 3225 3226 DEFINE_EVENT(netdev_frame_event, cfg80211_rx_unprot_mlme_mgmt, 3227 TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 3228 TP_ARGS(netdev, buf, len) 3229 ); 3230 3231 DEFINE_EVENT(netdev_frame_event, cfg80211_rx_mlme_mgmt, 3232 TP_PROTO(struct net_device *netdev, const u8 *buf, int len), 3233 TP_ARGS(netdev, buf, len) 3234 ); 3235 3236 TRACE_EVENT(cfg80211_tx_mlme_mgmt, 3237 TP_PROTO(struct net_device *netdev, const u8 *buf, int len, 3238 bool reconnect), 3239 TP_ARGS(netdev, buf, len, reconnect), 3240 TP_STRUCT__entry( 3241 NETDEV_ENTRY 3242 __dynamic_array(u8, frame, len) 3243 __field(int, reconnect) 3244 ), 3245 TP_fast_assign( 3246 NETDEV_ASSIGN; 3247 memcpy(__get_dynamic_array(frame), buf, len); 3248 __entry->reconnect = reconnect; 3249 ), 3250 TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x reconnect:%d", 3251 NETDEV_PR_ARG, 3252 le16_to_cpup((__le16 *)__get_dynamic_array(frame)), 3253 __entry->reconnect) 3254 ); 3255 3256 DECLARE_EVENT_CLASS(netdev_mac_evt, 3257 TP_PROTO(struct net_device *netdev, const u8 *mac), 3258 TP_ARGS(netdev, mac), 3259 TP_STRUCT__entry( 3260 NETDEV_ENTRY 3261 MAC_ENTRY(mac) 3262 ), 3263 TP_fast_assign( 3264 NETDEV_ASSIGN; 3265 MAC_ASSIGN(mac, mac) 3266 ), 3267 TP_printk(NETDEV_PR_FMT ", mac: %pM", 3268 NETDEV_PR_ARG, __entry->mac) 3269 ); 3270 3271 DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout, 3272 TP_PROTO(struct net_device *netdev, const u8 *mac), 3273 TP_ARGS(netdev, mac) 3274 ); 3275 3276 TRACE_EVENT(cfg80211_send_assoc_failure, 3277 TP_PROTO(struct net_device *netdev, 3278 struct cfg80211_assoc_failure *data), 3279 TP_ARGS(netdev, data), 3280 TP_STRUCT__entry( 3281 NETDEV_ENTRY 3282 MAC_ENTRY(ap_addr) 3283 __field(bool, timeout) 3284 ), 3285 TP_fast_assign( 3286 NETDEV_ASSIGN; 3287 MAC_ASSIGN(ap_addr, data->ap_mld_addr ?: data->bss[0]->bssid); 3288 __entry->timeout = data->timeout; 3289 ), 3290 TP_printk(NETDEV_PR_FMT ", mac: %pM, timeout: %d", 3291 NETDEV_PR_ARG, __entry->ap_addr, __entry->timeout) 3292 ); 3293 3294 TRACE_EVENT(cfg80211_michael_mic_failure, 3295 TP_PROTO(struct net_device *netdev, const u8 *addr, 3296 enum nl80211_key_type key_type, int key_id, const u8 *tsc), 3297 TP_ARGS(netdev, addr, key_type, key_id, tsc), 3298 TP_STRUCT__entry( 3299 NETDEV_ENTRY 3300 MAC_ENTRY(addr) 3301 __field(enum nl80211_key_type, key_type) 3302 __field(int, key_id) 3303 __array(u8, tsc, 6) 3304 ), 3305 TP_fast_assign( 3306 NETDEV_ASSIGN; 3307 MAC_ASSIGN(addr, addr); 3308 __entry->key_type = key_type; 3309 __entry->key_id = key_id; 3310 if (tsc) 3311 memcpy(__entry->tsc, tsc, 6); 3312 ), 3313 TP_printk(NETDEV_PR_FMT ", %pM, key type: %d, key id: %d, tsc: %pm", 3314 NETDEV_PR_ARG, __entry->addr, __entry->key_type, 3315 __entry->key_id, __entry->tsc) 3316 ); 3317 3318 TRACE_EVENT(cfg80211_ready_on_channel, 3319 TP_PROTO(struct wireless_dev *wdev, u64 cookie, 3320 struct ieee80211_channel *chan, 3321 unsigned int duration), 3322 TP_ARGS(wdev, cookie, chan, duration), 3323 TP_STRUCT__entry( 3324 WDEV_ENTRY 3325 __field(u64, cookie) 3326 CHAN_ENTRY 3327 __field(unsigned int, duration) 3328 ), 3329 TP_fast_assign( 3330 WDEV_ASSIGN; 3331 __entry->cookie = cookie; 3332 CHAN_ASSIGN(chan); 3333 __entry->duration = duration; 3334 ), 3335 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u", 3336 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, 3337 __entry->duration) 3338 ); 3339 3340 TRACE_EVENT(cfg80211_ready_on_channel_expired, 3341 TP_PROTO(struct wireless_dev *wdev, u64 cookie, 3342 struct ieee80211_channel *chan), 3343 TP_ARGS(wdev, cookie, chan), 3344 TP_STRUCT__entry( 3345 WDEV_ENTRY 3346 __field(u64, cookie) 3347 CHAN_ENTRY 3348 ), 3349 TP_fast_assign( 3350 WDEV_ASSIGN; 3351 __entry->cookie = cookie; 3352 CHAN_ASSIGN(chan); 3353 ), 3354 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, 3355 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) 3356 ); 3357 3358 TRACE_EVENT(cfg80211_tx_mgmt_expired, 3359 TP_PROTO(struct wireless_dev *wdev, u64 cookie, 3360 struct ieee80211_channel *chan), 3361 TP_ARGS(wdev, cookie, chan), 3362 TP_STRUCT__entry( 3363 WDEV_ENTRY 3364 __field(u64, cookie) 3365 CHAN_ENTRY 3366 ), 3367 TP_fast_assign( 3368 WDEV_ASSIGN; 3369 __entry->cookie = cookie; 3370 CHAN_ASSIGN(chan); 3371 ), 3372 TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, 3373 WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) 3374 ); 3375 3376 TRACE_EVENT(cfg80211_new_sta, 3377 TP_PROTO(struct wireless_dev *wdev, const u8 *mac_addr, 3378 struct station_info *sinfo), 3379 TP_ARGS(wdev, mac_addr, sinfo), 3380 TP_STRUCT__entry( 3381 WDEV_ENTRY 3382 MAC_ENTRY(mac_addr) 3383 SINFO_ENTRY 3384 ), 3385 TP_fast_assign( 3386 WDEV_ASSIGN; 3387 MAC_ASSIGN(mac_addr, mac_addr); 3388 SINFO_ASSIGN; 3389 ), 3390 TP_printk(WDEV_PR_FMT ", %pM", 3391 WDEV_PR_ARG, __entry->mac_addr) 3392 ); 3393 3394 DEFINE_EVENT(cfg80211_wdev_mac_evt, cfg80211_del_sta, 3395 TP_PROTO(struct wireless_dev *wdev, const u8 *macaddr), 3396 TP_ARGS(wdev, macaddr) 3397 ); 3398 3399 TRACE_EVENT(cfg80211_rx_mgmt, 3400 TP_PROTO(struct wireless_dev *wdev, struct cfg80211_rx_info *info), 3401 TP_ARGS(wdev, info), 3402 TP_STRUCT__entry( 3403 WDEV_ENTRY 3404 __field(int, freq) 3405 __field(int, sig_dbm) 3406 ), 3407 TP_fast_assign( 3408 WDEV_ASSIGN; 3409 __entry->freq = info->freq; 3410 __entry->sig_dbm = info->sig_dbm; 3411 ), 3412 TP_printk(WDEV_PR_FMT ", freq: "KHZ_F", sig dbm: %d", 3413 WDEV_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm) 3414 ); 3415 3416 TRACE_EVENT(cfg80211_mgmt_tx_status, 3417 TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), 3418 TP_ARGS(wdev, cookie, ack), 3419 TP_STRUCT__entry( 3420 WDEV_ENTRY 3421 __field(u64, cookie) 3422 __field(bool, ack) 3423 ), 3424 TP_fast_assign( 3425 WDEV_ASSIGN; 3426 __entry->cookie = cookie; 3427 __entry->ack = ack; 3428 ), 3429 TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", 3430 WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) 3431 ); 3432 3433 TRACE_EVENT(cfg80211_control_port_tx_status, 3434 TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), 3435 TP_ARGS(wdev, cookie, ack), 3436 TP_STRUCT__entry( 3437 WDEV_ENTRY 3438 __field(u64, cookie) 3439 __field(bool, ack) 3440 ), 3441 TP_fast_assign( 3442 WDEV_ASSIGN; 3443 __entry->cookie = cookie; 3444 __entry->ack = ack; 3445 ), 3446 TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", 3447 WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) 3448 ); 3449 3450 TRACE_EVENT(cfg80211_rx_control_port, 3451 TP_PROTO(struct net_device *netdev, struct sk_buff *skb, 3452 bool unencrypted, int link_id), 3453 TP_ARGS(netdev, skb, unencrypted, link_id), 3454 TP_STRUCT__entry( 3455 NETDEV_ENTRY 3456 __field(int, len) 3457 MAC_ENTRY(from) 3458 __field(u16, proto) 3459 __field(bool, unencrypted) 3460 __field(int, link_id) 3461 ), 3462 TP_fast_assign( 3463 NETDEV_ASSIGN; 3464 __entry->len = skb->len; 3465 MAC_ASSIGN(from, eth_hdr(skb)->h_source); 3466 __entry->proto = be16_to_cpu(skb->protocol); 3467 __entry->unencrypted = unencrypted; 3468 __entry->link_id = link_id; 3469 ), 3470 TP_printk(NETDEV_PR_FMT ", len=%d, %pM, proto: 0x%x, unencrypted: %s, link: %d", 3471 NETDEV_PR_ARG, __entry->len, __entry->from, 3472 __entry->proto, BOOL_TO_STR(__entry->unencrypted), 3473 __entry->link_id) 3474 ); 3475 3476 TRACE_EVENT(cfg80211_cqm_rssi_notify, 3477 TP_PROTO(struct net_device *netdev, 3478 enum nl80211_cqm_rssi_threshold_event rssi_event, 3479 s32 rssi_level), 3480 TP_ARGS(netdev, rssi_event, rssi_level), 3481 TP_STRUCT__entry( 3482 NETDEV_ENTRY 3483 __field(enum nl80211_cqm_rssi_threshold_event, rssi_event) 3484 __field(s32, rssi_level) 3485 ), 3486 TP_fast_assign( 3487 NETDEV_ASSIGN; 3488 __entry->rssi_event = rssi_event; 3489 __entry->rssi_level = rssi_level; 3490 ), 3491 TP_printk(NETDEV_PR_FMT ", rssi event: %d, level: %d", 3492 NETDEV_PR_ARG, __entry->rssi_event, __entry->rssi_level) 3493 ); 3494 3495 TRACE_EVENT(cfg80211_reg_can_beacon, 3496 TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, 3497 enum nl80211_iftype iftype, u32 prohibited_flags, 3498 u32 permitting_flags), 3499 TP_ARGS(wiphy, chandef, iftype, prohibited_flags, permitting_flags), 3500 TP_STRUCT__entry( 3501 WIPHY_ENTRY 3502 CHAN_DEF_ENTRY 3503 __field(enum nl80211_iftype, iftype) 3504 __field(u32, prohibited_flags) 3505 __field(u32, permitting_flags) 3506 ), 3507 TP_fast_assign( 3508 WIPHY_ASSIGN; 3509 CHAN_DEF_ASSIGN(chandef); 3510 __entry->iftype = iftype; 3511 __entry->prohibited_flags = prohibited_flags; 3512 __entry->permitting_flags = permitting_flags; 3513 ), 3514 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", iftype=%d prohibited_flags=0x%x permitting_flags=0x%x", 3515 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype, 3516 __entry->prohibited_flags, __entry->permitting_flags) 3517 ); 3518 3519 TRACE_EVENT(cfg80211_ch_switch_notify, 3520 TP_PROTO(struct net_device *netdev, 3521 struct cfg80211_chan_def *chandef, 3522 unsigned int link_id), 3523 TP_ARGS(netdev, chandef, link_id), 3524 TP_STRUCT__entry( 3525 NETDEV_ENTRY 3526 CHAN_DEF_ENTRY 3527 __field(unsigned int, link_id) 3528 ), 3529 TP_fast_assign( 3530 NETDEV_ASSIGN; 3531 CHAN_DEF_ASSIGN(chandef); 3532 __entry->link_id = link_id; 3533 ), 3534 TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT ", link:%d", 3535 NETDEV_PR_ARG, CHAN_DEF_PR_ARG, __entry->link_id) 3536 ); 3537 3538 TRACE_EVENT(cfg80211_ch_switch_started_notify, 3539 TP_PROTO(struct net_device *netdev, 3540 struct cfg80211_chan_def *chandef, 3541 unsigned int link_id), 3542 TP_ARGS(netdev, chandef, link_id), 3543 TP_STRUCT__entry( 3544 NETDEV_ENTRY 3545 CHAN_DEF_ENTRY 3546 __field(unsigned int, link_id) 3547 ), 3548 TP_fast_assign( 3549 NETDEV_ASSIGN; 3550 CHAN_DEF_ASSIGN(chandef); 3551 __entry->link_id = link_id; 3552 ), 3553 TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT ", link:%d", 3554 NETDEV_PR_ARG, CHAN_DEF_PR_ARG, __entry->link_id) 3555 ); 3556 3557 TRACE_EVENT(cfg80211_radar_event, 3558 TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, 3559 bool offchan), 3560 TP_ARGS(wiphy, chandef, offchan), 3561 TP_STRUCT__entry( 3562 WIPHY_ENTRY 3563 CHAN_DEF_ENTRY 3564 __field(bool, offchan) 3565 ), 3566 TP_fast_assign( 3567 WIPHY_ASSIGN; 3568 CHAN_DEF_ASSIGN(chandef); 3569 __entry->offchan = offchan; 3570 ), 3571 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", offchan %d", 3572 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->offchan) 3573 ); 3574 3575 TRACE_EVENT(cfg80211_cac_event, 3576 TP_PROTO(struct net_device *netdev, enum nl80211_radar_event evt, 3577 unsigned int link_id), 3578 TP_ARGS(netdev, evt, link_id), 3579 TP_STRUCT__entry( 3580 NETDEV_ENTRY 3581 __field(enum nl80211_radar_event, evt) 3582 __field(unsigned int, link_id) 3583 ), 3584 TP_fast_assign( 3585 NETDEV_ASSIGN; 3586 __entry->evt = evt; 3587 __entry->link_id = link_id; 3588 ), 3589 TP_printk(NETDEV_PR_FMT ", event: %d, link_id=%u", 3590 NETDEV_PR_ARG, __entry->evt, __entry->link_id) 3591 ); 3592 3593 DECLARE_EVENT_CLASS(cfg80211_rx_evt, 3594 TP_PROTO(struct net_device *netdev, const u8 *addr, int link_id), 3595 TP_ARGS(netdev, addr, link_id), 3596 TP_STRUCT__entry( 3597 NETDEV_ENTRY 3598 MAC_ENTRY(addr) 3599 __field(int, link_id) 3600 ), 3601 TP_fast_assign( 3602 NETDEV_ASSIGN; 3603 MAC_ASSIGN(addr, addr); 3604 __entry->link_id = link_id; 3605 ), 3606 TP_printk(NETDEV_PR_FMT ", %pM, link_id:%d", NETDEV_PR_ARG, 3607 __entry->addr, __entry->link_id) 3608 ); 3609 3610 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame, 3611 TP_PROTO(struct net_device *netdev, const u8 *addr, int link_id), 3612 TP_ARGS(netdev, addr, link_id) 3613 ); 3614 3615 DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame, 3616 TP_PROTO(struct net_device *netdev, const u8 *addr, int link_id), 3617 TP_ARGS(netdev, addr, link_id) 3618 ); 3619 3620 TRACE_EVENT(cfg80211_ibss_joined, 3621 TP_PROTO(struct net_device *netdev, const u8 *bssid, 3622 struct ieee80211_channel *channel), 3623 TP_ARGS(netdev, bssid, channel), 3624 TP_STRUCT__entry( 3625 NETDEV_ENTRY 3626 MAC_ENTRY(bssid) 3627 CHAN_ENTRY 3628 ), 3629 TP_fast_assign( 3630 NETDEV_ASSIGN; 3631 MAC_ASSIGN(bssid, bssid); 3632 CHAN_ASSIGN(channel); 3633 ), 3634 TP_printk(NETDEV_PR_FMT ", bssid: %pM, " CHAN_PR_FMT, 3635 NETDEV_PR_ARG, __entry->bssid, CHAN_PR_ARG) 3636 ); 3637 3638 TRACE_EVENT(cfg80211_probe_status, 3639 TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie, 3640 bool acked), 3641 TP_ARGS(netdev, addr, cookie, acked), 3642 TP_STRUCT__entry( 3643 NETDEV_ENTRY 3644 MAC_ENTRY(addr) 3645 __field(u64, cookie) 3646 __field(bool, acked) 3647 ), 3648 TP_fast_assign( 3649 NETDEV_ASSIGN; 3650 MAC_ASSIGN(addr, addr); 3651 __entry->cookie = cookie; 3652 __entry->acked = acked; 3653 ), 3654 TP_printk(NETDEV_PR_FMT " addr:%pM, cookie: %llu, acked: %s", 3655 NETDEV_PR_ARG, __entry->addr, __entry->cookie, 3656 BOOL_TO_STR(__entry->acked)) 3657 ); 3658 3659 TRACE_EVENT(cfg80211_cqm_pktloss_notify, 3660 TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets), 3661 TP_ARGS(netdev, peer, num_packets), 3662 TP_STRUCT__entry( 3663 NETDEV_ENTRY 3664 MAC_ENTRY(peer) 3665 __field(u32, num_packets) 3666 ), 3667 TP_fast_assign( 3668 NETDEV_ASSIGN; 3669 MAC_ASSIGN(peer, peer); 3670 __entry->num_packets = num_packets; 3671 ), 3672 TP_printk(NETDEV_PR_FMT ", peer: %pM, num of lost packets: %u", 3673 NETDEV_PR_ARG, __entry->peer, __entry->num_packets) 3674 ); 3675 3676 DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify, 3677 TP_PROTO(struct net_device *netdev, const u8 *macaddr), 3678 TP_ARGS(netdev, macaddr) 3679 ); 3680 3681 TRACE_EVENT(cfg80211_pmksa_candidate_notify, 3682 TP_PROTO(struct net_device *netdev, int index, const u8 *bssid, 3683 bool preauth), 3684 TP_ARGS(netdev, index, bssid, preauth), 3685 TP_STRUCT__entry( 3686 NETDEV_ENTRY 3687 __field(int, index) 3688 MAC_ENTRY(bssid) 3689 __field(bool, preauth) 3690 ), 3691 TP_fast_assign( 3692 NETDEV_ASSIGN; 3693 __entry->index = index; 3694 MAC_ASSIGN(bssid, bssid); 3695 __entry->preauth = preauth; 3696 ), 3697 TP_printk(NETDEV_PR_FMT ", index:%d, bssid: %pM, pre auth: %s", 3698 NETDEV_PR_ARG, __entry->index, __entry->bssid, 3699 BOOL_TO_STR(__entry->preauth)) 3700 ); 3701 3702 TRACE_EVENT(cfg80211_report_obss_beacon, 3703 TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len, 3704 int freq, int sig_dbm), 3705 TP_ARGS(wiphy, frame, len, freq, sig_dbm), 3706 TP_STRUCT__entry( 3707 WIPHY_ENTRY 3708 __field(int, freq) 3709 __field(int, sig_dbm) 3710 ), 3711 TP_fast_assign( 3712 WIPHY_ASSIGN; 3713 __entry->freq = freq; 3714 __entry->sig_dbm = sig_dbm; 3715 ), 3716 TP_printk(WIPHY_PR_FMT ", freq: "KHZ_F", sig_dbm: %d", 3717 WIPHY_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm) 3718 ); 3719 3720 TRACE_EVENT(cfg80211_tdls_oper_request, 3721 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer, 3722 enum nl80211_tdls_operation oper, u16 reason_code), 3723 TP_ARGS(wiphy, netdev, peer, oper, reason_code), 3724 TP_STRUCT__entry( 3725 WIPHY_ENTRY 3726 NETDEV_ENTRY 3727 MAC_ENTRY(peer) 3728 __field(enum nl80211_tdls_operation, oper) 3729 __field(u16, reason_code) 3730 ), 3731 TP_fast_assign( 3732 WIPHY_ASSIGN; 3733 NETDEV_ASSIGN; 3734 MAC_ASSIGN(peer, peer); 3735 __entry->oper = oper; 3736 __entry->reason_code = reason_code; 3737 ), 3738 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: %pM, oper: %d, reason_code %u", 3739 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, __entry->oper, 3740 __entry->reason_code) 3741 ); 3742 3743 TRACE_EVENT(cfg80211_scan_done, 3744 TP_PROTO(struct cfg80211_scan_request_int *request, 3745 struct cfg80211_scan_info *info), 3746 TP_ARGS(request, info), 3747 TP_STRUCT__entry( 3748 __field(u32, n_channels) 3749 __dynamic_array(u8, ie, request ? request->req.ie_len : 0) 3750 __array(u32, rates, NUM_NL80211_BANDS) 3751 __field(u32, wdev_id) 3752 MAC_ENTRY(wiphy_mac) 3753 __field(bool, no_cck) 3754 __field(bool, aborted) 3755 __field(u64, scan_start_tsf) 3756 MAC_ENTRY(tsf_bssid) 3757 ), 3758 TP_fast_assign( 3759 if (request) { 3760 memcpy(__get_dynamic_array(ie), request->req.ie, 3761 request->req.ie_len); 3762 memcpy(__entry->rates, request->req.rates, 3763 NUM_NL80211_BANDS); 3764 __entry->wdev_id = request->req.wdev ? 3765 request->req.wdev->identifier : 0; 3766 if (request->req.wiphy) 3767 MAC_ASSIGN(wiphy_mac, 3768 request->req.wiphy->perm_addr); 3769 __entry->no_cck = request->req.no_cck; 3770 } 3771 if (info) { 3772 __entry->aborted = info->aborted; 3773 __entry->scan_start_tsf = info->scan_start_tsf; 3774 MAC_ASSIGN(tsf_bssid, info->tsf_bssid); 3775 } 3776 ), 3777 TP_printk("aborted: %s, scan start (TSF): %llu, tsf_bssid: %pM", 3778 BOOL_TO_STR(__entry->aborted), 3779 (unsigned long long)__entry->scan_start_tsf, 3780 __entry->tsf_bssid) 3781 ); 3782 3783 DECLARE_EVENT_CLASS(wiphy_id_evt, 3784 TP_PROTO(struct wiphy *wiphy, u64 id), 3785 TP_ARGS(wiphy, id), 3786 TP_STRUCT__entry( 3787 WIPHY_ENTRY 3788 __field(u64, id) 3789 ), 3790 TP_fast_assign( 3791 WIPHY_ASSIGN; 3792 __entry->id = id; 3793 ), 3794 TP_printk(WIPHY_PR_FMT ", id: %llu", WIPHY_PR_ARG, __entry->id) 3795 ); 3796 3797 DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_stopped, 3798 TP_PROTO(struct wiphy *wiphy, u64 id), 3799 TP_ARGS(wiphy, id) 3800 ); 3801 3802 DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_results, 3803 TP_PROTO(struct wiphy *wiphy, u64 id), 3804 TP_ARGS(wiphy, id) 3805 ); 3806 3807 TRACE_EVENT(cfg80211_get_bss, 3808 TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel, 3809 const u8 *bssid, const u8 *ssid, size_t ssid_len, 3810 enum ieee80211_bss_type bss_type, 3811 enum ieee80211_privacy privacy), 3812 TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, bss_type, privacy), 3813 TP_STRUCT__entry( 3814 WIPHY_ENTRY 3815 CHAN_ENTRY 3816 MAC_ENTRY(bssid) 3817 __dynamic_array(u8, ssid, ssid_len) 3818 __field(enum ieee80211_bss_type, bss_type) 3819 __field(enum ieee80211_privacy, privacy) 3820 ), 3821 TP_fast_assign( 3822 WIPHY_ASSIGN; 3823 CHAN_ASSIGN(channel); 3824 MAC_ASSIGN(bssid, bssid); 3825 memcpy(__get_dynamic_array(ssid), ssid, ssid_len); 3826 __entry->bss_type = bss_type; 3827 __entry->privacy = privacy; 3828 ), 3829 TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", %pM" 3830 ", buf: %#.2x, bss_type: %d, privacy: %d", 3831 WIPHY_PR_ARG, CHAN_PR_ARG, __entry->bssid, 3832 ((u8 *)__get_dynamic_array(ssid))[0], __entry->bss_type, 3833 __entry->privacy) 3834 ); 3835 3836 TRACE_EVENT(cfg80211_inform_bss_frame, 3837 TP_PROTO(struct wiphy *wiphy, struct cfg80211_inform_bss *data, 3838 struct ieee80211_mgmt *mgmt, size_t len), 3839 TP_ARGS(wiphy, data, mgmt, len), 3840 TP_STRUCT__entry( 3841 WIPHY_ENTRY 3842 CHAN_ENTRY 3843 __dynamic_array(u8, mgmt, len) 3844 __field(s32, signal) 3845 __field(u64, ts_boottime) 3846 __field(u64, parent_tsf) 3847 MAC_ENTRY(parent_bssid) 3848 ), 3849 TP_fast_assign( 3850 WIPHY_ASSIGN; 3851 CHAN_ASSIGN(data->chan); 3852 if (mgmt) 3853 memcpy(__get_dynamic_array(mgmt), mgmt, len); 3854 __entry->signal = data->signal; 3855 __entry->ts_boottime = data->boottime_ns; 3856 __entry->parent_tsf = data->parent_tsf; 3857 MAC_ASSIGN(parent_bssid, data->parent_bssid); 3858 ), 3859 TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT 3860 "signal: %d, tsb:%llu, detect_tsf:%llu, tsf_bssid: %pM", 3861 WIPHY_PR_ARG, CHAN_PR_ARG, 3862 __entry->signal, (unsigned long long)__entry->ts_boottime, 3863 (unsigned long long)__entry->parent_tsf, 3864 __entry->parent_bssid) 3865 ); 3866 3867 DECLARE_EVENT_CLASS(cfg80211_bss_evt, 3868 TP_PROTO(struct cfg80211_bss *pub), 3869 TP_ARGS(pub), 3870 TP_STRUCT__entry( 3871 MAC_ENTRY(bssid) 3872 CHAN_ENTRY 3873 ), 3874 TP_fast_assign( 3875 MAC_ASSIGN(bssid, pub->bssid); 3876 CHAN_ASSIGN(pub->channel); 3877 ), 3878 TP_printk("%pM, " CHAN_PR_FMT, __entry->bssid, CHAN_PR_ARG) 3879 ); 3880 3881 DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, 3882 TP_PROTO(struct cfg80211_bss *pub), 3883 TP_ARGS(pub) 3884 ); 3885 3886 TRACE_EVENT(cfg80211_report_wowlan_wakeup, 3887 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3888 struct cfg80211_wowlan_wakeup *wakeup), 3889 TP_ARGS(wiphy, wdev, wakeup), 3890 TP_STRUCT__entry( 3891 WIPHY_ENTRY 3892 WDEV_ENTRY 3893 __field(bool, non_wireless) 3894 __field(bool, disconnect) 3895 __field(bool, magic_pkt) 3896 __field(bool, gtk_rekey_failure) 3897 __field(bool, eap_identity_req) 3898 __field(bool, four_way_handshake) 3899 __field(bool, rfkill_release) 3900 __field(s32, pattern_idx) 3901 __field(u32, packet_len) 3902 __dynamic_array(u8, packet, 3903 wakeup ? wakeup->packet_present_len : 0) 3904 ), 3905 TP_fast_assign( 3906 WIPHY_ASSIGN; 3907 WDEV_ASSIGN; 3908 __entry->non_wireless = !wakeup; 3909 __entry->disconnect = wakeup ? wakeup->disconnect : false; 3910 __entry->magic_pkt = wakeup ? wakeup->magic_pkt : false; 3911 __entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false; 3912 __entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false; 3913 __entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false; 3914 __entry->rfkill_release = wakeup ? wakeup->rfkill_release : false; 3915 __entry->pattern_idx = wakeup ? wakeup->pattern_idx : false; 3916 __entry->packet_len = wakeup ? wakeup->packet_len : false; 3917 if (wakeup && wakeup->packet && wakeup->packet_present_len) 3918 memcpy(__get_dynamic_array(packet), wakeup->packet, 3919 wakeup->packet_present_len); 3920 ), 3921 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) 3922 ); 3923 3924 TRACE_EVENT(cfg80211_ft_event, 3925 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3926 struct cfg80211_ft_event_params *ft_event), 3927 TP_ARGS(wiphy, netdev, ft_event), 3928 TP_STRUCT__entry( 3929 WIPHY_ENTRY 3930 NETDEV_ENTRY 3931 __dynamic_array(u8, ies, ft_event->ies_len) 3932 MAC_ENTRY(target_ap) 3933 __dynamic_array(u8, ric_ies, ft_event->ric_ies_len) 3934 ), 3935 TP_fast_assign( 3936 WIPHY_ASSIGN; 3937 NETDEV_ASSIGN; 3938 if (ft_event->ies) 3939 memcpy(__get_dynamic_array(ies), ft_event->ies, 3940 ft_event->ies_len); 3941 MAC_ASSIGN(target_ap, ft_event->target_ap); 3942 if (ft_event->ric_ies) 3943 memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies, 3944 ft_event->ric_ies_len); 3945 ), 3946 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: %pM", 3947 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->target_ap) 3948 ); 3949 3950 TRACE_EVENT(cfg80211_stop_link, 3951 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3952 int link_id), 3953 TP_ARGS(wiphy, wdev, link_id), 3954 TP_STRUCT__entry( 3955 WIPHY_ENTRY 3956 WDEV_ENTRY 3957 __field(int, link_id) 3958 ), 3959 TP_fast_assign( 3960 WIPHY_ASSIGN; 3961 WDEV_ASSIGN; 3962 __entry->link_id = link_id; 3963 ), 3964 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", link_id: %d", 3965 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->link_id) 3966 ); 3967 3968 TRACE_EVENT(cfg80211_pmsr_report, 3969 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, 3970 u64 cookie, const u8 *addr), 3971 TP_ARGS(wiphy, wdev, cookie, addr), 3972 TP_STRUCT__entry( 3973 WIPHY_ENTRY 3974 WDEV_ENTRY 3975 __field(u64, cookie) 3976 MAC_ENTRY(addr) 3977 ), 3978 TP_fast_assign( 3979 WIPHY_ASSIGN; 3980 WDEV_ASSIGN; 3981 __entry->cookie = cookie; 3982 MAC_ASSIGN(addr, addr); 3983 ), 3984 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld, %pM", 3985 WIPHY_PR_ARG, WDEV_PR_ARG, 3986 (unsigned long long)__entry->cookie, 3987 __entry->addr) 3988 ); 3989 3990 TRACE_EVENT(cfg80211_pmsr_complete, 3991 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 3992 TP_ARGS(wiphy, wdev, cookie), 3993 TP_STRUCT__entry( 3994 WIPHY_ENTRY 3995 WDEV_ENTRY 3996 __field(u64, cookie) 3997 ), 3998 TP_fast_assign( 3999 WIPHY_ASSIGN; 4000 WDEV_ASSIGN; 4001 __entry->cookie = cookie; 4002 ), 4003 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld", 4004 WIPHY_PR_ARG, WDEV_PR_ARG, 4005 (unsigned long long)__entry->cookie) 4006 ); 4007 4008 TRACE_EVENT(cfg80211_update_owe_info_event, 4009 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 4010 struct cfg80211_update_owe_info *owe_info), 4011 TP_ARGS(wiphy, netdev, owe_info), 4012 TP_STRUCT__entry( 4013 WIPHY_ENTRY 4014 NETDEV_ENTRY 4015 MAC_ENTRY(peer) 4016 __dynamic_array(u8, ie, owe_info->ie_len) 4017 __field(int, assoc_link_id) 4018 MAC_ENTRY(peer_mld_addr) 4019 ), 4020 TP_fast_assign( 4021 WIPHY_ASSIGN; 4022 NETDEV_ASSIGN; 4023 MAC_ASSIGN(peer, owe_info->peer); 4024 memcpy(__get_dynamic_array(ie), owe_info->ie, 4025 owe_info->ie_len); 4026 __entry->assoc_link_id = owe_info->assoc_link_id; 4027 MAC_ASSIGN(peer_mld_addr, owe_info->peer_mld_addr); 4028 ), 4029 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: %pM," 4030 " assoc_link_id: %d, peer_mld_addr: %pM", 4031 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->peer, 4032 __entry->assoc_link_id, __entry->peer_mld_addr) 4033 ); 4034 4035 TRACE_EVENT(cfg80211_bss_color_notify, 4036 TP_PROTO(struct net_device *netdev, 4037 enum nl80211_commands cmd, 4038 u8 count, u64 color_bitmap), 4039 TP_ARGS(netdev, cmd, count, color_bitmap), 4040 TP_STRUCT__entry( 4041 NETDEV_ENTRY 4042 __field(u32, cmd) 4043 __field(u8, count) 4044 __field(u64, color_bitmap) 4045 ), 4046 TP_fast_assign( 4047 NETDEV_ASSIGN; 4048 __entry->cmd = cmd; 4049 __entry->count = count; 4050 __entry->color_bitmap = color_bitmap; 4051 ), 4052 TP_printk(NETDEV_PR_FMT ", cmd: %x, count: %u, bitmap: %llx", 4053 NETDEV_PR_ARG, __entry->cmd, __entry->count, 4054 __entry->color_bitmap) 4055 ); 4056 4057 TRACE_EVENT(cfg80211_assoc_comeback, 4058 TP_PROTO(struct wireless_dev *wdev, const u8 *ap_addr, u32 timeout), 4059 TP_ARGS(wdev, ap_addr, timeout), 4060 TP_STRUCT__entry( 4061 WDEV_ENTRY 4062 MAC_ENTRY(ap_addr) 4063 __field(u32, timeout) 4064 ), 4065 TP_fast_assign( 4066 WDEV_ASSIGN; 4067 MAC_ASSIGN(ap_addr, ap_addr); 4068 __entry->timeout = timeout; 4069 ), 4070 TP_printk(WDEV_PR_FMT ", %pM, timeout: %u TUs", 4071 WDEV_PR_ARG, __entry->ap_addr, __entry->timeout) 4072 ); 4073 4074 DECLARE_EVENT_CLASS(link_station_add_mod, 4075 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 4076 struct link_station_parameters *params), 4077 TP_ARGS(wiphy, netdev, params), 4078 TP_STRUCT__entry( 4079 WIPHY_ENTRY 4080 NETDEV_ENTRY 4081 __array(u8, mld_mac, 6) 4082 __array(u8, link_mac, 6) 4083 __field(u32, link_id) 4084 __dynamic_array(u8, supported_rates, 4085 params->supported_rates_len) 4086 __array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap)) 4087 __array(u8, vht_capa, (int)sizeof(struct ieee80211_vht_cap)) 4088 __field(u8, opmode_notif) 4089 __field(bool, opmode_notif_used) 4090 __dynamic_array(u8, he_capa, params->he_capa_len) 4091 __array(u8, he_6ghz_capa, (int)sizeof(struct ieee80211_he_6ghz_capa)) 4092 __dynamic_array(u8, eht_capa, params->eht_capa_len) 4093 ), 4094 TP_fast_assign( 4095 WIPHY_ASSIGN; 4096 NETDEV_ASSIGN; 4097 memset(__entry->mld_mac, 0, 6); 4098 memset(__entry->link_mac, 0, 6); 4099 if (params->mld_mac) 4100 memcpy(__entry->mld_mac, params->mld_mac, 6); 4101 if (params->link_mac) 4102 memcpy(__entry->link_mac, params->link_mac, 6); 4103 __entry->link_id = params->link_id; 4104 if (params->supported_rates && params->supported_rates_len) 4105 memcpy(__get_dynamic_array(supported_rates), 4106 params->supported_rates, 4107 params->supported_rates_len); 4108 memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap)); 4109 if (params->ht_capa) 4110 memcpy(__entry->ht_capa, params->ht_capa, 4111 sizeof(struct ieee80211_ht_cap)); 4112 memset(__entry->vht_capa, 0, sizeof(struct ieee80211_vht_cap)); 4113 if (params->vht_capa) 4114 memcpy(__entry->vht_capa, params->vht_capa, 4115 sizeof(struct ieee80211_vht_cap)); 4116 __entry->opmode_notif = params->opmode_notif; 4117 __entry->opmode_notif_used = params->opmode_notif_used; 4118 if (params->he_capa && params->he_capa_len) 4119 memcpy(__get_dynamic_array(he_capa), params->he_capa, 4120 params->he_capa_len); 4121 memset(__entry->he_6ghz_capa, 0, sizeof(struct ieee80211_he_6ghz_capa)); 4122 if (params->he_6ghz_capa) 4123 memcpy(__entry->he_6ghz_capa, params->he_6ghz_capa, 4124 sizeof(struct ieee80211_he_6ghz_capa)); 4125 if (params->eht_capa && params->eht_capa_len) 4126 memcpy(__get_dynamic_array(eht_capa), params->eht_capa, 4127 params->eht_capa_len); 4128 ), 4129 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: %pM" 4130 ", link mac: %pM, link id: %u", 4131 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mld_mac, 4132 __entry->link_mac, __entry->link_id) 4133 ); 4134 4135 DEFINE_EVENT(link_station_add_mod, rdev_add_link_station, 4136 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 4137 struct link_station_parameters *params), 4138 TP_ARGS(wiphy, netdev, params) 4139 ); 4140 4141 DEFINE_EVENT(link_station_add_mod, rdev_mod_link_station, 4142 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 4143 struct link_station_parameters *params), 4144 TP_ARGS(wiphy, netdev, params) 4145 ); 4146 4147 TRACE_EVENT(cfg80211_links_removed, 4148 TP_PROTO(struct net_device *netdev, u16 link_mask), 4149 TP_ARGS(netdev, link_mask), 4150 TP_STRUCT__entry( 4151 NETDEV_ENTRY 4152 __field(u16, link_mask) 4153 ), 4154 TP_fast_assign( 4155 NETDEV_ASSIGN; 4156 __entry->link_mask = link_mask; 4157 ), 4158 TP_printk(NETDEV_PR_FMT ", link_mask:0x%x", NETDEV_PR_ARG, 4159 __entry->link_mask) 4160 ); 4161 4162 TRACE_EVENT(cfg80211_mlo_reconf_add_done, 4163 TP_PROTO(struct net_device *netdev, u16 link_mask, 4164 const u8 *buf, size_t len, bool driver_initiated), 4165 TP_ARGS(netdev, link_mask, buf, len, driver_initiated), 4166 TP_STRUCT__entry( 4167 NETDEV_ENTRY 4168 __field(u16, link_mask) 4169 __dynamic_array(u8, buf, len) 4170 __field(bool, driver_initiated) 4171 ), 4172 TP_fast_assign( 4173 NETDEV_ASSIGN; 4174 __entry->link_mask = link_mask; 4175 memcpy(__get_dynamic_array(buf), buf, len); 4176 __entry->driver_initiated = driver_initiated; 4177 ), 4178 TP_printk(NETDEV_PR_FMT ", link_mask:0x%x, driver_initiated:%d", 4179 NETDEV_PR_ARG, __entry->link_mask, __entry->driver_initiated) 4180 ); 4181 4182 TRACE_EVENT(rdev_assoc_ml_reconf, 4183 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 4184 struct cfg80211_ml_reconf_req *req), 4185 TP_ARGS(wiphy, netdev, req), 4186 TP_STRUCT__entry( 4187 WIPHY_ENTRY 4188 NETDEV_ENTRY 4189 __field(u16, add_links) 4190 __field(u16, rem_links) 4191 __field(u16, ext_mld_capa_ops) 4192 ), 4193 TP_fast_assign( 4194 WIPHY_ASSIGN; 4195 NETDEV_ASSIGN; 4196 u32 i; 4197 4198 __entry->add_links = 0; 4199 __entry->rem_links = req->rem_links; 4200 for (i = 0; i < IEEE80211_MLD_MAX_NUM_LINKS; i++) 4201 if (req->add_links[i].bss) 4202 __entry->add_links |= BIT(i); 4203 __entry->ext_mld_capa_ops = req->ext_mld_capa_ops; 4204 ), 4205 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", add_links=0x%x, rem_links=0x%x", 4206 WIPHY_PR_ARG, NETDEV_PR_ARG, 4207 __entry->add_links, __entry->rem_links) 4208 ); 4209 4210 TRACE_EVENT(cfg80211_epcs_changed, 4211 TP_PROTO(struct wireless_dev *wdev, bool enabled), 4212 TP_ARGS(wdev, enabled), 4213 TP_STRUCT__entry( 4214 WDEV_ENTRY 4215 __field(u32, enabled) 4216 ), 4217 TP_fast_assign( 4218 WDEV_ASSIGN; 4219 __entry->enabled = enabled; 4220 ), 4221 TP_printk(WDEV_PR_FMT ", enabled=%u", 4222 WDEV_PR_ARG, __entry->enabled) 4223 ); 4224 4225 TRACE_EVENT(cfg80211_next_nan_dw_notif, 4226 TP_PROTO(struct wireless_dev *wdev, 4227 struct ieee80211_channel *chan), 4228 TP_ARGS(wdev, chan), 4229 TP_STRUCT__entry( 4230 WDEV_ENTRY 4231 CHAN_ENTRY 4232 ), 4233 TP_fast_assign( 4234 WDEV_ASSIGN; 4235 CHAN_ASSIGN(chan); 4236 ), 4237 TP_printk(WDEV_PR_FMT " " CHAN_PR_FMT, 4238 WDEV_PR_ARG, CHAN_PR_ARG) 4239 ); 4240 4241 TRACE_EVENT(cfg80211_nan_cluster_joined, 4242 TP_PROTO(struct wireless_dev *wdev, 4243 const u8 *cluster_id, 4244 bool new_cluster), 4245 TP_ARGS(wdev, cluster_id, new_cluster), 4246 TP_STRUCT__entry( 4247 WDEV_ENTRY 4248 MAC_ENTRY(cluster_id) 4249 __field(bool, new_cluster) 4250 ), 4251 TP_fast_assign( 4252 WDEV_ASSIGN; 4253 MAC_ASSIGN(cluster_id, cluster_id); 4254 __entry->new_cluster = new_cluster; 4255 ), 4256 TP_printk(WDEV_PR_FMT " cluster_id %pMF%s", 4257 WDEV_PR_ARG, __entry->cluster_id, 4258 __entry->new_cluster ? " [new]" : "") 4259 ); 4260 4261 TRACE_EVENT(cfg80211_incumbent_signal_notify, 4262 TP_PROTO(struct wiphy *wiphy, 4263 const struct cfg80211_chan_def *chandef, 4264 u32 signal_interference_bitmap), 4265 TP_ARGS(wiphy, chandef, signal_interference_bitmap), 4266 TP_STRUCT__entry( 4267 WIPHY_ENTRY 4268 CHAN_DEF_ENTRY 4269 __field(u32, signal_interference_bitmap) 4270 ), 4271 TP_fast_assign( 4272 WIPHY_ASSIGN; 4273 CHAN_DEF_ASSIGN(chandef); 4274 __entry->signal_interference_bitmap = signal_interference_bitmap; 4275 ), 4276 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", signal_interference_bitmap=0x%x", 4277 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->signal_interference_bitmap) 4278 ); 4279 #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 4280 4281 #undef TRACE_INCLUDE_PATH 4282 #define TRACE_INCLUDE_PATH . 4283 #undef TRACE_INCLUDE_FILE 4284 #define TRACE_INCLUDE_FILE trace 4285 #include <trace/define_trace.h> 4286