Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205750
b: refs/heads/master
c: 0f4c60d
h: refs/heads/master
v: v3
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed Jun 24, 2010
1 parent 484995d commit 6cbc4a4
Show file tree
Hide file tree
Showing 33 changed files with 309 additions and 310 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17701d14b613b8495cdd8b803c22d3f33d1face8
refs/heads/master: 0f4c60d61e9c10a0733eacd650c101189bdf75cd
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/bssdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ typedef struct tagKnownNodeDB {
BYTE byAuthSequence;
unsigned long ulLastRxJiffer;
BYTE bySuppRate;
DWORD dwFlags;
unsigned long dwFlags;
WORD wEnQueueCnt;

BOOL bOnFly;
unsigned long long KeyRSC;
BYTE byKeyIndex;
DWORD dwKeyIndex;
unsigned long dwKeyIndex;
BYTE byCipherSuite;
DWORD dwTSC47_16;
unsigned long dwTSC47_16;
WORD wTSC15_0;
unsigned int uWepKeyLength;
BYTE abyWepKey[WLAN_WEPMAX_KEYLEN];
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/staging/vt6655/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ CARDbSetQuiet (
pDevice->sQuiet[pDevice->uQuietEnqueue].bEnable = TRUE;
pDevice->sQuiet[pDevice->uQuietEnqueue].byPeriod = byQuietPeriod;
pDevice->sQuiet[pDevice->uQuietEnqueue].wDuration = wQuietDuration;
pDevice->sQuiet[pDevice->uQuietEnqueue].dwStartTime = (DWORD) byQuietCount;
pDevice->sQuiet[pDevice->uQuietEnqueue].dwStartTime = (unsigned long) byQuietCount;
pDevice->sQuiet[pDevice->uQuietEnqueue].dwStartTime *= pDevice->wBeaconInterval;
pDevice->sQuiet[pDevice->uQuietEnqueue].dwStartTime += wQuietOffset;
pDevice->uQuietEnqueue++;
Expand Down Expand Up @@ -1372,11 +1372,11 @@ CARDbStartQuiet (
{
PSDevice pDevice = (PSDevice) pDeviceHandler;
unsigned int ii = 0;
DWORD dwStartTime = 0xFFFFFFFF;
unsigned long dwStartTime = 0xFFFFFFFF;
unsigned int uCurrentQuietIndex = 0;
DWORD dwNextTime = 0;
DWORD dwGap = 0;
DWORD dwDuration = 0;
unsigned long dwNextTime = 0;
unsigned long dwGap = 0;
unsigned long dwDuration = 0;

for(ii=0;ii<MAX_QUIET_COUNT;ii++) {
if ((pDevice->sQuiet[ii].bEnable == TRUE) &&
Expand Down Expand Up @@ -1434,7 +1434,7 @@ CARDbStartQuiet (
pDevice->sQuiet[uCurrentQuietIndex].bEnable = FALSE;
} else {
// set next period start time
dwNextTime = (DWORD) pDevice->sQuiet[uCurrentQuietIndex].byPeriod;
dwNextTime = (unsigned long) pDevice->sQuiet[uCurrentQuietIndex].byPeriod;
dwNextTime *= pDevice->wBeaconInterval;
pDevice->sQuiet[uCurrentQuietIndex].dwStartTime = dwNextTime;
}
Expand Down Expand Up @@ -2063,8 +2063,8 @@ QWORD CARDqGetTSFOffset (BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2)
HIDWORD(qwTSFOffset) = 0;
LODWORD(qwTSFOffset) = 0;
wRxBcnTSFOffst = cwRXBCNTSFOff[byRxRate%MAX_RATE];
(qwTSF2).u.dwLowDword += (DWORD)(wRxBcnTSFOffst);
if ((qwTSF2).u.dwLowDword < (DWORD)(wRxBcnTSFOffst)) {
(qwTSF2).u.dwLowDword += (unsigned long)(wRxBcnTSFOffst);
if ((qwTSF2).u.dwLowDword < (unsigned long)(wRxBcnTSFOffst)) {
(qwTSF2).u.dwHighDword++;
}
LODWORD(qwTSFOffset) = LODWORD(qwTSF1) - LODWORD(qwTSF2);
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/vt6655/datarate.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ RATEvTxRateFallBack (
PSDevice pDevice = (PSDevice) pDeviceHandler;
WORD wIdxDownRate = 0;
unsigned int ii;
//DWORD dwRateTable[MAX_RATE] = {1, 2, 5, 11, 6, 9, 12, 18, 24, 36, 48, 54};
//unsigned long dwRateTable[MAX_RATE] = {1, 2, 5, 11, 6, 9, 12, 18, 24, 36, 48, 54};
BOOL bAutoRate[MAX_RATE] = {TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE};
DWORD dwThroughputTbl[MAX_RATE] = {10, 20, 55, 110, 60, 90, 120, 180, 240, 360, 480, 540};
DWORD dwThroughput = 0;
unsigned long dwThroughputTbl[MAX_RATE] = {10, 20, 55, 110, 60, 90, 120, 180, 240, 360, 480, 540};
unsigned long dwThroughput = 0;
WORD wIdxUpRate = 0;
DWORD dwTxDiff = 0;
unsigned long dwTxDiff = 0;

if (pDevice->pMgmt->eScanState != WMAC_NO_SCANNING) {
// Don't do Fallback when scanning Channel
Expand Down
38 changes: 19 additions & 19 deletions trunk/drivers/staging/vt6655/desc.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ typedef struct tagDEVICE_TD_INFO{
dma_addr_t skb_dma;
dma_addr_t buf_dma;
dma_addr_t curr_desc;
DWORD dwReqCount;
DWORD dwHeaderLength;
unsigned long dwReqCount;
unsigned long dwHeaderLength;
BYTE byFlags;
} DEVICE_TD_INFO, *PDEVICE_TD_INFO;

Expand Down Expand Up @@ -391,13 +391,13 @@ typedef const STxDesc *PCSTxDesc;
typedef struct tagSTxSyncDesc {
volatile STDES0 m_td0TD0;
volatile STDES1 m_td1TD1;
volatile DWORD buff_addr; // pointer to logical buffer
volatile DWORD next_desc; // pointer to next logical descriptor
volatile u32 buff_addr; // pointer to logical buffer
volatile u32 next_desc; // pointer to next logical descriptor
volatile WORD m_wFIFOCtl;
volatile WORD m_wTimeStamp;
struct tagSTxSyncDesc* next; //4 bytes
volatile PDEVICE_TD_INFO pTDInfo;//4 bytes
volatile DWORD m_dwReserved2;
volatile u32 m_dwReserved2;
} __attribute__ ((__packed__))
STxSyncDesc, *PSTxSyncDesc;
typedef const STxSyncDesc *PCSTxSyncDesc;
Expand Down Expand Up @@ -556,7 +556,7 @@ typedef const SCTS_FB *PCSCTS_FB;
// Tx FIFO header
//
typedef struct tagSTxBufHead {
DWORD adwTxKey[4];
u32 adwTxKey[4];
WORD wFIFOCtl;
WORD wTimeStamp;
WORD wFragCtl;
Expand Down Expand Up @@ -636,24 +636,24 @@ typedef const STxDataHead_a_FB *PCSTxDataHead_a_FB;
// MICHDR data header
//
typedef struct tagSMICHDRHead {
DWORD adwHDR0[4];
DWORD adwHDR1[4];
DWORD adwHDR2[4];
u32 adwHDR0[4];
u32 adwHDR1[4];
u32 adwHDR2[4];
}__attribute__ ((__packed__))
SMICHDRHead, *PSMICHDRHead;
typedef const SMICHDRHead *PCSMICHDRHead;

typedef struct tagSBEACONCtl {
DWORD BufReady : 1;
DWORD TSF : 15;
DWORD BufLen : 11;
DWORD Reserved : 5;
u32 BufReady : 1;
u32 TSF : 15;
u32 BufLen : 11;
u32 Reserved : 5;
}__attribute__ ((__packed__))
SBEACONCtl;


typedef struct tagSSecretKey {
DWORD dwLowDword;
u32 dwLowDword;
BYTE byHighByte;
}__attribute__ ((__packed__))
SSecretKey;
Expand All @@ -662,11 +662,11 @@ typedef struct tagSKeyEntry {
BYTE abyAddrHi[2];
WORD wKCTL;
BYTE abyAddrLo[4];
DWORD dwKey0[4];
DWORD dwKey1[4];
DWORD dwKey2[4];
DWORD dwKey3[4];
DWORD dwKey4[4];
u32 dwKey0[4];
u32 dwKey1[4];
u32 dwKey2[4];
u32 dwKey3[4];
u32 dwKey4[4];
}__attribute__ ((__packed__))
SKeyEntry;
/*--------------------- Export Macros ------------------------------*/
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ typedef struct tagSPMKIDCandidateEvent {

typedef struct tagSQuietControl {
BOOL bEnable;
DWORD dwStartTime;
unsigned long dwStartTime;
BYTE byPeriod;
WORD wDuration;
} SQuietControl, *PSQuietControl;
Expand Down Expand Up @@ -424,7 +424,7 @@ typedef struct __device_info {
CHIP_TYPE chip_id;

unsigned long PortOffset;
DWORD dwIsr;
unsigned long dwIsr;
u32 memaddr;
u32 ioaddr;
u32 io_size;
Expand Down Expand Up @@ -500,8 +500,8 @@ typedef struct __device_info {
unsigned int uCurrRSSI;
BYTE byCurrSQ;

DWORD dwTxAntennaSel;
DWORD dwRxAntennaSel;
unsigned long dwTxAntennaSel;
unsigned long dwRxAntennaSel;
BYTE byAntennaCount;
BYTE byRxAntennaMode;
BYTE byTxAntennaMode;
Expand Down Expand Up @@ -554,7 +554,7 @@ typedef struct __device_info {
BYTE byRTSServiceField; // update while speed change
BYTE byRTSSignalField; // update while speed change

DWORD dwMaxReceiveLifetime; // dot11MaxReceiveLifetime
unsigned long dwMaxReceiveLifetime; // dot11MaxReceiveLifetime

BOOL bCCK;
BOOL bEncryptionEnable;
Expand Down Expand Up @@ -626,7 +626,7 @@ typedef struct __device_info {
NDIS_802_11_WEP_STATUS eOldEncryptionStatus;

SKeyManagement sKey;
DWORD dwIVCounter;
unsigned long dwIVCounter;

QWORD qwPacketNumber; //For CCMP and TKIP as TSC(6 bytes)
unsigned int uCurrentWEPMode;
Expand Down Expand Up @@ -673,7 +673,7 @@ typedef struct __device_info {


BOOL bRadioCmd;
DWORD dwDiagRefCount;
unsigned long dwDiagRefCount;

// For FOE Tuning
BYTE byFOETuning;
Expand Down Expand Up @@ -756,7 +756,7 @@ typedef struct __device_info {
BYTE abyBroadcastAddr[ETH_ALEN];
BYTE abySNAP_RFC1042[ETH_ALEN];
BYTE abySNAP_Bridgetunnel[ETH_ALEN];
BYTE abyEEPROM[EEP_MAX_CONTEXT_SIZE]; //DWORD alignment
BYTE abyEEPROM[EEP_MAX_CONTEXT_SIZE]; //unsigned long alignment
// Pre-Authentication & PMK cache
SPMKID gsPMKID;
SPMKIDCandidateEvent gsPMKIDCandidate;
Expand All @@ -771,20 +771,20 @@ typedef struct __device_info {
BOOL bMeasureInProgress;
BYTE byOrgChannel;
BYTE byOrgRCR;
DWORD dwOrgMAR0;
DWORD dwOrgMAR4;
unsigned long dwOrgMAR0;
unsigned long dwOrgMAR4;
BYTE byBasicMap;
BYTE byCCAFraction;
BYTE abyRPIs[8];
DWORD dwRPIs[8];
unsigned long dwRPIs[8];
BOOL bChannelSwitch;
BYTE byNewChannel;
BYTE byChannelSwitchCount;
BOOL bQuietEnable;
BOOL bEnableFirstQuiet;
BYTE byQuietStartCount;
unsigned int uQuietEnqueue;
DWORD dwCurrentQuietEndTime;
unsigned long dwCurrentQuietEndTime;
SQuietControl sQuiet[MAX_QUIET_COUNT];
// for 802.11h TPC
BOOL bCountryInfo5G;
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ DEVICE_PARAM(TxDescriptors1,"Number of transmit descriptors1");


#define IP_ALIG_DEF 0
/* IP_byte_align[] is used for IP header DWORD byte aligned
0: indicate the IP header won't be DWORD byte aligned.(Default) .
1: indicate the IP header will be DWORD byte aligned.
In some enviroment, the IP header should be DWORD byte aligned,
/* IP_byte_align[] is used for IP header unsigned long byte aligned
0: indicate the IP header won't be unsigned long byte aligned.(Default) .
1: indicate the IP header will be unsigned long byte aligned.
In some enviroment, the IP header should be unsigned long byte aligned,
or the packet will be droped when we receive it. (eg: IPVS)
*/
DEVICE_PARAM(IP_byte_align,"Enable IP header dword aligned");
Expand Down Expand Up @@ -483,7 +483,7 @@ pDevice->bUpdateBBVGA = TRUE;
static void s_vCompleteCurrentMeasure (PSDevice pDevice, BYTE byResult)
{
unsigned int ii;
DWORD dwDuration = 0;
unsigned long dwDuration = 0;
BYTE byRPI0 = 0;

for(ii=1;ii<8;ii++) {
Expand Down Expand Up @@ -1022,8 +1022,8 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
#ifdef DEBUG
//return 0 ;
#endif
pDevice->PortOffset = (DWORD)ioremap(pDevice->memaddr & PCI_BASE_ADDRESS_MEM_MASK, pDevice->io_size);
//pDevice->PortOffset = (DWORD)ioremap(pDevice->ioaddr & PCI_BASE_ADDRESS_IO_MASK, pDevice->io_size);
pDevice->PortOffset = (unsigned long)ioremap(pDevice->memaddr & PCI_BASE_ADDRESS_MEM_MASK, pDevice->io_size);
//pDevice->PortOffset = (unsigned long)ioremap(pDevice->ioaddr & PCI_BASE_ADDRESS_IO_MASK, pDevice->io_size);

if(pDevice->PortOffset == 0) {
printk(KERN_ERR DEVICE_NAME ": Failed to IO remapping ..\n");
Expand Down Expand Up @@ -1996,7 +1996,7 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call device_init_registers\n");
// Patch: if WEP key already set by iwconfig but device not yet open
if ((pDevice->bEncryptionEnable == TRUE) && (pDevice->bTransmitKey == TRUE)) {
KeybSetDefaultKey(&(pDevice->sKey),
(DWORD)(pDevice->byKeyIndex | (1 << 31)),
(unsigned long)(pDevice->byKeyIndex | (1 << 31)),
pDevice->uKeyLength,
NULL,
pDevice->abyKey,
Expand Down Expand Up @@ -2677,7 +2677,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) {
PSDevice pDevice=(PSDevice) netdev_priv(dev);

int max_count=0;
DWORD dwMIBCounter=0;
unsigned long dwMIBCounter=0;
PSMgmtObject pMgmt = pDevice->pMgmt;
BYTE byOrgPageSel=0;
int handled = 0;
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/staging/vt6655/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ device_receive_frame (
unsigned int cbHeaderSize;
PSKeyItem pKey = NULL;
WORD wRxTSC15_0 = 0;
DWORD dwRxTSC47_16 = 0;
unsigned long dwRxTSC47_16 = 0;
SKeyItem STempKey;
// 802.11h RPI
DWORD dwDuration = 0;
unsigned long dwDuration = 0;
long ldBm = 0;
long ldBmThreshold = 0;
PS802_11Header pMACHeader;
Expand Down Expand Up @@ -802,10 +802,10 @@ device_receive_frame (
if (bIsWEP) {
unsigned long *pdwMIC_L;
unsigned long *pdwMIC_R;
DWORD dwMIC_Priority;
DWORD dwMICKey0 = 0, dwMICKey1 = 0;
DWORD dwLocalMIC_L = 0;
DWORD dwLocalMIC_R = 0;
unsigned long dwMIC_Priority;
unsigned long dwMICKey0 = 0, dwMICKey1 = 0;
unsigned long dwLocalMIC_L = 0;
unsigned long dwLocalMIC_R = 0;
viawget_wpa_header *wpahdr;


Expand Down Expand Up @@ -918,12 +918,12 @@ device_receive_frame (
(pKey->byCipherSuite == KEY_CTL_CCMP))) {
if (bIsWEP) {
WORD wLocalTSC15_0 = 0;
DWORD dwLocalTSC47_16 = 0;
unsigned long dwLocalTSC47_16 = 0;
unsigned long long RSC = 0;
// endian issues
RSC = *((unsigned long long *) &(pKey->KeyRSC));
wLocalTSC15_0 = (WORD) RSC;
dwLocalTSC47_16 = (DWORD) (RSC>>16);
dwLocalTSC47_16 = (unsigned long) (RSC>>16);

RSC = dwRxTSC47_16;
RSC <<= 16;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/hostap.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ static int hostap_set_encryption(PSDevice pDevice,
int param_len)
{
PSMgmtObject pMgmt = pDevice->pMgmt;
DWORD dwKeyIndex = 0;
unsigned long dwKeyIndex = 0;
BYTE abyKey[MAX_KEY_LEN];
BYTE abySeq[MAX_KEY_LEN];
NDIS_802_11_KEY_RSC KeyRSC;
Expand Down Expand Up @@ -553,7 +553,7 @@ static int hostap_set_encryption(PSDevice pDevice,
param->u.crypt.key_len
);

dwKeyIndex = (DWORD)(param->u.crypt.idx);
dwKeyIndex = (unsigned long)(param->u.crypt.idx);
if (param->u.crypt.flags & HOSTAP_CRYPT_FLAG_SET_TX_KEY) {
pDevice->byKeyIndex = (BYTE)dwKeyIndex;
pDevice->bTransmitKey = TRUE;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
SCmdLinkStatus sLinkStatus;
BYTE abySuppRates[] = {WLAN_EID_SUPP_RATES, 4, 0x02, 0x04, 0x0B, 0x16};
BYTE abyNullAddr[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
DWORD dwKeyIndex= 0;
unsigned long dwKeyIndex= 0;
BYTE abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1];
long ldBm;

Expand Down Expand Up @@ -717,7 +717,7 @@ if(wpa_Result.authenticated==TRUE) {
void
vConfigWEPKey (
PSDevice pDevice,
DWORD dwKeyIndex,
unsigned long dwKeyIndex,
unsigned char *pbyKey,
unsigned long uKeyLength
)
Expand Down
Loading

0 comments on commit 6cbc4a4

Please sign in to comment.