Merge branch 'develop-3.0' of ssh://192.168.1.29/rk/kernel into develop-3.0
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / bcm4319 / include / proto / bcmevent.h
1 /*
2  * Broadcom Event  protocol definitions
3  *
4  * Copyright (C) 1999-2010, 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  *
24  *
25  * Dependencies: proto/bcmeth.h
26  *
27  * $Id: bcmevent.h,v 9.34.4.1.20.16 2009/09/25 23:52:38 Exp $
28  *
29  */
30
31
32
33
34 #ifndef _BCMEVENT_H_
35 #define _BCMEVENT_H_
36
37 #ifndef _TYPEDEFS_H_
38 #include <typedefs.h>
39 #endif
40
41
42 #include <packed_section_start.h>
43
44 #define BCM_EVENT_MSG_VERSION           1       
45 #define BCM_MSG_IFNAME_MAX              16      
46
47
48 #define WLC_EVENT_MSG_LINK              0x01    
49 #define WLC_EVENT_MSG_FLUSHTXQ          0x02    
50 #define WLC_EVENT_MSG_GROUP             0x04    
51
52
53 typedef BWL_PRE_PACKED_STRUCT struct
54 {
55         uint16  version;
56         uint16  flags;                  
57         uint32  event_type;             
58         uint32  status;                 
59         uint32  reason;                 
60         uint32  auth_type;              
61         uint32  datalen;                
62         struct ether_addr       addr;   
63         char    ifname[BCM_MSG_IFNAME_MAX]; 
64 } BWL_POST_PACKED_STRUCT wl_event_msg_t;
65
66
67 typedef BWL_PRE_PACKED_STRUCT struct bcm_event {
68         struct ether_header eth;
69         bcmeth_hdr_t            bcm_hdr;
70         wl_event_msg_t          event;
71         
72 } BWL_POST_PACKED_STRUCT bcm_event_t;
73
74 #define BCM_MSG_LEN     (sizeof(bcm_event_t) - sizeof(bcmeth_hdr_t) - sizeof(struct ether_header))
75
76
77 #define WLC_E_SET_SSID          0       
78 #define WLC_E_JOIN              1       
79 #define WLC_E_START             2       
80 #define WLC_E_AUTH              3       
81 #define WLC_E_AUTH_IND          4       
82 #define WLC_E_DEAUTH            5       
83 #define WLC_E_DEAUTH_IND        6       
84 #define WLC_E_ASSOC             7       
85 #define WLC_E_ASSOC_IND         8       
86 #define WLC_E_REASSOC           9       
87 #define WLC_E_REASSOC_IND       10      
88 #define WLC_E_DISASSOC          11      
89 #define WLC_E_DISASSOC_IND      12      
90 #define WLC_E_QUIET_START       13      
91 #define WLC_E_QUIET_END         14      
92 #define WLC_E_BEACON_RX         15      
93 #define WLC_E_LINK              16      
94 #define WLC_E_MIC_ERROR         17      
95 #define WLC_E_NDIS_LINK         18      
96 #define WLC_E_ROAM              19      
97 #define WLC_E_TXFAIL            20      
98 #define WLC_E_PMKID_CACHE       21      
99 #define WLC_E_RETROGRADE_TSF    22      
100 #define WLC_E_PRUNE             23      
101 #define WLC_E_AUTOAUTH          24      
102 #define WLC_E_EAPOL_MSG         25      
103 #define WLC_E_SCAN_COMPLETE     26      
104 #define WLC_E_ADDTS_IND         27      
105 #define WLC_E_DELTS_IND         28      
106 #define WLC_E_BCNSENT_IND       29      
107 #define WLC_E_BCNRX_MSG         30      
108 #define WLC_E_BCNLOST_MSG       31      
109 #define WLC_E_ROAM_PREP         32      
110 #define WLC_E_PFN_NET_FOUND     33      
111 #define WLC_E_PFN_NET_LOST      34      
112 #define WLC_E_RESET_COMPLETE    35
113 #define WLC_E_JOIN_START        36
114 #define WLC_E_ROAM_START        37
115 #define WLC_E_ASSOC_START       38
116 #define WLC_E_IBSS_ASSOC        39
117 #define WLC_E_RADIO             40
118 #define WLC_E_PSM_WATCHDOG      41      
119 #define WLC_E_PROBREQ_MSG       44      
120 #define WLC_E_SCAN_CONFIRM_IND  45
121 #define WLC_E_PSK_SUP   46      
122 #define WLC_E_COUNTRY_CODE_CHANGED 47
123 #define WLC_E_EXCEEDED_MEDIUM_TIME 48   
124 #define WLC_E_ICV_ERROR         49      
125 #define WLC_E_UNICAST_DECODE_ERROR 50 
126 #define WLC_E_MULTICAST_DECODE_ERROR 51 
127 #define WLC_E_TRACE 52
128 #define WLC_E_IF                54      
129 #define WLC_E_RSSI              56      
130 #define WLC_E_PFN_SCAN_COMPLETE 57      
131 #define WLC_E_ACTION_FRAME      58      
132 #define WLC_E_ACTION_FRAME_COMPLETE 59  
133
134 #define WLC_E_ESCAN_RESULT 69               
135 #define WLC_E_WAKE_EVENT        70      
136 #define WLC_E_LAST              71      
137         
138
139
140
141 #define WLC_E_STATUS_SUCCESS            0       
142 #define WLC_E_STATUS_FAIL               1       
143 #define WLC_E_STATUS_TIMEOUT            2       
144 #define WLC_E_STATUS_NO_NETWORKS        3       
145 #define WLC_E_STATUS_ABORT              4       
146 #define WLC_E_STATUS_NO_ACK             5       
147 #define WLC_E_STATUS_UNSOLICITED        6       
148 #define WLC_E_STATUS_ATTEMPT            7       
149 #define WLC_E_STATUS_PARTIAL            8       
150 #define WLC_E_STATUS_NEWSCAN    9       
151 #define WLC_E_STATUS_NEWASSOC   10      
152 #define WLC_E_STATUS_11HQUIET   11      
153 #define WLC_E_STATUS_SUPPRESS   12      
154 #define WLC_E_STATUS_NOCHANS    13      
155 #define WLC_E_STATUS_CCXFASTRM  14      
156 #define WLC_E_STATUS_CS_ABORT   15      
157
158
159 #define WLC_E_REASON_INITIAL_ASSOC      0       
160 #define WLC_E_REASON_LOW_RSSI           1       
161 #define WLC_E_REASON_DEAUTH             2       
162 #define WLC_E_REASON_DISASSOC           3       
163 #define WLC_E_REASON_BCNS_LOST          4       
164 #define WLC_E_REASON_FAST_ROAM_FAILED   5       
165 #define WLC_E_REASON_DIRECTED_ROAM      6       
166 #define WLC_E_REASON_TSPEC_REJECTED     7       
167 #define WLC_E_REASON_BETTER_AP          8       
168
169
170 #define WLC_E_PRUNE_ENCR_MISMATCH       1       
171 #define WLC_E_PRUNE_BCAST_BSSID         2       
172 #define WLC_E_PRUNE_MAC_DENY            3       
173 #define WLC_E_PRUNE_MAC_NA              4       
174 #define WLC_E_PRUNE_REG_PASSV           5       
175 #define WLC_E_PRUNE_SPCT_MGMT           6       
176 #define WLC_E_PRUNE_RADAR               7       
177 #define WLC_E_RSN_MISMATCH              8       
178 #define WLC_E_PRUNE_NO_COMMON_RATES     9       
179 #define WLC_E_PRUNE_BASIC_RATES         10      
180 #define WLC_E_PRUNE_CIPHER_NA           12      
181 #define WLC_E_PRUNE_KNOWN_STA           13      
182 #define WLC_E_PRUNE_WDS_PEER            15      
183 #define WLC_E_PRUNE_QBSS_LOAD           16      
184 #define WLC_E_PRUNE_HOME_AP             17      
185
186
187 #define WLC_E_SUP_OTHER                         0       
188 #define WLC_E_SUP_DECRYPT_KEY_DATA      1       
189 #define WLC_E_SUP_BAD_UCAST_WEP128      2       
190 #define WLC_E_SUP_BAD_UCAST_WEP40       3       
191 #define WLC_E_SUP_UNSUP_KEY_LEN         4       
192 #define WLC_E_SUP_PW_KEY_CIPHER         5       
193 #define WLC_E_SUP_MSG3_TOO_MANY_IE      6       
194 #define WLC_E_SUP_MSG3_IE_MISMATCH      7       
195 #define WLC_E_SUP_NO_INSTALL_FLAG       8       
196 #define WLC_E_SUP_MSG3_NO_GTK           9       
197 #define WLC_E_SUP_GRP_KEY_CIPHER        10      
198 #define WLC_E_SUP_GRP_MSG1_NO_GTK       11      
199 #define WLC_E_SUP_GTK_DECRYPT_FAIL      12      
200 #define WLC_E_SUP_SEND_FAIL                     13      
201 #define WLC_E_SUP_DEAUTH                        14      
202 #define WLC_E_SUP_WPA_PSK_TMO       15  
203
204
205 #define WLC_E_IF_ADD            1       
206 #define WLC_E_IF_DEL            2       
207
208
209 #include <packed_section_end.h>
210
211 #endif