|
@@ -31,7 +31,7 @@
|
|
|
|
|
|
Revision History:
|
|
Revision History:
|
|
Who When What
|
|
Who When What
|
|
- -------- ---------- ----------------------------------------------
|
|
|
|
|
|
+ -------- ---------- ------------------------------
|
|
John Chang 2003-08-28 Created
|
|
John Chang 2003-08-28 Created
|
|
John Chang 2004-09-06 modified for RT2600
|
|
John Chang 2004-09-06 modified for RT2600
|
|
|
|
|
|
@@ -50,7 +50,7 @@
|
|
#define MLME_TASK_EXEC_INTV 100/*200*/ /* */
|
|
#define MLME_TASK_EXEC_INTV 100/*200*/ /* */
|
|
#define LEAD_TIME 5
|
|
#define LEAD_TIME 5
|
|
#define MLME_TASK_EXEC_MULTIPLE 10 /*5*/ /* MLME_TASK_EXEC_MULTIPLE * MLME_TASK_EXEC_INTV = 1 sec */
|
|
#define MLME_TASK_EXEC_MULTIPLE 10 /*5*/ /* MLME_TASK_EXEC_MULTIPLE * MLME_TASK_EXEC_INTV = 1 sec */
|
|
-#define REORDER_EXEC_INTV 100 /* 0.1 sec */
|
|
|
|
|
|
+#define REORDER_EXEC_INTV 100 /* 0.1 sec */
|
|
|
|
|
|
/* The definition of Radar detection duration region */
|
|
/* The definition of Radar detection duration region */
|
|
#define CE 0
|
|
#define CE 0
|
|
@@ -60,7 +60,7 @@
|
|
#define JAP_W56 4
|
|
#define JAP_W56 4
|
|
#define MAX_RD_REGION 5
|
|
#define MAX_RD_REGION 5
|
|
|
|
|
|
-#define BEACON_LOST_TIME 4 * OS_HZ /* 2048 msec = 2 sec */
|
|
|
|
|
|
+#define BEACON_LOST_TIME (4 * OS_HZ) /* 2048 msec = 2 sec */
|
|
|
|
|
|
#define DLS_TIMEOUT 1200 /* unit: msec */
|
|
#define DLS_TIMEOUT 1200 /* unit: msec */
|
|
#define AUTH_TIMEOUT 300 /* unit: msec */
|
|
#define AUTH_TIMEOUT 300 /* unit: msec */
|
|
@@ -119,8 +119,8 @@
|
|
#define MAC_ADDR_IS_GROUP(Addr) (((Addr[0]) & 0x01))
|
|
#define MAC_ADDR_IS_GROUP(Addr) (((Addr[0]) & 0x01))
|
|
#define MAC_ADDR_HASH(Addr) (Addr[0] ^ Addr[1] ^ Addr[2] ^ Addr[3] ^ Addr[4] ^ Addr[5])
|
|
#define MAC_ADDR_HASH(Addr) (Addr[0] ^ Addr[1] ^ Addr[2] ^ Addr[3] ^ Addr[4] ^ Addr[5])
|
|
#define MAC_ADDR_HASH_INDEX(Addr) (MAC_ADDR_HASH(Addr) % HASH_TABLE_SIZE)
|
|
#define MAC_ADDR_HASH_INDEX(Addr) (MAC_ADDR_HASH(Addr) % HASH_TABLE_SIZE)
|
|
-#define TID_MAC_HASH(Addr,TID) (TID^Addr[0] ^ Addr[1] ^ Addr[2] ^ Addr[3] ^ Addr[4] ^ Addr[5])
|
|
|
|
-#define TID_MAC_HASH_INDEX(Addr,TID) (TID_MAC_HASH(Addr,TID) % HASH_TABLE_SIZE)
|
|
|
|
|
|
+#define TID_MAC_HASH(Addr, TID) (TID^Addr[0] ^ Addr[1] ^ Addr[2] ^ Addr[3] ^ Addr[4] ^ Addr[5])
|
|
|
|
+#define TID_MAC_HASH_INDEX(Addr, TID) (TID_MAC_HASH(Addr, TID) % HASH_TABLE_SIZE)
|
|
|
|
|
|
/* LED Control */
|
|
/* LED Control */
|
|
/* assoiation ON. one LED ON. another blinking when TX, OFF when idle */
|
|
/* assoiation ON. one LED ON. another blinking when TX, OFF when idle */
|
|
@@ -145,7 +145,7 @@
|
|
#define CAP_IS_DSSS_OFDM(x) (((x) & 0x2000) != 0)
|
|
#define CAP_IS_DSSS_OFDM(x) (((x) & 0x2000) != 0)
|
|
#define CAP_IS_DELAY_BA(x) (((x) & 0x4000) != 0) /* 802.11e d9 */
|
|
#define CAP_IS_DELAY_BA(x) (((x) & 0x4000) != 0) /* 802.11e d9 */
|
|
|
|
|
|
-#define CAP_GENERATE(ess,ibss,priv,s_pre,s_slot,spectrum) (((ess) ? 0x0001 : 0x0000) | ((ibss) ? 0x0002 : 0x0000) | ((priv) ? 0x0010 : 0x0000) | ((s_pre) ? 0x0020 : 0x0000) | ((s_slot) ? 0x0400 : 0x0000) | ((spectrum) ? 0x0100 : 0x0000))
|
|
|
|
|
|
+#define CAP_GENERATE(ess, ibss, priv, s_pre, s_slot, spectrum) (((ess) ? 0x0001 : 0x0000) | ((ibss) ? 0x0002 : 0x0000) | ((priv) ? 0x0010 : 0x0000) | ((s_pre) ? 0x0020 : 0x0000) | ((s_slot) ? 0x0400 : 0x0000) | ((spectrum) ? 0x0100 : 0x0000))
|
|
|
|
|
|
#define ERP_IS_NON_ERP_PRESENT(x) (((x) & 0x01) != 0) /* 802.11g */
|
|
#define ERP_IS_NON_ERP_PRESENT(x) (((x) & 0x01) != 0) /* 802.11g */
|
|
#define ERP_IS_USE_PROTECTION(x) (((x) & 0x02) != 0) /* 802.11g */
|
|
#define ERP_IS_USE_PROTECTION(x) (((x) & 0x02) != 0) /* 802.11g */
|
|
@@ -154,9 +154,9 @@
|
|
#define DRS_TX_QUALITY_WORST_BOUND 8 /* 3 // just test by gary */
|
|
#define DRS_TX_QUALITY_WORST_BOUND 8 /* 3 // just test by gary */
|
|
#define DRS_PENALTY 8
|
|
#define DRS_PENALTY 8
|
|
|
|
|
|
-#define BA_NOTUSE 2
|
|
|
|
|
|
+#define BA_NOTUSE 2
|
|
/*BA Policy subfiled value in ADDBA frame */
|
|
/*BA Policy subfiled value in ADDBA frame */
|
|
-#define IMMED_BA 1
|
|
|
|
|
|
+#define IMMED_BA 1
|
|
#define DELAY_BA 0
|
|
#define DELAY_BA 0
|
|
|
|
|
|
/* BA Initiator subfield in DELBA frame */
|
|
/* BA Initiator subfield in DELBA frame */
|
|
@@ -176,8 +176,7 @@
|
|
|
|
|
|
/* reset all OneSecTx counters */
|
|
/* reset all OneSecTx counters */
|
|
#define RESET_ONE_SEC_TX_CNT(__pEntry) \
|
|
#define RESET_ONE_SEC_TX_CNT(__pEntry) \
|
|
-if (((__pEntry)) != NULL) \
|
|
|
|
-{ \
|
|
|
|
|
|
+if (((__pEntry)) != NULL) { \
|
|
(__pEntry)->OneSecTxRetryOkCount = 0; \
|
|
(__pEntry)->OneSecTxRetryOkCount = 0; \
|
|
(__pEntry)->OneSecTxFailCount = 0; \
|
|
(__pEntry)->OneSecTxFailCount = 0; \
|
|
(__pEntry)->OneSecTxNoRetryOkCount = 0; \
|
|
(__pEntry)->OneSecTxNoRetryOkCount = 0; \
|
|
@@ -846,7 +845,7 @@ struct rt_mlme_queue {
|
|
struct rt_mlme_queue_elem Entry[MAX_LEN_OF_MLME_QUEUE];
|
|
struct rt_mlme_queue_elem Entry[MAX_LEN_OF_MLME_QUEUE];
|
|
};
|
|
};
|
|
|
|
|
|
-typedef void(*STATE_MACHINE_FUNC) (void * Adaptor, struct rt_mlme_queue_elem *Elem);
|
|
|
|
|
|
+typedef void(*STATE_MACHINE_FUNC) (void *Adaptor, struct rt_mlme_queue_elem *Elem);
|
|
|
|
|
|
struct rt_state_machine {
|
|
struct rt_state_machine {
|
|
unsigned long Base;
|
|
unsigned long Base;
|