aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcmdhd/include/proto/bcmevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcmdhd/include/proto/bcmevent.h')
-rw-r--r--drivers/net/wireless/bcmdhd/include/proto/bcmevent.h312
1 files changed, 312 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/include/proto/bcmevent.h b/drivers/net/wireless/bcmdhd/include/proto/bcmevent.h
new file mode 100644
index 00000000000..30ec848c40a
--- /dev/null
+++ b/drivers/net/wireless/bcmdhd/include/proto/bcmevent.h
@@ -0,0 +1,312 @@
1/*
2 * Broadcom Event protocol definitions
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 *
24 * Dependencies: proto/bcmeth.h
25 *
26 * $Id: bcmevent.h,v 9.64.2.9 2011-02-01 06:24:21 Exp $
27 *
28 */
29
30
31
32
33#ifndef _BCMEVENT_H_
34#define _BCMEVENT_H_
35
36#ifndef _TYPEDEFS_H_
37#include <typedefs.h>
38#endif
39
40
41#include <packed_section_start.h>
42
43#define BCM_EVENT_MSG_VERSION 2
44#define BCM_MSG_IFNAME_MAX 16
45
46
47#define WLC_EVENT_MSG_LINK 0x01
48#define WLC_EVENT_MSG_FLUSHTXQ 0x02
49#define WLC_EVENT_MSG_GROUP 0x04
50#define WLC_EVENT_MSG_UNKBSS 0x08
51#define WLC_EVENT_MSG_UNKIF 0x10
52
53
54
55
56typedef BWL_PRE_PACKED_STRUCT struct
57{
58 uint16 version;
59 uint16 flags;
60 uint32 event_type;
61 uint32 status;
62 uint32 reason;
63 uint32 auth_type;
64 uint32 datalen;
65 struct ether_addr addr;
66 char ifname[BCM_MSG_IFNAME_MAX];
67} BWL_POST_PACKED_STRUCT wl_event_msg_v1_t;
68
69
70typedef BWL_PRE_PACKED_STRUCT struct
71{
72 uint16 version;
73 uint16 flags;
74 uint32 event_type;
75 uint32 status;
76 uint32 reason;
77 uint32 auth_type;
78 uint32 datalen;
79 struct ether_addr addr;
80 char ifname[BCM_MSG_IFNAME_MAX];
81 uint8 ifidx;
82 uint8 bsscfgidx;
83} BWL_POST_PACKED_STRUCT wl_event_msg_t;
84
85
86typedef BWL_PRE_PACKED_STRUCT struct bcm_event {
87 struct ether_header eth;
88 bcmeth_hdr_t bcm_hdr;
89 wl_event_msg_t event;
90
91} BWL_POST_PACKED_STRUCT bcm_event_t;
92
93#define BCM_MSG_LEN (sizeof(bcm_event_t) - sizeof(bcmeth_hdr_t) - sizeof(struct ether_header))
94
95
96#define WLC_E_SET_SSID 0
97#define WLC_E_JOIN 1
98#define WLC_E_START 2
99#define WLC_E_AUTH 3
100#define WLC_E_AUTH_IND 4
101#define WLC_E_DEAUTH 5
102#define WLC_E_DEAUTH_IND 6
103#define WLC_E_ASSOC 7
104#define WLC_E_ASSOC_IND 8
105#define WLC_E_REASSOC 9
106#define WLC_E_REASSOC_IND 10
107#define WLC_E_DISASSOC 11
108#define WLC_E_DISASSOC_IND 12
109#define WLC_E_QUIET_START 13
110#define WLC_E_QUIET_END 14
111#define WLC_E_BEACON_RX 15
112#define WLC_E_LINK 16
113#define WLC_E_MIC_ERROR 17
114#define WLC_E_NDIS_LINK 18
115#define WLC_E_ROAM 19
116#define WLC_E_TXFAIL 20
117#define WLC_E_PMKID_CACHE 21
118#define WLC_E_RETROGRADE_TSF 22
119#define WLC_E_PRUNE 23
120#define WLC_E_AUTOAUTH 24
121#define WLC_E_EAPOL_MSG 25
122#define WLC_E_SCAN_COMPLETE 26
123#define WLC_E_ADDTS_IND 27
124#define WLC_E_DELTS_IND 28
125#define WLC_E_BCNSENT_IND 29
126#define WLC_E_BCNRX_MSG 30
127#define WLC_E_BCNLOST_MSG 31
128#define WLC_E_ROAM_PREP 32
129#define WLC_E_PFN_NET_FOUND 33
130#define WLC_E_PFN_NET_LOST 34
131#define WLC_E_RESET_COMPLETE 35
132#define WLC_E_JOIN_START 36
133#define WLC_E_ROAM_START 37
134#define WLC_E_ASSOC_START 38
135#define WLC_E_IBSS_ASSOC 39
136#define WLC_E_RADIO 40
137#define WLC_E_PSM_WATCHDOG 41
138#define WLC_E_PROBREQ_MSG 44
139#define WLC_E_SCAN_CONFIRM_IND 45
140#define WLC_E_PSK_SUP 46
141#define WLC_E_COUNTRY_CODE_CHANGED 47
142#define WLC_E_EXCEEDED_MEDIUM_TIME 48
143#define WLC_E_ICV_ERROR 49
144#define WLC_E_UNICAST_DECODE_ERROR 50
145#define WLC_E_MULTICAST_DECODE_ERROR 51
146#define WLC_E_TRACE 52
147#define WLC_E_BTA_HCI_EVENT 53
148#define WLC_E_IF 54
149#ifdef WLP2P
150#define WLC_E_P2P_DISC_LISTEN_COMPLETE 55
151#endif
152#define WLC_E_RSSI 56
153#define WLC_E_PFN_SCAN_COMPLETE 57
154#define WLC_E_EXTLOG_MSG 58
155#define WLC_E_ACTION_FRAME 59
156#define WLC_E_ACTION_FRAME_COMPLETE 60
157#define WLC_E_PRE_ASSOC_IND 61
158#define WLC_E_PRE_REASSOC_IND 62
159#define WLC_E_CHANNEL_ADOPTED 63
160#define WLC_E_AP_STARTED 64
161#define WLC_E_DFS_AP_STOP 65
162#define WLC_E_DFS_AP_RESUME 66
163#define WLC_E_WAI_STA_EVENT 67
164#define WLC_E_WAI_MSG 68
165#define WLC_E_ESCAN_RESULT 69
166#define WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE 70
167#if defined(WLP2P)
168#define WLC_E_PROBRESP_MSG 71
169#define WLC_E_P2P_PROBREQ_MSG 72
170#endif
171#define WLC_E_DCS_REQUEST 73
172
173#define WLC_E_FIFO_CREDIT_MAP 74
174
175#define WLC_E_ACTION_FRAME_RX 75
176#define WLC_E_WAKE_EVENT 76
177#define WLC_E_RM_COMPLETE 77
178#define WLC_E_HTSFSYNC 78
179#define WLC_E_OVERLAY_REQ 79
180#define WLC_E_CSA_COMPLETE_IND 80
181#define WLC_E_EXCESS_PM_WAKE_EVENT 81
182#define WLC_E_PFN_SCAN_NONE 82
183#define WLC_E_PFN_SCAN_ALLGONE 83
184#define WLC_E_GTK_PLUMBED 84
185#define WLC_E_LAST 85
186
187
188typedef struct {
189 uint event;
190 const char *name;
191} bcmevent_name_t;
192
193extern const bcmevent_name_t bcmevent_names[];
194extern const int bcmevent_names_size;
195
196
197#define WLC_E_STATUS_SUCCESS 0
198#define WLC_E_STATUS_FAIL 1
199#define WLC_E_STATUS_TIMEOUT 2
200#define WLC_E_STATUS_NO_NETWORKS 3
201#define WLC_E_STATUS_ABORT 4
202#define WLC_E_STATUS_NO_ACK 5
203#define WLC_E_STATUS_UNSOLICITED 6
204#define WLC_E_STATUS_ATTEMPT 7
205#define WLC_E_STATUS_PARTIAL 8
206#define WLC_E_STATUS_NEWSCAN 9
207#define WLC_E_STATUS_NEWASSOC 10
208#define WLC_E_STATUS_11HQUIET 11
209#define WLC_E_STATUS_SUPPRESS 12
210#define WLC_E_STATUS_NOCHANS 13
211#define WLC_E_STATUS_CS_ABORT 15
212#define WLC_E_STATUS_ERROR 16
213
214
215#define WLC_E_REASON_INITIAL_ASSOC 0
216#define WLC_E_REASON_LOW_RSSI 1
217#define WLC_E_REASON_DEAUTH 2
218#define WLC_E_REASON_DISASSOC 3
219#define WLC_E_REASON_BCNS_LOST 4
220#define WLC_E_REASON_MINTXRATE 9
221#define WLC_E_REASON_TXFAIL 10
222
223
224#define WLC_E_REASON_FAST_ROAM_FAILED 5
225#define WLC_E_REASON_DIRECTED_ROAM 6
226#define WLC_E_REASON_TSPEC_REJECTED 7
227#define WLC_E_REASON_BETTER_AP 8
228
229
230#define WLC_E_PRUNE_ENCR_MISMATCH 1
231#define WLC_E_PRUNE_BCAST_BSSID 2
232#define WLC_E_PRUNE_MAC_DENY 3
233#define WLC_E_PRUNE_MAC_NA 4
234#define WLC_E_PRUNE_REG_PASSV 5
235#define WLC_E_PRUNE_SPCT_MGMT 6
236#define WLC_E_PRUNE_RADAR 7
237#define WLC_E_RSN_MISMATCH 8
238#define WLC_E_PRUNE_NO_COMMON_RATES 9
239#define WLC_E_PRUNE_BASIC_RATES 10
240#define WLC_E_PRUNE_CIPHER_NA 12
241#define WLC_E_PRUNE_KNOWN_STA 13
242#define WLC_E_PRUNE_WDS_PEER 15
243#define WLC_E_PRUNE_QBSS_LOAD 16
244#define WLC_E_PRUNE_HOME_AP 17
245
246
247#define WLC_E_SUP_OTHER 0
248#define WLC_E_SUP_DECRYPT_KEY_DATA 1
249#define WLC_E_SUP_BAD_UCAST_WEP128 2
250#define WLC_E_SUP_BAD_UCAST_WEP40 3
251#define WLC_E_SUP_UNSUP_KEY_LEN 4
252#define WLC_E_SUP_PW_KEY_CIPHER 5
253#define WLC_E_SUP_MSG3_TOO_MANY_IE 6
254#define WLC_E_SUP_MSG3_IE_MISMATCH 7
255#define WLC_E_SUP_NO_INSTALL_FLAG 8
256#define WLC_E_SUP_MSG3_NO_GTK 9
257#define WLC_E_SUP_GRP_KEY_CIPHER 10
258#define WLC_E_SUP_GRP_MSG1_NO_GTK 11
259#define WLC_E_SUP_GTK_DECRYPT_FAIL 12
260#define WLC_E_SUP_SEND_FAIL 13
261#define WLC_E_SUP_DEAUTH 14
262#define WLC_E_SUP_WPA_PSK_TMO 15
263
264
265
266typedef BWL_PRE_PACKED_STRUCT struct wl_event_rx_frame_data {
267 uint16 version;
268 uint16 channel;
269 int32 rssi;
270 uint32 mactime;
271 uint32 rate;
272} BWL_POST_PACKED_STRUCT wl_event_rx_frame_data_t;
273
274#define BCM_RX_FRAME_DATA_VERSION 1
275
276
277typedef struct wl_event_data_if {
278 uint8 ifidx;
279 uint8 opcode;
280 uint8 reserved;
281 uint8 bssidx;
282 uint8 role;
283} wl_event_data_if_t;
284
285
286#define WLC_E_IF_ADD 1
287#define WLC_E_IF_DEL 2
288#define WLC_E_IF_CHANGE 3
289
290
291#define WLC_E_IF_ROLE_STA 0
292#define WLC_E_IF_ROLE_AP 1
293#define WLC_E_IF_ROLE_WDS 2
294#define WLC_E_IF_ROLE_P2P_GO 3
295#define WLC_E_IF_ROLE_P2P_CLIENT 4
296#define WLC_E_IF_ROLE_BTA_CREATOR 5
297#define WLC_E_IF_ROLE_BTA_ACCEPTOR 6
298
299
300#define WLC_E_LINK_BCN_LOSS 1
301#define WLC_E_LINK_DISASSOC 2
302#define WLC_E_LINK_ASSOC_REC 3
303#define WLC_E_LINK_BSSCFG_DIS 4
304
305
306#define WLC_E_OVL_DOWNLOAD 0
307#define WLC_E_OVL_UPDATE_IND 1
308
309
310#include <packed_section_end.h>
311
312#endif