MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / rtmp_def.h
blobdad51b4de197544a764d6889615a79e1ffd9acc5
1 /*************************************************************************
2 * Ralink Tech Inc. *
3 * 4F, No. 2 Technology 5th Rd. *
4 * Science-based Industrial Park *
5 * Hsin-chu, Taiwan, R.O.C. *
6 * *
7 * (c) Copyright 2002, Ralink Technology, Inc. *
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, write to the *
21 * Free Software Foundation, Inc., *
22 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
23 * *
24 *************************************************************************
26 Module Name:
27 rtmp_def.h
29 Abstract:
30 Miniport related definition header
32 Revision History:
33 Who When What
34 -------- ---------- ----------------------------------------------
35 Paul Lin 08-01-2002 created
38 #ifndef __RTMP_DEF_H__
39 #define __RTMP_DEF_H__
42 // Debug information verbosity: lower values indicate higher urgency
44 #define RT_DEBUG_OFF 0
45 #define RT_DEBUG_ERROR 1
46 #define RT_DEBUG_WARN 2
47 #define RT_DEBUG_TRACE 3
48 #define RT_DEBUG_INFO 4
49 #define RT_DEBUG_LOUD 5
51 #define NIC_TAG ((ULONG)'0652')
52 #define NIC_DBG_STRING ("*RT25*")
55 // update the driver version number every time you release a new driver
56 // The high word is the major version. The low word is the minor version.
58 #define NIC_VENDOR_DRIVER_VERSION 0x00010001
61 // NDIS media type, current is ethernet, change if native wireless supported
63 #define NIC_PCI_HDR_LENGTH 0xe2
64 #define NIC_MAX_PACKET_SIZE 2304
65 #define NIC_HEADER_SIZE 14
68 // interface type, we use PCI
72 // buffer size passed in NdisMQueryAdapterResources
73 // We should only need three adapter resources (IO, interrupt and memory),
74 // Some devices get extra resources, so have room for 10 resources
78 // IO space length
82 // Entry number for each DMA descriptor ring
84 #define TX_RING_SIZE 48
85 #define ATIM_RING_SIZE 4
86 #define PRIO_RING_SIZE 16 // 8
87 #define RX_RING_SIZE 32
88 #define BEACON_RING_SIZE 1
89 #define DESCRIPTOR_REQUIRED ((TX_RING_SIZE) + (ATIM_RING_SIZE) + (PRIO_RING_SIZE) + (RX_RING_SIZE) + (BEACON_RING_SIZE))
90 #define OTHER_DESC_REQUIRED ((ATIM_RING_SIZE) + (PRIO_RING_SIZE) + (RX_RING_SIZE) + (BEACON_RING_SIZE))
91 #define MGMT_RING_SIZE 32
92 #define RING_DESCRIPTOR_SIZE 48
93 #define TX_BUFFER_SIZE 2048
94 #define PRIO_BUFFER_SIZE 1024 // 2048
95 #define RX_BUFFER_SIZE 2048
96 #define ATIM_BUFFER_SIZE 512
97 #define BEACON_BUFFER_SIZE 2048
98 #define MAX_FRAME_SIZE 2346 // Maximum 802.11 frame size
99 #define ALLOC_RX_PACKET_POOL (RX_RING_SIZE)
100 #define ALLOC_RX_BUFFER_POOL (ALLOC_RX_PACKET_POOL)
101 #define TX_RING 0xa
102 #define ATIM_RING 0xb
103 #define PRIO_RING 0xc
104 #define RX_RING 0xd
105 #define MAX_TX_PROCESS 4
106 #define MAX_RX_PROCESS 4
107 #define MAX_CLIENT 4
108 #define MAX_MCAST_LIST_SIZE 32
110 // RTMP_ADAPTER flags
111 #define fRTMP_ADAPTER_MAP_REGISTER 0x00000001
112 #define fRTMP_ADAPTER_INTERRUPT_IN_USE 0x00000002
113 #define fRTMP_ADAPTER_HARDWARE_ERROR 0x00000004
114 #define fRTMP_ADAPTER_SEND_PACKET_ERROR 0x00000010
115 #define fRTMP_ADAPTER_RECEIVE_PACKET_ERROR 0x00000020
116 #define fRTMP_ADAPTER_HALT_IN_PROGRESS 0x00000040
117 #define fRTMP_ADAPTER_RESET_IN_PROGRESS 0x00000080
118 #define fRTMP_ADAPTER_REMOVE_IN_PROGRESS 0x00000100
119 #define fRTMP_ADAPTER_TX_RING_ALLOCATED 0x00000200
120 #define fRTMP_ADAPTER_ATIM_RING_ALLOCATED 0x00000400
121 #define fRTMP_ADAPTER_PRIO_RING_ALLOCATED 0x00000800
122 #define fRTMP_ADAPTER_RX_RING_ALLOCATED 0x00001000
123 #define fRTMP_ADAPTER_INTERRUPT_ACTIVE 0x00002000
124 #define fRTMP_ADAPTER_BSS_SCAN_IN_PROGRESS 0x00004000
125 #define fRTMP_ADAPTER_MEDIA_STATE_CHANGE 0x00008000
126 #define fRTMP_ADAPTER_MEDIA_STATE_PENDING 0x00010000
127 #define fRTMP_ADAPTER_RADIO_OFF 0x00020000
128 #define fRTMP_ADAPTER_NIC_NOT_EXIST 0x02000000
130 // Lock bit for accessing different ring buffers
131 #define fRTMP_ADAPTER_TX_RING_BUSY 0x80000000
132 #define fRTMP_ADAPTER_PRIO_RING_BUSY 0x40000000
133 #define fRTMP_ADAPTER_ATIM_RING_BUSY 0x20000000
134 #define fRTMP_ADAPTER_RX_RING_BUSY 0x10000000
136 // Lock bit for accessing different queue
137 #define fRTMP_ADAPTER_TX_QUEUE_BUSY 0x08000000
138 #define fRTMP_ADAPTER_PRIO_QUEUE_BUSY 0x04000000
141 // Error code section
143 // NDIS_ERROR_CODE_ADAPTER_NOT_FOUND
144 #define ERRLOG_READ_PCI_SLOT_FAILED 0x00000101L
145 #define ERRLOG_WRITE_PCI_SLOT_FAILED 0x00000102L
146 #define ERRLOG_VENDOR_DEVICE_NOMATCH 0x00000103L
148 // NDIS_ERROR_CODE_ADAPTER_DISABLED
149 #define ERRLOG_BUS_MASTER_DISABLED 0x00000201L
151 // NDIS_ERROR_CODE_UNSUPPORTED_CONFIGURATION
152 #define ERRLOG_INVALID_SPEED_DUPLEX 0x00000301L
153 #define ERRLOG_SET_SECONDARY_FAILED 0x00000302L
155 // NDIS_ERROR_CODE_OUT_OF_RESOURCES
156 #define ERRLOG_OUT_OF_MEMORY 0x00000401L
157 #define ERRLOG_OUT_OF_SHARED_MEMORY 0x00000402L
158 #define ERRLOG_OUT_OF_MAP_REGISTERS 0x00000403L
159 #define ERRLOG_OUT_OF_BUFFER_POOL 0x00000404L
160 #define ERRLOG_OUT_OF_NDIS_BUFFER 0x00000405L
161 #define ERRLOG_OUT_OF_PACKET_POOL 0x00000406L
162 #define ERRLOG_OUT_OF_NDIS_PACKET 0x00000407L
163 #define ERRLOG_OUT_OF_LOOKASIDE_MEMORY 0x00000408L
165 // NDIS_ERROR_CODE_HARDWARE_FAILURE
166 #define ERRLOG_SELFTEST_FAILED 0x00000501L
167 #define ERRLOG_INITIALIZE_ADAPTER 0x00000502L
168 #define ERRLOG_REMOVE_MINIPORT 0x00000503L
170 // NDIS_ERROR_CODE_RESOURCE_CONFLICT
171 #define ERRLOG_MAP_IO_SPACE 0x00000601L
172 #define ERRLOG_QUERY_ADAPTER_RESOURCES 0x00000602L
173 #define ERRLOG_NO_IO_RESOURCE 0x00000603L
174 #define ERRLOG_NO_INTERRUPT_RESOURCE 0x00000604L
175 #define ERRLOG_NO_MEMORY_RESOURCE 0x00000605L
179 //============================================================
180 // Length definitions
181 #define PEER_KEY_NO 2
182 #define CRC_LEN 4
183 #define MAC_ADDR_LEN 6
184 #define TIMESTAMP_LEN 8
185 #define MAX_LEN_OF_SUPPORTED_RATES 12 // 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54
186 #define MAX_NUM_OF_POWER_LEVEL 8
187 #define MAX_NUM_OF_DOMAIN 8
188 #define MAX_LEN_OF_KEY 32 // 32 octets == 256 bits, Redefine for WPA
189 #define MAX_LEN_OF_CHANNELS 42 // 14 channels @2.4G + 12@UNII + 4 @MMAC + 11 @HiperLAN2 + 1 as NULL termination
190 #define MAX_LEN_OF_PEER_KEY 16
191 #define MAC_HDR_LEN 24
192 #define MAX_LEN_OF_MANUFACTURE_ID 32
193 #define MAX_LEN_OF_PRODUCT_ID 32
194 #define MAX_LEN_OF_MAC_TABLE 32
195 #define MAX_LEN_OF_SSID 32
196 #define CIPHER_TEXT_LEN 128
197 #define HASH_TABLE_SIZE 256
198 #define MAX_LEN_OF_MLME_BUFFER 1024
199 #define MAX_FRAME_LEN 2338
200 #define MAX_VIE_LEN 128 // New for WPA cipher suite variable IE sizes.
201 #define MAX_MLME_HANDLER_MEMORY 20 //each them cantains MAX_LEN_OF_MLME_BUFFER size
202 #define MAX_INI_BUFFER_SIZE 2048
204 #define MAX_TX_POWER_LEVEL 100 /* mW */
205 #define MAX_RSSI_TRIGGER -10 /* dBm */
206 #define MIN_RSSI_TRIGGER -200 /* dBm */
207 #define MAX_FRAG_THRESHOLD 2346 /* byte count */
208 #define MIN_FRAG_THRESHOLD 256 /* byte count */
209 #define MAX_RTS_THRESHOLD 2347 /* byte count */
211 // key related definitions
212 #define SHARE_KEY_NO 4
213 #define MAX_LEN_OF_SHARE_KEY 16
214 #define PAIRWISE_KEY_NO 4
215 #define GROUP_KEY_NO 4
217 // power status related definitions
218 #define PWR_ACTIVE 0
219 #define PWR_SAVE 1
220 #define PWR_UNKNOWN 2
222 // Auth and Assoc mode related definitions
223 #define AUTH_MODE 0x10
224 #define ASSOC_MODE 0x20
226 #define AUTH_MODE_OPEN 0x00
227 #define AUTH_MODE_SHARED 0x01
228 #define AUTH_MODE_AUTO_SWITCH 0x03
229 #define AUTH_MODE_DEAUTH 0x04
230 #define AUTH_MODE_UPLAYER 0x05 // reserved for 802.11i use
232 #define ASSOC_MODE_DISASSOC 0x04
233 #define ASSOC_MODE_ASSOC 0x05
235 // BSS Type definitions
236 #define BSS_INDEP 0 // = Ndis802_11IBSS
237 #define BSS_INFRA 1 // = Ndis802_11Infrastructure
238 #define BSS_ANY 2 // = Ndis802_11AutoUnknown
239 // #define BSS_UNKNOWN 0xff
242 // WEP related definitions
243 // #define WEP_DISABLE 0
244 // #define WEP_ENABLE 1
245 // #define WEP_KEY_ABSENT 2
246 // #define WEP_NOT_SUPPORTED 3
248 // value of FrameDesc.priority
249 // #define PRIO_CONTENTION 0
250 // #define PRIO_CONTENTION_FREE 1
252 // value of auth_algorithm in Authentication frame body
254 // Reason code definitions
255 #define REASON_RESERVED 0
256 #define REASON_UNSPECIFY 1
257 #define REASON_NO_LONGER_VALID 2
258 #define REASON_DEAUTH_STA_LEAVING 3
259 #define REASON_DISASSOC_INACTIVE 4
260 #define REASON_DISASSPC_AP_UNABLE 5
261 #define REASON_CLS2ERR 6
262 #define REASON_CLS3ERR 7
263 #define REASON_DISASSOC_STA_LEAVING 8
264 #define REASON_STA_REQ_ASSOC_NOT_AUTH 9
265 #define REASON_INVALID_IE 13
266 #define REASON_MIC_FAILURE 14
267 #define REASON_4_WAY_HANDSHAKE_TIMEOUT 15
268 #define REASON_GROUP_KEY_UPDATE_TIMEOUT 16
270 // Status code definitions
271 #define MLME_SUCCESS 0
272 #define MLME_UNSPECIFY_FAIL 1
273 #define MLME_CANNOT_SUPPORT_CAP 10
274 #define MLME_REASSOC_DENY_ASSOC_EXIST 11
275 #define MLME_ASSOC_DENY_OUT_SCOPE 12
276 #define MLME_ALG_NOT_SUPPORT 13
277 #define MLME_SEQ_NR_OUT_OF_SEQUENCE 14
278 #define MLME_REJ_CHALLENGE_FAILURE 15
279 #define MLME_REJ_TIMEOUT 16
280 #define MLME_ASSOC_REJ_UNABLE_HANDLE_STA 17
281 #define MLME_ASSOC_REJ_DATA_RATE 18
283 #define MLME_ASSOC_REJ_NO_EXT_RATE 22
284 #define MLME_ASSOC_REJ_NO_EXT_RATE_PBCC 23
285 #define MLME_ASSOC_REJ_NO_CCK_OFDM 24
287 #define MLME_INVALID_FORMAT 0x51
288 #define MLME_FAIL_NO_RESOURCE 0x52
289 #define MLME_STATE_MACHINE_REJECT 0x53
290 #define MLME_MAC_TABLE_FAIL 0x54
292 //IE code
293 #define IE_SSID 0
294 #define IE_SUPP_RATES 1
295 #define IE_FH_PARM 2
296 #define IE_DS_PARM 3
297 #define IE_CF_PARM 4
298 #define IE_TIM 5
299 #define IE_IBSS_PARM 6
300 #define IE_COUNTRY 7 // 802.11d
301 #define IE_802_11D_REQUEST 10 // 802.11d
302 #define IE_CHALLENGE_TEXT 16
303 #define IE_POWER_CONSTRAINT 32 // 802.11h d3.3
304 #define IE_POWER_CAPABILITY 33 // 802.11h d3.3
305 #define IE_TPC_REQUEST 34 // 802.11h d3.3
306 #define IE_TPC_REPORT 35 // 802.11h d3.3
307 #define IE_SUPP_CHANNELS 36 // 802.11h d3.3
308 #define IE_CHANNEL_SWITCH_ANNOUNCEMENT 37 // 802.11h d3.3
309 #define IE_MEASUREMENT_REQUEST 38 // 802.11h d3.3
310 #define IE_MEASUREMENT_REPORT 39 // 802.11h d3.3
311 #define IE_QUIET 40 // 802.11h d3.3
312 #define IE_IBSS_DFS 41 // 802.11h d3.3
313 #define IE_ERP 42 // 802.11g
314 #define IE_EXT_SUPP_RATES 50 // 802.11g
315 #define IE_WPA 221 // WPA
316 #define IE_RSN 48 // 802.11i d3.0
318 #define CNTL_FUNC_SIZE 1
320 // Message type for the MLME state machine
321 // Messages for Associate state machine
322 #define ASSOC_MACHINE_BASE 0
324 #define MT2_MLME_ASSOC_REQ 0
325 #define MT2_MLME_REASSOC_REQ 1
326 #define MT2_MLME_DISASSOC_REQ 2
327 #define MT2_PEER_DISASSOC_REQ 3
328 #define MT2_PEER_ASSOC_REQ 4
329 #define MT2_PEER_ASSOC_RSP 5
330 #define MT2_PEER_REASSOC_REQ 6
331 #define MT2_PEER_REASSOC_RSP 7
332 //#define MT2_CLS3ERR 8
333 #define MT2_DISASSOC_TIMEOUT 8
334 #define MT2_ASSOC_TIMEOUT 9
335 #define MT2_REASSOC_TIMEOUT 10
337 #define MAX_ASSOC_MSG 11
339 // Messages for Authentication state machine
340 #define AUTH_MACHINE_BASE 11
342 #define MT2_MLME_AUTH_REQ 11
343 //#define MT2_MLME_DEAUTH_REQ 12
344 //#define MT2_CLS2ERR 13
345 #define MT2_PEER_AUTH_EVEN 14
346 #define MT2_AUTH_TIMEOUT 15
348 #define MAX_AUTH_MSG 5
350 // Messages for authentication response state machine
351 #define AUTH_RSP_MACHINE_BASE 16
353 #define MT2_AUTH_CHALLENGE_TIMEOUT 16
354 #define MT2_PEER_AUTH_ODD 17
355 #define MT2_PEER_DEAUTH 18
357 #define MAX_AUTH_RSP_MSG 3
359 // Messages for the sync state machine
360 #define SYNC_MACHINE_BASE 19
362 #define MT2_MLME_SCAN_REQ 19
363 #define MT2_MLME_JOIN_REQ 20
364 #define MT2_MLME_START_REQ 21
365 #define MT2_PEER_BEACON 22
366 #define MT2_PEER_PROBE_RSP 23
367 #define MT2_PEER_ATIM 24
368 #define MT2_SCAN_TIMEOUT 25
369 #define MT2_BEACON_TIMEOUT 26
370 #define MT2_ATIM_TIMEOUT 27
371 #define MT2_PEER_PROBE_REQ 28
373 #define MAX_SYNC_MSG 10
375 // MIB access
376 #define MT2_GET_REQ 31
377 #define MT2_SET_REQ 32
378 #define MT2_RESET_REQ 33
380 // Confirm message
381 #define MT2_ASSOC_CONF 34
382 #define MT2_AUTH_CONF 35
383 #define MT2_DEAUTH_CONF 36
384 #define MT2_DISASSOC_CONF 37
385 #define MT2_REASSOC_CONF 38
386 #define MT2_PWR_MGMT_CONF 39
387 #define MT2_JOIN_CONF 40
388 #define MT2_SCAN_CONF 41
389 #define MT2_START_CONF 42
390 #define MT2_GET_CONF 43
391 #define MT2_SET_CONF 44
392 #define MT2_RESET_CONF 45
394 // Indication message
395 #define MT2_DEAUTH_IND 46
396 #define MT2_ASSOC_IND 47
397 #define MT2_DISASSOC_IND 48
398 #define MT2_REASSOC_IND 49
399 #define MT2_AUTH_IND 50
401 #define MT2_SCAN_END_CONF 51 // For scan end
402 #define MT2_MLME_ROAMING_REQ 52
404 /* #define TXSTATUS_SUCCESS 0 */
405 /* #define TXSTATUS_FAIL_RETRY_LIMIT 1 */
406 /* #define TXSTATUS_EXCESSIVE_LENGTH 2 */
407 /* #define TXSTATUS_NON_NULL_SOURCE_ROUTE 3 */
408 /* #define TXSTATUS_UNSUPPORTED_PRIORITY 4 */
409 /* #define TXSTATUS_UNSUPPORTED_SERVICE 5 */
410 /* #define TXSTATUS_UNAVAILABLE_PRIORITY 6 // CF with no PC available; down-grade to contention */
411 /* #define TXSTATUS_UNAVAILABLE_SERVICE 7 // strictly-ordered but STA isn't active */
412 /* #define TXSTATUS_FAIL_LIFE_TIME 8 */
413 /* #define TXSTATUS_FAIL_NOBSS 9 */
414 /* #define TXSTATUS_FAIL_NULL_KEY 10 */
416 // value domain of MacHdr.tyte, which is b3..b2 of the 1st-byte of MAC header
417 #define BTYPE_MGMT 0 // 00
418 #define BTYPE_CNTL 1 // 01
419 #define BTYPE_DATA 2 // 10
421 // value domain of MacHdr.subtype, which is b7..4 of the 1st-byte of MAC header
422 // Management frame
423 #define SUBTYPE_ASSOC_REQ 0
424 #define SUBTYPE_ASSOC_RSP 1
425 #define SUBTYPE_REASSOC_REQ 2
426 #define SUBTYPE_REASSOC_RSP 3
427 #define SUBTYPE_PROBE_REQ 4
428 #define SUBTYPE_PROBE_RSP 5
429 #define SUBTYPE_BEACON 8
430 #define SUBTYPE_ATIM 9
431 #define SUBTYPE_DISASSOC 10
432 #define SUBTYPE_AUTH 11
433 #define SUBTYPE_DEAUTH 12
434 #define SUBTYPE_ACTION 13
436 // Control Frame
437 #define SUBTYPE_BLOCK_ACK_REQ 8
438 #define SUBTYPE_BLOCK_ACK 9
439 #define SUBTYPE_PS_POLL 10
440 #define SUBTYPE_RTS 11 // 1011
441 #define SUBTYPE_CTS 12 // 1100
442 #define SUBTYPE_ACK 13 // 1101
443 #define SUBTYPE_CFEND 14
444 #define SUBTYPE_CFEND_CFACK 15
446 // Data Frame
447 #define SUBTYPE_DATA 0
448 #define SUBTYPE_DATA_CFACK 1
449 #define SUBTYPE_DATA_CFPOLL 2
450 #define SUBTYPE_DATA_CFACK_CFPOLL 3
451 #define SUBTYPE_NULL_FUNC 4
452 #define SUBTYPE_CFACK 5 // 0101
453 #define SUBTYPE_CFPOLL 6
454 #define SUBTYPE_CFACK_CFPOLL 7
455 #define SUBTYPE_QDATA 8
456 #define SUBTYPE_QDATA_CFACK 9
457 #define SUBTYPE_QDATA_CFPOLL 10
458 #define SUBTYPE_QDATA_CFACK_CFPOLL 11
459 #define SUBTYPE_QOS_NULL 12
460 #define SUBTYPE_QOS_CFACK 13
461 #define SUBTYPE_QOS_CFPOLL 14
462 #define SUBTYPE_QOS_CFACK_CFPOLL 15
464 #define ASSOC_STATE_MACHINE 1
465 #define AUTH_STATE_MACHINE 2
466 #define AUTH_RSP_STATE_MACHINE 3
467 #define SYNC_STATE_MACHINE 4
468 #define MLME_CNTL_STATE_MACHINE 5
469 #define WPA_PSK_STATE_MACHINE 6
472 // rtmp_data.c use these definition
474 #define LENGTH_802_11 24
475 #define LENGTH_802_11_AND_H 30
476 #define LENGTH_802_11_CRC_H 34
477 #define LENGTH_802_11_CRC 28
478 #define LENGTH_802_3 14
479 #define LENGTH_802_3_TYPE 2
480 #define LENGTH_802_1_H 8
481 #define LENGTH_EAPOL_H 4
482 #define LENGTH_CRC 4
483 #define MAX_SEQ_NUMBER 0x0fff
485 #define SUCCESS_WITHOUT_RETRY 0
486 #define SUCCESS_WITH_RETRY 1
487 #define FAIL_RETRY_LIMIT 2
488 #define FAIL_INVALID 3
489 #define FAIL_OTHER 4
491 #define RATE_1 0
492 #define RATE_2 1
493 #define RATE_5_5 2
494 #define RATE_11 3
495 #define RATE_6 4 // OFDM
496 #define RATE_9 5 // OFDM
497 #define RATE_12 6 // OFDM
498 #define RATE_18 7 // OFDM
499 #define RATE_24 8 // OFDM
500 #define RATE_36 9 // OFDM
501 #define RATE_48 10 // OFDM
502 #define RATE_54 11 // OFDM
503 #define RATE_72 12
504 #define RATE_100 13
505 #define RATE_FIRST_OFDM_RATE RATE_6
506 #define RATE_AUTO_SWITCH 255 // for PortCfg.FixedTxRate only
508 #define IFS_BACKOFF 0
509 #define IFS_SIFS 1
510 #define IFS_NEW_BACKOFF 2
511 #define IFS_NONE 3
513 #define LONG_RETRY 1
514 #define SHORT_RETRY 0
516 // Country Region definition
517 #define REGION_MIN 0
518 #define REGION_FCC 0 // 1-11
519 #define REGION_IC 1 // 1-11
520 #define REGION_ETSI 2 // 1-13
521 #define REGION_SPAIN 3 // 10-11
522 #define REGION_FRANCE 4 // 10-13
523 #define REGION_MKK 5 // 14
524 #define REGION_MKK1 6 // 1-14
525 #define REGION_ISRAEL 7 // 3-9
526 #define REGION_MAX REGION_ISRAEL
528 #define CIPHER_NONE 0
529 #define CIPHER_WEP64 1
530 #define CIPHER_WEP128 2
531 #define CIPHER_TKIP 3
532 #define CIPHER_AES 4
534 // Stall execution time for ndisdpracquires[inlock in miniportReset function
535 #define WAIT_TIME_FOR_SPINLOCK 10 // usec
537 // value domain for pAdapter->PortCfg.RfType
538 #define RFIC_2522 0
539 #define RFIC_2523 1
540 #define RFIC_2524 2
541 #define RFIC_2525 3
542 #define RFIC_2525E 4
543 #define RFIC_5222 16
545 // value domain for pAdapter->PortCfg.LedMode and E2PROM
546 #define LED_MODE_DEFAULT 0
547 #define LED_MODE_TXRX_ACTIVITY 1
548 #define LED_MODE_SINGLE 2 // Single LED mode, driver lid the LED as soon as driver up & enable tx activity right away
549 #define LED_MODE_ASUS 3 // Two LED modes, bit 16 acts as LED_MODE_SINGLE, bit 17 acts as RADIO status.
551 // RC4 init value, used fro WEP & TKIP
552 #define PPPINITFCS32 0xffffffff /* Initial FCS value */
554 // 802.1X controlled port definition
555 #define WPA_802_1X_PORT_SECURED 1
556 #define WPA_802_1X_PORT_NOT_SECURED 2
558 #define PAIRWISE_KEY 1
559 #define GROUP_KEY 2
561 #define MAX_PACKETS_IN_QUEUE 100
563 #ifdef BIG_ENDIAN
564 #define DIR_READ 0
565 #define DIR_WRITE 1
566 #define TYPE_TXD 0
567 #define TYPE_RXD 1
568 #endif
570 #ifdef RALINK_ATE
571 #define ATE_STASTOP 0 // Stop Station
572 #define ATE_STASTART 1 // Start Station
573 #define ATE_TXCONT 2 // Continuous Transmit
574 #define ATE_TXCARR 3 // Transmit Carrier
575 #define ATE_TXFRAME 4 // Transmit Frames
576 #define ATE_RXFRAME 5 // Receive Frames
577 #endif //#ifdef RALINK_ATE
579 #endif // __RTMP_DEF_H__