📄 card.c
字号:
/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO;
#define C_SIFS_A 16 // micro sec.
#define C_SIFS_BG 10
#define C_EIFS 80 // micro sec.
#define C_SLOT_SHORT 9 // micro sec.
#define C_SLOT_LONG 20
#define C_CWMIN_A 15 // slot time
#define C_CWMIN_B 31
#define C_CWMAX 1023 // slot time
#define CARD_MAX_CHANNEL_TBL 56
#define WAIT_BEACON_TX_DOWN_TMO 3 // Times
typedef struct tagSChannelTblElement {
BYTE byChannelNumber;
UINT uFrequency;
BOOL bValid;
BYTE byMAP;
}SChannelTblElement, DEF* PSChannelTblElement;
//1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M
static BYTE abyDefaultSuppRatesG[] = {WLAN_EID_SUPP_RATES, 8, 0x02, 0x04, 0x0B, 0x16, 0x24, 0x30, 0x48, 0x6C};
//6M, 9M, 12M, 48M
static BYTE abyDefaultExtSuppRatesG[] = {WLAN_EID_EXTSUPP_RATES, 4, 0x0C, 0x12, 0x18, 0x60};
//6M, 9M, 12M, 18M, 24M, 36M, 48M, 54M
static BYTE abyDefaultSuppRatesA[] = {WLAN_EID_SUPP_RATES, 8, 0x0C, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6C};
//1M, 2M, 5M, 11M,
static BYTE abyDefaultSuppRatesB[] = {WLAN_EID_SUPP_RATES, 4, 0x02, 0x04, 0x0B, 0x16};
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
const WORD cwRXBCNTSFOff[MAX_RATE] =
{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
static SChannelTblElement sChannelTbl[CARD_MAX_CHANNEL_TBL+1] =
{
{0, 0, FALSE, 0},
{1, 2412, TRUE, 0},
{2, 2417, TRUE, 0},
{3, 2422, TRUE, 0},
{4, 2427, TRUE, 0},
{5, 2432, TRUE, 0},
{6, 2437, TRUE, 0},
{7, 2442, TRUE, 0},
{8, 2447, TRUE, 0},
{9, 2452, TRUE, 0},
{10, 2457, TRUE, 0},
{11, 2462, TRUE, 0},
{12, 2467, TRUE, 0},
{13, 2472, TRUE, 0},
{14, 2484, TRUE, 0},
{183, 4915, TRUE, 0},
{184, 4920, TRUE, 0},
{185, 4925, TRUE, 0},
{187, 4935, TRUE, 0},
{188, 4940, TRUE, 0},
{189, 4945, TRUE, 0},
{192, 4960, TRUE, 0},
{196, 4980, TRUE, 0},
{7, 5035, TRUE, 0},
{8, 5040, TRUE, 0},
{9, 5045, TRUE, 0},
{11, 5055, TRUE, 0},
{12, 5060, TRUE, 0},
{16, 5080, TRUE, 0},
{34, 5170, TRUE, 0},
{36, 5180, TRUE, 0},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -