MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / usb / net / Zydas / zdglobal.c
blobd74d26b51bded24a8ea35047ec276c04116fec60
1 #ifndef __ZDGLOBAL_C__
2 #define __ZDGLOBAL_C__
4 #include "zd80211.h"
5 #include "zddebug.h"
7 U32 mTimeBeforeAdhocRoaming;
8 U8 mPreambleType = LONG_PREAMBLE;
9 MacAddr_t dot11MacAddress = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
10 Element dot11DesiredSsid;
11 U8 dot11DesiredBssid[6]; // When macp->ap_scan=1, use this to associate with an AP.
12 U32 mDebugFlag = 0;
13 U8 mAuthAlogrithms[2] = {OPEN_SYSTEM, SHARE_KEY};
14 U16 mRfChannel = 0;
15 U16 mBeaconPeriod = 100;
16 U16 mDtimPeriod = 1;
17 U16 mFragThreshold = 2432;
18 U16 mRtsThreshold = 2432;
19 U16 mTmRetryConnect=0;
20 // For debugging purpose
21 //#ifdef WPADATA_DEBUG
22 u8 *DbgStrEncryType[]={"NOWEP","WEP64","TKIP","NA3","AES","WEP128","WEP256", "NA7"};
23 u8 *DbgStrDynKeyMode[]={"NOWEP","WEP64","WEP128","NA3","TKIP","AES","NA6","NA7"};
24 //#endif
25 // ------------------------------------------------------------------------
27 //WPA
28 Element mWPAIe;
29 U8 mCounterMeasureState;
30 //WEP
31 U8 mKeyId = 0;
32 U8 mKeyFormat = WEP64_USED;
33 BOOLEAN mPrivacyInvoked = FALSE;
34 Element mSsid;
35 Element mBrates;
36 Element mPhpm;
37 MacAddr_t mBssId;
38 U16 mCap = CAP_ESS;
39 U16 mDtimCount;
41 U8 mPsStaCnt = 0; //Station count for associated and in power save mode
42 U8 mHiddenSSID = 0;
43 U8 mLimitedUser = 0;
44 U8 mCurrConnUser = 0;
45 U8 mNumBOnlySta=0;
47 U8 mBlockBSS = 0;
48 U8 mRadioOn = 1;
49 U8 mSwCipher = 0;
50 U8 mKeyVector[4][16];
51 U8 mBcKeyVector[16];
52 U8 mWepIv[4];
53 U8 mBcIv[4];
54 U8 mWepKeyLen;
55 U8 mBcKeyLen;
56 U8 mBcKeyId;
57 U8 mDynKeyMode = 0;
58 BOOLEAN mZyDasModeClient = FALSE;
59 Seedvar mBcSeed;
60 MICvar mBcMicKey;
61 U8 mWpaBcKeyLen = 0;
62 U8 mWpaBcKeyId = 1;
63 U8 mGkInstalled = 0;
64 U16 mIv16 = 0;
65 U32 mIv32 = 0;
66 const U8 zeroMacAddress[6] = {0,0,0,0,0,0};
67 MacAddr_t dot11BCAddress = {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}};
68 BssInfo_t mBssInfo[64];
69 U8 mBssNum = 0;
70 U8 mBssCnt = 0;
71 U16 mAuthAlg = OPEN_SYSTEM;
72 U16 mListenInterval = 1;
73 U16 mAid;
74 BOOLEAN mAssoc = FALSE;
75 MacAddr_t mOldAP;
76 U8 mBssType = INFRASTRUCTURE_BSS;
77 U16 mAPCap;
78 Element mAPBrates;
79 U8 mBssIndex = 0;
80 U16 mRequestFlag = 0;
81 U8 mPwrState = 0;
82 BOOLEAN mAPAlive = FALSE;
83 BOOLEAN mProbeWithSsid = FALSE;
84 Element mIbssParms;
85 U16 mATIMWindow;
86 U8 mConnRetryCnt = 0;
87 U8 mMaxTxRate = 3;
88 U8 mTxPowerLevel = 1;
90 // for G mode
91 Element mErp = {{EID_ERP, 1, 0x00}};
92 Element mExtRates;
93 U8 mMacMode = MIXED_MODE;
94 U8 mOperationMode;
95 U8 mBurstMode;
96 Element mAPErates;
97 BOOLEAN mIfaceOpened = FALSE;
99 Element mBrates11A; //Basic Rate for 11A
101 U8 mAuthMode;
102 #endif