1 /* 2 * bcmevent read-only data shared by kernel or app layers 3 * 4 * Copyright (C) 1999-2013, 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 389384 2013-03-06 12:20:17Z $ 24 */ 25 26 #include <typedefs.h> 27 #include <bcmutils.h> 28 #include <proto/ethernet.h> 29 #include <proto/bcmeth.h> 30 #include <proto/bcmevent.h> 31 32 #if WLC_E_LAST != 125 33 #error "You need to add an entry to bcmevent_names[] for the new event" 34 #endif 35 36 const bcmevent_name_t bcmevent_names[] = { 37 { WLC_E_SET_SSID, "SET_SSID" }, 38 { WLC_E_JOIN, "JOIN" }, 39 { WLC_E_START, "START" }, 40 { WLC_E_AUTH, "AUTH" }, 41 { WLC_E_AUTH_IND, "AUTH_IND" }, 42 { WLC_E_DEAUTH, "DEAUTH" }, 43 { WLC_E_DEAUTH_IND, "DEAUTH_IND" }, 44 { WLC_E_ASSOC, "ASSOC" }, 45 { WLC_E_ASSOC_IND, "ASSOC_IND" }, 46 { WLC_E_REASSOC, "REASSOC" }, 47 { WLC_E_REASSOC_IND, "REASSOC_IND" }, 48 { WLC_E_DISASSOC, "DISASSOC" }, 49 { WLC_E_DISASSOC_IND, "DISASSOC_IND" }, 50 { WLC_E_QUIET_START, "START_QUIET" }, 51 { WLC_E_QUIET_END, "END_QUIET" }, 52 { WLC_E_BEACON_RX, "BEACON_RX" }, 53 { WLC_E_LINK, "LINK" }, 54 { WLC_E_MIC_ERROR, "MIC_ERROR" }, 55 { WLC_E_NDIS_LINK, "NDIS_LINK" }, 56 { WLC_E_ROAM, "ROAM" }, 57 { WLC_E_TXFAIL, "TXFAIL" }, 58 { WLC_E_PMKID_CACHE, "PMKID_CACHE" }, 59 { WLC_E_RETROGRADE_TSF, "RETROGRADE_TSF" }, 60 { WLC_E_PRUNE, "PRUNE" }, 61 { WLC_E_AUTOAUTH, "AUTOAUTH" }, 62 { WLC_E_EAPOL_MSG, "EAPOL_MSG" }, 63 { WLC_E_SCAN_COMPLETE, "SCAN_COMPLETE" }, 64 { WLC_E_ADDTS_IND, "ADDTS_IND" }, 65 { WLC_E_DELTS_IND, "DELTS_IND" }, 66 { WLC_E_BCNSENT_IND, "BCNSENT_IND" }, 67 { WLC_E_BCNRX_MSG, "BCNRX_MSG" }, 68 { WLC_E_BCNLOST_MSG, "BCNLOST_IND" }, 69 { WLC_E_ROAM_PREP, "ROAM_PREP" }, 70 { WLC_E_PFN_NET_FOUND, "PFNFOUND_IND" }, 71 { WLC_E_PFN_NET_LOST, "PFNLOST_IND" }, 72 #if defined(IBSS_PEER_DISCOVERY_EVENT) 73 { WLC_E_IBSS_ASSOC, "IBSS_ASSOC" }, 74 #endif /* defined(IBSS_PEER_DISCOVERY_EVENT) */ 75 { WLC_E_RADIO, "RADIO" }, 76 { WLC_E_PSM_WATCHDOG, "PSM_WATCHDOG" }, 77 { WLC_E_PROBREQ_MSG, "PROBE_REQ_MSG" }, 78 { WLC_E_SCAN_CONFIRM_IND, "SCAN_CONFIRM_IND" }, 79 { WLC_E_PSK_SUP, "PSK_SUP" }, 80 { WLC_E_COUNTRY_CODE_CHANGED, "CNTRYCODE_IND" }, 81 { WLC_E_EXCEEDED_MEDIUM_TIME, "EXCEEDED_MEDIUM_TIME" }, 82 { WLC_E_ICV_ERROR, "ICV_ERROR" }, 83 { WLC_E_UNICAST_DECODE_ERROR, "UNICAST_DECODE_ERROR" }, 84 { WLC_E_MULTICAST_DECODE_ERROR, "MULTICAST_DECODE_ERROR" }, 85 { WLC_E_TRACE, "TRACE" }, 86 { WLC_E_IF, "IF" }, 87 #ifdef WLP2P 88 { WLC_E_P2P_DISC_LISTEN_COMPLETE, "WLC_E_P2P_DISC_LISTEN_COMPLETE" }, 89 #endif 90 { WLC_E_RSSI, "RSSI" }, 91 { WLC_E_PFN_SCAN_COMPLETE, "SCAN_COMPLETE" }, 92 { WLC_E_EXTLOG_MSG, "EXTERNAL LOG MESSAGE" }, 93 #ifdef WIFI_ACT_FRAME 94 { WLC_E_ACTION_FRAME, "ACTION_FRAME" }, 95 { WLC_E_ACTION_FRAME_RX, "ACTION_FRAME_RX" }, 96 { WLC_E_ACTION_FRAME_COMPLETE, "ACTION_FRAME_COMPLETE" }, 97 #endif 98 #if 0 && (0>= 0x0620) 99 { WLC_E_PRE_ASSOC_IND, "ASSOC_RECV" }, 100 { WLC_E_PRE_REASSOC_IND, "REASSOC_RECV" }, 101 { WLC_E_CHANNEL_ADOPTED, "CHANNEL_ADOPTED" }, 102 { WLC_E_AP_STARTED, "AP_STARTED" }, 103 { WLC_E_DFS_AP_STOP, "DFS_AP_STOP" }, 104 { WLC_E_DFS_AP_RESUME, "DFS_AP_RESUME" }, 105 { WLC_E_ASSOC_IND_NDIS, "ASSOC_IND_NDIS"}, 106 { WLC_E_REASSOC_IND_NDIS, "REASSOC_IND_NDIS"}, 107 { WLC_E_ACTION_FRAME_RX_NDIS, "WLC_E_ACTION_FRAME_RX_NDIS" }, 108 { WLC_E_AUTH_REQ, "WLC_E_AUTH_REQ" }, 109 { WLC_E_IBSS_COALESCE, "IBSS COALESCE" }, 110 #endif 111 { WLC_E_ESCAN_RESULT, "WLC_E_ESCAN_RESULT" }, 112 { WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE, "WLC_E_AF_OFF_CHAN_COMPLETE" }, 113 #ifdef WLP2P 114 { WLC_E_PROBRESP_MSG, "PROBE_RESP_MSG" }, 115 { WLC_E_P2P_PROBREQ_MSG, "P2P PROBE_REQ_MSG" }, 116 #endif 117 #ifdef PROP_TXSTATUS 118 { WLC_E_FIFO_CREDIT_MAP, "FIFO_CREDIT_MAP" }, 119 #endif 120 { WLC_E_WAKE_EVENT, "WAKE_EVENT" }, 121 { WLC_E_DCS_REQUEST, "DCS_REQUEST" }, 122 { WLC_E_RM_COMPLETE, "RM_COMPLETE" }, 123 #ifdef WLMEDIA_HTSF 124 { WLC_E_HTSFSYNC, "HTSF_SYNC_EVENT" }, 125 #endif 126 { WLC_E_OVERLAY_REQ, "OVERLAY_REQ_EVENT" }, 127 { WLC_E_CSA_COMPLETE_IND, "WLC_E_CSA_COMPLETE_IND"}, 128 { WLC_E_EXCESS_PM_WAKE_EVENT, "EXCESS_PM_WAKE_EVENT" }, 129 { WLC_E_PFN_SCAN_NONE, "PFN_SCAN_NONE" }, 130 { WLC_E_PFN_SCAN_ALLGONE, "PFN_SCAN_ALLGONE" }, 131 #ifdef SOFTAP 132 { WLC_E_GTK_PLUMBED, "GTK_PLUMBED" }, 133 #endif 134 { WLC_E_ASSOC_REQ_IE, "ASSOC_REQ_IE" }, 135 { WLC_E_ASSOC_RESP_IE, "ASSOC_RESP_IE" }, 136 { WLC_E_ACTION_FRAME_RX_NDIS, "WLC_E_ACTION_FRAME_RX_NDIS" }, 137 #ifdef WLTDLS 138 { WLC_E_TDLS_PEER_EVENT, "TDLS_PEER_EVENT" }, 139 #endif /* WLTDLS */ 140 { WLC_E_NATIVE, "NATIVE" }, 141 #ifdef WLPKTDLYSTAT 142 { WLC_E_PKTDELAY_IND, "PKTDELAY_IND" }, 143 #endif /* WLPKTDLYSTAT */ 144 { WLC_E_SERVICE_FOUND, "SERVICE_FOUND" }, 145 { WLC_E_GAS_FRAGMENT_RX, "GAS_FRAGMENT_RX" }, 146 { WLC_E_GAS_COMPLETE, "GAS_COMPLETE" }, 147 { WLC_E_P2PO_ADD_DEVICE, "P2PO_DEV_FOUND" }, 148 { WLC_E_P2PO_DEL_DEVICE, "P2PO_DEV_LOST" }, 149 #ifdef WLWNM 150 { WLC_E_WNM_STA_SLEEP, "WMM_STA_SLEEP" }, 151 #endif /* WLWNM */ 152 #if defined(WL_PROXDETECT) 153 { WLC_E_PROXD, "WLC_E_PROXD" }, 154 #endif 155 { WLC_E_CCA_CHAN_QUAL, "CCA_BASED_CHANNEL_QUALITY" }, 156 }; 157 158 const int bcmevent_names_size = ARRAYSIZE(bcmevent_names); 159