bcmevent.c 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. * bcmevent read-only data shared by kernel or app layers
  3. *
  4. * Copyright (C) 1999-2014, Broadcom Corporation
  5. *
  6. * Unless you and Broadcom execute a separate written software license
  7. * agreement governing use of this software, this software is licensed to you
  8. * under the terms of the GNU General Public License version 2 (the "GPL"),
  9. * available at http://www.broadcom.com/licenses/GPLv2.php, with the
  10. * following added to such license:
  11. *
  12. * As a special exception, the copyright holders of this software give you
  13. * permission to link this software with independent modules, and to copy and
  14. * distribute the resulting executable under terms of your choice, provided that
  15. * you also meet, for each linked independent module, the terms and conditions of
  16. * the license of that module. An independent module is a module which is not
  17. * derived from this software. The special exception does not apply to any
  18. * modifications of the software.
  19. *
  20. * Notwithstanding the above, under no circumstances may you combine this
  21. * software in any way with any other Broadcom software provided under a license
  22. * other than the GPL, without Broadcom's express prior written consent.
  23. * $Id: bcmevent.c 487871 2014-06-27 07:48:00Z $
  24. */
  25. #include <typedefs.h>
  26. #include <bcmutils.h>
  27. #include <proto/ethernet.h>
  28. #include <proto/bcmeth.h>
  29. #include <proto/bcmevent.h>
  30. /* Use the actual name for event tracing */
  31. #define BCMEVENT_NAME(_event) {(_event), #_event}
  32. const bcmevent_name_t bcmevent_names[] = {
  33. BCMEVENT_NAME(WLC_E_SET_SSID),
  34. BCMEVENT_NAME(WLC_E_JOIN),
  35. BCMEVENT_NAME(WLC_E_START),
  36. BCMEVENT_NAME(WLC_E_AUTH),
  37. BCMEVENT_NAME(WLC_E_AUTH_IND),
  38. BCMEVENT_NAME(WLC_E_DEAUTH),
  39. BCMEVENT_NAME(WLC_E_DEAUTH_IND),
  40. BCMEVENT_NAME(WLC_E_ASSOC),
  41. BCMEVENT_NAME(WLC_E_ASSOC_IND),
  42. BCMEVENT_NAME(WLC_E_REASSOC),
  43. BCMEVENT_NAME(WLC_E_REASSOC_IND),
  44. BCMEVENT_NAME(WLC_E_DISASSOC),
  45. BCMEVENT_NAME(WLC_E_DISASSOC_IND),
  46. BCMEVENT_NAME(WLC_E_QUIET_START),
  47. BCMEVENT_NAME(WLC_E_QUIET_END),
  48. BCMEVENT_NAME(WLC_E_BEACON_RX),
  49. BCMEVENT_NAME(WLC_E_LINK),
  50. BCMEVENT_NAME(WLC_E_MIC_ERROR),
  51. BCMEVENT_NAME(WLC_E_NDIS_LINK),
  52. BCMEVENT_NAME(WLC_E_ROAM),
  53. BCMEVENT_NAME(WLC_E_TXFAIL),
  54. BCMEVENT_NAME(WLC_E_PMKID_CACHE),
  55. BCMEVENT_NAME(WLC_E_RETROGRADE_TSF),
  56. BCMEVENT_NAME(WLC_E_PRUNE),
  57. BCMEVENT_NAME(WLC_E_AUTOAUTH),
  58. BCMEVENT_NAME(WLC_E_EAPOL_MSG),
  59. BCMEVENT_NAME(WLC_E_SCAN_COMPLETE),
  60. BCMEVENT_NAME(WLC_E_ADDTS_IND),
  61. BCMEVENT_NAME(WLC_E_DELTS_IND),
  62. BCMEVENT_NAME(WLC_E_BCNSENT_IND),
  63. BCMEVENT_NAME(WLC_E_BCNRX_MSG),
  64. BCMEVENT_NAME(WLC_E_BCNLOST_MSG),
  65. BCMEVENT_NAME(WLC_E_ROAM_PREP),
  66. BCMEVENT_NAME(WLC_E_PFN_NET_FOUND),
  67. BCMEVENT_NAME(WLC_E_PFN_NET_LOST),
  68. #if defined(IBSS_PEER_DISCOVERY_EVENT)
  69. BCMEVENT_NAME(WLC_E_IBSS_ASSOC),
  70. #endif /* defined(IBSS_PEER_DISCOVERY_EVENT) */
  71. BCMEVENT_NAME(WLC_E_RADIO),
  72. BCMEVENT_NAME(WLC_E_PSM_WATCHDOG),
  73. BCMEVENT_NAME(WLC_E_PROBREQ_MSG),
  74. BCMEVENT_NAME(WLC_E_SCAN_CONFIRM_IND),
  75. BCMEVENT_NAME(WLC_E_PSK_SUP),
  76. BCMEVENT_NAME(WLC_E_COUNTRY_CODE_CHANGED),
  77. BCMEVENT_NAME(WLC_E_EXCEEDED_MEDIUM_TIME),
  78. BCMEVENT_NAME(WLC_E_ICV_ERROR),
  79. BCMEVENT_NAME(WLC_E_UNICAST_DECODE_ERROR),
  80. BCMEVENT_NAME(WLC_E_MULTICAST_DECODE_ERROR),
  81. BCMEVENT_NAME(WLC_E_TRACE),
  82. #ifdef WLBTAMP
  83. BCMEVENT_NAME(WLC_E_BTA_HCI_EVENT),
  84. #endif
  85. BCMEVENT_NAME(WLC_E_IF),
  86. #ifdef WLP2P
  87. BCMEVENT_NAME(WLC_E_P2P_DISC_LISTEN_COMPLETE),
  88. #endif
  89. BCMEVENT_NAME(WLC_E_RSSI),
  90. BCMEVENT_NAME(WLC_E_PFN_SCAN_COMPLETE),
  91. BCMEVENT_NAME(WLC_E_EXTLOG_MSG),
  92. #ifdef WIFI_ACT_FRAME
  93. BCMEVENT_NAME(WLC_E_ACTION_FRAME),
  94. BCMEVENT_NAME(WLC_E_ACTION_FRAME_RX),
  95. BCMEVENT_NAME(WLC_E_ACTION_FRAME_COMPLETE),
  96. #endif
  97. #ifdef BCMWAPI_WAI
  98. BCMEVENT_NAME(WLC_E_WAI_STA_EVENT),
  99. BCMEVENT_NAME(WLC_E_WAI_MSG),
  100. #endif /* BCMWAPI_WAI */
  101. BCMEVENT_NAME(WLC_E_ESCAN_RESULT),
  102. BCMEVENT_NAME(WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE),
  103. #ifdef WLP2P
  104. BCMEVENT_NAME(WLC_E_PROBRESP_MSG),
  105. BCMEVENT_NAME(WLC_E_P2P_PROBREQ_MSG),
  106. #endif
  107. #ifdef PROP_TXSTATUS
  108. BCMEVENT_NAME(WLC_E_FIFO_CREDIT_MAP),
  109. #endif
  110. BCMEVENT_NAME(WLC_E_WAKE_EVENT),
  111. BCMEVENT_NAME(WLC_E_DCS_REQUEST),
  112. BCMEVENT_NAME(WLC_E_RM_COMPLETE),
  113. #ifdef WLMEDIA_HTSF
  114. BCMEVENT_NAME(WLC_E_HTSFSYNC),
  115. #endif
  116. BCMEVENT_NAME(WLC_E_OVERLAY_REQ),
  117. BCMEVENT_NAME(WLC_E_CSA_COMPLETE_IND),
  118. BCMEVENT_NAME(WLC_E_EXCESS_PM_WAKE_EVENT),
  119. BCMEVENT_NAME(WLC_E_PFN_SCAN_NONE),
  120. BCMEVENT_NAME(WLC_E_PFN_SCAN_ALLGONE),
  121. #ifdef SOFTAP
  122. BCMEVENT_NAME(WLC_E_GTK_PLUMBED),
  123. #endif
  124. BCMEVENT_NAME(WLC_E_ASSOC_REQ_IE),
  125. BCMEVENT_NAME(WLC_E_ASSOC_RESP_IE),
  126. BCMEVENT_NAME(WLC_E_ACTION_FRAME_RX_NDIS),
  127. BCMEVENT_NAME(WLC_E_BEACON_FRAME_RX),
  128. #ifdef WLTDLS
  129. BCMEVENT_NAME(WLC_E_TDLS_PEER_EVENT),
  130. #endif /* WLTDLS */
  131. BCMEVENT_NAME(WLC_E_NATIVE),
  132. #ifdef WLPKTDLYSTAT
  133. BCMEVENT_NAME(WLC_E_PKTDELAY_IND),
  134. #endif /* WLPKTDLYSTAT */
  135. BCMEVENT_NAME(WLC_E_SERVICE_FOUND),
  136. BCMEVENT_NAME(WLC_E_GAS_FRAGMENT_RX),
  137. BCMEVENT_NAME(WLC_E_GAS_COMPLETE),
  138. BCMEVENT_NAME(WLC_E_P2PO_ADD_DEVICE),
  139. BCMEVENT_NAME(WLC_E_P2PO_DEL_DEVICE),
  140. #ifdef WLWNM
  141. BCMEVENT_NAME(WLC_E_WNM_STA_SLEEP),
  142. #endif /* WLWNM */
  143. #if defined(WL_PROXDETECT)
  144. BCMEVENT_NAME(WLC_E_PROXD),
  145. #endif
  146. BCMEVENT_NAME(WLC_E_CCA_CHAN_QUAL),
  147. BCMEVENT_NAME(WLC_E_BSSID),
  148. #ifdef PROP_TXSTATUS
  149. BCMEVENT_NAME(WLC_E_BCMC_CREDIT_SUPPORT),
  150. #endif
  151. BCMEVENT_NAME(WLC_E_TXFAIL_THRESH),
  152. #ifdef WLAIBSS
  153. BCMEVENT_NAME(WLC_E_AIBSS_TXFAIL),
  154. #endif /* WLAIBSS */
  155. BCMEVENT_NAME(WLC_E_RMC_EVENT),
  156. };
  157. const int bcmevent_names_size = ARRAYSIZE(bcmevent_names);