Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ioctl.h
Go to the documentation of this file.
1 /*
2  * Marvell Wireless LAN device driver: ioctl data structures & APIs
3  *
4  * Copyright (C) 2011, Marvell International Ltd.
5  *
6  * This software file (the "File") is distributed by Marvell International
7  * Ltd. under the terms of the GNU General Public License Version 2, June 1991
8  * (the "License"). You may use, redistribute and/or modify this File in
9  * accordance with the terms and conditions of the License, a copy of which
10  * is available by writing to the Free Software Foundation, Inc.,
11  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
12  * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
13  *
14  * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
15  * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
16  * ARE EXPRESSLY DISCLAIMED. The License provides additional details about
17  * this warranty disclaimer.
18  */
19 
20 #ifndef _MWIFIEX_IOCTL_H_
21 #define _MWIFIEX_IOCTL_H_
22 
23 #include <net/mac80211.h>
24 #include <net/lib80211.h>
25 
26 enum {
30 };
31 
35 };
36 
37 #define MWIFIEX_PROMISC_MODE 1
38 #define MWIFIEX_MULTICAST_MODE 2
39 #define MWIFIEX_ALL_MULTI_MODE 4
40 #define MWIFIEX_MAX_MULTICAST_LIST_SIZE 32
41 
46 };
47 
51 };
52 
56 };
57 
58 enum {
59  BAND_B = 1,
60  BAND_G = 2,
61  BAND_A = 4,
62  BAND_GN = 8,
63  BAND_AN = 16,
64 };
65 
66 #define MWIFIEX_WPA_PASSHPHRASE_LEN 64
67 struct wpa_param {
73 };
74 
75 struct wep_key {
80 };
81 
82 #define KEY_MGMT_ON_HOST 0x03
83 #define MWIFIEX_AUTH_MODE_AUTO 0xFF
84 #define BAND_CONFIG_BG 0x00
85 #define BAND_CONFIG_A 0x01
86 #define MWIFIEX_SUPPORTED_RATES 14
87 #define MWIFIEX_SUPPORTED_RATES_EXT 32
88 
110 };
111 
112 enum {
117 };
118 
133 };
134 
135 #define MWIFIEX_MAX_VER_STR_LEN 128
136 
140 };
141 
151  signed int bcn_nf_last;
156 };
157 
158 #define MAX_NUM_TID 8
159 
160 #define MAX_RX_WINSIZE 64
161 
168 };
169 
173 };
174 
175 #define DBG_CMD_NUM 5
176 
220 };
221 
222 #define MWIFIEX_KEY_INDEX_UNICAST 0x40000000
223 #define PN_LEN 16
224 
232  u8 pn[PN_LEN]; /* packet number */
234 };
235 
239 };
240 
243  /* Bit0: non-unicast data
244  * Bit1: unicast data
245  * Bit2: mac events
246  * Bit3: magic packet
247  */
251 };
252 
253 #define DEEP_SLEEP_ON 1
254 #define DEEP_SLEEP_OFF 0
255 #define DEEP_SLEEP_IDLE_TIME 100
256 #define PS_MODE_AUTO 1
257 
261 };
262 
264  union {
269  } param;
270 };
271 
275 };
276 
280 };
281 
285 };
286 
287 #define MWIFIEX_NUM_OF_CMD_BUFFER 20
288 #define MWIFIEX_SIZE_OF_CMD_BUFFER 2048
289 
290 enum {
293 };
294 
295 enum {
301 };
302 
307 };
308 
309 #define MAX_EEPROM_DATA 256
310 
315 };
316 
317 #define IEEE_MAX_IE_SIZE 256
318 
319 #define MWIFIEX_IE_HDR_SIZE (sizeof(struct mwifiex_ie) - IEEE_MAX_IE_SIZE)
320 
325 };
326 
330 };
331 
332 #define BITMASK_BCN_RSSI_LOW BIT(0)
333 #define BITMASK_BCN_RSSI_HIGH BIT(4)
334 
339 };
340 
344 };
345 
351 };
352 
353 #define MWIFIEX_MAX_VSIE_LEN (256)
354 #define MWIFIEX_MAX_VSIE_NUM (8)
355 #define MWIFIEX_VSIE_MASK_CLEAR 0x00
356 #define MWIFIEX_VSIE_MASK_SCAN 0x01
357 #define MWIFIEX_VSIE_MASK_ASSOC 0x02
358 #define MWIFIEX_VSIE_MASK_ADHOC 0x04
359 
360 enum {
363 };
364 
365 #endif /* !_MWIFIEX_IOCTL_H_ */