Commit 81a4e959 authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Greg Kroah-Hartman

staging: vt6655: device.h: Comments fixes

Replace C99 "//" comments by "/* */", remove not
needed comments (year of adding code, commented code)
Signed-off-by: default avatarVeronika Kabatova <veronicca114@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87a97931
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/if.h> #include <linux/if.h>
#include <linux/crc32.h> #include <linux/crc32.h>
//#include <linux/config.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/inetdevice.h> #include <linux/inetdevice.h>
...@@ -58,16 +57,13 @@ ...@@ -58,16 +57,13 @@
#include <linux/ethtool.h> #include <linux/ethtool.h>
/* Include Wireless Extension definition and check version - Jean II */ /* Include Wireless Extension definition and check version - Jean II */
#include <linux/wireless.h> #include <linux/wireless.h>
#include <net/iw_handler.h> // New driver API #include <net/iw_handler.h> /* New driver API */
//2008-0409-07, <Add> by Einsn Liu
#ifndef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT #ifndef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#define WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT #define WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#endif #endif
// /* device specific */
// device specific
//
#include "device_cfg.h" #include "device_cfg.h"
#include "ttype.h" #include "ttype.h"
...@@ -112,7 +108,7 @@ ...@@ -112,7 +108,7 @@
#define FB_RATE0 0 #define FB_RATE0 0
#define FB_RATE1 1 #define FB_RATE1 1
// Antenna Mode /* Antenna Mode */
#define ANT_A 0 #define ANT_A 0
#define ANT_B 1 #define ANT_B 1
#define ANT_DIVERSITY 2 #define ANT_DIVERSITY 2
...@@ -129,10 +125,10 @@ ...@@ -129,10 +125,10 @@
#define RUN_AT(x) (jiffies+(x)) #define RUN_AT(x) (jiffies+(x))
#endif #endif
// DMA related /* DMA related */
#define RESERV_AC0DMA 4 #define RESERV_AC0DMA 4
// BUILD OBJ mode /* BUILD OBJ mode */
#define AVAIL_TD(p, q) ((p)->sOpts.nTxDescs[(q)] - ((p)->iTDUsed[(q)])) #define AVAIL_TD(p, q) ((p)->sOpts.nTxDescs[(q)] - ((p)->iTDUsed[(q)]))
...@@ -148,7 +144,7 @@ do { \ ...@@ -148,7 +144,7 @@ do { \
printk(p, ##args); \ printk(p, ##args); \
} while (0) } while (0)
//0:11A 1:11B 2:11G /* 0:11A 1:11B 2:11G */
typedef enum _VIA_BB_TYPE typedef enum _VIA_BB_TYPE
{ {
BB_TYPE_11A = 0, BB_TYPE_11A = 0,
...@@ -156,7 +152,7 @@ typedef enum _VIA_BB_TYPE ...@@ -156,7 +152,7 @@ typedef enum _VIA_BB_TYPE
BB_TYPE_11G BB_TYPE_11G
} VIA_BB_TYPE, *PVIA_BB_TYPE; } VIA_BB_TYPE, *PVIA_BB_TYPE;
//0:11a,1:11b,2:11gb(only CCK in BasicRate),3:11ga(OFDM in Basic Rate) /* 0:11a,1:11b,2:11gb(only CCK in BasicRate),3:11ga(OFDM in Basic Rate) */
typedef enum _VIA_PKT_TYPE typedef enum _VIA_PKT_TYPE
{ {
PK_TYPE_11A = 0, PK_TYPE_11A = 0,
...@@ -166,21 +162,20 @@ typedef enum _VIA_PKT_TYPE ...@@ -166,21 +162,20 @@ typedef enum _VIA_PKT_TYPE
} VIA_PKT_TYPE, *PVIA_PKT_TYPE; } VIA_PKT_TYPE, *PVIA_PKT_TYPE;
typedef enum __device_msg_level { typedef enum __device_msg_level {
MSG_LEVEL_ERR = 0, //Errors that will cause abnormal operation. MSG_LEVEL_ERR = 0, /* Errors that will cause abnormal operation. */
MSG_LEVEL_NOTICE = 1, //Some errors need users to be notified. MSG_LEVEL_NOTICE = 1, /* Some errors need users to be notified. */
MSG_LEVEL_INFO = 2, //Normal message. MSG_LEVEL_INFO = 2, /* Normal message. */
MSG_LEVEL_VERBOSE = 3, //Will report all trival errors. MSG_LEVEL_VERBOSE = 3, /* Will report all trival errors. */
MSG_LEVEL_DEBUG = 4 //Only for debug purpose. MSG_LEVEL_DEBUG = 4 /* Only for debug purpose. */
} DEVICE_MSG_LEVEL, *PDEVICE_MSG_LEVEL; } DEVICE_MSG_LEVEL, *PDEVICE_MSG_LEVEL;
//++ NDIS related /* NDIS related */
#define MAX_BSSIDINFO_4_PMKID 16 #define MAX_BSSIDINFO_4_PMKID 16
#define MAX_PMKIDLIST 5 #define MAX_PMKIDLIST 5
//Flags for PMKID Candidate list structure /* Flags for PMKID Candidate list structure */
#define NDIS_802_11_PMKID_CANDIDATE_PREAUTH_ENABLED 0x01 #define NDIS_802_11_PMKID_CANDIDATE_PREAUTH_ENABLED 0x01
// PMKID Structures /* PMKID Structures */
typedef unsigned char NDIS_802_11_PMKID_VALUE[16]; typedef unsigned char NDIS_802_11_PMKID_VALUE[16];
typedef enum _NDIS_802_11_WEP_STATUS { typedef enum _NDIS_802_11_WEP_STATUS {
...@@ -203,10 +198,10 @@ typedef enum _NDIS_802_11_STATUS_TYPE { ...@@ -203,10 +198,10 @@ typedef enum _NDIS_802_11_STATUS_TYPE {
Ndis802_11StatusType_Authentication, Ndis802_11StatusType_Authentication,
Ndis802_11StatusType_MediaStreamMode, Ndis802_11StatusType_MediaStreamMode,
Ndis802_11StatusType_PMKID_CandidateList, Ndis802_11StatusType_PMKID_CandidateList,
Ndis802_11StatusTypeMax // not a real type, defined as an upper bound Ndis802_11StatusTypeMax /* defined as an upper bound */
} NDIS_802_11_STATUS_TYPE, *PNDIS_802_11_STATUS_TYPE; } NDIS_802_11_STATUS_TYPE, *PNDIS_802_11_STATUS_TYPE;
//Added new types for PMKID Candidate lists. /* Added new types for PMKID Candidate lists. */
struct pmkid_candidate { struct pmkid_candidate {
NDIS_802_11_MAC_ADDRESS BSSID; NDIS_802_11_MAC_ADDRESS BSSID;
unsigned long Flags; unsigned long Flags;
...@@ -225,14 +220,12 @@ typedef struct tagSPMKID { ...@@ -225,14 +220,12 @@ typedef struct tagSPMKID {
typedef struct tagSPMKIDCandidateEvent { typedef struct tagSPMKIDCandidateEvent {
NDIS_802_11_STATUS_TYPE StatusType; NDIS_802_11_STATUS_TYPE StatusType;
unsigned long Version; // Version of the structure unsigned long Version; /* Version of the structure */
unsigned long NumCandidates; // No. of pmkid candidates unsigned long NumCandidates; /* No. of pmkid candidates */
struct pmkid_candidate CandidateList[MAX_PMKIDLIST]; struct pmkid_candidate CandidateList[MAX_PMKIDLIST];
} SPMKIDCandidateEvent, *PSPMKIDCandidateEvent; } SPMKIDCandidateEvent, *PSPMKIDCandidateEvent;
//-- /* 802.11h related */
//++ 802.11h related
#define MAX_QUIET_COUNT 8 #define MAX_QUIET_COUNT 8
typedef struct tagSQuietControl { typedef struct tagSQuietControl {
...@@ -242,7 +235,6 @@ typedef struct tagSQuietControl { ...@@ -242,7 +235,6 @@ typedef struct tagSQuietControl {
unsigned short wDuration; unsigned short wDuration;
} SQuietControl, *PSQuietControl; } SQuietControl, *PSQuietControl;
//--
typedef struct __chip_info_tbl { typedef struct __chip_info_tbl {
CHIP_TYPE chip_id; CHIP_TYPE chip_id;
char *name; char *name;
...@@ -256,22 +248,22 @@ typedef enum { ...@@ -256,22 +248,22 @@ typedef enum {
OWNED_BY_NIC = 1 OWNED_BY_NIC = 1
} DEVICE_OWNER_TYPE, *PDEVICE_OWNER_TYPE; } DEVICE_OWNER_TYPE, *PDEVICE_OWNER_TYPE;
// The receive duplicate detection cache entry /* The receive duplicate detection cache entry */
typedef struct tagSCacheEntry { typedef struct tagSCacheEntry {
unsigned short wFmSequence; unsigned short wFmSequence;
unsigned char abyAddr2[ETH_ALEN]; unsigned char abyAddr2[ETH_ALEN];
} SCacheEntry, *PSCacheEntry; } SCacheEntry, *PSCacheEntry;
typedef struct tagSCache { typedef struct tagSCache {
/* The receive cache is updated circularly. The next entry to be written is /* The receive cache is updated circularly. The next entry to be written is
* indexed by the "InPtr". * indexed by the "InPtr".
*/ */
unsigned int uInPtr; // Place to use next unsigned int uInPtr; /* Place to use next */
SCacheEntry asCacheEntry[DUPLICATE_RX_CACHE_LENGTH]; SCacheEntry asCacheEntry[DUPLICATE_RX_CACHE_LENGTH];
} SCache, *PSCache; } SCache, *PSCache;
#define CB_MAX_RX_FRAG 64 #define CB_MAX_RX_FRAG 64
// DeFragment Control Block, used for collecting fragments prior to reassembly /* DeFragment Control Block, used for collecting fragments prior to reassembly */
typedef struct tagSDeFragControlBlock { typedef struct tagSDeFragControlBlock {
unsigned short wSequence; unsigned short wSequence;
unsigned short wFragNum; unsigned short wFragNum;
...@@ -283,7 +275,7 @@ typedef struct tagSDeFragControlBlock { ...@@ -283,7 +275,7 @@ typedef struct tagSDeFragControlBlock {
bool bInUse; bool bInUse;
} SDeFragControlBlock, *PSDeFragControlBlock; } SDeFragControlBlock, *PSDeFragControlBlock;
//flags for options /* flags for options */
#define DEVICE_FLAGS_IP_ALIGN 0x00000001UL #define DEVICE_FLAGS_IP_ALIGN 0x00000001UL
#define DEVICE_FLAGS_PREAMBLE_TYPE 0x00000002UL #define DEVICE_FLAGS_PREAMBLE_TYPE 0x00000002UL
#define DEVICE_FLAGS_OP_MODE 0x00000004UL #define DEVICE_FLAGS_OP_MODE 0x00000004UL
...@@ -291,15 +283,15 @@ typedef struct tagSDeFragControlBlock { ...@@ -291,15 +283,15 @@ typedef struct tagSDeFragControlBlock {
#define DEVICE_FLAGS_80211h_MODE 0x00000010UL #define DEVICE_FLAGS_80211h_MODE 0x00000010UL
#define DEVICE_FLAGS_DiversityANT 0x00000020UL #define DEVICE_FLAGS_DiversityANT 0x00000020UL
//flags for driver status /* flags for driver status */
#define DEVICE_FLAGS_OPENED 0x00010000UL #define DEVICE_FLAGS_OPENED 0x00010000UL
#define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL #define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL
//flags for capabilities /* flags for capabilities */
#define DEVICE_FLAGS_TX_ALIGN 0x01000000UL #define DEVICE_FLAGS_TX_ALIGN 0x01000000UL
#define DEVICE_FLAGS_HAVE_CAM 0x02000000UL #define DEVICE_FLAGS_HAVE_CAM 0x02000000UL
#define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL #define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL
//flags for MII status /* flags for MII status */
#define DEVICE_LINK_FAIL 0x00000001UL #define DEVICE_LINK_FAIL 0x00000001UL
#define DEVICE_SPEED_10 0x00000002UL #define DEVICE_SPEED_10 0x00000002UL
#define DEVICE_SPEED_100 0x00000004UL #define DEVICE_SPEED_100 0x00000004UL
...@@ -307,15 +299,15 @@ typedef struct tagSDeFragControlBlock { ...@@ -307,15 +299,15 @@ typedef struct tagSDeFragControlBlock {
#define DEVICE_DUPLEX_FULL 0x00000010UL #define DEVICE_DUPLEX_FULL 0x00000010UL
#define DEVICE_AUTONEG_ENABLE 0x00000020UL #define DEVICE_AUTONEG_ENABLE 0x00000020UL
#define DEVICE_FORCED_BY_EEPROM 0x00000040UL #define DEVICE_FORCED_BY_EEPROM 0x00000040UL
//for device_set_media_duplex /* for device_set_media_duplex */
#define DEVICE_LINK_CHANGE 0x00000001UL #define DEVICE_LINK_CHANGE 0x00000001UL
typedef struct __device_opt { typedef struct __device_opt {
int nRxDescs0; //Number of RX descriptors0 int nRxDescs0; /* Number of RX descriptors0 */
int nRxDescs1; //Number of RX descriptors1 int nRxDescs1; /* Number of RX descriptors1 */
int nTxDescs[2]; //Number of TX descriptors 0, 1 int nTxDescs[2]; /* Number of TX descriptors 0, 1 */
int int_works; //interrupt limits int int_works; /* interrupt limits */
int rts_thresh; //rts threshold int rts_thresh; /* rts threshold */
int frag_thresh; int frag_thresh;
int data_rate; int data_rate;
int channel_num; int channel_num;
...@@ -328,10 +320,10 @@ typedef struct __device_opt { ...@@ -328,10 +320,10 @@ typedef struct __device_opt {
struct vnt_private { struct vnt_private {
struct pci_dev *pcid; struct pci_dev *pcid;
// netdev /* netdev */
struct net_device *dev; struct net_device *dev;
//dma addr, rx/tx pool /* dma addr, rx/tx pool */
dma_addr_t pool_dma; dma_addr_t pool_dma;
dma_addr_t rd0_pool_dma; dma_addr_t rd0_pool_dma;
dma_addr_t rd1_pool_dma; dma_addr_t rd1_pool_dma;
...@@ -394,7 +386,7 @@ struct vnt_private { ...@@ -394,7 +386,7 @@ struct vnt_private {
u32 rx_bytes; u32 rx_bytes;
// Version control /* Version control */
unsigned char byLocalID; unsigned char byLocalID;
unsigned char byRFType; unsigned char byRFType;
...@@ -404,18 +396,18 @@ struct vnt_private { ...@@ -404,18 +396,18 @@ struct vnt_private {
unsigned char byOriginalZonetype; unsigned char byOriginalZonetype;
unsigned char abyMacContext[MAC_MAX_CONTEXT_REG]; unsigned char abyMacContext[MAC_MAX_CONTEXT_REG];
unsigned char abyCurrentNetAddr[ETH_ALEN]; unsigned char abyCurrentNetAddr[ETH_ALEN];
bool bLinkPass; // link status: OK or fail bool bLinkPass; /* link status: OK or fail */
// Adapter statistics /* Adapter statistics */
SStatCounter scStatistic; SStatCounter scStatistic;
// 802.11 counter /* 802.11 counter */
SDot11Counters s802_11Counter; SDot11Counters s802_11Counter;
// 802.11 management /* 802.11 management */
PSMgmtObject pMgmt; PSMgmtObject pMgmt;
SMgmtObject sMgmtObj; SMgmtObject sMgmtObj;
// 802.11 MAC specific /* 802.11 MAC specific */
unsigned int uCurrRSSI; unsigned int uCurrRSSI;
unsigned char byCurrSQ; unsigned char byCurrSQ;
...@@ -427,22 +419,26 @@ struct vnt_private { ...@@ -427,22 +419,26 @@ struct vnt_private {
bool bTxRxAntInv; bool bTxRxAntInv;
unsigned char *pbyTmpBuff; unsigned char *pbyTmpBuff;
unsigned int uSIFS; //Current SIFS unsigned int uSIFS; /* Current SIFS */
unsigned int uDIFS; //Current DIFS unsigned int uDIFS; /* Current DIFS */
unsigned int uEIFS; //Current EIFS unsigned int uEIFS; /* Current EIFS */
unsigned int uSlot; //Current SlotTime unsigned int uSlot; /* Current SlotTime */
unsigned int uCwMin; //Current CwMin unsigned int uCwMin; /* Current CwMin */
unsigned int uCwMax; //CwMax is fixed on 1023. unsigned int uCwMax; /* CwMax is fixed on 1023. */
// PHY parameter /* PHY parameter */
unsigned char bySIFS; unsigned char bySIFS;
unsigned char byDIFS; unsigned char byDIFS;
unsigned char byEIFS; unsigned char byEIFS;
unsigned char bySlot; unsigned char bySlot;
unsigned char byCWMaxMin; unsigned char byCWMaxMin;
CARD_PHY_TYPE eCurrentPHYType; CARD_PHY_TYPE eCurrentPHYType;
VIA_BB_TYPE byBBType; //0: 11A, 1:11B, 2:11G 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) VIA_PKT_TYPE byPacketType; /*
* 0:11a,1:11b,2:11gb (only CCK
* in BasicRate), 3:11ga (OFDM in
* Basic Rate)
*/
unsigned short wBasicRate; unsigned short wBasicRate;
unsigned char byACKRate; unsigned char byACKRate;
unsigned char byTopOFDMBasicRate; unsigned char byTopOFDMBasicRate;
...@@ -466,12 +462,12 @@ struct vnt_private { ...@@ -466,12 +462,12 @@ struct vnt_private {
unsigned short wMaxTransmitMSDULifetime; unsigned short wMaxTransmitMSDULifetime;
unsigned char abyBSSID[ETH_ALEN]; unsigned char abyBSSID[ETH_ALEN];
unsigned char abyDesireBSSID[ETH_ALEN]; unsigned char abyDesireBSSID[ETH_ALEN];
unsigned short wACKDuration; // update while speed change unsigned short wACKDuration; /* update while speed change */
unsigned short wRTSTransmitLen; // update while speed change unsigned short wRTSTransmitLen; /* update while speed change */
unsigned char byRTSServiceField; // update while speed change unsigned char byRTSServiceField; /* update while speed change */
unsigned char byRTSSignalField; // update while speed change unsigned char byRTSSignalField; /* update while speed change */
unsigned long dwMaxReceiveLifetime; // dot11MaxReceiveLifetime unsigned long dwMaxReceiveLifetime; /* dot11MaxReceiveLifetime */
bool bEncryptionEnable; bool bEncryptionEnable;
bool bLongHeader; bool bLongHeader;
...@@ -490,14 +486,14 @@ struct vnt_private { ...@@ -490,14 +486,14 @@ struct vnt_private {
bool bPWBitOn; bool bPWBitOn;
WMAC_POWER_MODE ePSMode; WMAC_POWER_MODE ePSMode;
// GPIO Radio Control /* GPIO Radio Control */
unsigned char byRadioCtl; unsigned char byRadioCtl;
unsigned char byGPIO; unsigned char byGPIO;
bool bHWRadioOff; bool bHWRadioOff;
bool bPrvActive4RadioOFF; bool bPrvActive4RadioOFF;
bool bGPIOBlockRead; bool bGPIOBlockRead;
// Beacon related /* Beacon related */
unsigned short wSeqCounter; unsigned short wSeqCounter;
unsigned short wBCNBufLen; unsigned short wBCNBufLen;
bool bBeaconBufReady; bool bBeaconBufReady;
...@@ -518,7 +514,7 @@ struct vnt_private { ...@@ -518,7 +514,7 @@ struct vnt_private {
bool bStopTx0Pkt; bool bStopTx0Pkt;
unsigned int uAutoReConnectTime; unsigned int uAutoReConnectTime;
// 802.11 counter /* 802.11 counter */
CMD_ITEM eCmdQueue[CMD_Q_SIZE]; CMD_ITEM eCmdQueue[CMD_Q_SIZE];
unsigned int uCmdDequeueIdx; unsigned int uCmdDequeueIdx;
...@@ -528,14 +524,11 @@ struct vnt_private { ...@@ -528,14 +524,11 @@ struct vnt_private {
bool bCmdClear; bool bCmdClear;
bool bRoaming; bool bRoaming;
//WOW
unsigned char abyIPAddr[4]; unsigned char abyIPAddr[4];
unsigned long ulTxPower; unsigned long ulTxPower;
NDIS_802_11_WEP_STATUS eEncryptionStatus; NDIS_802_11_WEP_STATUS eEncryptionStatus;
bool bTransmitKey; bool bTransmitKey;
//2007-0925-01<Add>by MikeLiu
//mike add :save old Encryption
NDIS_802_11_WEP_STATUS eOldEncryptionStatus; NDIS_802_11_WEP_STATUS eOldEncryptionStatus;
SKeyManagement sKey; SKeyManagement sKey;
...@@ -553,14 +546,14 @@ struct vnt_private { ...@@ -553,14 +546,14 @@ struct vnt_private {
bool bAES; bool bAES;
unsigned char byCntMeasure; unsigned char byCntMeasure;
// for AP mode /* for AP mode */
unsigned int uAssocCount; unsigned int uAssocCount;
bool bMoreData; bool bMoreData;
// QoS /* QoS */
bool bGrpAckPolicy; bool bGrpAckPolicy;
// for OID_802_11_ASSOCIATION_INFORMATION /* for OID_802_11_ASSOCIATION_INFORMATION */
bool bAssocInfoSet; bool bAssocInfoSet;
unsigned char byAutoFBCtrl; unsigned char byAutoFBCtrl;
...@@ -570,7 +563,7 @@ struct vnt_private { ...@@ -570,7 +563,7 @@ struct vnt_private {
unsigned int uRATEIdx; unsigned int uRATEIdx;
// For Update BaseBand VGA Gain Offset /* For Update BaseBand VGA Gain Offset */
bool bUpdateBBVGA; bool bUpdateBBVGA;
unsigned int uBBVGADiffCount; unsigned int uBBVGADiffCount;
unsigned char byBBVGANew; unsigned char byBBVGANew;
...@@ -584,11 +577,10 @@ struct vnt_private { ...@@ -584,11 +577,10 @@ struct vnt_private {
bool bRadioCmd; bool bRadioCmd;
unsigned long dwDiagRefCount; unsigned long dwDiagRefCount;
// For FOE Tuning /* For FOE Tuning */
unsigned char byFOETuning; unsigned char byFOETuning;
// For Auto Power Tunning /* For Auto Power Tunning */
unsigned char byAutoPwrTunning; unsigned char byAutoPwrTunning;
short sPSetPointCCK; short sPSetPointCCK;
short sPSetPointOFDMG; short sPSetPointOFDMG;
...@@ -598,7 +590,7 @@ struct vnt_private { ...@@ -598,7 +590,7 @@ struct vnt_private {
char cAdjustStep; char cAdjustStep;
char cMinTxAGC; char cMinTxAGC;
// For RF Power table /* For RF Power table */
unsigned char byCCKPwr; unsigned char byCCKPwr;
unsigned char byOFDMPwrG; unsigned char byOFDMPwrG;
unsigned char byCurPwr; unsigned char byCurPwr;
...@@ -610,13 +602,13 @@ struct vnt_private { ...@@ -610,13 +602,13 @@ struct vnt_private {
char abyRegPwr[CB_MAX_CHANNEL+1]; char abyRegPwr[CB_MAX_CHANNEL+1];
char abyLocalPwr[CB_MAX_CHANNEL+1]; char abyLocalPwr[CB_MAX_CHANNEL+1];
// BaseBand Loopback Use /* BaseBand Loopback Use */
unsigned char byBBCR4d; unsigned char byBBCR4d;
unsigned char byBBCRc9; unsigned char byBBCRc9;
unsigned char byBBCR88; unsigned char byBBCR88;
unsigned char byBBCR09; unsigned char byBBCR09;
// command timer /* command timer */
struct timer_list sTimerCommand; struct timer_list sTimerCommand;
struct timer_list sTimerTxData; struct timer_list sTimerTxData;
unsigned long nTxDataTimeCout; unsigned long nTxDataTimeCout;
...@@ -624,9 +616,9 @@ struct vnt_private { ...@@ -624,9 +616,9 @@ struct vnt_private {
bool IsTxDataTrigger; bool IsTxDataTrigger;
#ifdef WPA_SM_Transtatus #ifdef WPA_SM_Transtatus
bool fWPA_Authened; //is WPA/WPA-PSK or WPA2/WPA2-PSK authen?? bool fWPA_Authened; /* is WPA/WPA-PSK or WPA2/WPA2-PSK authen?? */
#endif #endif
unsigned char byReAssocCount; //mike add:re-association retry times! unsigned char byReAssocCount;
unsigned char byLinkWaitCount; unsigned char byLinkWaitCount;
unsigned char abyNodeName[17]; unsigned char abyNodeName[17];
...@@ -640,13 +632,13 @@ struct vnt_private { ...@@ -640,13 +632,13 @@ struct vnt_private {
unsigned char byTMax3; unsigned char byTMax3;
unsigned long ulSQ3TH; unsigned long ulSQ3TH;
// ANT diversity /* ANT diversity */
unsigned long uDiversityCnt; unsigned long uDiversityCnt;
unsigned char byAntennaState; unsigned char byAntennaState;
unsigned long ulRatio_State0; unsigned long ulRatio_State0;
unsigned long ulRatio_State1; unsigned long ulRatio_State1;
//SQ3 functions for antenna diversity /* SQ3 functions for antenna diversity */
struct timer_list TimerSQ3Tmax1; struct timer_list TimerSQ3Tmax1;
struct timer_list TimerSQ3Tmax2; struct timer_list TimerSQ3Tmax2;
struct timer_list TimerSQ3Tmax3; struct timer_list TimerSQ3Tmax3;
...@@ -659,15 +651,15 @@ struct vnt_private { ...@@ -659,15 +651,15 @@ struct vnt_private {
unsigned char abyBroadcastAddr[ETH_ALEN]; unsigned char abyBroadcastAddr[ETH_ALEN];
unsigned char abySNAP_RFC1042[ETH_ALEN]; unsigned char abySNAP_RFC1042[ETH_ALEN];
unsigned char abySNAP_Bridgetunnel[ETH_ALEN]; unsigned char abySNAP_Bridgetunnel[ETH_ALEN];
unsigned char abyEEPROM[EEP_MAX_CONTEXT_SIZE]; //unsigned long alignment unsigned char abyEEPROM[EEP_MAX_CONTEXT_SIZE]; /* unsigned long alignment */
// Pre-Authentication & PMK cache /* Pre-Authentication & PMK cache */
SPMKID gsPMKID; SPMKID gsPMKID;
SPMKIDCandidateEvent gsPMKIDCandidate; SPMKIDCandidateEvent gsPMKIDCandidate;
// for 802.11h /* for 802.11h */
bool b11hEnable; bool b11hEnable;
unsigned char abyCountryCode[3]; unsigned char abyCountryCode[3];
// for 802.11h DFS /* for 802.11h DFS */
unsigned int uNumOfMeasureEIDs; unsigned int uNumOfMeasureEIDs;
PWLAN_IE_MEASURE_REQ pCurrMeasureEID; PWLAN_IE_MEASURE_REQ pCurrMeasureEID;
bool bMeasureInProgress; bool bMeasureInProgress;
...@@ -688,13 +680,13 @@ struct vnt_private { ...@@ -688,13 +680,13 @@ struct vnt_private {
unsigned int uQuietEnqueue; unsigned int uQuietEnqueue;
unsigned long dwCurrentQuietEndTime; unsigned long dwCurrentQuietEndTime;
SQuietControl sQuiet[MAX_QUIET_COUNT]; SQuietControl sQuiet[MAX_QUIET_COUNT];
// for 802.11h TPC /* for 802.11h TPC */
bool bCountryInfo5G; bool bCountryInfo5G;
bool bCountryInfo24G; bool bCountryInfo24G;
unsigned short wBeaconInterval; unsigned short wBeaconInterval;
//WPA supplicant deamon /* WPA supplicant deamon */
struct net_device *wpadev; struct net_device *wpadev;
bool bWPADEVUp; bool bWPADEVUp;
struct sk_buff *skb; struct sk_buff *skb;
...@@ -703,9 +695,8 @@ struct vnt_private { ...@@ -703,9 +695,8 @@ struct vnt_private {
bool bWPASuppWextEnabled; bool bWPASuppWextEnabled;
#endif #endif
//--
#ifdef HOSTAP #ifdef HOSTAP
// user space daemon: hostapd, is used for HOSTAP /* user space daemon: hostapd, is used for HOSTAP */
bool bEnableHostapd; bool bEnableHostapd;
bool bEnable8021x; bool bEnable8021x;
bool bEnableHostWEP; bool bEnableHostWEP;
...@@ -715,7 +706,7 @@ struct vnt_private { ...@@ -715,7 +706,7 @@ struct vnt_private {
unsigned int uChannel; unsigned int uChannel;
bool bMACSuspend; bool bMACSuspend;
struct iw_statistics wstats; // wireless stats struct iw_statistics wstats; /* wireless stats */
bool bCommit; bool bCommit;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment