1 /* 2 * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. 3 * 4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc. 5 * 6 * 7 * Permission to use, copy, modify, and/or distribute this software for 8 * any purpose with or without fee is hereby granted, provided that the 9 * above copyright notice and this permission notice appear in all 10 * copies. 11 * 12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19 * PERFORMANCE OF THIS SOFTWARE. 20 */ 21 22 /* 23 * This file was originally distributed by Qualcomm Atheros, Inc. 24 * under proprietary terms before Copyright ownership was assigned 25 * to the Linux Foundation. 26 */ 27 28 #ifndef EVENT_DEFS_H 29 #define EVENT_DEFS_H 30 31 typedef enum { 32 EVENT_DROP_ID = 0, 33 34 /* Events between 0x1 to 0x674 are not used */ 35 36 /* 37 * <diag_event> 38 * EVENT_WLAN_SECURITY 39 * @ eventId: Event id 40 * @ authMode: Shows the auth mode 41 * @ encryptionModeUnicast: Encryption Mode Unicast 42 * @ encryptionModeMulticast: Encryption Mode Multicast 43 * @ pmkIDMatch: PMK ID Match 44 * @ bssid: BSSID < 0 to 5 > 45 * @ keyId: Key ID 46 * @ status: Shows the status 0 is Success and 1 is failure 47 * 48 * This event is used in SECURITY to send various wlan security modes 49 * Values for parameters are defined below: 50 * Event ID: offset: 0 length: 1 51 * 5 - Remove Key Req 52 * 6 - Remove Key Rsp 53 * 7 - PMKID Candidate Found 54 * 8 - PMKID Update 55 * 9 - Mic Error 56 * 10 - Set UniCast Key Req 57 * 11 - Set UniCast Key Rsp 58 * 12 - Set BCast Key Req 59 * 13 - Set BCast Key Rsp 60 * 61 * Auth Mode: offset: 1 length: 1 62 * 0 - Open 63 * 1 - Shared 64 * 2 - WPA EAP 65 * 3 - WPA PSK 66 * 4 - WPA2 EAP 67 * 5 - WPA2 PSK 68 * 69 * Encryption Mode Unicast: offset: 2 length: 1 70 * 0 - Open 71 * 1 - WEP40 72 * 2 - WEP104 73 * 3 - TKIP 74 * 4 - AES 75 * 76 * Encryption Mode Multicast: offset: 3 length: 1 77 * 0 - Open 78 * 1 - WEP40 79 * 2 - WEP104 80 * 3 - TKIP 81 * 4 - AES 82 * 83 * ENC_MODE_SMS4: offset: 4 length:1 84 * 85 * PMK ID Match: offset: 5 length: 1 86 * 0 - No Match 87 * 1 - Match 88 * 89 * BSSID[0]: offset: 6 length: 1 90 * BSSID[1]: offset: 7 length: 1 91 * BSSID[2]: offset: 8 length: 1 92 * BSSID[3]: offset: 9 length: 1 93 * BSSID[4]: offset: 10 length: 1 94 * BSSID[5]: offset: 11 length: 1 95 * 96 * Key ID: offset: 12 length: 1 97 * Status: offset: 13 length: 1 98 * 0 - Success 99 * 1 - Failure 100 * 101 * Supported Feature: wlan security 102 * 103 * </diag_event> 104 */ 105 106 EVENT_WLAN_SECURITY = 0x675, /* 13 byte payload */ 107 108 /* 109 * <diag_event> 110 * EVENT_WLAN_STATUS 111 * @ eventId: Event id 112 * @ ssid: SSID 113 * @ bssType: BSS Type 114 * @ rssi: RSSI 115 * @ channel: Channel 116 * @ qosCapability: QoS Capability 117 * @ authmode: Auth Mode 118 * @ encryptionType: Encryption Type 119 * @ reason: Reason 120 * @ reasonDisconnect: Reason Disconnect 121 * 122 * This event is used to send wlan status 123 * Values for parameters are defined below: 124 * Event ID: offset: 0 length: 1 125 * 0 - Connect 126 * 1 - Disconnect 127 * 128 * SSID: offset: 1 length: 32 129 * BSS Type: offset: 33 + SSID length, length: 1 130 * 0 - None 131 * 1 - BSS_TYPE_INFRASTRUCTURE 132 * 2 - BSS_TYPE_INFRA_AP 133 * 3 - BSS_TYPE_IBSS 134 * 4 - BSS_TYPE_START_IBSS 135 * 5 - BSS_TYPE_NDI 136 * 6 - BSS_TYPE_ANY 137 * 138 * RSSI: offset: 34 length: 1 139 * Channel: offset: 35 length: 1 140 * QoS Capability: offset: 36 length: 1 141 * Auth Mode: offset: 37 length: 1 142 * 0 - Open 143 * 1 - Shared 144 * 2 - WPA EAP 145 * 3 - WPA PSK 146 * 4 - WPA2 EAP 147 * 5 - WPA2 PSK 148 * 6 - WAPI CERT 149 * 7 - WAPI PSK 150 * 151 * Encryption Type: offset: 38 length: 1 152 * 0 - Open 153 * 1 - WEP40 154 * 2 - WEP104 155 * 3 - TKIP 156 * 4 - AES 157 * 158 * ENC_MODE_SMS4: offset: 39 length: 1 159 * 160 * Reason: offset: 40 length: 1 161 * 0 - Unspecified 162 * 1 - User Requested 163 * 2 - Mic Error 164 * 3 - Diassoc 165 * 4 - Deauth 166 * 5 - Handoff 167 * 168 * Reason Disconnect: offset: 41 length: 1 169 * 170 * Supported Feature: wlan status 171 * 172 * </diag_event> 173 */ 174 175 EVENT_WLAN_STATUS, /* 15 byte payload */ 176 177 /* Events 0x677 and 0x678 are not used */ 178 179 /* 180 * <diag_event> 181 * EVENT_WLAN_QOS 182 * @ eventId: event id 183 * @ reasonCode: Reason for event 184 * 185 * This event is used to send quality set services 186 * Values for parameters are defined below: 187 * Event ID: offset: 0 length: 1 188 * 0 - Add TS Req 189 * 1 - Add TS Rsp 190 * 2 - Delts 191 * 192 * Reason Code: offset: 1 length: 1 193 * 0 - Admission Accepted 194 * 1 - Invalid Params 195 * 2 - Reserved 196 * 3 - Refused 197 * 4 - User Requested 198 * 5 - Ind From AP 199 * 200 * Supported Feature: Qos wlan 201 * 202 * </diag_event> 203 */ 204 205 EVENT_WLAN_QOS = 0x679, /* 2 byte payload */ 206 207 /* 208 * <diag_event> 209 * EVENT_WLAN_PE 210 * @bssid: BSSID 211 * @ event_type: Event type 212 * @ sme_state: SME state 213 * @ mlm_state: MLM state 214 * @ status: 0 - Success, 1 - Failure < majority 0 is success > 215 * @reason_code: reason for event report 216 * 217 * This event is used in PE to send different diag events. 218 * Values for parameters are defined below: 219 * 220 * bssid[0]: offset: 0 length: 1 221 * bssid[1]: offset: 1 length: 1 222 * bssid[2]: offset: 2 length: 1 223 * bssid[3]: offset: 3 length: 1 224 * bssid[4]: offset: 4 length: 1 225 * bssid[5]: offset: 5 length: 1 226 * 227 * Event Type: offset: 6 length: 2 228 * 0 - SCAN REQ EVENT 229 * 1 - SCAN ABORT IND EVENT 230 * 2 - SCAN_RSP_EVENT 231 * 3 - JOIN_REQ_EVENT 232 * 4 - JOIN_RSP_EVENT 233 * 5 - SETCONTEXT_REQ_EVENT 234 * 6 - SETCONTEXT_RSP_EVENT 235 * 7 - REASSOC_REQ_EVENT 236 * 8 - REASSOC_RSP_EVENT 237 * 9 - AUTH_REQ_EVENT 238 * 10 - AUTH_RSP_EVENT 239 * 11 - DISASSOC_REQ_EVENT 240 * 12 - DISASSOC_RSP_EVENT 241 * 13 - DISASSOC_IND_EVENT 242 * 14 - DISASSOC_CNF_EVENT 243 * 15 - DEAUTH_REQ_EVENT 244 * 16 - DEAUTH_RSP_EVENT 245 * 17 - DEAUTH_IND_EVENT 246 * 18 - START_BSS_REQ_EVENT 247 * 19 - START_BSS_RSP_EVENT 248 * 20 - AUTH_IND_EVENT 249 * 21 - ASSOC_IND_EVENT 250 * 22 - ASSOC_CNF_EVENT 251 * 23 - REASSOC_IND_EVENT 252 * 24 - SWITCH_CHL_IND_EVENT 253 * 25 - SWITCH_CHL_RSP_EVENT 254 * 26 - STOP_BSS_REQ_EVENT 255 * 27 - STOP_BSS_RSP_EVENT 256 * 28 - DEAUTH_CNF_EVENT 257 * 29 - ADDTS_REQ_EVENT 258 * 30 - ADDTS_RSP_EVENT 259 * 31 - DELTS_REQ_EVENT 260 * 32 - DELTS_RSP_EVENT 261 * 33 - DELTS_IND_EVENT 262 * 34 - ENTER_BMPS_REQ_EVENT 263 * 35 - ENTER_BMPS_RSP_EVENT 264 * 36 - EXIT_BMPS_REQ_EVENT 265 * 37 - BMPS_RSP_EVENT 266 * 38 - EXIT_BMPS_IND_EVENT 267 * 39 - ENTER_IMPS_REQ_EVENT 268 * 40 - ENTER_IMPS_RSP_EVENT 269 * 41 - EXIT_IMPS_REQ_EVENT 270 * 42 - EXIT_IMPS_RSP_EVENT 271 * 43 - ENTER_UAPSD_REQ_EVENT 272 * 44 - ENTER_UAPSD_RSP_EVENT 273 * 45 - EXIT_UAPSD_REQ_EVENT 274 * 46 - EXIT_UAPSD_RSP_EVENT 275 * 47 - WOWL_ADD_BCAST_PTRN_EVENT 276 * 48 - WOWL_DEL_BCAST_PTRN_EVENT 277 * 49 - ENTER_WOWL_REQ_EVENT 278 * 50 - ENTER_WOWL_RSP_EVENT 279 * 51 - EXIT_WOWL_REQ_EVENT 280 * 52 - EXIT_WOWL_RSP_EVENT 281 * 53 - HAL_ADDBA_REQ_EVENT 282 * 54 - HAL_ADDBA_RSP_EVENT 283 * 55 - HAL_DELBA_IND_EVENT 284 * 56 - HB_FAILURE_TIMEOUT 285 * 57 - PRE_AUTH_REQ_EVENT 286 * 58 - PRE_AUTH_RSP_EVENT 287 * 59 - PREAUTH_DONE 288 * 60 - REASSOCIATING 289 * 61 - CONNECTED 290 * 62 - ASSOC_REQ_EVENT 291 * 63 - AUTH_COMP_EVENT 292 * 64 - ASSOC_COMP_EVENT 293 * 65 - AUTH_START_EVENT 294 * 66 - ASSOC_START_EVENT 295 * 67 - REASSOC_START_EVENT 296 * 68 - ROAM_AUTH_START_EVENT 297 * 69 - ROAM_AUTH_COMP_EVENT 298 * 70 - ROAM_ASSOC_START_EVENT 299 * 71 - ROAM_ASSOC_COMP_EVENT 300 * 72 - SCAN_COMPLETE_EVENT 301 * 73 - SCAN_RESULT_FOUND_EVENT 302 * 74 - ASSOC_TIMEOUT 303 * 75 - AUTH_TIMEOUT 304 * 76 - DEAUTH_FRAME_EVENT 305 * 77 - DISASSOC_FRAME_EVENT 306 * 307 * SME State: offset: 8 length: 2 308 * 0 - OFFLINE 309 * 1 - IDLE 310 * 2 - SUSPEND 311 * 3 - WT SCAN 312 * 4 - WT JOIN 313 * 5 - WT AUTH 314 * 6 - WT ASSOC 315 * 7 - WT REASSOC 316 * 8 - WT REASSOC LINK FAIL 317 * 9 - JOIN FAILURE 318 * 10 - ASSOCIATED 319 * 11 - REASSOCIATED 320 * 12 - LINK EST 321 * 13 - LINK EST WT SCAN 322 * 14 - WT PRE AUTH 323 * 15 - WT DISASSOC 324 * 16 - WT DEAUTH 325 * 17 - WT START BSS 326 * 18 - WT STOP BSS 327 * 19 - NORMAL 328 * 20 - CHANNEL SCAN 329 * 21 - NORMAL CHANNEL SCAN 330 * 331 * MLM State: offset: 10 legth: 2 332 * 0 - MLM OFFLINE 333 * 1 - MLM IDLE 334 * 2 - MLM WT PROBE RESP 335 * 3 - MLM PASSIVE SCAN 336 * 4 - MLM WT JOIN BEACON 337 * 5 - MLM JOINED 338 * 6 - MLM BSS STARTED 339 * 7 - MLM WT AUTH FRAME 340 * 8 - MLM WT AUTH FRAME 341 * 9 - MLM WT AUTH FRAME 342 * 10 - MLM AUTH RSP TIMEOUT 343 * 11 - MLM AUTHENTICATED 344 * 12 - MLM WT ASSOC RSP 345 * 13 - MLM WT REASSOC RSP 346 * 14 - MLM ASSOCIATED 347 * 15 - MLM REASSOCIATED 348 * 16 - MLM LINK ESTABLISHED 349 * 17 - MLM WT ASSOC CNF 350 * 18 - MLM LEARN 351 * 19 - MLM WT ADD BSS RSP 352 * 20 - MLM WT DEL BSS RSP 353 * 21 - MLM WT ADD BSS RSP ASSOC 354 * 22 - MLM WT ADD BSS RSP REASSOC 355 * 23 - MLM WT ADD BSS RSP PREASSOC 356 * 24 - MLM WT ADD STA RSP 357 * 25 - MLM WT DEL STA RSP 358 * 26 - MLM WT ASSOC DEL STA RSP 359 * 27 - MLM WT SET BSS KEY 360 * 28 - MLM WT SET STA KEY 361 * 29 - MLM WT SET STA BCASTKEY 362 * 30 - MLM WT ADDBA RSP 363 * 31 - MLM WT REMOVE BSS KEY 364 * 32 - MLM WT REMOVE STA KEY 365 * 33 - MLM WT SET MIMOPS 366 * 367 * Status: offset: 12 length: 2 368 * Reason Code: offset: 14 length: 2 369 * 370 * Supported Feature: STA 371 * 372 * </diag_event> 373 */ 374 375 EVENT_WLAN_PE, /* 16 byte payload */ 376 377 /* Events between 0x67b to 0x67f are not used */ 378 379 /* 380 * <diag_event> 381 * EVENT_WLAN_BRINGUP_STATUS 382 * @ wlanStatus: Describe wlan status 383 * @ driverVersion: Driver version between 0 to 9 384 * 385 * This event is used in BRINGUP to send wlan status 386 * Values for parameters are defined below: 387 * WLAN Status: offset: 0 length: 2 388 * 0 - WLAN Disabled 389 * 1 - WLAN Enabled 390 * 2 - Reset Fail 391 * 3 - Reset Success 392 * 4 - Device Removed 393 * 5 - Devide Inserted 394 * 6 - Driver Unloaded 395 * 7 - Driver Loaded 396 * 397 * driverVersion: offset: 2 length: 10 398 * 399 * Supported Feature: Bringup 400 * 401 * </diag_event> 402 */ 403 404 EVENT_WLAN_BRINGUP_STATUS = 0x680, /* 12 byte payload */ 405 406 /* 407 * <diag_event> 408 * EVENT_WLAN_POWERSAVE_GENERIC 409 * @ event_subtype: Event subtype 410 * @ full_power_request_reason: Full power request reason 411 * @ pmc_current_state: Pmc current state 412 * @ enable_disable_powersave_mode: Enable disable powersave mode 413 * @ winmob_d_power_state: winmob d power state 414 * @ dtim_period: DTIM period 415 * @ final_listen_intv: Final listen int 416 * @ bmps_auto_timer_duration: BMPS auto timer duration 417 * @ bmps_period: BMPS period 418 * 419 * This event is used in POWERSAVE to send wlan status 420 * Values for parameters are defined below: 421 * Event Sub Type: offset: 0 length: 1 422 * Full Power Req Reason: offset: 1 length: 1 423 * PMC Current State: offset: 2 length: 1 424 * Enable disable powersave mode: 3 length: 1 425 * Winmob D Power State: offset: 4 length: 1 426 * DTIM Period: offset:5 length: 1 427 * Final Listen INTV: offset:6 length: 2 428 * BMPS Auto Timer Duration: 8 length: 2 429 * BMPS Period: offset: 10 length:2 430 * 431 * Supported Feature: POWERSAVE GENERIC 432 * 433 * </diag_event> 434 */ 435 436 EVENT_WLAN_POWERSAVE_GENERIC, /* 16 byte payload */ 437 438 /* 439 * <diag_event> 440 * EVENT_WLAN_POWERSAVE_WOW 441 * @ event_subtype: Event subtype 442 * @ wow_type: Wow type 443 * @ wow_magic_pattern: It will use pattern from 0 to 5 444 * @ wow_del_ptrn_id: Wow delete pattern id 445 * @ wow_wakeup_cause: Wow wakeup cause 446 * @ wow_wakeup_cause_pbm_ptrn_id: Wow wakeup cause pbm pattern id 447 * 448 * This event is used in POWERSAVE WOW to send the wow wakeup pattern, 449 * cause etc 450 * Values for parameters are defined below: 451 * Event Sub Type: offset: 0 length: 1 452 * 0 - Enter 453 * 1 - Exit 454 * 2 - Del Pattern 455 * 3 - Wakup 456 * 457 * WOW Type: offset: 1 length: 1 458 * 0 - None 459 * 1 - Magic Pkt Only 460 * 2 - Byte Match Only 461 * 3 - Magic Pkt Byte Match 462 * 463 * WOW Magic Pattern: offset:2 length: 6 464 * WOW Del Pattern ID: offset:8 length: 1 465 * WOW Wakeup Cause: offset: 9 length: 1 466 * 0 - Magic Pkt Match 467 * 1 - Ptrn Byte Match 468 * WOW Wakeup Cause PBM Ptrn ID: offset: 10 length: 1 469 * 470 * Supported Feature: Powersave wow 471 * 472 * </diag_event> 473 */ 474 475 EVENT_WLAN_POWERSAVE_WOW, /* 11 byte payload */ 476 477 /* Events between 0x683 to 0x690 are not used */ 478 479 /* 480 * <diag_event> 481 * EVENT_WLAN_BTC 482 * @ eventId: Event id 483 * @ btAddr: BT address 484 * @ connHandle: Connection handle 485 * @ connStatus: Connection status 486 * @ linkType: Link Type 487 * @ scoInterval: Synchronous Connection Oriented interval 488 * @ scoWindow: Synchronous Connection Oriented window 489 * @ retransWindow: Retransmisson window 490 * @ mode: Mode 491 * 492 * This event is used in Bluetooth to send the btc status 493 * Values for parameters are defined below: 494 * Event ID: offset: 0 length: 1 495 * 0 - DEVICE SWITCHED ON 496 * 1 - DEVICE SWITCHED OFF 497 * 2 - INQUIRY STARTED 498 * 3 - INQUIRY STOPPED 499 * 4 - PAGE STARTED 500 * 5 - PAGE STOPPED 501 * 6 - CREATE ACL CONNECTION 502 * 7 - ACL CONNECTION COMPLETE 503 * 8 - CREATE SYNC CONNECTION 504 * 9 - SYNC CONNECTION COMPLETE 505 * 10 - SYNC CONNECTION UPDATED 506 * 11 - DISCONNECTION COMPLETE 507 * 12 - MODE CHANGED 508 * 13 - A2DP STREAM START 509 * 14 - A2DP STREAM STOP 510 * 511 * BT Addr[0]: offset: 1 length: 1 512 * BT Addr[1]: offset: 2 length: 1 513 * BT Addr[2]: offset: 3 length: 1 514 * BT Addr[3]: offset: 4 length: 1 515 * BT Addr[4]: offset: 5 length: 1 516 * BT Addr[5]: offset: 6 length: 1 517 * 518 * Conn Handle: offset: 7 length: 2 519 * 65535 - Invalid 520 * 521 * Conn Status: offset:9 length: 1 522 * 0 - Fail 523 * 1 - success 524 * 525 * Link Type: offset: 10 length: 1 526 * 0 - SCO 527 * 1 - ACL 528 * 2 - ESCO 529 * 530 * Sco Interval: offset: 11 length: 1 531 * Sco Window: offset: 12 length: 1 532 * Retrans Window: offset: 13 length: 1 533 * 534 * Mode: offset: 14 length: 1 535 * 0 - Active 536 * 1 - Hold 537 * 2 - Sniff 538 * 3 - Park 539 * 540 * Supported Feature: Bluetooth 541 * 542 * </diag_event> 543 */ 544 545 EVENT_WLAN_BTC = 0x691, /* 15 byte payload */ 546 547 /* 548 * <diag_event> 549 * EVENT_WLAN_EAPOL 550 * @ event_sub_type: 0-Transmitted, 1-Received 551 * @ eapol_packet_type: 0 - EAP Start, 1 - EAPOL Start, 2 - EAPOL 552 * Logoff, 3 - EAPOL Key, 4 - EAPOL Encapsulated Alert 553 * @ eapol_key_info: This field from the driver is in big endian format 554 * @ eapol_rate: Rate at which the frame is received 555 * @ dest_addr: Destination address 556 * * @ src_addr: Source address 557 * 558 * This event is used to send Extensible Authentication Protocol 559 * information 560 * Values for parameters are defined below: 561 * event_sub_type: offset: 0 length: 1 562 * eapol_packet_type: offset: 1 length: 1 563 * eapol_key_info: offset:2 length: 2 564 * eapol_rate: offset: 4 length: 2 565 * dest_addr[0]: offset: 6 length: 1 566 * dest_addr[1]: offset: 7 length: 1 567 * dest_addr[2]: offset: 8 length: 1 568 * dest_addr[3]: offset: 9 length: 1 569 * dest_addr[4]: offset: 10 length: 1 570 * dest_addr[5]: offset: 11 length: 1 571 * src_addr[0]: offset: 12 length: 1 572 * src_addr[1]: offset: 13 length: 1 573 * src_addr[2]: offset: 14 length: 1 574 * src_addr[3]: offset: 15 length: 1 575 * src_addr[4]: offset: 16 length: 1 576 * src_addr[5]: offset: 17 length: 1 577 * 578 * Supported Feature: Extensible Authentication Protocol 579 * 580 * </diag_event> 581 */ 582 583 EVENT_WLAN_EAPOL = 0xA8D,/* 18 bytes payload */ 584 585 /* 586 * <diag_event> 587 * EVENT_WLAN_WAKE_LOCK 588 * @ status: Whether the wakelock is taken/released 589 * @ reason: Reason for taking this wakelock 590 * @ timeout: Timeout value in case of timed wakelocks 591 * @ name_len: Length of the name of the wakelock that will follow 592 * @ name: Name of the wakelock 593 * 594 * This event is used to send wakelock information 595 * Values for parameters are defined below: 596 * status: offset: 0 length: 4 597 * reason: offset: 4 length: 4 598 * timeout: offset: 8 length: 4 599 * name_len: offset: 12 length: 4 600 * 601 * Supported Feature: wlan wakelock 602 * 603 * </diag_event> 604 */ 605 606 EVENT_WLAN_WAKE_LOCK = 0xAA2, /* 96 bytes payload */ 607 EVENT_WLAN_BEACON_RECEIVED = 0xAA6, /* FW event: 2726 */ 608 609 /* 610 * <diag_event> 611 * EVENT_WLAN_LOG_COMPLETE 612 * @ is_fatal: Indicates if the event is fatal or not 613 * @ indicator: Source of the bug report - Framework/Host/Firmware 614 * @ reason_code: Reason for triggering bug report 615 * @ reserved: Reserved field 616 * 617 * This event is used to send log completion related information 618 * Values for parameters are defined below: 619 * is_fatal: offset: 0 length: 4 620 * indicator: offset: 4 length: 4 621 * reason_code: offset: 8 length: 4 622 * reserved: offset: 12 length: 4 623 * 624 * Supported Feature: Logging 625 * 626 * </diag_event> 627 */ 628 629 EVENT_WLAN_LOG_COMPLETE = 0xAA7, /* 16 bytes payload */ 630 631 /* 632 * <diag_event> 633 * EVENT_WLAN_STATUS_V2 634 * @ event_id: Event id 635 * @ ssid: Network SSID 636 * @ bssType: BSS Type 637 * @ rssi: RSSI 638 * @ channel: Channel Numbers 639 * @ qosCapability: quality of service capability 640 * @ authType: Authentication type 641 * @ encryptionType: Encryption type 642 * @ reason: Reason for triggering status 643 * @ reasonDisconnect:Reason for disconnection 644 * 645 * This event is used to send varius wlan status 646 * Values for parameters are defined below: 647 * eventId: offset: 0 length: 1 648 * ssid[0] - ssid[31]: offset: 1 to 32, length: 1 649 * bssType: offset: 33 length: 1 650 * rssi: offset: 34 length: 1 651 * channel: offset: 35 length: 1 652 * qosCapability: offset: 36 length: 1 653 * authType: offset: 37 length: 1 654 * encryptionType: offset: 38 length: 1 655 * reason: offset: 39 length: 1 656 * reasonDisconnect: offset: 40 length: 1 657 * 658 * Supported Feature: Wlan status 659 * 660 * </diag_event> 661 */ 662 663 EVENT_WLAN_STATUS_V2 = 0xAB3, 664 665 /* 666 * <diag_event> 667 * EVENT_WLAN_TDLS_TEARDOWN 668 * @ reason: reason for tear down. 669 * @peer_mac: Peer mac address 670 * 671 * 672 * This event is sent when TDLS tear down happens. 673 * 674 * Supported Feature: TDLS 675 * 676 * </diag_event> 677 */ 678 EVENT_WLAN_TDLS_TEARDOWN = 0xAB5, 679 680 /* 681 * <diag_event> 682 * EVENT_WLAN_TDLS_ENABLE_LINK 683 * @peer_mac: peer mac 684 * @is_off_chan_supported: If peer supports off channel 685 * @is_off_chan_configured: If off channel is configured 686 * @is_off_chan_established: If off channel is established 687 * 688 * 689 * This event is sent when TDLS enable link happens. 690 * 691 * Supported Feature: TDLS 692 * 693 * </diag_event> 694 */ 695 EVENT_WLAN_TDLS_ENABLE_LINK = 0XAB6, 696 697 /* 698 * <diag_event> 699 * EVENT_WLAN_SUSPEND_RESUME 700 * @ state: suspend/resume state 701 * 702 * This event is used to send suspend resume info 703 * Values for parameters are defined below: 704 * suspend: offset: 0 length: 1 705 * 0 - HDD_WLAN_EARLY_SUSPEND 706 * 1 - HDD_WLAN_SUSPEND 707 * 2 - HDD_WLAN_EARLY_RESUME 708 * 3 - HDD_WLAN_RESUME 709 * 710 * Supported Feature: suspend/resume 711 * 712 * </diag_event> 713 */ 714 715 EVENT_WLAN_SUSPEND_RESUME = 0xAB7, 716 717 /* 718 * <diag_event> 719 * EVENT_WLAN_OFFLOAD_REQ 720 * @ offload_type: offload type 721 * @ state: enabled or disabled state 722 * 723 * This event is used to send offload info 724 * Values for parameters are defined below: 725 * offloadType: offset: 0 length: 1 726 * 0 - SIR_IPV4_ARP_REPLY_OFFLOAD 727 * 1 - SIR_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 728 * 2 - SIR_IPV6_NS_OFFLOAD 729 * 730 * enableOrDisable: offset: 1 length: 1 731 * 0 - SIR_OFFLOAD_DISABLE 732 * 1 - SIR_OFFLOAD_ENABLE 733 * 734 * Supported Feature: offload 735 * 736 * </diag_event> 737 */ 738 739 EVENT_WLAN_OFFLOAD_REQ = 0xAB8, 740 741 /* 742 * <diag_event> 743 * EVENT_TDLS_SCAN_BLOCK 744 * @status: rejected status 745 * 746 * 747 * This event is sent when scan is rejected due to TDLS. 748 * 749 * Supported Feature: TDLS 750 * 751 * </diag_event> 752 */ 753 EVENT_TDLS_SCAN_BLOCK = 0xAB9, 754 755 /* 756 * <diag_event> 757 * EVENT_WLAN_TDLS_TX_RX_MGMT 758 * @event_id: event id 759 * @tx_rx: tx or rx 760 * @type: type of frame 761 * @action_sub_type: action frame type 762 * @peer_mac: peer mac 763 * 764 * 765 * This event is sent when TDLS mgmt rx tx happens. 766 * 767 * Supported Feature: TDLS 768 * 769 * </diag_event> 770 */ 771 EVENT_WLAN_TDLS_TX_RX_MGMT = 0xABA, 772 773 /* 774 * <diag_event> 775 * EVENT_WLAN_LOW_RESOURCE_FAILURE 776 * @ WIFI_EVENT_MEMORY_FAILURE: Memory failure 777 * 778 * This event is used to send reason why low resource situation 779 * is observed 780 * 781 * Supported Feature: Memory 782 * 783 * </diag_event> 784 */ 785 786 EVENT_WLAN_LOW_RESOURCE_FAILURE = 0xABB, 787 788 /* 789 * <diag_event> 790 * EVENT_WLAN_POWERSAVE_WOW_STATS 791 * @ wow_ucast_wake_up_count: send unicast packet count 792 * @ wow_bcast_wake_up_count: send broadcast packet count 793 * @ wow_ipv4_mcast_wake_up_coun: send ipv4 multicast packet count 794 * @ wow_ipv6_mcast_wake_up_count: send ipv6 multicast packet count 795 * @ wow_ipv6_mcast_ra_stats: send ipv6 multicast ra packet count 796 * @ wow_ipv6_mcast_ns_stats: send ipv6 multicast ns packet count 797 * @ wow_ipv6_mcast_na_stats: send ipv6 multicast na packet count 798 * @ wow_pno_match_wake_up_count: preferred network offload match count 799 * @ wow_pno_complete_wake_up_count: preferred network offload complete 800 * @ wow_gscan_wake_up_count:Reason: send external scan packet count 801 * @ wow_low_rssi_wake_up_count: send low rssi packet count 802 * @ wow_rssi_breach_wake_up_count: send rssi breach packet count 803 * @ wow_icmpv4_count: Send icmpv4 packet count 804 * @ wow_icmpv6_count: send icmpv6 packet count 805 * @ wow_oem_response_wake_up_count: Send oem response packet count 806 * 807 * This event is used to send wow wakeup stats information 808 * 809 * Supported Feature: Wlan powersave wow 810 * 811 * </diag_event> 812 */ 813 EVENT_WLAN_POWERSAVE_WOW_STATS = 0xB33, 814 815 /* 816 * <diag_event> 817 * EVENT_WLAN_STA_KICKOUT 818 * @reasoncode: Indicates the reasoncode of event 819 * @peer_macaddr: Indicates the peer macaddr 820 * @vdev_id: Indicate unique id for identifying the VDEV 821 * 822 * This event is used to send sta kickout information 823 * Values for parameters are defined below: 824 * Reasoncode: offset: 0 length: 4 825 * Peer macaddr: offset: 4 length: 6 826 * VDEV ID: offset: 10 length 1 827 * 828 * Supported Feature: STA 829 * 830 * </diag_event> 831 */ 832 833 EVENT_WLAN_STA_KICKOUT = 0xB39, 834 835 /* 836 * <diag_event> 837 * EVENT_WLAN_STA_DATASTALL 838 * @reason: Indicates the reason of event 839 * 840 * This event is used to send sta datastall information 841 * Values for parameters are defined below: 842 * Reason: offset:0 length: 4 843 * 844 * Supported Feature: STA 845 * 846 * </diag_event> 847 */ 848 849 EVENT_WLAN_STA_DATASTALL = 0xB3A, 850 851 /* 852 * <diag_event> 853 * EVENT_WLAN_SOFTAP_DATASTALL 854 * @reason: Indicates the reason of event 855 * 856 * This event is used to send SAP datastall information 857 * Values for parameters are defined below: 858 * Reason: offset:0 length: 4 859 * 860 * Supported Feature: SAP 861 * 862 * </diag_event> 863 */ 864 865 EVENT_WLAN_SOFTAP_DATASTALL = 0xB3B, 866 867 /* 868 * <diag_event> 869 * EVENT_WLAN_SSR_REINIT_SUBSYSTEM 870 * @status: Indicates the status of event 871 * 872 * This event is used to send ssr reinit status 873 * Values for parameters are defined below: 874 * Status: offset: 0 length: 4 875 * 876 * Supported Feature: SSR 877 * 878 * </diag_event> 879 */ 880 881 EVENT_WLAN_SSR_REINIT_SUBSYSTEM = 0xB3C, 882 883 /* 884 * <diag_event> 885 * EVENT_WLAN_SSR_SHUTDOWN_SUBSYSTEM 886 * @status: Indicates the status of event 887 * 888 * This event is used to send ssr shutdown status 889 * Values for parameters are defined below: 890 * Status: offset: 0 length: 4 891 * 892 * Supported Feature: SSR 893 * 894 * </diag_event> 895 */ 896 897 EVENT_WLAN_SSR_SHUTDOWN_SUBSYSTEM = 0xB3D, 898 EVENT_WLAN_HOST_MGMT_TX_V2 = 0xC52, 899 EVENT_WLAN_HOST_MGMT_RX_V2 = 0xC53, 900 EVENT_WLAN_CONN_STATS_V2 = 0xC56, 901 902 EVENT_MAX_ID = 0x0FFF 903 } event_id_enum_type; 904 905 #endif /* EVENT_DEFS_H */ 906