Commit d9d1ccb5 authored by Andres More's avatar Andres More Committed by Greg Kroah-Hartman

Staging: vt6656: code cleanup, resolved checkpatch findings in headers

Resolved whitespace-related checkpatch findings in .h files
Signed-off-by: default avatarAndres More <more.andres@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 33d33e42
...@@ -222,46 +222,39 @@ ...@@ -222,46 +222,39 @@
#define MEASURE_MODE_INCAPABLE 0x02 #define MEASURE_MODE_INCAPABLE 0x02
#define MEASURE_MODE_REFUSED 0x04 #define MEASURE_MODE_REFUSED 0x04
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
// Information Element Types // Information Element Types
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE { typedef struct tagWLAN_IE {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE, *PWLAN_IE; WLAN_IE, *PWLAN_IE;
// Service Set Identity (SSID) // Service Set Identity (SSID)
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_SSID { typedef struct tagWLAN_IE_SSID {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
BYTE abySSID[1]; BYTE abySSID[1];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_SSID, *PWLAN_IE_SSID; WLAN_IE_SSID, *PWLAN_IE_SSID;
// Supported Rates // Supported Rates
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_SUPP_RATES { typedef struct tagWLAN_IE_SUPP_RATES {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
BYTE abyRates[1]; BYTE abyRates[1];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_SUPP_RATES, *PWLAN_IE_SUPP_RATES; WLAN_IE_SUPP_RATES, *PWLAN_IE_SUPP_RATES;
// FH Parameter Set // FH Parameter Set
#pragma pack(1) #pragma pack(1)
typedef struct _WLAN_IE_FH_PARMS { typedef struct _WLAN_IE_FH_PARMS {
...@@ -279,10 +272,9 @@ typedef struct tagWLAN_IE_DS_PARMS { ...@@ -279,10 +272,9 @@ typedef struct tagWLAN_IE_DS_PARMS {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
BYTE byCurrChannel; BYTE byCurrChannel;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_DS_PARMS, *PWLAN_IE_DS_PARMS; WLAN_IE_DS_PARMS, *PWLAN_IE_DS_PARMS;
// CF Parameter Set // CF Parameter Set
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_CF_PARMS { typedef struct tagWLAN_IE_CF_PARMS {
...@@ -292,10 +284,9 @@ typedef struct tagWLAN_IE_CF_PARMS { ...@@ -292,10 +284,9 @@ typedef struct tagWLAN_IE_CF_PARMS {
BYTE byCFPPeriod; BYTE byCFPPeriod;
WORD wCFPMaxDuration; WORD wCFPMaxDuration;
WORD wCFPDurRemaining; WORD wCFPDurRemaining;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_CF_PARMS, *PWLAN_IE_CF_PARMS; WLAN_IE_CF_PARMS, *PWLAN_IE_CF_PARMS;
// TIM // TIM
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_TIM { typedef struct tagWLAN_IE_TIM {
...@@ -305,30 +296,27 @@ typedef struct tagWLAN_IE_TIM { ...@@ -305,30 +296,27 @@ typedef struct tagWLAN_IE_TIM {
BYTE byDTIMPeriod; BYTE byDTIMPeriod;
BYTE byBitMapCtl; BYTE byBitMapCtl;
BYTE byVirtBitMap[1]; BYTE byVirtBitMap[1];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_TIM, *PWLAN_IE_TIM; WLAN_IE_TIM, *PWLAN_IE_TIM;
// IBSS Parameter Set // IBSS Parameter Set
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_IBSS_PARMS { typedef struct tagWLAN_IE_IBSS_PARMS {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
WORD wATIMWindow; WORD wATIMWindow;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_IBSS_PARMS, *PWLAN_IE_IBSS_PARMS; WLAN_IE_IBSS_PARMS, *PWLAN_IE_IBSS_PARMS;
// Challenge Text // Challenge Text
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_CHALLENGE { typedef struct tagWLAN_IE_CHALLENGE {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
BYTE abyChallenge[1]; BYTE abyChallenge[1];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_CHALLENGE, *PWLAN_IE_CHALLENGE; WLAN_IE_CHALLENGE, *PWLAN_IE_CHALLENGE;
#pragma pack(1) #pragma pack(1)
typedef struct tagWLAN_IE_RSN_EXT { typedef struct tagWLAN_IE_RSN_EXT {
BYTE byElementID; BYTE byElementID;
...@@ -391,10 +379,9 @@ typedef struct tagWLAN_IE_ERP { ...@@ -391,10 +379,9 @@ typedef struct tagWLAN_IE_ERP {
BYTE byElementID; BYTE byElementID;
BYTE len; BYTE len;
BYTE byContext; BYTE byContext;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
WLAN_IE_ERP, *PWLAN_IE_ERP; WLAN_IE_ERP, *PWLAN_IE_ERP;
#pragma pack(1) #pragma pack(1)
typedef struct _MEASEURE_REQ { typedef struct _MEASEURE_REQ {
BYTE byChannel; BYTE byChannel;
......
...@@ -104,16 +104,13 @@ BBuGetFrameTime( ...@@ -104,16 +104,13 @@ BBuGetFrameTime(
WORD wRate WORD wRate
); );
void void BBvCaculateParameter(PSDevice pDevice,
BBvCaculateParameter ( unsigned int cbFrameLength,
PSDevice pDevice, WORD wRate,
unsigned int cbFrameLength, BYTE byPacketType,
WORD wRate, PWORD pwPhyLen,
BYTE byPacketType, PBYTE pbyPhySrv,
PWORD pwPhyLen, PBYTE pbyPhySgn);
PBYTE pbyPhySrv,
PBYTE pbyPhySgn
);
// timer for antenna diversity // timer for antenna diversity
...@@ -128,7 +125,7 @@ void BBvSoftwareReset(PSDevice pDevice); ...@@ -128,7 +125,7 @@ void BBvSoftwareReset(PSDevice pDevice);
void BBvSetShortSlotTime(PSDevice pDevice); void BBvSetShortSlotTime(PSDevice pDevice);
void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData); void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData);
void BBvSetAntennaMode(PSDevice pDevice, BYTE byAntennaMode); void BBvSetAntennaMode(PSDevice pDevice, BYTE byAntennaMode);
BOOL BBbVT3184Init (PSDevice pDevice); BOOL BBbVT3184Init(PSDevice pDevice);
void BBvSetDeepSleep(PSDevice pDevice); void BBvSetDeepSleep(PSDevice pDevice);
void BBvExitDeepSleep(PSDevice pDevice); void BBvExitDeepSleep(PSDevice pDevice);
void BBvUpdatePreEDThreshold( void BBvUpdatePreEDThreshold(
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define MAX_NODE_NUM 64 #define MAX_NODE_NUM 64
#define MAX_BSS_NUM 42 #define MAX_BSS_NUM 42
#define LOST_BEACON_COUNT 10 // 10 sec, XP defined #define LOST_BEACON_COUNT 10 /* 10 sec, XP defined */
#define MAX_PS_TX_BUF 32 // sta max power saving tx buf #define MAX_PS_TX_BUF 32 // sta max power saving tx buf
#define ADHOC_LOST_BEACON_COUNT 30 // 30 sec, beacon lost for adhoc only #define ADHOC_LOST_BEACON_COUNT 30 // 30 sec, beacon lost for adhoc only
#define MAX_INACTIVE_COUNT 300 // 300 sec, inactive STA node refresh #define MAX_INACTIVE_COUNT 300 // 300 sec, inactive STA node refresh
...@@ -83,13 +83,13 @@ ...@@ -83,13 +83,13 @@
typedef struct tagSERPObject { typedef struct tagSERPObject {
BOOL bERPExist; BOOL bERPExist;
BYTE byERP; BYTE byERP;
}ERPObject, *PERPObject; } ERPObject, *PERPObject;
typedef struct tagSRSNCapObject { typedef struct tagSRSNCapObject {
BOOL bRSNCapExist; BOOL bRSNCapExist;
WORD wRSNCap; WORD wRSNCap;
}SRSNCapObject, *PSRSNCapObject; } SRSNCapObject, *PSRSNCapObject;
// BSS info(AP) // BSS info(AP)
#pragma pack(1) #pragma pack(1)
...@@ -153,7 +153,7 @@ typedef struct tagKnownBSS { ...@@ -153,7 +153,7 @@ typedef struct tagKnownBSS {
SRSNCapObject sRSNCapObj; SRSNCapObject sRSNCapObj;
BYTE abyIEs[1024]; // don't move this field !! BYTE abyIEs[1024]; // don't move this field !!
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
KnownBSS , *PKnownBSS; KnownBSS , *PKnownBSS;
......
...@@ -35,23 +35,21 @@ ...@@ -35,23 +35,21 @@
/*--------------------- Export Definitions -------------------------*/ /*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
typedef struct tagSChannelTblElement { typedef struct tagSChannelTblElement {
BYTE byChannelNumber; BYTE byChannelNumber;
unsigned int uFrequency; unsigned int uFrequency;
BOOL bValid; BOOL bValid;
}SChannelTblElement, *PSChannelTblElement; } SChannelTblElement, *PSChannelTblElement;
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
BOOL ChannelValid(unsigned int CountryCode, unsigned int ChannelNum); BOOL ChannelValid(unsigned int CountryCode, unsigned int ChannelNum);
void CHvInitChannelTable(void *pDeviceHandler); void CHvInitChannelTable(void *pDeviceHandler);
BYTE CHbyGetChannelMapping(BYTE byChannelNumber); BYTE CHbyGetChannelMapping(BYTE byChannelNumber);
BOOL BOOL CHvChannelGetList(unsigned int uCountryCodeIdx, PBYTE pbyChannelTable);
CHvChannelGetList (
unsigned int uCountryCodeIdx,
PBYTE pbyChannelTable
);
#endif /* _REGULATE_H_ */ #endif /* _CHANNEL_H_ */
...@@ -36,16 +36,14 @@ ...@@ -36,16 +36,14 @@
/*--------------------- Export Definitions -------------------------*/ /*--------------------- Export Definitions -------------------------*/
#define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \
PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer)
#define CONTROLnsRequestOut( Device,Request,Value,Index,Length,Buffer) \ #define CONTROLnsRequestOutAsyn(Device, Request, Value, Index, Length, Buffer) \
PIPEnsControlOut( Device,Request,Value,Index,Length,Buffer) PIPEnsControlOutAsyn(Device, Request, Value, Index, Length, Buffer)
#define CONTROLnsRequestOutAsyn( Device,Request,Value,Index,Length,Buffer) \
PIPEnsControlOutAsyn( Device,Request,Value,Index,Length,Buffer)
#define CONTROLnsRequestIn( Device,Request,Value,Index,Length,Buffer) \
PIPEnsControlIn( Device,Request,Value,Index,Length,Buffer)
#define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \
PIPEnsControlIn(Device, Request, Value, Index, Length, Buffer)
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#define MAX_INTERRUPT_SIZE 32 #define MAX_INTERRUPT_SIZE 32
#define RX_BLOCKS 64 // form 0x60 to 0xA0 #define RX_BLOCKS 64 // form 0x60 to 0xA0
#define TX_BLOCKS 32 // from 0xA0 to 0xC0 #define TX_BLOCKS 32 // from 0xA0 to 0xC0
...@@ -63,8 +62,6 @@ ...@@ -63,8 +62,6 @@
#define CB_RD_NUM 64 // default # of RD #define CB_RD_NUM 64 // default # of RD
#define CB_TD_NUM 64 // default # of TD #define CB_TD_NUM 64 // default # of TD
// //
// Bits in the RSR register // Bits in the RSR register
// //
...@@ -87,7 +84,6 @@ ...@@ -87,7 +84,6 @@
#define NEWRSR_BCNHITAID 0x02 // 0000 0010 #define NEWRSR_BCNHITAID 0x02 // 0000 0010
#define NEWRSR_BCNHITAID0 0x01 // 0000 0001 #define NEWRSR_BCNHITAID0 0x01 // 0000 0001
// //
// Bits in the TSR register // Bits in the TSR register
// //
...@@ -96,17 +92,13 @@ ...@@ -96,17 +92,13 @@
#define TSR_ACKDATA 0x02 // 0000 0010 #define TSR_ACKDATA 0x02 // 0000 0010
#define TSR_VALID 0x01 // 0000 0001 #define TSR_VALID 0x01 // 0000 0001
#define CB_PROTOCOL_RESERVED_SECTION 16 #define CB_PROTOCOL_RESERVED_SECTION 16
// if retrys excess 15 times , tx will abort, and // if retrys excess 15 times , tx will abort, and
// if tx fifo underflow, tx will fail // if tx fifo underflow, tx will fail
// we should try to resend it // we should try to resend it
#define CB_MAX_TX_ABORT_RETRY 3 #define CB_MAX_TX_ABORT_RETRY 3
#define FIFOCTL_AUTO_FB_1 0x1000 // 0001 0000 0000 0000 #define FIFOCTL_AUTO_FB_1 0x1000 // 0001 0000 0000 0000
#define FIFOCTL_AUTO_FB_0 0x0800 // 0000 1000 0000 0000 #define FIFOCTL_AUTO_FB_0 0x0800 // 0000 1000 0000 0000
#define FIFOCTL_GRPACK 0x0400 // 0000 0100 0000 0000 #define FIFOCTL_GRPACK 0x0400 // 0000 0100 0000 0000
...@@ -137,7 +129,6 @@ ...@@ -137,7 +129,6 @@
#define FRAGCTL_STAFRAG 0x0001 // 0000 0000 0000 0001 #define FRAGCTL_STAFRAG 0x0001 // 0000 0000 0000 0001
#define FRAGCTL_NONFRAG 0x0000 // 0000 0000 0000 0000 #define FRAGCTL_NONFRAG 0x0000 // 0000 0000 0000 0000
//#define TYPE_AC0DMA 0 //#define TYPE_AC0DMA 0
//#define TYPE_TXDMA0 1 //#define TYPE_TXDMA0 1
#define TYPE_TXDMA0 0 #define TYPE_TXDMA0 0
...@@ -152,8 +143,6 @@ ...@@ -152,8 +143,6 @@
#define TYPE_RXDMA1 1 #define TYPE_RXDMA1 1
#define TYPE_MAXRD 2 #define TYPE_MAXRD 2
// TD_INFO flags control bit // TD_INFO flags control bit
#define TD_FLAGS_NETIF_SKB 0x01 // check if need release skb #define TD_FLAGS_NETIF_SKB 0x01 // check if need release skb
#define TD_FLAGS_PRIV_SKB 0x02 // check if called from private skb(hostap) #define TD_FLAGS_PRIV_SKB 0x02 // check if called from private skb(hostap)
...@@ -162,7 +151,6 @@ ...@@ -162,7 +151,6 @@
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
// //
// RsvTime buffer header // RsvTime buffer header
// //
...@@ -173,8 +161,9 @@ typedef struct tagSRrvTime_gRTS { ...@@ -173,8 +161,9 @@ typedef struct tagSRrvTime_gRTS {
WORD wReserved; WORD wReserved;
WORD wTxRrvTime_b; WORD wTxRrvTime_b;
WORD wTxRrvTime_a; WORD wTxRrvTime_a;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRrvTime_gRTS, *PSRrvTime_gRTS; SRrvTime_gRTS, *PSRrvTime_gRTS;
typedef const SRrvTime_gRTS *PCSRrvTime_gRTS; typedef const SRrvTime_gRTS *PCSRrvTime_gRTS;
typedef struct tagSRrvTime_gCTS { typedef struct tagSRrvTime_gCTS {
...@@ -182,22 +171,25 @@ typedef struct tagSRrvTime_gCTS { ...@@ -182,22 +171,25 @@ typedef struct tagSRrvTime_gCTS {
WORD wReserved; WORD wReserved;
WORD wTxRrvTime_b; WORD wTxRrvTime_b;
WORD wTxRrvTime_a; WORD wTxRrvTime_a;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRrvTime_gCTS, *PSRrvTime_gCTS; SRrvTime_gCTS, *PSRrvTime_gCTS;
typedef const SRrvTime_gCTS *PCSRrvTime_gCTS; typedef const SRrvTime_gCTS *PCSRrvTime_gCTS;
typedef struct tagSRrvTime_ab { typedef struct tagSRrvTime_ab {
WORD wRTSTxRrvTime; WORD wRTSTxRrvTime;
WORD wTxRrvTime; WORD wTxRrvTime;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRrvTime_ab, *PSRrvTime_ab; SRrvTime_ab, *PSRrvTime_ab;
typedef const SRrvTime_ab *PCSRrvTime_ab; typedef const SRrvTime_ab *PCSRrvTime_ab;
typedef struct tagSRrvTime_atim { typedef struct tagSRrvTime_atim {
WORD wCTSTxRrvTime_ba; WORD wCTSTxRrvTime_ba;
WORD wTxRrvTime_a; WORD wTxRrvTime_a;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRrvTime_atim, *PSRrvTime_atim; SRrvTime_atim, *PSRrvTime_atim;
typedef const SRrvTime_atim *PCSRrvTime_atim; typedef const SRrvTime_atim *PCSRrvTime_atim;
// //
...@@ -208,8 +200,9 @@ typedef struct tagSRTSData { ...@@ -208,8 +200,9 @@ typedef struct tagSRTSData {
WORD wDurationID; WORD wDurationID;
BYTE abyRA[ETH_ALEN]; BYTE abyRA[ETH_ALEN];
BYTE abyTA[ETH_ALEN]; BYTE abyTA[ETH_ALEN];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRTSData, *PSRTSData; SRTSData, *PSRTSData;
typedef const SRTSData *PCSRTSData; typedef const SRTSData *PCSRTSData;
typedef struct tagSRTS_g { typedef struct tagSRTS_g {
...@@ -224,11 +217,10 @@ typedef struct tagSRTS_g { ...@@ -224,11 +217,10 @@ typedef struct tagSRTS_g {
WORD wDuration_bb; WORD wDuration_bb;
WORD wReserved; WORD wReserved;
SRTSData Data; SRTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRTS_g, *PSRTS_g; SRTS_g, *PSRTS_g;
typedef const SRTS_g *PCSRTS_g; typedef const SRTS_g *PCSRTS_g;
typedef struct tagSRTS_g_FB { typedef struct tagSRTS_g_FB {
BYTE bySignalField_b; BYTE bySignalField_b;
BYTE byServiceField_b; BYTE byServiceField_b;
...@@ -245,10 +237,10 @@ typedef struct tagSRTS_g_FB { ...@@ -245,10 +237,10 @@ typedef struct tagSRTS_g_FB {
WORD wRTSDuration_ba_f1; WORD wRTSDuration_ba_f1;
WORD wRTSDuration_aa_f1; WORD wRTSDuration_aa_f1;
SRTSData Data; SRTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRTS_g_FB, *PSRTS_g_FB; SRTS_g_FB, *PSRTS_g_FB;
typedef const SRTS_g_FB *PCSRTS_g_FB;
typedef const SRTS_g_FB *PCSRTS_g_FB;
typedef struct tagSRTS_ab { typedef struct tagSRTS_ab {
BYTE bySignalField; BYTE bySignalField;
...@@ -257,10 +249,10 @@ typedef struct tagSRTS_ab { ...@@ -257,10 +249,10 @@ typedef struct tagSRTS_ab {
WORD wDuration; WORD wDuration;
WORD wReserved; WORD wReserved;
SRTSData Data; SRTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRTS_ab, *PSRTS_ab; SRTS_ab, *PSRTS_ab;
typedef const SRTS_ab *PCSRTS_ab;
typedef const SRTS_ab *PCSRTS_ab;
typedef struct tagSRTS_a_FB { typedef struct tagSRTS_a_FB {
BYTE bySignalField; BYTE bySignalField;
...@@ -271,8 +263,9 @@ typedef struct tagSRTS_a_FB { ...@@ -271,8 +263,9 @@ typedef struct tagSRTS_a_FB {
WORD wRTSDuration_f0; WORD wRTSDuration_f0;
WORD wRTSDuration_f1; WORD wRTSDuration_f1;
SRTSData Data; SRTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SRTS_a_FB, *PSRTS_a_FB; SRTS_a_FB, *PSRTS_a_FB;
typedef const SRTS_a_FB *PCSRTS_a_FB; typedef const SRTS_a_FB *PCSRTS_a_FB;
...@@ -284,7 +277,7 @@ typedef struct tagSCTSData { ...@@ -284,7 +277,7 @@ typedef struct tagSCTSData {
WORD wDurationID; WORD wDurationID;
BYTE abyRA[ETH_ALEN]; BYTE abyRA[ETH_ALEN];
WORD wReserved; WORD wReserved;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SCTSData, *PSCTSData; SCTSData, *PSCTSData;
typedef struct tagSCTS { typedef struct tagSCTS {
...@@ -294,8 +287,9 @@ typedef struct tagSCTS { ...@@ -294,8 +287,9 @@ typedef struct tagSCTS {
WORD wDuration_ba; WORD wDuration_ba;
WORD wReserved; WORD wReserved;
SCTSData Data; SCTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SCTS, *PSCTS; SCTS, *PSCTS;
typedef const SCTS *PCSCTS; typedef const SCTS *PCSCTS;
typedef struct tagSCTS_FB { typedef struct tagSCTS_FB {
...@@ -307,10 +301,10 @@ typedef struct tagSCTS_FB { ...@@ -307,10 +301,10 @@ typedef struct tagSCTS_FB {
WORD wCTSDuration_ba_f0; WORD wCTSDuration_ba_f0;
WORD wCTSDuration_ba_f1; WORD wCTSDuration_ba_f1;
SCTSData Data; SCTSData Data;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SCTS_FB, *PSCTS_FB; SCTS_FB, *PSCTS_FB;
typedef const SCTS_FB *PCSCTS_FB;
typedef const SCTS_FB *PCSCTS_FB;
// //
// Tx FIFO header // Tx FIFO header
...@@ -321,14 +315,14 @@ typedef struct tagSTxBufHead { ...@@ -321,14 +315,14 @@ typedef struct tagSTxBufHead {
WORD wTimeStamp; WORD wTimeStamp;
WORD wFragCtl; WORD wFragCtl;
WORD wReserved; WORD wReserved;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxBufHead, *PSTxBufHead; STxBufHead, *PSTxBufHead;
typedef const STxBufHead *PCSTxBufHead; typedef const STxBufHead *PCSTxBufHead;
typedef struct tagSTxShortBufHead { typedef struct tagSTxShortBufHead {
WORD wFIFOCtl; WORD wFIFOCtl;
WORD wTimeStamp; WORD wTimeStamp;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxShortBufHead, *PSTxShortBufHead; STxShortBufHead, *PSTxShortBufHead;
typedef const STxShortBufHead *PCSTxShortBufHead; typedef const STxShortBufHead *PCSTxShortBufHead;
...@@ -346,8 +340,9 @@ typedef struct tagSTxDataHead_g { ...@@ -346,8 +340,9 @@ typedef struct tagSTxDataHead_g {
WORD wDuration_a; WORD wDuration_a;
WORD wTimeStampOff_b; WORD wTimeStampOff_b;
WORD wTimeStampOff_a; WORD wTimeStampOff_a;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxDataHead_g, *PSTxDataHead_g; STxDataHead_g, *PSTxDataHead_g;
typedef const STxDataHead_g *PCSTxDataHead_g; typedef const STxDataHead_g *PCSTxDataHead_g;
typedef struct tagSTxDataHead_g_FB { typedef struct tagSTxDataHead_g_FB {
...@@ -363,22 +358,20 @@ typedef struct tagSTxDataHead_g_FB { ...@@ -363,22 +358,20 @@ typedef struct tagSTxDataHead_g_FB {
WORD wDuration_a_f1; WORD wDuration_a_f1;
WORD wTimeStampOff_b; WORD wTimeStampOff_b;
WORD wTimeStampOff_a; WORD wTimeStampOff_a;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxDataHead_g_FB, *PSTxDataHead_g_FB; STxDataHead_g_FB, *PSTxDataHead_g_FB;
typedef const STxDataHead_g_FB *PCSTxDataHead_g_FB; typedef const STxDataHead_g_FB *PCSTxDataHead_g_FB;
typedef struct tagSTxDataHead_ab { typedef struct tagSTxDataHead_ab {
BYTE bySignalField; BYTE bySignalField;
BYTE byServiceField; BYTE byServiceField;
WORD wTransmitLength; WORD wTransmitLength;
WORD wDuration; WORD wDuration;
WORD wTimeStampOff; WORD wTimeStampOff;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxDataHead_ab, *PSTxDataHead_ab; STxDataHead_ab, *PSTxDataHead_ab;
typedef const STxDataHead_ab *PCSTxDataHead_ab; typedef const STxDataHead_ab *PCSTxDataHead_ab;
typedef struct tagSTxDataHead_a_FB { typedef struct tagSTxDataHead_a_FB {
BYTE bySignalField; BYTE bySignalField;
BYTE byServiceField; BYTE byServiceField;
...@@ -387,7 +380,7 @@ typedef struct tagSTxDataHead_a_FB { ...@@ -387,7 +380,7 @@ typedef struct tagSTxDataHead_a_FB {
WORD wTimeStampOff; WORD wTimeStampOff;
WORD wDuration_f0; WORD wDuration_f0;
WORD wDuration_f1; WORD wDuration_f1;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
STxDataHead_a_FB, *PSTxDataHead_a_FB; STxDataHead_a_FB, *PSTxDataHead_a_FB;
typedef const STxDataHead_a_FB *PCSTxDataHead_a_FB; typedef const STxDataHead_a_FB *PCSTxDataHead_a_FB;
...@@ -398,23 +391,23 @@ typedef struct tagSMICHDRHead { ...@@ -398,23 +391,23 @@ typedef struct tagSMICHDRHead {
DWORD adwHDR0[4]; DWORD adwHDR0[4];
DWORD adwHDR1[4]; DWORD adwHDR1[4];
DWORD adwHDR2[4]; DWORD adwHDR2[4];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SMICHDRHead, *PSMICHDRHead; SMICHDRHead, *PSMICHDRHead;
typedef const SMICHDRHead *PCSMICHDRHead; typedef const SMICHDRHead *PCSMICHDRHead;
typedef struct tagSBEACONCtl { typedef struct tagSBEACONCtl {
DWORD BufReady : 1; DWORD BufReady : 1;
DWORD TSF : 15; DWORD TSF : 15;
DWORD BufLen : 11; DWORD BufLen : 11;
DWORD Reserved : 5; DWORD Reserved : 5;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SBEACONCtl; SBEACONCtl;
typedef struct tagSSecretKey { typedef struct tagSSecretKey {
DWORD dwLowDword; DWORD dwLowDword;
BYTE byHighByte; BYTE byHighByte;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SSecretKey; SSecretKey;
typedef struct tagSKeyEntry { typedef struct tagSKeyEntry {
...@@ -426,7 +419,7 @@ typedef struct tagSKeyEntry { ...@@ -426,7 +419,7 @@ typedef struct tagSKeyEntry {
DWORD dwKey2[4]; DWORD dwKey2[4];
DWORD dwKey3[4]; DWORD dwKey3[4];
DWORD dwKey4[4]; DWORD dwKey4[4];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SKeyEntry; SKeyEntry;
/*--------------------- Export Macros ------------------------------*/ /*--------------------- Export Macros ------------------------------*/
......
...@@ -109,7 +109,6 @@ ...@@ -109,7 +109,6 @@
#define MAX_MULTICAST_ADDRESS_NUM 32 #define MAX_MULTICAST_ADDRESS_NUM 32
#define MULTICAST_ADDRESS_LIST_SIZE (MAX_MULTICAST_ADDRESS_NUM * ETH_ALEN) #define MULTICAST_ADDRESS_LIST_SIZE (MAX_MULTICAST_ADDRESS_NUM * ETH_ALEN)
//#define OP_MODE_INFRASTRUCTURE 0 //#define OP_MODE_INFRASTRUCTURE 0
//#define OP_MODE_ADHOC 1 //#define OP_MODE_ADHOC 1
//#define OP_MODE_AP 2 //#define OP_MODE_AP 2
...@@ -130,8 +129,6 @@ ...@@ -130,8 +129,6 @@
#define KEYSEL_TKIP 2 #define KEYSEL_TKIP 2
#define KEYSEL_CCMP 3 #define KEYSEL_CCMP 3
#define AUTO_FB_NONE 0 #define AUTO_FB_NONE 0
#define AUTO_FB_0 1 #define AUTO_FB_0 1
#define AUTO_FB_1 2 #define AUTO_FB_1 2
...@@ -162,8 +159,6 @@ ...@@ -162,8 +159,6 @@
#define BB_VGA_LEVEL 4 #define BB_VGA_LEVEL 4
#define BB_VGA_CHANGE_THRESHOLD 3 #define BB_VGA_CHANGE_THRESHOLD 3
#ifndef RUN_AT #ifndef RUN_AT
#define RUN_AT(x) (jiffies+(x)) #define RUN_AT(x) (jiffies+(x))
#endif #endif
...@@ -175,24 +170,23 @@ ...@@ -175,24 +170,23 @@
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
#define DBG_PRT(l, p, args...) {if (l<=msglevel) printk( p ,##args);} #define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); }
#define PRINT_K(p, args...) {if (PRIVATE_Message) printk( p ,##args);} #define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); }
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 causing abnormal operation */
MSG_LEVEL_NOTICE=1, //Some errors need users to be notified. MSG_LEVEL_NOTICE = 1, /* Errors needing user notification */
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;
typedef enum __device_init_type { typedef enum __device_init_type {
DEVICE_INIT_COLD=0, // cold init DEVICE_INIT_COLD = 0, /* cold init */
DEVICE_INIT_RESET, // reset init or Dx to D0 power remain init DEVICE_INIT_RESET, /* reset init or Dx to D0 power remain */
DEVICE_INIT_DXPL // Dx to D0 power lost init DEVICE_INIT_DXPL /* Dx to D0 power lost init */
} DEVICE_INIT_TYPE, *PDEVICE_INIT_TYPE; } DEVICE_INIT_TYPE, *PDEVICE_INIT_TYPE;
//USB //USB
// //
...@@ -203,9 +197,6 @@ typedef enum _CONTEXT_TYPE { ...@@ -203,9 +197,6 @@ typedef enum _CONTEXT_TYPE {
CONTEXT_MGMT_PACKET CONTEXT_MGMT_PACKET
} CONTEXT_TYPE; } CONTEXT_TYPE;
// RCB (Receive Control Block) // RCB (Receive Control Block)
typedef struct _RCB typedef struct _RCB
{ {
...@@ -219,7 +210,6 @@ typedef struct _RCB ...@@ -219,7 +210,6 @@ typedef struct _RCB
} RCB, *PRCB; } RCB, *PRCB;
// used to track bulk out irps // used to track bulk out irps
typedef struct _USB_SEND_CONTEXT { typedef struct _USB_SEND_CONTEXT {
void *pDevice; void *pDevice;
...@@ -233,7 +223,6 @@ typedef struct _USB_SEND_CONTEXT { ...@@ -233,7 +223,6 @@ typedef struct _USB_SEND_CONTEXT {
unsigned char Data[MAX_TOTAL_SIZE_WITH_ALL_HEADERS]; unsigned char Data[MAX_TOTAL_SIZE_WITH_ALL_HEADERS];
} USB_SEND_CONTEXT, *PUSB_SEND_CONTEXT; } USB_SEND_CONTEXT, *PUSB_SEND_CONTEXT;
/* structure got from configuration file as user-desired default settings */ /* structure got from configuration file as user-desired default settings */
typedef struct _DEFAULT_CONFIG { typedef struct _DEFAULT_CONFIG {
signed int ZoneType; signed int ZoneType;
...@@ -254,12 +243,10 @@ typedef struct { ...@@ -254,12 +243,10 @@ typedef struct {
BOOL bInUse; BOOL bInUse;
} INT_BUFFER, *PINT_BUFFER; } INT_BUFFER, *PINT_BUFFER;
//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,
BB_TYPE_11B, BB_TYPE_11B,
BB_TYPE_11G BB_TYPE_11G
} VIA_BB_TYPE, *PVIA_BB_TYPE; } VIA_BB_TYPE, *PVIA_BB_TYPE;
...@@ -267,22 +254,19 @@ typedef enum _VIA_BB_TYPE ...@@ -267,22 +254,19 @@ typedef enum _VIA_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,
PK_TYPE_11B, PK_TYPE_11B,
PK_TYPE_11GB, PK_TYPE_11GB,
PK_TYPE_11GA PK_TYPE_11GA
} VIA_PKT_TYPE, *PVIA_PKT_TYPE; } VIA_PKT_TYPE, *PVIA_PKT_TYPE;
//++ NDIS related //++ NDIS related
#define NDIS_STATUS int #define NDIS_STATUS int
#define NTSTATUS int #define NTSTATUS int
typedef enum __DEVICE_NDIS_STATUS { typedef enum __DEVICE_NDIS_STATUS {
STATUS_SUCCESS=0, STATUS_SUCCESS = 0,
STATUS_FAILURE, STATUS_FAILURE,
STATUS_RESOURCES, STATUS_RESOURCES,
STATUS_PENDING, STATUS_PENDING,
......
...@@ -77,25 +77,20 @@ struct _version { ...@@ -77,25 +77,20 @@ struct _version {
//Max: 2378=2312Payload + 30HD +4CRC + 2Padding + 4Len + 8TSF + 4RSR //Max: 2378=2312Payload + 30HD +4CRC + 2Padding + 4Len + 8TSF + 4RSR
#define PKT_BUF_SZ 2390 #define PKT_BUF_SZ 2390
#define MAX_UINTS 8 #define MAX_UINTS 8
#define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1} #define OPTION_DEFAULT { [0 ... MAX_UINTS-1] = -1}
typedef enum _chip_type {
VT3184 = 1
typedef enum _chip_type{
VT3184=1
} CHIP_TYPE, *PCHIP_TYPE; } CHIP_TYPE, *PCHIP_TYPE;
#ifdef VIAWET_DEBUG #ifdef VIAWET_DEBUG
#define ASSERT(x) { \ #define ASSERT(x) { \
if (!(x)) { \ if (!(x)) { \
printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x,\ printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x, \
__FUNCTION__, __LINE__);\ __FUNCTION__, __LINE__);\
*(int*) 0=0;\ *(int *) 0 = 0; \
}\ } \
} }
#define DBG_PORT80(value) outb(value, 0x80) #define DBG_PORT80(value) outb(value, 0x80)
#else #else
...@@ -103,5 +98,4 @@ typedef enum _chip_type{ ...@@ -103,5 +98,4 @@ typedef enum _chip_type{
#define DBG_PORT80(value) #define DBG_PORT80(value)
#endif #endif
#endif #endif
...@@ -57,7 +57,7 @@ typedef struct tagSINTData { ...@@ -57,7 +57,7 @@ typedef struct tagSINTData {
BYTE byACKFail; BYTE byACKFail;
BYTE byFCSErr; BYTE byFCSErr;
BYTE abySW[2]; BYTE abySW[2];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SINTData, *PSINTData; SINTData, *PSINTData;
......
...@@ -70,10 +70,10 @@ typedef enum tagWMAC_CMD { ...@@ -70,10 +70,10 @@ typedef enum tagWMAC_CMD {
} WMAC_CMD, *PWMAC_CMD; } WMAC_CMD, *PWMAC_CMD;
typedef enum tagWZONETYPE { typedef enum tagWZONETYPE {
ZoneType_USA=0, ZoneType_USA = 0,
ZoneType_Japan=1, ZoneType_Japan = 1,
ZoneType_Europe=2 ZoneType_Europe = 2
}WZONETYPE; } WZONETYPE;
#define ADHOC 0 #define ADHOC 0
#define INFRA 1 #define INFRA 1
...@@ -83,9 +83,9 @@ typedef enum tagWZONETYPE { ...@@ -83,9 +83,9 @@ typedef enum tagWZONETYPE {
#define ADHOC_STARTED 1 #define ADHOC_STARTED 1
#define ADHOC_JOINTED 2 #define ADHOC_JOINTED 2
#define PHY80211a 0 #define PHY80211a 0
#define PHY80211b 1 #define PHY80211b 1
#define PHY80211g 2 #define PHY80211g 2
#define SSID_ID 0 #define SSID_ID 0
#define SSID_MAXLEN 32 #define SSID_MAXLEN 32
......
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
/*--------------------- Export Definitions -------------------------*/ /*--------------------- Export Definitions -------------------------*/
#define WPA_IE_LEN 64 #define WPA_IE_LEN 64
//WPA related //WPA related
/* /*
typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg; typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg;
...@@ -54,7 +52,7 @@ enum { ...@@ -54,7 +52,7 @@ enum {
VIAWGET_SET_DROP_UNENCRYPT = 7, VIAWGET_SET_DROP_UNENCRYPT = 7,
VIAWGET_SET_DEAUTHENTICATE = 8, VIAWGET_SET_DEAUTHENTICATE = 8,
VIAWGET_SET_ASSOCIATE = 9, VIAWGET_SET_ASSOCIATE = 9,
VIAWGET_SET_DISASSOCIATE= 10 VIAWGET_SET_DISASSOCIATE = 10
}; };
...@@ -76,8 +74,6 @@ typedef struct viawget_wpa_header { ...@@ -76,8 +74,6 @@ typedef struct viawget_wpa_header {
u16 resp_ie_len; u16 resp_ie_len;
} viawget_wpa_header; } viawget_wpa_header;
struct viawget_wpa_param { struct viawget_wpa_param {
u32 cmd; u32 cmd;
u8 addr[6]; u8 addr[6];
...@@ -86,43 +82,37 @@ struct viawget_wpa_param { ...@@ -86,43 +82,37 @@ struct viawget_wpa_param {
u8 len; u8 len;
u8 data[0]; u8 data[0];
} generic_elem; } generic_elem;
struct { struct {
u8 bssid[6]; u8 bssid[6];
u8 ssid[32]; u8 ssid[32];
u8 ssid_len; u8 ssid_len;
u8 *wpa_ie; u8 *wpa_ie;
u16 wpa_ie_len; u16 wpa_ie_len;
int pairwise_suite; int pairwise_suite;
int group_suite; int group_suite;
int key_mgmt_suite; int key_mgmt_suite;
int auth_alg; int auth_alg;
int mode; int mode;
u8 roam_dbm; //DavidWang u8 roam_dbm;
} wpa_associate; } wpa_associate;
struct { struct {
int alg_name; int alg_name;
u16 key_index; u16 key_index;
u16 set_tx; u16 set_tx;
u8 *seq; u8 *seq;
u16 seq_len; u16 seq_len;
u8 *key; u8 *key;
u16 key_len; u16 key_len;
} wpa_key; } wpa_key;
struct { struct {
u8 ssid_len; u8 ssid_len;
u8 ssid[32]; u8 ssid[32];
} scan_req; } scan_req;
struct { struct {
u16 scan_count; u16 scan_count;
u8 *buf; u8 *buf;
} scan_results; } scan_results;
} u; } u;
}; };
#pragma pack(1) #pragma pack(1)
...@@ -142,15 +132,12 @@ struct viawget_scan_result { ...@@ -142,15 +132,12 @@ struct viawget_scan_result {
int maxrate; int maxrate;
}; };
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
#endif /* __IOWPA_H__ */ #endif /* __IOWPA_H__ */
...@@ -33,15 +33,13 @@ ...@@ -33,15 +33,13 @@
/*--------------------- Export Definitions -------------------------*/ /*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
struct iw_statistics *iwctl_get_wireless_stats (struct net_device *dev); struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev);
int iwctl_siwap(struct net_device *dev, int iwctl_siwap(struct net_device *dev,
struct iw_request_info *info, struct iw_request_info *info,
......
...@@ -420,11 +420,11 @@ ...@@ -420,11 +420,11 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void MACvSetMultiAddrByHash (PSDevice pDevice, BYTE byHashIdx); void MACvSetMultiAddrByHash(PSDevice pDevice, BYTE byHashIdx);
void MACvWriteMultiAddr(PSDevice pDevice, unsigned int uByteIdx, BYTE byData); void MACvWriteMultiAddr(PSDevice pDevice, unsigned int uByteIdx, BYTE byData);
BOOL MACbShutdown(PSDevice pDevice);; BOOL MACbShutdown(PSDevice pDevice);
void MACvSetBBType(PSDevice pDevice,BYTE byType); void MACvSetBBType(PSDevice pDevice, BYTE byType);
void MACvSetMISCFifo (PSDevice pDevice, WORD wOffset, DWORD dwData); void MACvSetMISCFifo(PSDevice pDevice, WORD wOffset, DWORD dwData);
void MACvDisableKeyEntry(PSDevice pDevice, unsigned int uEntryIdx); void MACvDisableKeyEntry(PSDevice pDevice, unsigned int uEntryIdx);
void MACvSetKeyEntry(PSDevice pDevice, WORD wKeyCtl, unsigned int uEntryIdx, void MACvSetKeyEntry(PSDevice pDevice, WORD wKeyCtl, unsigned int uEntryIdx,
unsigned int uKeyIdx, PBYTE pbyAddr, PDWORD pdwKey); unsigned int uKeyIdx, PBYTE pbyAddr, PDWORD pdwKey);
......
...@@ -381,7 +381,9 @@ typedef struct tagSStatCounter { ...@@ -381,7 +381,9 @@ typedef struct tagSStatCounter {
void STAvClearAllCounter(PSStatCounter pStatistic); void STAvClearAllCounter(PSStatCounter pStatistic);
void STAvUpdateIsrStatCounter (PSStatCounter pStatistic, BYTE byIsr0, BYTE byIsr1); void STAvUpdateIsrStatCounter(PSStatCounter pStatistic,
BYTE byIsr0,
BYTE byIsr1);
void STAvUpdateRDStatCounter(PSStatCounter pStatistic, void STAvUpdateRDStatCounter(PSStatCounter pStatistic,
BYTE byRSR, BYTE byNewRSR, BYTE byRxSts, BYTE byRSR, BYTE byNewRSR, BYTE byRxSts,
...@@ -393,14 +395,8 @@ void STAvUpdateRDStatCounterEx(PSStatCounter pStatistic, ...@@ -393,14 +395,8 @@ void STAvUpdateRDStatCounterEx(PSStatCounter pStatistic,
BYTE byRxRate, PBYTE pbyBuffer, BYTE byRxRate, PBYTE pbyBuffer,
unsigned int cbFrameLength); unsigned int cbFrameLength);
void void STAvUpdateTDStatCounter(PSStatCounter pStatistic, BYTE byPktNum,
STAvUpdateTDStatCounter ( BYTE byRate, BYTE byTSR);
PSStatCounter pStatistic,
BYTE byPktNum,
BYTE byRate,
BYTE byTSR
);
void void
STAvUpdate802_11Counter( STAvUpdate802_11Counter(
......
...@@ -49,8 +49,8 @@ void MIC_vGetMIC(PDWORD pdwL, PDWORD pdwR); ...@@ -49,8 +49,8 @@ void MIC_vGetMIC(PDWORD pdwL, PDWORD pdwR);
/*--------------------- Export Macros ------------------------------*/ /*--------------------- Export Macros ------------------------------*/
// Rotation functions on 32 bit values // Rotation functions on 32 bit values
#define ROL32( A, n ) \ #define ROL32(A, n) \
( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) ) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
#define ROR32( A, n ) ROL32( (A), 32-(n) ) #define ROR32(A, n) ROL32((A), 32-(n))
#endif /* __MICHAEL_H__ */ #endif /* __MICHAEL_H__ */
...@@ -64,11 +64,7 @@ extern const BYTE RFaby11aChannelIndex[200]; ...@@ -64,11 +64,7 @@ extern const BYTE RFaby11aChannelIndex[200];
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData); BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData);
BOOL RFbSetPower ( BOOL RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH);
PSDevice pDevice,
unsigned int uRATE,
unsigned int uCH
);
BOOL RFbRawSetPower( BOOL RFbRawSetPower(
PSDevice pDevice, PSDevice pDevice,
...@@ -76,17 +72,8 @@ BOOL RFbRawSetPower( ...@@ -76,17 +72,8 @@ BOOL RFbRawSetPower(
unsigned int uRATE unsigned int uRATE
); );
void void RFvRSSITodBm(PSDevice pDevice, BYTE byCurrRSSI, long *pldBm);
RFvRSSITodBm ( void RFbRFTableDownload(PSDevice pDevice);
PSDevice pDevice,
BYTE byCurrRSSI,
long * pldBm
);
void
RFbRFTableDownload (
PSDevice pDevice
);
BOOL s_bVT3226D0_11bLoCurrentAdjust( BOOL s_bVT3226D0_11bLoCurrentAdjust(
PSDevice pDevice, PSDevice pDevice,
......
...@@ -152,7 +152,7 @@ typedef struct _CMD_CHANGE_BBTYPE ...@@ -152,7 +152,7 @@ typedef struct _CMD_CHANGE_BBTYPE
/*--------------------- Export Macros -------------------------*/ /*--------------------- Export Macros -------------------------*/
#define EXCH_WORD(w) ( (WORD)((WORD)(w)<<8) | (WORD)((WORD)(w)>>8) ) #define EXCH_WORD(w) ((WORD)((WORD)(w)<<8) | (WORD)((WORD)(w)>>8))
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
......
...@@ -168,7 +168,7 @@ typedef struct tagSEthernetHeader { ...@@ -168,7 +168,7 @@ typedef struct tagSEthernetHeader {
BYTE abyDstAddr[ETH_ALEN]; BYTE abyDstAddr[ETH_ALEN];
BYTE abySrcAddr[ETH_ALEN]; BYTE abySrcAddr[ETH_ALEN];
WORD wType; WORD wType;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
SEthernetHeader, *PSEthernetHeader; SEthernetHeader, *PSEthernetHeader;
...@@ -179,7 +179,7 @@ typedef struct tagS802_3Header { ...@@ -179,7 +179,7 @@ typedef struct tagS802_3Header {
BYTE abyDstAddr[ETH_ALEN]; BYTE abyDstAddr[ETH_ALEN];
BYTE abySrcAddr[ETH_ALEN]; BYTE abySrcAddr[ETH_ALEN];
WORD wLen; WORD wLen;
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
S802_3Header, *PS802_3Header; S802_3Header, *PS802_3Header;
// //
...@@ -193,7 +193,7 @@ typedef struct tagS802_11Header { ...@@ -193,7 +193,7 @@ typedef struct tagS802_11Header {
BYTE abyAddr3[ETH_ALEN]; BYTE abyAddr3[ETH_ALEN];
WORD wSeqCtl; WORD wSeqCtl;
BYTE abyAddr4[ETH_ALEN]; BYTE abyAddr4[ETH_ALEN];
}__attribute__ ((__packed__)) } __attribute__ ((__packed__))
S802_11Header, *PS802_11Header; S802_11Header, *PS802_11Header;
/*--------------------- Export Macros ------------------------------*/ /*--------------------- Export Macros ------------------------------*/
......
...@@ -58,7 +58,7 @@ typedef int BOOL; ...@@ -58,7 +58,7 @@ typedef int BOOL;
#endif #endif
//2007-0809-01<Add>by MikeLiu //2007-0809-01<Add>by MikeLiu
#ifndef update_BssList #ifndef update_BssList
#define update_BssList #define update_BssList
#endif #endif
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
//mike define: make timer to expire after desired times //mike define: make timer to expire after desired times
#define timer_expire(timer,next_tick) mod_timer(&timer, RUN_AT(next_tick)) #define timer_expire(timer, next_tick) mod_timer(&timer, RUN_AT(next_tick))
typedef void (*TimerFunction)(unsigned long); typedef void (*TimerFunction)(unsigned long);
......
...@@ -58,21 +58,9 @@ typedef struct tagSPMKIDCache { ...@@ -58,21 +58,9 @@ typedef struct tagSPMKIDCache {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void void WPA2_ClearRSN(PKnownBSS pBSSNode);
WPA2_ClearRSN ( void WPA2vParseRSN(PKnownBSS pBSSNode, PWLAN_IE_RSN pRSN);
PKnownBSS pBSSNode
);
void unsigned int WPA2uSetIEs(void *pMgmtHandle, PWLAN_IE_RSN pRSNIEs);
WPA2vParseRSN (
PKnownBSS pBSSNode,
PWLAN_IE_RSN pRSN
);
unsigned int
WPA2uSetIEs(
void *pMgmtHandle,
PWLAN_IE_RSN pRSNIEs
);
#endif /* __WPA2_H__ */ #endif /* __WPA2_H__ */
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