1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29#ifndef __CARD_H__
30#define __CARD_H__
31
32#include "ttype.h"
33
34
35
36
37
38
39
40typedef enum _CARD_PHY_TYPE {
41 PHY_TYPE_AUTO = 0,
42 PHY_TYPE_11B,
43 PHY_TYPE_11G,
44 PHY_TYPE_11A
45} CARD_PHY_TYPE, *PCARD_PHY_TYPE;
46
47typedef enum _CARD_OP_MODE {
48 OP_MODE_INFRASTRUCTURE = 0,
49 OP_MODE_ADHOC,
50 OP_MODE_AP,
51 OP_MODE_UNKNOWN
52} CARD_OP_MODE, *PCARD_OP_MODE;
53
54#define CB_MAX_CHANNEL_24G 14
55
56#define CB_MAX_CHANNEL_5G 42
57#define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G)
58
59
60
61
62
63BOOL CARDbSetMediaChannel(void *pDeviceHandler,
64 unsigned int uConnectionChannel);
65void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType);
66void vUpdateIFS(void *pDeviceHandler);
67void CARDvUpdateBasicTopRate(void *pDeviceHandler);
68BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx);
69BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler);
70void CARDvAdjustTSF(void *pDeviceHandler, BYTE byRxRate,
71 QWORD qwBSSTimestamp, QWORD qwLocalTSF);
72BOOL CARDbGetCurrentTSF(void *pDeviceHandler, PQWORD pqwCurrTSF);
73BOOL CARDbClearCurrentTSF(void *pDeviceHandler);
74void CARDvSetFirstNextTBTT(void *pDeviceHandler, WORD wBeaconInterval);
75void CARDvUpdateNextTBTT(void *pDeviceHandler, QWORD qwTSF,
76 WORD wBeaconInterval);
77QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
78QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
79BOOL CARDbRadioPowerOff(void *pDeviceHandler);
80BOOL CARDbRadioPowerOn(void *pDeviceHandler);
81BYTE CARDbyGetPktType(void *pDeviceHandler);
82void CARDvSetBSSMode(void *pDeviceHandler);
83
84BOOL CARDbChannelSwitch(void *pDeviceHandler,
85 BYTE byMode,
86 BYTE byNewChannel,
87 BYTE byCount);
88
89#endif
90