diff options
Diffstat (limited to 'drivers/net/wireless/bcmdhd/bcmevent.c')
-rw-r--r-- | drivers/net/wireless/bcmdhd/bcmevent.c | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/bcmevent.c b/drivers/net/wireless/bcmdhd/bcmevent.c new file mode 100644 index 00000000000..24581ddd353 --- /dev/null +++ b/drivers/net/wireless/bcmdhd/bcmevent.c | |||
@@ -0,0 +1,125 @@ | |||
1 | /* | ||
2 | * bcmevent read-only data shared by kernel or app layers | ||
3 | * | ||
4 | * Copyright (C) 1999-2011, 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,v 1.8.2.7 2011-02-01 06:23:39 Exp $ | ||
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 != 85 | ||
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_BTA_HCI_EVENT, "BTA_HCI_EVENT" }, | ||
87 | { WLC_E_IF, "IF" }, | ||
88 | #ifdef WLP2P | ||
89 | { WLC_E_P2P_DISC_LISTEN_COMPLETE, "WLC_E_P2P_DISC_LISTEN_COMPLETE" }, | ||
90 | #endif | ||
91 | { WLC_E_RSSI, "RSSI" }, | ||
92 | { WLC_E_PFN_SCAN_COMPLETE, "SCAN_COMPLETE" }, | ||
93 | { WLC_E_EXTLOG_MSG, "EXTERNAL LOG MESSAGE" }, | ||
94 | #ifdef WIFI_ACT_FRAME | ||
95 | { WLC_E_ACTION_FRAME, "ACTION_FRAME" }, | ||
96 | { WLC_E_ACTION_FRAME_RX, "ACTION_FRAME_RX" }, | ||
97 | { WLC_E_ACTION_FRAME_COMPLETE, "ACTION_FRAME_COMPLETE" }, | ||
98 | #endif | ||
99 | { WLC_E_ESCAN_RESULT, "WLC_E_ESCAN_RESULT" }, | ||
100 | { WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE, "WLC_E_AF_OFF_CHAN_COMPLETE" }, | ||
101 | #ifdef WLP2P | ||
102 | { WLC_E_PROBRESP_MSG, "PROBE_RESP_MSG" }, | ||
103 | { WLC_E_P2P_PROBREQ_MSG, "P2P PROBE_REQ_MSG" }, | ||
104 | #endif | ||
105 | #ifdef PROP_TXSTATUS | ||
106 | { WLC_E_FIFO_CREDIT_MAP, "FIFO_CREDIT_MAP" }, | ||
107 | #endif | ||
108 | { WLC_E_WAKE_EVENT, "WAKE_EVENT" }, | ||
109 | { WLC_E_DCS_REQUEST, "DCS_REQUEST" }, | ||
110 | { WLC_E_RM_COMPLETE, "RM_COMPLETE" }, | ||
111 | #ifdef WLMEDIA_HTSF | ||
112 | { WLC_E_HTSFSYNC, "HTSF_SYNC_EVENT" }, | ||
113 | #endif | ||
114 | { WLC_E_OVERLAY_REQ, "OVERLAY_REQ_EVENT" }, | ||
115 | { WLC_E_CSA_COMPLETE_IND, "WLC_E_CSA_COMPLETE_IND" }, | ||
116 | { WLC_E_EXCESS_PM_WAKE_EVENT, "EXCESS_PM_WAKE_EVENT" }, | ||
117 | { WLC_E_PFN_SCAN_NONE, "PFN_SCAN_NONE" }, | ||
118 | { WLC_E_PFN_SCAN_ALLGONE, "PFN_SCAN_ALLGONE" }, | ||
119 | #ifdef SOFTAP | ||
120 | { WLC_E_GTK_PLUMBED, "GTK_PLUMBED" } | ||
121 | #endif | ||
122 | }; | ||
123 | |||
124 | |||
125 | const int bcmevent_names_size = ARRAYSIZE(bcmevent_names); | ||