aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2860/rtmp_def.h
diff options
context:
space:
mode:
authorJustin P. Mattock <justinmattock@gmail.com>2010-11-08 16:41:46 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-09 19:43:01 -0500
commit6ccb5d7c62845788be9aafef26132333a07708bb (patch)
tree369b3078487b825a00821ea6f358c43f7cf7026e /drivers/staging/rt2860/rtmp_def.h
parent1ac586445db8e46f0007855c5c7161ff55484836 (diff)
staging: Fix typos in rt2860
Here is a patch that fixes some typos, and comments in drivers/staging/rt2860 Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/rtmp_def.h')
-rw-r--r--drivers/staging/rt2860/rtmp_def.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/drivers/staging/rt2860/rtmp_def.h b/drivers/staging/rt2860/rtmp_def.h
index 9c54bacb845..6ac617e7c9b 100644
--- a/drivers/staging/rt2860/rtmp_def.h
+++ b/drivers/staging/rt2860/rtmp_def.h
@@ -31,10 +31,11 @@
31 Miniport related definition header 31 Miniport related definition header
32 32
33 Revision History: 33 Revision History:
34 Who When What 34 Who When What
35 -------- ---------- ---------------------------------------------- 35 -------- ---------- ----------------------------------------------
36 Paul Lin 08-01-2002 created 36 Paul Lin 08-01-2002 created
37 John Chang 08-05-2003 add definition for 11g & other drafts 37 John Chang 08-05-2003 add definition for 11g & other drafts
38 Justin P. Mattock 11/07/2010 Fix some typos
38*/ 39*/
39#ifndef __RTMP_DEF_H__ 40#ifndef __RTMP_DEF_H__
40#define __RTMP_DEF_H__ 41#define __RTMP_DEF_H__
@@ -111,11 +112,11 @@
111 WMM Note: If memory of your system is not much, please reduce the definition; 112 WMM Note: If memory of your system is not much, please reduce the definition;
112 or when you do WMM test, the queue for low priority AC will be full, i.e. 113 or when you do WMM test, the queue for low priority AC will be full, i.e.
113 TX_RING_SIZE + MAX_PACKETS_IN_QUEUE packets for the AC will be buffered in 114 TX_RING_SIZE + MAX_PACKETS_IN_QUEUE packets for the AC will be buffered in
114 WLAN, maybe no any packet buffer can be got in Ethernet driver. 115 WLAN, maybe no packet buffers can get into the Ethernet driver.
115 116
116 Sometimes no packet buffer can be got in Ethernet driver, the system will 117 Sometimes no packet buffer can be get into the Ethernet driver, the system will
117 send flow control packet to the sender to slow down its sending rate. 118 send flow control packet to the sender to slow down its sending rate.
118 So no WMM can be saw in the air. 119 So no WMM can be seen in the air.
119*/ 120*/
120 121
121/* 122/*
@@ -125,7 +126,7 @@
125 And in rt_main_end.c, clConfig.clNum = RX_RING_SIZE * 3; is changed to 126 And in rt_main_end.c, clConfig.clNum = RX_RING_SIZE * 3; is changed to
126 clConfig.clNum = RX_RING_SIZE * 4; 127 clConfig.clNum = RX_RING_SIZE * 4;
127*/ 128*/
128/* TODO: For VxWorks the size is 256. Shall we cahnge the value as 256 for all OS????? */ 129/* TODO: For VxWorks the size is 256. Shall we change the value as 256 for all OS? */
129#define MAX_PACKETS_IN_QUEUE (512) /*(512) // to pass WMM A5-WPAPSK */ 130#define MAX_PACKETS_IN_QUEUE (512) /*(512) // to pass WMM A5-WPAPSK */
130 131
131#define MAX_PACKETS_IN_MCAST_PS_QUEUE 32 132#define MAX_PACKETS_IN_MCAST_PS_QUEUE 32
@@ -171,7 +172,7 @@
171#define fRTMP_ADAPTER_SCAN_2040 0x04000000 172#define fRTMP_ADAPTER_SCAN_2040 0x04000000
172#define fRTMP_ADAPTER_RADIO_MEASUREMENT 0x08000000 173#define fRTMP_ADAPTER_RADIO_MEASUREMENT 0x08000000
173 174
174#define fRTMP_ADAPTER_START_UP 0x10000000 /*Devive already initialized and enabled Tx/Rx. */ 175#define fRTMP_ADAPTER_START_UP 0x10000000 /*Device already initialized and enabled Tx/Rx. */
175#define fRTMP_ADAPTER_MEDIA_STATE_CHANGE 0x20000000 176#define fRTMP_ADAPTER_MEDIA_STATE_CHANGE 0x20000000
176#define fRTMP_ADAPTER_IDLE_RADIO_OFF 0x40000000 177#define fRTMP_ADAPTER_IDLE_RADIO_OFF 0x40000000
177 178
@@ -205,8 +206,8 @@
205#define fRTMP_PS_SET_PCI_CLK_OFF_COMMAND 0x00000002 206#define fRTMP_PS_SET_PCI_CLK_OFF_COMMAND 0x00000002
206/* Indicate driver should disable kick off hardware to send packets from now. */ 207/* Indicate driver should disable kick off hardware to send packets from now. */
207#define fRTMP_PS_DISABLE_TX 0x00000004 208#define fRTMP_PS_DISABLE_TX 0x00000004
208/* Indicate driver should IMMEDIATELY fo to sleep after receiving AP's beacon in which doesn't indicate unicate nor multicast packets for me */ 209/* Indicate driver should IMMEDIATELY go to sleep after receiving AP's beacon in which doesn't indicate unicate nor multicast packets for me */
209/*. This flag is used ONLY in RTMPHandleRxDoneInterrupt routine. */ 210/* This flag is used ONLY in RTMPHandleRxDoneInterrupt routine. */
210#define fRTMP_PS_GO_TO_SLEEP_NOW 0x00000008 211#define fRTMP_PS_GO_TO_SLEEP_NOW 0x00000008
211#define fRTMP_PS_TOGGLE_L1 0x00000010 /* Use Toggle L1 mechanism for rt28xx PCIe */ 212#define fRTMP_PS_TOGGLE_L1 0x00000010 /* Use Toggle L1 mechanism for rt28xx PCIe */
212 213
@@ -303,7 +304,7 @@
303 304
304/* WDS definition */ 305/* WDS definition */
305#define MAX_WDS_ENTRY 4 306#define MAX_WDS_ENTRY 4
306#define WDS_PAIRWISE_KEY_OFFSET 60 /* WDS links uses pairwise key#60 ~ 63 in ASIC pairwise key table */ 307#define WDS_PAIRWISE_KEY_OFFSET 60 /* WDS links use pairwise key#60 ~ 63 in ASIC pairwise key table */
307 308
308#define WDS_DISABLE_MODE 0 309#define WDS_DISABLE_MODE 0
309#define WDS_RESTRICT_MODE 1 310#define WDS_RESTRICT_MODE 1
@@ -559,7 +560,7 @@
559#define IE_ADD_HT2 53 /* 802.11n d1. ADDITIONAL HT CAPABILITY. ELEMENT ID TBD */ 560#define IE_ADD_HT2 53 /* 802.11n d1. ADDITIONAL HT CAPABILITY. ELEMENT ID TBD */
560 561
561/* For 802.11n D3.03 */ 562/* For 802.11n D3.03 */
562/*#define IE_NEW_EXT_CHA_OFFSET 62 // 802.11n d1. New extension channel offset elemet */ 563/*#define IE_NEW_EXT_CHA_OFFSET 62 // 802.11n d1. New extension channel offset element */
563#define IE_SECONDARY_CH_OFFSET 62 /* 802.11n D3.03 Secondary Channel Offset element */ 564#define IE_SECONDARY_CH_OFFSET 62 /* 802.11n D3.03 Secondary Channel Offset element */
564#define IE_WAPI 68 /* WAPI information element */ 565#define IE_WAPI 68 /* WAPI information element */
565#define IE_2040_BSS_COEXIST 72 /* 802.11n D3.0.3 */ 566#define IE_2040_BSS_COEXIST 72 /* 802.11n D3.0.3 */
@@ -678,7 +679,7 @@
678 679
679#define ACT_MACHINE_BASE 0 680#define ACT_MACHINE_BASE 0
680 681
681/*Those PEER_xx_CATE number is based on real Categary value in IEEE spec. Please don'es modify it by your self. */ 682/*Those PEER_xx_CATE number is based on real Categary value in IEEE spec. Please do not modify it by your self. */
682/*Category */ 683/*Category */
683#define MT2_PEER_SPECTRUM_CATE 0 684#define MT2_PEER_SPECTRUM_CATE 0
684#define MT2_PEER_QOS_CATE 1 685#define MT2_PEER_QOS_CATE 1
@@ -748,7 +749,7 @@
748 749
749#define ACT_FUNC_SIZE (MAX_ACT_STATE * MAX_ACT_MSG) 750#define ACT_FUNC_SIZE (MAX_ACT_STATE * MAX_ACT_MSG)
750/* */ 751/* */
751/* STA's AUTHENTICATION state machine: states, evvents, total function # */ 752/* STA's AUTHENTICATION state machine: states, events, total function # */
752/* */ 753/* */
753#define AUTH_REQ_IDLE 0 754#define AUTH_REQ_IDLE 0
754#define AUTH_WAIT_SEQ2 1 755#define AUTH_WAIT_SEQ2 1
@@ -948,7 +949,7 @@
948#define BLOCK_ACK 0x60 /* b6:5 = 11 */ 949#define BLOCK_ACK 0x60 /* b6:5 = 11 */
949 950
950/* */ 951/* */
951/* rtmp_data.c use these definition */ 952/* rtmp_data.c uses this definition */
952/* */ 953/* */
953#define LENGTH_802_11 24 954#define LENGTH_802_11 24
954#define LENGTH_802_11_AND_H 30 955#define LENGTH_802_11_AND_H 30
@@ -1288,7 +1289,7 @@
1288#define IW_STA_LINKDOWN_EVENT_FLAG 0x0210 1289#define IW_STA_LINKDOWN_EVENT_FLAG 0x0210
1289#define IW_SCAN_COMPLETED_EVENT_FLAG 0x0211 1290#define IW_SCAN_COMPLETED_EVENT_FLAG 0x0211
1290#define IW_SCAN_ENQUEUE_FAIL_EVENT_FLAG 0x0212 1291#define IW_SCAN_ENQUEUE_FAIL_EVENT_FLAG 0x0212
1291/* if add new system event flag, please upadte the IW_SYS_EVENT_FLAG_END */ 1292/* if add new system event flag, please update the IW_SYS_EVENT_FLAG_END */
1292#define IW_SYS_EVENT_FLAG_END 0x0212 1293#define IW_SYS_EVENT_FLAG_END 0x0212
1293#define IW_SYS_EVENT_TYPE_NUM (IW_SYS_EVENT_FLAG_END - IW_SYS_EVENT_FLAG_START + 1) 1294#define IW_SYS_EVENT_TYPE_NUM (IW_SYS_EVENT_FLAG_END - IW_SYS_EVENT_FLAG_START + 1)
1294/* For system event - end */ 1295/* For system event - end */
@@ -1305,7 +1306,7 @@
1305#define IW_SPOOF_DEAUTH_EVENT_FLAG 0x0307 1306#define IW_SPOOF_DEAUTH_EVENT_FLAG 0x0307
1306#define IW_SPOOF_UNKNOWN_MGMT_EVENT_FLAG 0x0308 1307#define IW_SPOOF_UNKNOWN_MGMT_EVENT_FLAG 0x0308
1307#define IW_REPLAY_ATTACK_EVENT_FLAG 0x0309 1308#define IW_REPLAY_ATTACK_EVENT_FLAG 0x0309
1308/* if add new spoof attack event flag, please upadte the IW_SPOOF_EVENT_FLAG_END */ 1309/* if add new spoof attack event flag, please update the IW_SPOOF_EVENT_FLAG_END */
1309#define IW_SPOOF_EVENT_FLAG_END 0x0309 1310#define IW_SPOOF_EVENT_FLAG_END 0x0309
1310#define IW_SPOOF_EVENT_TYPE_NUM (IW_SPOOF_EVENT_FLAG_END - IW_SPOOF_EVENT_FLAG_START + 1) 1311#define IW_SPOOF_EVENT_TYPE_NUM (IW_SPOOF_EVENT_FLAG_END - IW_SPOOF_EVENT_FLAG_START + 1)
1311/* For spoof attack event - end */ 1312/* For spoof attack event - end */
@@ -1319,7 +1320,7 @@
1319#define IW_FLOOD_DISASSOC_EVENT_FLAG 0x0404 1320#define IW_FLOOD_DISASSOC_EVENT_FLAG 0x0404
1320#define IW_FLOOD_DEAUTH_EVENT_FLAG 0x0405 1321#define IW_FLOOD_DEAUTH_EVENT_FLAG 0x0405
1321#define IW_FLOOD_EAP_REQ_EVENT_FLAG 0x0406 1322#define IW_FLOOD_EAP_REQ_EVENT_FLAG 0x0406
1322/* if add new flooding attack event flag, please upadte the IW_FLOOD_EVENT_FLAG_END */ 1323/* if add new flooding attack event flag, please update the IW_FLOOD_EVENT_FLAG_END */
1323#define IW_FLOOD_EVENT_FLAG_END 0x0406 1324#define IW_FLOOD_EVENT_FLAG_END 0x0406
1324#define IW_FLOOD_EVENT_TYPE_NUM (IW_FLOOD_EVENT_FLAG_END - IW_FLOOD_EVENT_FLAG_START + 1) 1325#define IW_FLOOD_EVENT_TYPE_NUM (IW_FLOOD_EVENT_FLAG_END - IW_FLOOD_EVENT_FLAG_START + 1)
1325/* For flooding attack - end */ 1326/* For flooding attack - end */