parallel port support, found via google. tested by fenrir
[openwrt.git] / package / openwrt / include / wlioctl.h
1 /*
2 * Custom OID/ioctl definitions for
3 * Broadcom 802.11abg Networking Device Driver
4 *
5 * Definitions subject to change without notice.
6 *
7 * Copyright 2004, Broadcom Corporation
8 * All Rights Reserved.
9 *
10 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
11 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
12 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
13 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
14 *
15 * $Id$
16 */
17
18 #ifndef _wlioctl_h_
19 #define _wlioctl_h_
20
21 #include <typedefs.h>
22 #include <proto/ethernet.h>
23 #include <proto/802.11.h>
24
25 #if defined(__GNUC__)
26 #define PACKED __attribute__((packed))
27 #else
28 #define PACKED
29 #endif
30
31 #define WL_NUMRATES 255 /* max # of rates in a rateset */
32
33 typedef struct wl_rateset {
34 uint32 count; /* # rates in this set */
35 uint8 rates[WL_NUMRATES]; /* rates in 500kbps units w/hi bit set if basic */
36 } wl_rateset_t;
37
38 #define WL_CHANSPEC_CHAN_MASK 0x0fff
39 #define WL_CHANSPEC_BAND_MASK 0xf000
40 #define WL_CHANSPEC_BAND_SHIFT 12
41 #define WL_CHANSPEC_BAND_A 0x1000
42 #define WL_CHANSPEC_BAND_B 0x2000
43
44 /*
45 * Per-bss information structure.
46 */
47
48 #define WL_LEGACY_BSS_INFO_VERSION 106 /* an older supported version of wl_bss_info struct */
49 #define WL_BSS_INFO_VERSION 107 /* current version of wl_bss_info struct */
50
51 typedef struct wl_bss_info106 {
52 uint version; /* version field */
53 struct ether_addr BSSID;
54 uint8 SSID_len;
55 uint8 SSID[32];
56 uint8 Privacy; /* 0=No WEP, 1=Use WEP */
57 int16 RSSI; /* receive signal strength (in dBm) */
58 uint16 beacon_period; /* units are Kusec */
59 uint16 atim_window; /* units are Kusec */
60 uint8 channel; /* Channel no. */
61 int8 infra; /* 0=IBSS, 1=infrastructure, 2=unknown */
62 struct {
63 uint count; /* # rates in this set */
64 uint8 rates[12]; /* rates in 500kbps units w/hi bit set if basic */
65 } rateset; /* supported rates */
66 uint8 dtim_period; /* DTIM period */
67 int8 phy_noise; /* noise right after tx (in dBm) */
68 uint16 capability; /* Capability information */
69 struct dot11_bcn_prb *prb; /* probe response frame (ioctl na) */
70 uint16 prb_len; /* probe response frame length (ioctl na) */
71 struct {
72 uint8 supported; /* wpa supported */
73 uint8 multicast; /* multicast cipher */
74 uint8 ucount; /* count of unicast ciphers */
75 uint8 unicast[4]; /* unicast ciphers */
76 uint8 acount; /* count of auth modes */
77 uint8 auth[4]; /* Authentication modes */
78 } wpa;
79 } wl_bss_info106_t;
80
81 typedef struct wl_bss_info {
82 uint32 version; /* version field */
83 uint32 length; /* byte length of data in this record, starting at version and including IEs */
84 struct ether_addr BSSID;
85 uint16 beacon_period; /* units are Kusec */
86 uint16 capability; /* Capability information */
87 uint8 SSID_len;
88 uint8 SSID[32];
89 struct {
90 uint count; /* # rates in this set */
91 uint8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */
92 } rateset; /* supported rates */
93 uint8 channel; /* Channel no. */
94 uint16 atim_window; /* units are Kusec */
95 uint8 dtim_period; /* DTIM period */
96 int16 RSSI; /* receive signal strength (in dBm) */
97 int8 phy_noise; /* noise (in dBm) */
98 uint32 ie_length; /* byte length of Information Elements */
99 /* variable length Information Elements */
100 } wl_bss_info_t;
101
102 typedef struct wlc_ssid {
103 uint32 SSID_len;
104 uchar SSID[32];
105 } wlc_ssid_t;
106
107 typedef struct wl_scan_params {
108 wlc_ssid_t ssid; /* default is {0, ""} */
109 struct ether_addr bssid;/* default is bcast */
110 int8 bss_type; /* default is any, DOT11_BSSTYPE_ANY/INFRASTRUCTURE/INDEPENDENT */
111 int8 scan_type; /* -1 use default, DOT11_SCANTYPE_ACTIVE/PASSIVE */
112 int32 nprobes; /* -1 use default, number of probes per channel */
113 int32 active_time; /* -1 use default, dwell time per channel for active scanning */
114 int32 passive_time; /* -1 use default, dwell time per channel for passive scanning */
115 int32 home_time; /* -1 use default, dwell time for the home channel between channel scans */
116 int32 channel_num; /* 0 use default (all available channels), count of channels in channel_list */
117 uint16 channel_list[1]; /* list of chanspecs */
118 } wl_scan_params_t;
119 /* size of wl_scan_params not including variable length array */
120 #define WL_SCAN_PARAMS_FIXED_SIZE 64
121
122 typedef struct wl_scan_results {
123 uint32 buflen;
124 uint32 version;
125 uint32 count;
126 wl_bss_info_t bss_info[1];
127 } wl_scan_results_t;
128 /* size of wl_scan_results not including variable length array */
129 #define WL_SCAN_RESULTS_FIXED_SIZE 12
130
131 /* uint32 list */
132 typedef struct wl_uint32_list {
133 /* in - # of elements, out - # of entries */
134 uint32 count;
135 /* variable length uint32 list */
136 uint32 element[1];
137 } wl_uint32_list_t;
138
139 #define WLC_CNTRY_BUF_SZ 4 /* Country string is 3 bytes + NULL */
140
141 typedef struct wl_channels_in_country {
142 uint32 buflen;
143 uint32 band;
144 char country_abbrev[WLC_CNTRY_BUF_SZ];
145 uint32 count;
146 uint32 channel[1];
147 } wl_channels_in_country_t;
148
149 typedef struct wl_country_list {
150 uint32 buflen;
151 uint32 band_set;
152 uint32 band;
153 uint32 count;
154 char country_abbrev[1];
155 } wl_country_list_t;
156
157 #define WL_RM_TYPE_BASIC 1
158 #define WL_RM_TYPE_CCA 2
159 #define WL_RM_TYPE_RPI 3
160
161 #define WL_RM_FLAG_PARALLEL (1<<0)
162
163 #define WL_RM_FLAG_LATE (1<<1)
164 #define WL_RM_FLAG_INCAPABLE (1<<2)
165 #define WL_RM_FLAG_REFUSED (1<<3)
166
167 typedef struct wl_rm_req_elt {
168 int8 type;
169 int8 flags;
170 uint16 chanspec;
171 uint32 token; /* token for this measurement */
172 uint32 tsf_h; /* TSF high 32-bits of Measurement start time */
173 uint32 tsf_l; /* TSF low 32-bits */
174 uint32 dur; /* TUs */
175 } wl_rm_req_elt_t;
176
177 typedef struct wl_rm_req {
178 uint32 token; /* overall measurement set token */
179 uint32 count; /* number of measurement reqests */
180 wl_rm_req_elt_t req[1]; /* variable length block of requests */
181 } wl_rm_req_t;
182 #define WL_RM_REQ_FIXED_LEN 8
183
184 typedef struct wl_rm_rep_elt {
185 int8 type;
186 int8 flags;
187 uint16 chanspec;
188 uint32 token; /* token for this measurement */
189 uint32 tsf_h; /* TSF high 32-bits of Measurement start time */
190 uint32 tsf_l; /* TSF low 32-bits */
191 uint32 dur; /* TUs */
192 uint32 len; /* byte length of data block */
193 uint8 data[1]; /* variable length data block */
194 } wl_rm_rep_elt_t;
195 #define WL_RM_REP_ELT_FIXED_LEN 24 /* length excluding data block */
196
197 #define WL_RPI_REP_BIN_NUM 8
198 typedef struct wl_rm_rpi_rep {
199 uint8 rpi[WL_RPI_REP_BIN_NUM];
200 int8 rpi_max[WL_RPI_REP_BIN_NUM];
201 } wl_rm_rpi_rep_t;
202
203 typedef struct wl_rm_rep {
204 uint32 token; /* overall measurement set token */
205 uint32 len; /* length of measurement report block */
206 wl_rm_rep_elt_t rep[1]; /* variable length block of reports */
207 } wl_rm_rep_t;
208 #define WL_RM_REP_FIXED_LEN 8
209
210
211 #if defined(WPAPSK)
212 typedef enum sup_auth_status {
213 WLC_SUP_DISCONNECTED = 0,
214 WLC_SUP_CONNECTING,
215 WLC_SUP_IDREQUIRED,
216 WLC_SUP_AUTHENTICATING,
217 WLC_SUP_AUTHENTICATED,
218 WLC_SUP_KEYXCHANGE,
219 WLC_SUP_KEYED
220 } sup_auth_status_t;
221 #endif /* CCX | WPAPSK */
222
223 /* Enumerate crypto algorithms */
224 #define CRYPTO_ALGO_OFF 0
225 #define CRYPTO_ALGO_WEP1 1
226 #define CRYPTO_ALGO_TKIP 2
227 #define CRYPTO_ALGO_WEP128 3
228 #define CRYPTO_ALGO_AES_CCM 4
229 #define CRYPTO_ALGO_AES_OCB_MSDU 5
230 #define CRYPTO_ALGO_AES_OCB_MPDU 6
231 #define CRYPTO_ALGO_NALG 7
232
233 #define WSEC_GEN_MIC_ERROR 0x0001
234 #define WSEC_GEN_REPLAY 0x0002
235
236 #define WL_SOFT_KEY (1 << 0) /* Indicates this key is using soft encrypt */
237 #define WL_PRIMARY_KEY (1 << 1) /* Indicates this key is the primary (ie tx) key */
238 #define WL_KF_RES_4 (1 << 4) /* Reserved for backward compat */
239 #define WL_KF_RES_5 (1 << 5) /* Reserved for backward compat */
240
241 typedef struct wl_wsec_key {
242 uint32 index; /* key index */
243 uint32 len; /* key length */
244 uint8 data[DOT11_MAX_KEY_SIZE]; /* key data */
245 uint32 pad_1[18];
246 uint32 algo; /* CRYPTO_ALGO_AES_CCM, CRYPTO_ALGO_WEP128, etc */
247 uint32 flags; /* misc flags */
248 uint32 pad_2[2];
249 int pad_3;
250 int iv_initialized; /* has IV been initialized already? */
251 int pad_4;
252 /* Rx IV */
253 struct {
254 uint32 hi; /* upper 32 bits of IV */
255 uint16 lo; /* lower 16 bits of IV */
256 } rxiv;
257 uint32 pad_5[2];
258 struct ether_addr ea; /* per station */
259 } wl_wsec_key_t;
260
261
262 #define WSEC_MIN_PSK_LEN 8
263 #define WSEC_MAX_PSK_LEN 64
264
265 /* Flag for key material needing passhash'ing */
266 #define WSEC_PASSPHRASE (1<<0)
267
268 /* recepticle for WLC_SET_WSEC_PMK parameter */
269 typedef struct {
270 ushort key_len; /* octets in key material */
271 ushort flags; /* key handling qualification */
272 uint8 key[WSEC_MAX_PSK_LEN]; /* PMK material */
273 } wsec_pmk_t;
274
275 /* wireless security bitvec */
276 #define WEP_ENABLED 1
277 #define TKIP_ENABLED 2
278 #define AES_ENABLED 4
279 #define WSEC_SWFLAG 8
280
281 #define WSEC_SW(wsec) ((wsec) & WSEC_SWFLAG)
282 #define WSEC_HW(wsec) (!WSEC_SW(wsec))
283 #define WSEC_WEP_ENABLED(wsec) ((wsec) & WEP_ENABLED)
284 #define WSEC_TKIP_ENABLED(wsec) ((wsec) & TKIP_ENABLED)
285 #define WSEC_AES_ENABLED(wsec) ((wsec) & AES_ENABLED)
286 #define WSEC_ENABLED(wsec) ((wsec) & (WEP_ENABLED | TKIP_ENABLED | AES_ENABLED))
287
288 typedef struct wl_led_info {
289 uint32 index; /* led index */
290 uint32 behavior;
291 bool activehi;
292 } wl_led_info_t;
293
294 /*
295 * definitions for driver messages passed from WL to NAS.
296 */
297 /* Use this to recognize wpa and 802.1x driver messages. */
298 static const uint8 wl_wpa_snap_template[] =
299 { 0xaa, 0xaa, 0x03, 0x00, 0x90, 0x4c };
300
301 #define WL_WPA_MSG_IFNAME_MAX 16
302
303 /* WPA driver message */
304 typedef struct wl_wpa_header {
305 struct ether_header eth;
306 struct dot11_llc_snap_header snap;
307 uint8 version;
308 uint8 type;
309 /* version 2 additions */
310 char ifname[WL_WPA_MSG_IFNAME_MAX];
311 /* version specific data */
312 /* uint8 data[1]; */
313 } wl_wpa_header_t PACKED;
314
315 #define WL_WPA_HEADER_LEN (ETHER_HDR_LEN + DOT11_LLC_SNAP_HDR_LEN + 2 + WL_WPA_MSG_IFNAME_MAX)
316
317 /* WPA driver message ethertype - private between wlc and nas */
318 #define WL_WPA_ETHER_TYPE 0x9999
319
320 /* WPA driver message current version */
321 #define WL_WPA_MSG_VERSION 2
322
323 /* Type field values for the 802.2 driver messages for WPA. */
324 #define WLC_ASSOC_MSG 1
325 #define WLC_DISASSOC_MSG 2
326 #define WLC_PTK_MIC_MSG 3
327 #define WLC_GTK_MIC_MSG 4
328
329 /* 802.1x driver message */
330 typedef struct wl_eapol_header {
331 struct ether_header eth;
332 struct dot11_llc_snap_header snap;
333 uint8 version;
334 uint8 reserved;
335 char ifname[WL_WPA_MSG_IFNAME_MAX];
336 /* version specific data */
337 /* uint8 802_1x_msg[1]; */
338 } wl_eapol_header_t PACKED;
339
340 #define WL_EAPOL_HEADER_LEN (ETHER_HDR_LEN + DOT11_LLC_SNAP_HDR_LEN + 2 + WL_WPA_MSG_IFNAME_MAX)
341
342 /* 802.1x driver message ethertype - private between wlc and nas */
343 #define WL_EAPOL_ETHER_TYPE 0x999A
344
345 /* 802.1x driver message current version */
346 #define WL_EAPOL_MSG_VERSION 1
347
348 /* srom read/write struct passed through ioctl */
349 typedef struct {
350 uint byteoff; /* byte offset */
351 uint nbytes; /* number of bytes */
352 uint16 buf[1];
353 } srom_rw_t;
354
355 /* R_REG and W_REG struct passed through ioctl */
356 typedef struct {
357 uint32 byteoff; /* byte offset of the field in d11regs_t */
358 uint32 val; /* read/write value of the field */
359 uint32 size; /* sizeof the field */
360 } rw_reg_t;
361
362 /* Structure used by GET/SET_ATTEN ioctls */
363 typedef struct {
364 uint16 auto_ctrl; /* 1: Automatic control, 0: overriden */
365 uint16 bb; /* Baseband attenuation */
366 uint16 radio; /* Radio attenuation */
367 uint16 txctl1; /* Radio TX_CTL1 value */
368 } atten_t;
369
370 /* Used to get specific STA parameters */
371 typedef struct {
372 uint32 val;
373 struct ether_addr ea;
374 } scb_val_t;
375
376 /* Event data type */
377 typedef struct {
378 uint msg; /* Message (see below) */
379 struct ether_addr *addr; /* Station address (if applicable) */
380 uint status; /* Status code (see below) */
381 uint reason; /* Reason code (if applicable) */
382 uint auth_type; /* WLC_E_AUTH */
383 bool link; /* WLC_E_LINK */
384 bool group; /* WLC_E_MIC_ERROR */
385 bool flush_txq; /* WLC_E_MIC_ERROR */
386 } wlc_event_t;
387
388 typedef struct {
389 uint16 ver; /* version of this struct */
390 uint16 cap; /* sta's advertized capabilities */
391 uint32 flags; /* flags defined below */
392 uint32 idle; /* time since data pkt rx'd from sta */
393 struct ether_addr ea; /* Station address */
394 wl_rateset_t rateset; /* rateset in use */
395 } sta_info_t;
396
397 #define WL_STA_INFO_LEN 300
398 #define WL_STA_VER 1
399
400 /* flags fields */
401 #define WL_STA_BRCM 0x01
402 #define WL_STA_WME 0x02
403 #define WL_STA_ABCAP 0x04
404 #define WL_STA_AUTHE 0x08
405 #define WL_STA_ASSOC 0x10
406 #define WL_STA_AUTHO 0x20
407
408 /* Event messages */
409 #define WLC_E_SET_SSID 1
410 #define WLC_E_JOIN 2
411 #define WLC_E_START 3
412 #define WLC_E_AUTH 4
413 #define WLC_E_AUTH_IND 5
414 #define WLC_E_DEAUTH 6
415 #define WLC_E_DEAUTH_IND 7
416 #define WLC_E_ASSOC 8
417 #define WLC_E_ASSOC_IND 9
418 #define WLC_E_REASSOC 10
419 #define WLC_E_REASSOC_IND 11
420 #define WLC_E_DISASSOC 12
421 #define WLC_E_DISASSOC_IND 13
422 #define WLC_E_QUIET_START 14 /* 802.11h Quiet period started */
423 #define WLC_E_QUIET_END 15 /* 802.11h Quiet period ended */
424 #define WLC_E_GOT_BEACONS 16
425 #define WLC_E_LINK 17 /* Link indication */
426 #define WLC_E_MIC_ERROR 18 /* TKIP MIC error occurred */
427 #define WLC_E_NDIS_LINK 19 /* NDIS style link indication */
428 #define WLC_E_ROAM 20
429 #define WLC_E_LAST 21
430
431 /* Event status codes */
432 #define WLC_E_STATUS_SUCCESS 0
433 #define WLC_E_STATUS_FAIL 1
434 #define WLC_E_STATUS_TIMEOUT 2
435 #define WLC_E_STATUS_NO_NETWORKS 3
436 #define WLC_E_STATUS_ABORT 4
437
438 typedef struct wlc_event_cb {
439 uint msg; /* Event message or 0 for all */
440 void (*fn)(void *, wlc_event_t *); /* Callback function */
441 void *context; /* Passed to callback function */
442 struct wlc_event_cb *next; /* Next in the chain */
443 } wlc_event_cb_t;
444
445 /*
446 * Country locale determines which channels are available to us.
447 */
448 typedef enum _wlc_locale {
449 WLC_WW = 0, /* Worldwide */
450 WLC_THA, /* Thailand */
451 WLC_ISR, /* Israel */
452 WLC_JDN, /* Jordan */
453 WLC_PRC, /* China */
454 WLC_JPN, /* Japan */
455 WLC_FCC, /* USA */
456 WLC_EUR, /* Europe */
457 WLC_USL, /* US Low Band only */
458 WLC_JPH, /* Japan High Band only */
459 WLC_ALL, /* All the channels in this band */
460 WLC_11D, /* Represents locale recieved by 11d beacons */
461 WLC_LAST_LOCALE,
462 WLC_UNDEFINED_LOCALE = 0xf
463 } wlc_locale_t;
464
465 /* channel encoding */
466 typedef struct channel_info {
467 int hw_channel;
468 int target_channel;
469 int scan_channel;
470 } channel_info_t;
471
472 /* For ioctls that take a list of MAC addresses */
473 struct maclist {
474 uint count; /* number of MAC addresses */
475 struct ether_addr ea[1]; /* variable length array of MAC addresses */
476 };
477
478 /* get pkt count struct passed through ioctl */
479 typedef struct get_pktcnt {
480 uint rx_good_pkt;
481 uint rx_bad_pkt;
482 uint tx_good_pkt;
483 uint tx_bad_pkt;
484 } get_pktcnt_t;
485
486 /* Linux network driver ioctl encoding */
487 typedef struct wl_ioctl {
488 uint cmd; /* common ioctl definition */
489 void *buf; /* pointer to user buffer */
490 uint len; /* length of user buffer */
491 bool set; /* get or set request (optional) */
492 uint used; /* bytes read or written (optional) */
493 uint needed; /* bytes needed (optional) */
494 } wl_ioctl_t;
495
496 /*
497 * Structure for passing hardware and software
498 * revision info up from the driver.
499 */
500 typedef struct wlc_rev_info {
501 uint vendorid; /* PCI vendor id */
502 uint deviceid; /* device id of chip */
503 uint radiorev; /* radio revision */
504 uint chiprev; /* chip revision */
505 uint corerev; /* core revision */
506 uint boardid; /* board identifier (usu. PCI sub-device id) */
507 uint boardvendor; /* board vendor (usu. PCI sub-vendor id) */
508 uint boardrev; /* board revision */
509 uint driverrev; /* driver version */
510 uint ucoderev; /* microcode version */
511 uint bus; /* bus type */
512 uint chipnum; /* chip number */
513 } wlc_rev_info_t;
514
515 /* check this magic number */
516 #define WLC_IOCTL_MAGIC 0x14e46c77
517
518 /* bump this number if you change the ioctl interface */
519 #define WLC_IOCTL_VERSION 1
520
521 /* maximum length buffer required */
522 #define WLC_IOCTL_MAXLEN 8192
523
524 /* common ioctl definitions */
525 #define WLC_GET_MAGIC 0
526 #define WLC_GET_VERSION 1
527 #define WLC_UP 2
528 #define WLC_DOWN 3
529 #define WLC_DUMP 6
530 #define WLC_GET_MSGLEVEL 7
531 #define WLC_SET_MSGLEVEL 8
532 #define WLC_GET_PROMISC 9
533 #define WLC_SET_PROMISC 10
534 #define WLC_GET_RATE 12
535 #define WLC_SET_RATE 13
536 #define WLC_GET_INSTANCE 14
537 #define WLC_GET_FRAG 15
538 #define WLC_SET_FRAG 16
539 #define WLC_GET_RTS 17
540 #define WLC_SET_RTS 18
541 #define WLC_GET_INFRA 19
542 #define WLC_SET_INFRA 20
543 #define WLC_GET_AUTH 21
544 #define WLC_SET_AUTH 22
545 #define WLC_GET_BSSID 23
546 #define WLC_SET_BSSID 24
547 #define WLC_GET_SSID 25
548 #define WLC_SET_SSID 26
549 #define WLC_RESTART 27
550 #define WLC_GET_CHANNEL 29
551 #define WLC_SET_CHANNEL 30
552 #define WLC_GET_SRL 31
553 #define WLC_SET_SRL 32
554 #define WLC_GET_LRL 33
555 #define WLC_SET_LRL 34
556 #define WLC_GET_PLCPHDR 35
557 #define WLC_SET_PLCPHDR 36
558 #define WLC_GET_RADIO 37
559 #define WLC_SET_RADIO 38
560 #define WLC_GET_PHYTYPE 39
561 #define WLC_GET_WEP 42
562 #define WLC_SET_WEP 43
563 #define WLC_GET_KEY 44
564 #define WLC_SET_KEY 45
565 #define WLC_GET_PASSIVE 48 /* added by nbd */
566 #define WLC_SET_PASSIVE 49 /* added by nbd */
567 #define WLC_SCAN 50
568 #define WLC_SCAN_RESULTS 51
569 #define WLC_DISASSOC 52
570 #define WLC_REASSOC 53
571 #define WLC_GET_ROAM_TRIGGER 54
572 #define WLC_SET_ROAM_TRIGGER 55
573 #define WLC_GET_TXANT 61
574 #define WLC_SET_TXANT 62
575 #define WLC_GET_ANTDIV 63
576 #define WLC_SET_ANTDIV 64
577 #define WLC_GET_TXPWR 65
578 #define WLC_SET_TXPWR 66
579 #define WLC_GET_CLOSED 67
580 #define WLC_SET_CLOSED 68
581 #define WLC_GET_MACLIST 69
582 #define WLC_SET_MACLIST 70
583 #define WLC_GET_RATESET 71
584 #define WLC_SET_RATESET 72
585 #define WLC_GET_LOCALE 73
586 #define WLC_SET_LOCALE 74
587 #define WLC_GET_BCNPRD 75
588 #define WLC_SET_BCNPRD 76
589 #define WLC_GET_DTIMPRD 77
590 #define WLC_SET_DTIMPRD 78
591 #define WLC_GET_SROM 79
592 #define WLC_SET_SROM 80
593 #define WLC_GET_WEP_RESTRICT 81
594 #define WLC_SET_WEP_RESTRICT 82
595 #define WLC_GET_COUNTRY 83
596 #define WLC_SET_COUNTRY 84
597 #define WLC_GET_REVINFO 98
598 #define WLC_GET_MACMODE 105
599 #define WLC_SET_MACMODE 106
600 #define WLC_GET_MONITOR 107 /* added by nbd */
601 #define WLC_SET_MONITOR 108 /* added by nbd */
602 #define WLC_GET_GMODE 109
603 #define WLC_SET_GMODE 110
604 #define WLC_GET_CURR_RATESET 114 /* current rateset */
605 #define WLC_GET_SCANSUPPRESS 115
606 #define WLC_SET_SCANSUPPRESS 116
607 #define WLC_GET_AP 117
608 #define WLC_SET_AP 118
609 #define WLC_GET_EAP_RESTRICT 119
610 #define WLC_SET_EAP_RESTRICT 120
611 #define WLC_GET_WDSLIST 123
612 #define WLC_SET_WDSLIST 124
613 #define WLC_GET_RSSI 127
614 #define WLC_GET_WSEC 133
615 #define WLC_SET_WSEC 134
616 #define WLC_GET_BSS_INFO 136
617 #define WLC_GET_LAZYWDS 138
618 #define WLC_SET_LAZYWDS 139
619 #define WLC_GET_BANDLIST 140
620 #define WLC_GET_BAND 141
621 #define WLC_SET_BAND 142
622 #define WLC_GET_SHORTSLOT 144
623 #define WLC_GET_SHORTSLOT_OVERRIDE 145
624 #define WLC_SET_SHORTSLOT_OVERRIDE 146
625 #define WLC_GET_SHORTSLOT_RESTRICT 147
626 #define WLC_SET_SHORTSLOT_RESTRICT 148
627 #define WLC_GET_GMODE_PROTECTION 149
628 #define WLC_GET_GMODE_PROTECTION_OVERRIDE 150
629 #define WLC_SET_GMODE_PROTECTION_OVERRIDE 151
630 #define WLC_UPGRADE 152
631 #define WLC_GET_MRATE 153
632 #define WLC_SET_MRATE 154
633 #define WLC_GET_ASSOCLIST 159
634 #define WLC_GET_CLK 160
635 #define WLC_SET_CLK 161
636 #define WLC_GET_UP 162
637 #define WLC_OUT 163
638 #define WLC_GET_WPA_AUTH 164
639 #define WLC_SET_WPA_AUTH 165
640 #define WLC_GET_GMODE_PROTECTION_CONTROL 178
641 #define WLC_SET_GMODE_PROTECTION_CONTROL 179
642 #define WLC_GET_PHYLIST 180
643 #define WLC_GET_KEY_SEQ 183
644 #define WLC_GET_GMODE_PROTECTION_CTS 198
645 #define WLC_SET_GMODE_PROTECTION_CTS 199
646 #define WLC_GET_PIOMODE 203
647 #define WLC_SET_PIOMODE 204
648 #define WLC_SET_LED 209
649 #define WLC_GET_LED 210
650 #define WLC_GET_CHANNEL_SEL 215
651 #define WLC_START_CHANNEL_SEL 216
652 #define WLC_GET_VALID_CHANNELS 217
653 #define WLC_GET_FAKEFRAG 218
654 #define WLC_SET_FAKEFRAG 219
655 #define WLC_GET_WET 230
656 #define WLC_SET_WET 231
657 #define WLC_GET_KEY_PRIMARY 235
658 #define WLC_SET_KEY_PRIMARY 236
659 #define WLC_WDS_GET_REMOTE_HWADDR 246 /* currently handled in wl_linux.c/wl_vx.c */
660 #define WLC_SET_CS_SCAN_TIMER 248
661 #define WLC_GET_CS_SCAN_TIMER 249
662 #define WLC_CURRENT_PWR 256
663 #define WLC_GET_CHANNELS_IN_COUNTRY 260
664 #define WLC_GET_COUNTRY_LIST 261
665 #define WLC_GET_VAR 262 /* get value of named variable */
666 #define WLC_SET_VAR 263 /* set named variable to value */
667 #define WLC_NVRAM_GET 264
668 #define WLC_NVRAM_SET 265
669 #define WLC_SET_WSEC_PMK 268
670 #define WLC_GET_AUTH_MODE 269
671 #define WLC_SET_AUTH_MODE 270
672 #define WLC_LAST 273 /* do not change - use get_var/set_var */
673
674 /*
675 * Minor kludge alert:
676 * Duplicate a few definitions that irelay requires from epiioctl.h here
677 * so caller doesn't have to include this file and epiioctl.h .
678 * If this grows any more, it would be time to move these irelay-specific
679 * definitions out of the epiioctl.h and into a separate driver common file.
680 */
681 #ifndef EPICTRL_COOKIE
682 #define EPICTRL_COOKIE 0xABADCEDE
683 #endif
684
685 /* vx wlc ioctl's offset */
686 #define CMN_IOCTL_OFF 0x180
687
688 /*
689 * custom OID support
690 *
691 * 0xFF - implementation specific OID
692 * 0xE4 - first byte of Broadcom PCI vendor ID
693 * 0x14 - second byte of Broadcom PCI vendor ID
694 * 0xXX - the custom OID number
695 */
696
697 /* begin 0x1f values beyond the start of the ET driver range. */
698 #define WL_OID_BASE 0xFFE41420
699
700 /* NDIS overrides */
701 #define OID_WL_GETINSTANCE (WL_OID_BASE + WLC_GET_INSTANCE)
702
703 #define WL_DECRYPT_STATUS_SUCCESS 1
704 #define WL_DECRYPT_STATUS_FAILURE 2
705 #define WL_DECRYPT_STATUS_UNKNOWN 3
706
707 /* allows user-mode app to poll the status of USB image upgrade */
708 #define WLC_UPGRADE_SUCCESS 0
709 #define WLC_UPGRADE_PENDING 1
710
711 /* Bit masks for radio disabled status - returned by WL_GET_RADIO */
712 #define WL_RADIO_SW_DISABLE (1<<0)
713 #define WL_RADIO_HW_DISABLE (1<<1)
714
715 /* Override bit for WLC_SET_TXPWR. if set, ignore other level limits */
716 #define WL_TXPWR_OVERRIDE (1<<31)
717
718
719 /* Bus types */
720 #define WL_SB_BUS 0 /* Silicon Backplane */
721 #define WL_PCI_BUS 1 /* PCI target */
722 #define WL_PCMCIA_BUS 2 /* PCMCIA target */
723
724 /* band types */
725 #define WLC_BAND_AUTO 0 /* auto-select */
726 #define WLC_BAND_A 1 /* "a" band (5 Ghz) */
727 #define WLC_BAND_B 2 /* "b" band (2.4 Ghz) */
728
729 /* MAC list modes */
730 #define WLC_MACMODE_DISABLED 0 /* MAC list disabled */
731 #define WLC_MACMODE_DENY 1 /* Deny specified (i.e. allow unspecified) */
732 #define WLC_MACMODE_ALLOW 2 /* Allow specified (i.e. deny unspecified) */
733
734 /*
735 *
736 */
737 #define GMODE_LEGACY_B 0
738 #define GMODE_AUTO 1
739 #define GMODE_ONLY 2
740 #define GMODE_B_DEFERRED 3
741 #define GMODE_PERFORMANCE 4
742 #define GMODE_LRS 5
743 #define GMODE_MAX 6
744
745 /* values for PLCPHdr_override */
746 #define WLC_PLCP_AUTO -1
747 #define WLC_PLCP_SHORT 0
748 #define WLC_PLCP_LONG 1
749
750 /* values for g_protection_override */
751 #define WLC_G_PROTECTION_AUTO -1
752 #define WLC_G_PROTECTION_OFF 0
753 #define WLC_G_PROTECTION_ON 1
754
755 /* values for g_protection_control */
756 #define WLC_G_PROTECTION_CTL_OFF 0
757 #define WLC_G_PROTECTION_CTL_LOCAL 1
758 #define WLC_G_PROTECTION_CTL_OVERLAP 2
759
760 /* Values for PM */
761 #define PM_OFF 0
762 #define PM_MAX 1
763 #define PM_FAST 2
764
765
766
767
768
769 /* 802.11h enforcement levels */
770 #define SPECT_MNGMT_OFF 0 /* 11h disabled */
771 #define SPECT_MNGMT_LOOSE 1 /* Allow scan lists to contain non-11h AP */
772 /* when 11h is enabled */
773 #define SPECT_MNGMT_STRICT 2 /* Prine out non-11h APs from scan list */
774
775
776
777 /* max # of leds supported by GPIO (gpio pin# == led index#) */
778 #define WL_LED_NUMGPIO 16 /* gpio 0-15 */
779
780 /* led per-pin behaviors */
781 #define WL_LED_OFF 0 /* always off */
782 #define WL_LED_ON 1 /* always on */
783 #define WL_LED_ACTIVITY 2 /* activity */
784 #define WL_LED_RADIO 3 /* radio enabled */
785 #define WL_LED_ARADIO 4 /* 5 Ghz radio enabled */
786 #define WL_LED_BRADIO 5 /* 2.4Ghz radio enabled */
787 #define WL_LED_BGMODE 6 /* on if gmode, off if bmode */
788 #define WL_LED_WI1 7
789 #define WL_LED_WI2 8
790 #define WL_LED_WI3 9
791 #define WL_LED_ASSOC 10 /* associated state indicator */
792 #define WL_LED_INACTIVE 11 /* null behavior (clears default behavior) */
793 #define WL_LED_NUMBEHAVIOR 12
794
795 /* led behavior numeric value format */
796 #define WL_LED_BEH_MASK 0x7f /* behavior mask */
797 #define WL_LED_AL_MASK 0x80 /* activelow (polarity) bit */
798
799
800 /* WDS link local endpoint WPA role */
801 #define WL_WDS_WPA_ROLE_AUTH 0 /* authenticator */
802 #define WL_WDS_WPA_ROLE_SUP 1 /* supplicant */
803 #define WL_WDS_WPA_ROLE_AUTO 255 /* auto, based on mac addr value */
804
805 /* afterburner_override */
806 #define ABO_AUTO -1 /* auto - no override */
807 #define ABO_OFF 0 /* force afterburner off */
808 #define ABO_ON 1 /* force afterburner on */
809
810 #undef PACKED
811
812 #endif /* _wlioctl_h_ */
This page took 0.084075 seconds and 5 git commands to generate.