mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: cleanup struct vnt_private
Where appropriate replacing types defined in "type.h" with linux/types.h. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
14c5ef5771
commit
61462ab32f
|
@ -393,426 +393,403 @@ typedef struct __device_opt {
|
|||
|
||||
|
||||
struct vnt_private {
|
||||
/* netdev */
|
||||
struct usb_device *usb;
|
||||
struct net_device *dev;
|
||||
struct net_device_stats stats;
|
||||
|
||||
// netdev
|
||||
struct usb_device* usb;
|
||||
struct net_device* dev;
|
||||
struct net_device_stats stats;
|
||||
OPTIONS sOpts;
|
||||
|
||||
struct tasklet_struct CmdWorkItem;
|
||||
struct tasklet_struct EventWorkItem;
|
||||
struct tasklet_struct ReadWorkItem;
|
||||
struct tasklet_struct RxMngWorkItem;
|
||||
|
||||
u32 rx_buf_sz;
|
||||
int multicast_limit;
|
||||
u8 byRxMode;
|
||||
|
||||
spinlock_t lock;
|
||||
|
||||
u32 rx_bytes;
|
||||
|
||||
u8 byRevId;
|
||||
|
||||
u32 flags;
|
||||
unsigned long Flags;
|
||||
|
||||
SCache sDupRxCache;
|
||||
|
||||
SDeFragControlBlock sRxDFCB[CB_MAX_RX_FRAG];
|
||||
u32 cbDFCB;
|
||||
u32 cbFreeDFCB;
|
||||
u32 uCurrentDFCBIdx;
|
||||
|
||||
|
||||
OPTIONS sOpts;
|
||||
/* USB */
|
||||
struct urb *pControlURB;
|
||||
struct urb *pInterruptURB;
|
||||
struct usb_ctrlrequest sUsbCtlRequest;
|
||||
u32 int_interval;
|
||||
|
||||
struct tasklet_struct CmdWorkItem;
|
||||
struct tasklet_struct EventWorkItem;
|
||||
struct tasklet_struct ReadWorkItem;
|
||||
struct tasklet_struct RxMngWorkItem;
|
||||
|
||||
u32 rx_buf_sz;
|
||||
int multicast_limit;
|
||||
BYTE byRxMode;
|
||||
|
||||
spinlock_t lock;
|
||||
|
||||
u32 rx_bytes;
|
||||
|
||||
BYTE byRevId;
|
||||
|
||||
u32 flags;
|
||||
unsigned long Flags;
|
||||
|
||||
SCache sDupRxCache;
|
||||
|
||||
SDeFragControlBlock sRxDFCB[CB_MAX_RX_FRAG];
|
||||
unsigned int cbDFCB;
|
||||
unsigned int cbFreeDFCB;
|
||||
unsigned int uCurrentDFCBIdx;
|
||||
|
||||
// +++USB
|
||||
|
||||
struct urb *pControlURB;
|
||||
struct urb *pInterruptURB;
|
||||
struct usb_ctrlrequest sUsbCtlRequest;
|
||||
|
||||
unsigned int int_interval;
|
||||
//
|
||||
// Variables to track resources for the BULK In Pipe
|
||||
//
|
||||
PRCB pRCBMem;
|
||||
PRCB apRCB[CB_MAX_RX_DESC];
|
||||
unsigned int cbRD;
|
||||
PRCB FirstRecvFreeList;
|
||||
PRCB LastRecvFreeList;
|
||||
unsigned int NumRecvFreeList;
|
||||
PRCB FirstRecvMngList;
|
||||
PRCB LastRecvMngList;
|
||||
unsigned int NumRecvMngList;
|
||||
BOOL bIsRxWorkItemQueued;
|
||||
BOOL bIsRxMngWorkItemQueued;
|
||||
/* Variables to track resources for the BULK In Pipe */
|
||||
PRCB pRCBMem;
|
||||
PRCB apRCB[CB_MAX_RX_DESC];
|
||||
u32 cbRD;
|
||||
PRCB FirstRecvFreeList;
|
||||
PRCB LastRecvFreeList;
|
||||
u32 NumRecvFreeList;
|
||||
PRCB FirstRecvMngList;
|
||||
PRCB LastRecvMngList;
|
||||
u32 NumRecvMngList;
|
||||
int bIsRxWorkItemQueued;
|
||||
int bIsRxMngWorkItemQueued;
|
||||
unsigned long ulRcvRefCount; /* packets that have not returned back */
|
||||
|
||||
//
|
||||
// Variables to track resources for the BULK Out Pipe
|
||||
//
|
||||
/* Variables to track resources for the BULK Out Pipe */
|
||||
PUSB_SEND_CONTEXT apTD[CB_MAX_TX_DESC];
|
||||
u32 cbTD;
|
||||
|
||||
PUSB_SEND_CONTEXT apTD[CB_MAX_TX_DESC];
|
||||
unsigned int cbTD;
|
||||
/* Variables to track resources for the Interrupt In Pipe */
|
||||
INT_BUFFER intBuf;
|
||||
int fKillEventPollingThread;
|
||||
int bEventAvailable;
|
||||
|
||||
//
|
||||
// Variables to track resources for the Interrupt In Pipe
|
||||
//
|
||||
INT_BUFFER intBuf;
|
||||
BOOL fKillEventPollingThread;
|
||||
BOOL bEventAvailable;
|
||||
/* default config from file by user setting */
|
||||
DEFAULT_CONFIG config_file;
|
||||
|
||||
|
||||
//default config from file by user setting
|
||||
DEFAULT_CONFIG config_file;
|
||||
/* Statistic for USB */
|
||||
unsigned long ulBulkInPosted;
|
||||
unsigned long ulBulkInError;
|
||||
unsigned long ulBulkInContCRCError;
|
||||
unsigned long ulBulkInBytesRead;
|
||||
|
||||
unsigned long ulBulkOutPosted;
|
||||
unsigned long ulBulkOutError;
|
||||
unsigned long ulBulkOutContCRCError;
|
||||
unsigned long ulBulkOutBytesWrite;
|
||||
|
||||
unsigned long ulIntInPosted;
|
||||
unsigned long ulIntInError;
|
||||
unsigned long ulIntInContCRCError;
|
||||
unsigned long ulIntInBytesRead;
|
||||
|
||||
|
||||
//
|
||||
// Statistic for USB
|
||||
// protect with spinlock
|
||||
unsigned long ulBulkInPosted;
|
||||
unsigned long ulBulkInError;
|
||||
unsigned long ulBulkInContCRCError;
|
||||
unsigned long ulBulkInBytesRead;
|
||||
|
||||
unsigned long ulBulkOutPosted;
|
||||
unsigned long ulBulkOutError;
|
||||
unsigned long ulBulkOutContCRCError;
|
||||
unsigned long ulBulkOutBytesWrite;
|
||||
|
||||
unsigned long ulIntInPosted;
|
||||
unsigned long ulIntInError;
|
||||
unsigned long ulIntInContCRCError;
|
||||
unsigned long ulIntInBytesRead;
|
||||
/* Version control */
|
||||
u16 wFirmwareVersion;
|
||||
u8 byLocalID;
|
||||
u8 byRFType;
|
||||
u8 byBBRxConf;
|
||||
|
||||
|
||||
// Version control
|
||||
WORD wFirmwareVersion;
|
||||
BYTE byLocalID;
|
||||
BYTE byRFType;
|
||||
BYTE byBBRxConf;
|
||||
u8 byZoneType;
|
||||
int bZoneRegExist;
|
||||
|
||||
u8 byOriginalZonetype;
|
||||
|
||||
BYTE byZoneType;
|
||||
BOOL bZoneRegExist;
|
||||
int bLinkPass; /* link status: OK or fail */
|
||||
u8 abyCurrentNetAddr[ETH_ALEN];
|
||||
u8 abyPermanentNetAddr[ETH_ALEN];
|
||||
|
||||
BYTE byOriginalZonetype;
|
||||
int bExistSWNetAddr;
|
||||
|
||||
BOOL bLinkPass; // link status: OK or fail
|
||||
BYTE abyCurrentNetAddr[ETH_ALEN];
|
||||
BYTE abyPermanentNetAddr[ETH_ALEN];
|
||||
// SW network address
|
||||
/* u8 abySoftwareNetAddr[ETH_ALEN]; */
|
||||
BOOL bExistSWNetAddr;
|
||||
|
||||
// Adapter statistics
|
||||
SStatCounter scStatistic;
|
||||
// 802.11 counter
|
||||
SDot11Counters s802_11Counter;
|
||||
|
||||
//
|
||||
// Maintain statistical debug info.
|
||||
//
|
||||
unsigned long packetsReceived;
|
||||
unsigned long packetsReceivedDropped;
|
||||
unsigned long packetsReceivedOverflow;
|
||||
unsigned long packetsSent;
|
||||
unsigned long packetsSentDropped;
|
||||
unsigned long SendContextsInUse;
|
||||
unsigned long RcvBuffersInUse;
|
||||
/* Adapter statistics */
|
||||
SStatCounter scStatistic;
|
||||
/* 802.11 counter */
|
||||
SDot11Counters s802_11Counter;
|
||||
|
||||
/* Maintain statistical debug info. */
|
||||
unsigned long packetsReceived;
|
||||
unsigned long packetsReceivedDropped;
|
||||
unsigned long packetsReceivedOverflow;
|
||||
unsigned long packetsSent;
|
||||
unsigned long packetsSentDropped;
|
||||
unsigned long SendContextsInUse;
|
||||
unsigned long RcvBuffersInUse;
|
||||
|
||||
/* 802.11 management */
|
||||
struct vnt_manager vnt_mgmt;
|
||||
|
||||
u64 qwCurrTSF;
|
||||
unsigned int cbBulkInMax;
|
||||
BOOL bPSRxBeacon;
|
||||
u32 cbBulkInMax;
|
||||
int bPSRxBeacon;
|
||||
|
||||
// 802.11 MAC specific
|
||||
unsigned int uCurrRSSI;
|
||||
BYTE byCurrSQ;
|
||||
/* 802.11 MAC specific */
|
||||
u32 uCurrRSSI;
|
||||
u8 byCurrSQ;
|
||||
|
||||
/* Antenna Diversity */
|
||||
int bTxRxAntInv;
|
||||
u32 dwRxAntennaSel;
|
||||
u32 dwTxAntennaSel;
|
||||
u8 byAntennaCount;
|
||||
u8 byRxAntennaMode;
|
||||
u8 byTxAntennaMode;
|
||||
u8 byRadioCtl;
|
||||
u8 bHWRadioOff;
|
||||
|
||||
//Antenna Diversity
|
||||
BOOL bTxRxAntInv;
|
||||
DWORD dwRxAntennaSel;
|
||||
DWORD dwTxAntennaSel;
|
||||
BYTE byAntennaCount;
|
||||
BYTE byRxAntennaMode;
|
||||
BYTE byTxAntennaMode;
|
||||
BYTE byRadioCtl;
|
||||
BYTE bHWRadioOff;
|
||||
/* SQ3 functions for antenna diversity */
|
||||
struct timer_list TimerSQ3Tmax1;
|
||||
struct timer_list TimerSQ3Tmax2;
|
||||
struct timer_list TimerSQ3Tmax3;
|
||||
|
||||
//SQ3 functions for antenna diversity
|
||||
struct timer_list TimerSQ3Tmax1;
|
||||
struct timer_list TimerSQ3Tmax2;
|
||||
struct timer_list TimerSQ3Tmax3;
|
||||
int bDiversityRegCtlON;
|
||||
int bDiversityEnable;
|
||||
unsigned long ulDiversityNValue;
|
||||
unsigned long ulDiversityMValue;
|
||||
u8 byTMax;
|
||||
u8 byTMax2;
|
||||
u8 byTMax3;
|
||||
unsigned long ulSQ3TH;
|
||||
|
||||
BOOL bDiversityRegCtlON;
|
||||
BOOL bDiversityEnable;
|
||||
unsigned long ulDiversityNValue;
|
||||
unsigned long ulDiversityMValue;
|
||||
BYTE byTMax;
|
||||
BYTE byTMax2;
|
||||
BYTE byTMax3;
|
||||
unsigned long ulSQ3TH;
|
||||
unsigned long uDiversityCnt;
|
||||
u8 byAntennaState;
|
||||
unsigned long ulRatio_State0;
|
||||
unsigned long ulRatio_State1;
|
||||
unsigned long ulSQ3_State0;
|
||||
unsigned long ulSQ3_State1;
|
||||
|
||||
unsigned long uDiversityCnt;
|
||||
BYTE byAntennaState;
|
||||
unsigned long ulRatio_State0;
|
||||
unsigned long ulRatio_State1;
|
||||
unsigned long ulSQ3_State0;
|
||||
unsigned long ulSQ3_State1;
|
||||
|
||||
unsigned long aulSQ3Val[MAX_RATE];
|
||||
unsigned long aulPktNum[MAX_RATE];
|
||||
unsigned long aulSQ3Val[MAX_RATE];
|
||||
unsigned long aulPktNum[MAX_RATE];
|
||||
|
||||
/* IFS & Cw */
|
||||
unsigned int uSIFS; /* Current SIFS */
|
||||
unsigned int uDIFS; /* Current DIFS */
|
||||
unsigned int uEIFS; /* Current EIFS */
|
||||
unsigned int uSlot; /* Current SlotTime */
|
||||
unsigned int uCwMin; /* Current CwMin */
|
||||
unsigned int uCwMax; /* CwMax is fixed on 1023 */
|
||||
u32 uSIFS; /* Current SIFS */
|
||||
u32 uDIFS; /* Current DIFS */
|
||||
u32 uEIFS; /* Current EIFS */
|
||||
u32 uSlot; /* Current SlotTime */
|
||||
u32 uCwMin; /* Current CwMin */
|
||||
u32 uCwMax; /* CwMax is fixed on 1023 */
|
||||
|
||||
// PHY parameter
|
||||
BYTE bySIFS;
|
||||
BYTE byDIFS;
|
||||
BYTE byEIFS;
|
||||
BYTE bySlot;
|
||||
BYTE byCWMaxMin;
|
||||
/* PHY parameter */
|
||||
u8 bySIFS;
|
||||
u8 byDIFS;
|
||||
u8 byEIFS;
|
||||
u8 bySlot;
|
||||
u8 byCWMaxMin;
|
||||
|
||||
// Rate
|
||||
VIA_BB_TYPE byBBType; //0: 11A, 1:11B, 2:11G
|
||||
VIA_PKT_TYPE byPacketType; //0:11a,1:11b,2:11gb(only CCK in BasicRate),3:11ga(OFDM in Basic Rate)
|
||||
WORD wBasicRate;
|
||||
BYTE byACKRate;
|
||||
BYTE byTopOFDMBasicRate;
|
||||
BYTE byTopCCKBasicRate;
|
||||
/* Rate */
|
||||
VIA_BB_TYPE byBBType; /* 0: 11A, 1:11B, 2:11G */
|
||||
VIA_PKT_TYPE byPacketType; /* 0:11a 1:11b 2:11gb 3:11ga */
|
||||
u16 wBasicRate;
|
||||
u8 byACKRate;
|
||||
u8 byTopOFDMBasicRate;
|
||||
u8 byTopCCKBasicRate;
|
||||
|
||||
|
||||
DWORD dwAotoRateTxOkCnt;
|
||||
DWORD dwAotoRateTxFailCnt;
|
||||
DWORD dwErrorRateThreshold[13];
|
||||
DWORD dwTPTable[MAX_RATE];
|
||||
BYTE abyEEPROM[EEP_MAX_CONTEXT_SIZE]; //DWORD alignment
|
||||
u32 dwAotoRateTxOkCnt;
|
||||
u32 dwAotoRateTxFailCnt;
|
||||
u32 dwErrorRateThreshold[13];
|
||||
u32 dwTPTable[MAX_RATE];
|
||||
u8 abyEEPROM[EEP_MAX_CONTEXT_SIZE]; /*u32 alignment */
|
||||
|
||||
BYTE byMinChannel;
|
||||
BYTE byMaxChannel;
|
||||
unsigned int uConnectionRate;
|
||||
u8 byMinChannel;
|
||||
u8 byMaxChannel;
|
||||
u32 uConnectionRate;
|
||||
|
||||
BYTE byPreambleType;
|
||||
BYTE byShortPreamble;
|
||||
// CARD_PHY_TYPE
|
||||
BYTE eConfigPHYMode;
|
||||
u8 byPreambleType;
|
||||
u8 byShortPreamble;
|
||||
/* CARD_PHY_TYPE */
|
||||
u8 eConfigPHYMode;
|
||||
|
||||
// For RF Power table
|
||||
BYTE byCCKPwr;
|
||||
BYTE byOFDMPwrG;
|
||||
BYTE byOFDMPwrA;
|
||||
BYTE byCurPwr;
|
||||
BYTE abyCCKPwrTbl[14];
|
||||
BYTE abyOFDMPwrTbl[14];
|
||||
BYTE abyOFDMAPwrTbl[42];
|
||||
/* For RF Power table */
|
||||
u8 byCCKPwr;
|
||||
u8 byOFDMPwrG;
|
||||
u8 byOFDMPwrA;
|
||||
u8 byCurPwr;
|
||||
u8 abyCCKPwrTbl[14];
|
||||
u8 abyOFDMPwrTbl[14];
|
||||
u8 abyOFDMAPwrTbl[42];
|
||||
|
||||
WORD wCurrentRate;
|
||||
WORD wRTSThreshold;
|
||||
WORD wFragmentationThreshold;
|
||||
BYTE byShortRetryLimit;
|
||||
BYTE byLongRetryLimit;
|
||||
CARD_OP_MODE eOPMode;
|
||||
BOOL bBSSIDFilter;
|
||||
WORD wMaxTransmitMSDULifetime;
|
||||
BYTE abyBSSID[ETH_ALEN];
|
||||
BYTE abyDesireBSSID[ETH_ALEN];
|
||||
WORD wCTSDuration; // update while speed change
|
||||
WORD wACKDuration; // update while speed change
|
||||
WORD wRTSTransmitLen; // update while speed change
|
||||
BYTE byRTSServiceField; // update while speed change
|
||||
BYTE byRTSSignalField; // update while speed change
|
||||
u16 wCurrentRate;
|
||||
u16 wRTSThreshold;
|
||||
u16 wFragmentationThreshold;
|
||||
u8 byShortRetryLimit;
|
||||
u8 byLongRetryLimit;
|
||||
CARD_OP_MODE eOPMode;
|
||||
int bBSSIDFilter;
|
||||
u16 wMaxTransmitMSDULifetime;
|
||||
u8 abyBSSID[ETH_ALEN];
|
||||
u8 abyDesireBSSID[ETH_ALEN];
|
||||
|
||||
DWORD dwMaxReceiveLifetime; // dot11MaxReceiveLifetime
|
||||
u16 wCTSDuration; /* update while speed change */
|
||||
u16 wACKDuration;
|
||||
u16 wRTSTransmitLen;
|
||||
u8 byRTSServiceField;
|
||||
u8 byRTSSignalField;
|
||||
|
||||
BOOL bCCK;
|
||||
BOOL bEncryptionEnable;
|
||||
BOOL bLongHeader;
|
||||
BOOL bSoftwareGenCrcErr;
|
||||
BOOL bShortSlotTime;
|
||||
BOOL bProtectMode;
|
||||
BOOL bNonERPPresent;
|
||||
BOOL bBarkerPreambleMd;
|
||||
u32 dwMaxReceiveLifetime; /* dot11MaxReceiveLifetime */
|
||||
|
||||
BYTE byERPFlag;
|
||||
WORD wUseProtectCntDown;
|
||||
int bCCK;
|
||||
int bEncryptionEnable;
|
||||
int bLongHeader;
|
||||
int bSoftwareGenCrcErr;
|
||||
int bShortSlotTime;
|
||||
int bProtectMode;
|
||||
int bNonERPPresent;
|
||||
int bBarkerPreambleMd;
|
||||
|
||||
BOOL bRadioControlOff;
|
||||
BOOL bRadioOff;
|
||||
u8 byERPFlag;
|
||||
u16 wUseProtectCntDown;
|
||||
|
||||
// Power save
|
||||
BOOL bEnablePSMode;
|
||||
WORD wListenInterval;
|
||||
BOOL bPWBitOn;
|
||||
WMAC_POWER_MODE ePSMode;
|
||||
unsigned long ulPSModeWaitTx;
|
||||
BOOL bPSModeTxBurst;
|
||||
int bRadioControlOff;
|
||||
int bRadioOff;
|
||||
|
||||
// Beacon releated
|
||||
WORD wSeqCounter;
|
||||
BOOL bBeaconBufReady;
|
||||
BOOL bBeaconSent;
|
||||
BOOL bFixRate;
|
||||
BYTE byCurrentCh;
|
||||
unsigned int uScanTime;
|
||||
/* Power save */
|
||||
int bEnablePSMode;
|
||||
u16 wListenInterval;
|
||||
int bPWBitOn;
|
||||
WMAC_POWER_MODE ePSMode;
|
||||
unsigned long ulPSModeWaitTx;
|
||||
int bPSModeTxBurst;
|
||||
|
||||
CMD_STATE eCommandState;
|
||||
/* Beacon releated */
|
||||
u16 wSeqCounter;
|
||||
int bBeaconBufReady;
|
||||
int bBeaconSent;
|
||||
int bFixRate;
|
||||
u8 byCurrentCh;
|
||||
u32 uScanTime;
|
||||
|
||||
CMD_CODE eCommand;
|
||||
BOOL bBeaconTx;
|
||||
BYTE byScanBBType;
|
||||
CMD_STATE eCommandState;
|
||||
|
||||
BOOL bStopBeacon;
|
||||
BOOL bStopDataPkt;
|
||||
BOOL bStopTx0Pkt;
|
||||
unsigned int uAutoReConnectTime;
|
||||
unsigned int uIsroamingTime;
|
||||
CMD_CODE eCommand;
|
||||
int bBeaconTx;
|
||||
u8 byScanBBType;
|
||||
|
||||
// 802.11 counter
|
||||
int bStopBeacon;
|
||||
int bStopDataPkt;
|
||||
int bStopTx0Pkt;
|
||||
u32 uAutoReConnectTime;
|
||||
u32 uIsroamingTime;
|
||||
|
||||
CMD_ITEM eCmdQueue[CMD_Q_SIZE];
|
||||
unsigned int uCmdDequeueIdx;
|
||||
unsigned int uCmdEnqueueIdx;
|
||||
unsigned int cbFreeCmdQueue;
|
||||
BOOL bCmdRunning;
|
||||
BOOL bCmdClear;
|
||||
BOOL bNeedRadioOFF;
|
||||
/* 802.11 counter */
|
||||
|
||||
BOOL bEnableRoaming;
|
||||
BOOL bIsRoaming;
|
||||
BOOL bFastRoaming;
|
||||
BYTE bSameBSSMaxNum;
|
||||
BYTE bSameBSSCurNum;
|
||||
BOOL bRoaming;
|
||||
BOOL b11hEable;
|
||||
unsigned long ulTxPower;
|
||||
CMD_ITEM eCmdQueue[CMD_Q_SIZE];
|
||||
u32 uCmdDequeueIdx;
|
||||
u32 uCmdEnqueueIdx;
|
||||
u32 cbFreeCmdQueue;
|
||||
int bCmdRunning;
|
||||
int bCmdClear;
|
||||
int bNeedRadioOFF;
|
||||
|
||||
// Encryption
|
||||
NDIS_802_11_WEP_STATUS eEncryptionStatus;
|
||||
BOOL bTransmitKey;
|
||||
int bEnableRoaming;
|
||||
int bIsRoaming;
|
||||
int bFastRoaming;
|
||||
u8 bSameBSSMaxNum;
|
||||
u8 bSameBSSCurNum;
|
||||
int bRoaming;
|
||||
int b11hEable;
|
||||
unsigned long ulTxPower;
|
||||
|
||||
//mike add :save old Encryption
|
||||
NDIS_802_11_WEP_STATUS eOldEncryptionStatus;
|
||||
|
||||
SKeyManagement sKey;
|
||||
DWORD dwIVCounter;
|
||||
/* Encryption */
|
||||
NDIS_802_11_WEP_STATUS eEncryptionStatus;
|
||||
int bTransmitKey;
|
||||
NDIS_802_11_WEP_STATUS eOldEncryptionStatus;
|
||||
SKeyManagement sKey;
|
||||
u32 dwIVCounter;
|
||||
|
||||
|
||||
RC4Ext SBox;
|
||||
BYTE abyPRNG[WLAN_WEPMAX_KEYLEN+3];
|
||||
BYTE byKeyIndex;
|
||||
RC4Ext SBox;
|
||||
u8 abyPRNG[WLAN_WEPMAX_KEYLEN+3];
|
||||
u8 byKeyIndex;
|
||||
|
||||
BOOL bAES;
|
||||
int bAES;
|
||||
|
||||
unsigned int uKeyLength;
|
||||
BYTE abyKey[WLAN_WEP232_KEYLEN];
|
||||
u32 uKeyLength;
|
||||
u8 abyKey[WLAN_WEP232_KEYLEN];
|
||||
|
||||
// for AP mode
|
||||
unsigned int uAssocCount;
|
||||
BOOL bMoreData;
|
||||
/* for AP mode */
|
||||
u32 uAssocCount;
|
||||
int bMoreData;
|
||||
|
||||
// QoS
|
||||
BOOL bGrpAckPolicy;
|
||||
/* QoS */
|
||||
int bGrpAckPolicy;
|
||||
|
||||
|
||||
BYTE byAutoFBCtrl;
|
||||
u8 byAutoFBCtrl;
|
||||
|
||||
BOOL bTxMICFail;
|
||||
BOOL bRxMICFail;
|
||||
int bTxMICFail;
|
||||
int bRxMICFail;
|
||||
|
||||
|
||||
// For Update BaseBand VGA Gain Offset
|
||||
BOOL bUpdateBBVGA;
|
||||
unsigned int uBBVGADiffCount;
|
||||
BYTE byBBVGANew;
|
||||
BYTE byBBVGACurrent;
|
||||
BYTE abyBBVGA[BB_VGA_LEVEL];
|
||||
signed long ldBmThreshold[BB_VGA_LEVEL];
|
||||
/* For Update BaseBand VGA Gain Offset */
|
||||
int bUpdateBBVGA;
|
||||
u32 uBBVGADiffCount;
|
||||
u8 byBBVGANew;
|
||||
u8 byBBVGACurrent;
|
||||
u8 abyBBVGA[BB_VGA_LEVEL];
|
||||
signed long ldBmThreshold[BB_VGA_LEVEL];
|
||||
|
||||
BYTE byBBPreEDRSSI;
|
||||
BYTE byBBPreEDIndex;
|
||||
u8 byBBPreEDRSSI;
|
||||
u8 byBBPreEDIndex;
|
||||
|
||||
|
||||
BOOL bRadioCmd;
|
||||
DWORD dwDiagRefCount;
|
||||
int bRadioCmd;
|
||||
u32 dwDiagRefCount;
|
||||
|
||||
// For FOE Tuning
|
||||
BYTE byFOETuning;
|
||||
/* For FOE Tuning */
|
||||
u8 byFOETuning;
|
||||
|
||||
// For Auto Power Tunning
|
||||
/* For Auto Power Tunning */
|
||||
u8 byAutoPwrTunning;
|
||||
|
||||
BYTE byAutoPwrTunning;
|
||||
/* BaseBand Loopback Use */
|
||||
u8 byBBCR4d;
|
||||
u8 byBBCRc9;
|
||||
u8 byBBCR88;
|
||||
u8 byBBCR09;
|
||||
|
||||
// BaseBand Loopback Use
|
||||
BYTE byBBCR4d;
|
||||
BYTE byBBCRc9;
|
||||
BYTE byBBCR88;
|
||||
BYTE byBBCR09;
|
||||
/* command timer */
|
||||
struct timer_list sTimerCommand;
|
||||
|
||||
// command timer
|
||||
struct timer_list sTimerCommand;
|
||||
struct timer_list sTimerTxData;
|
||||
unsigned long nTxDataTimeCout;
|
||||
int fTxDataInSleep;
|
||||
int IsTxDataTrigger;
|
||||
|
||||
struct timer_list sTimerTxData;
|
||||
unsigned long nTxDataTimeCout;
|
||||
BOOL fTxDataInSleep;
|
||||
BOOL IsTxDataTrigger;
|
||||
int fWPA_Authened; /*is WPA/WPA-PSK or WPA2/WPA2-PSK authen?? */
|
||||
u8 byReAssocCount;
|
||||
u8 byLinkWaitCount;
|
||||
|
||||
BOOL fWPA_Authened; //is WPA/WPA-PSK or WPA2/WPA2-PSK authen??
|
||||
BYTE byReAssocCount; //mike add:re-association retry times!
|
||||
BYTE byLinkWaitCount;
|
||||
SEthernetHeader sTxEthHeader;
|
||||
SEthernetHeader sRxEthHeader;
|
||||
u8 abyBroadcastAddr[ETH_ALEN];
|
||||
u8 abySNAP_RFC1042[ETH_ALEN];
|
||||
u8 abySNAP_Bridgetunnel[ETH_ALEN];
|
||||
|
||||
SEthernetHeader sTxEthHeader;
|
||||
SEthernetHeader sRxEthHeader;
|
||||
BYTE abyBroadcastAddr[ETH_ALEN];
|
||||
BYTE abySNAP_RFC1042[ETH_ALEN];
|
||||
BYTE abySNAP_Bridgetunnel[ETH_ALEN];
|
||||
|
||||
// Pre-Authentication & PMK cache
|
||||
SPMKID gsPMKID;
|
||||
SPMKIDCandidateEvent gsPMKIDCandidate;
|
||||
/* Pre-Authentication & PMK cache */
|
||||
SPMKID gsPMKID;
|
||||
SPMKIDCandidateEvent gsPMKIDCandidate;
|
||||
|
||||
|
||||
// for 802.11h
|
||||
BOOL b11hEnable;
|
||||
/* for 802.11h */
|
||||
int b11hEnable;
|
||||
|
||||
BOOL bChannelSwitch;
|
||||
BYTE byNewChannel;
|
||||
BYTE byChannelSwitchCount;
|
||||
int bChannelSwitch;
|
||||
u8 byNewChannel;
|
||||
u8 byChannelSwitchCount;
|
||||
|
||||
//WPA supplicant daemon
|
||||
struct net_device *wpadev;
|
||||
BOOL bWPADEVUp;
|
||||
//--
|
||||
/* WPA supplicant daemon */
|
||||
int bWPADEVUp;
|
||||
int bwextstep0;
|
||||
int bwextstep1;
|
||||
int bwextstep2;
|
||||
int bwextstep3;
|
||||
int bWPASuppWextEnabled;
|
||||
|
||||
BOOL bwextstep0;
|
||||
BOOL bwextstep1;
|
||||
BOOL bwextstep2;
|
||||
BOOL bwextstep3;
|
||||
BOOL bWPASuppWextEnabled;
|
||||
|
||||
#ifdef HOSTAP
|
||||
// user space daemon: hostapd, is used for HOSTAP
|
||||
BOOL bEnableHostapd;
|
||||
BOOL bEnable8021x;
|
||||
BOOL bEnableHostWEP;
|
||||
struct net_device *apdev;
|
||||
/* user space daemon: hostapd, is used for HOSTAP */
|
||||
int bEnableHostapd;
|
||||
int bEnable8021x;
|
||||
int bEnableHostWEP;
|
||||
struct net_device *apdev;
|
||||
int (*tx_80211)(struct sk_buff *skb, struct net_device *dev);
|
||||
#endif
|
||||
unsigned int uChannel;
|
||||
|
||||
struct iw_statistics wstats; // wireless stats
|
||||
BOOL bCommit;
|
||||
u32 uChannel;
|
||||
|
||||
struct iw_statistics wstats; /* wireless stats */
|
||||
|
||||
int bCommit;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue