提交 e3fd16d0 编写于 作者: C Charles Clément 提交者: Greg Kroah-Hartman

Staging: vt6655: remove custom ULONG typedef

Signed-off-by: NCharles Clément <caratorn@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b6e95cd5
...@@ -1719,7 +1719,7 @@ const WORD awcFrameTime[MAX_RATE] = ...@@ -1719,7 +1719,7 @@ const WORD awcFrameTime[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
static static
ULONG unsigned long
s_ulGetRatio(PSDevice pDevice); s_ulGetRatio(PSDevice pDevice);
static static
...@@ -2651,12 +2651,12 @@ BBvExitDeepSleep (DWORD_PTR dwIoBase, BYTE byLocalID) ...@@ -2651,12 +2651,12 @@ BBvExitDeepSleep (DWORD_PTR dwIoBase, BYTE byLocalID)
static static
ULONG unsigned long
s_ulGetRatio (PSDevice pDevice) s_ulGetRatio (PSDevice pDevice)
{ {
ULONG ulRatio = 0; unsigned long ulRatio = 0;
ULONG ulMaxPacket; unsigned long ulMaxPacket;
ULONG ulPacketNum; unsigned long ulPacketNum;
//This is a thousand-ratio //This is a thousand-ratio
ulMaxPacket = pDevice->uNumSQ3[RATE_54M]; ulMaxPacket = pDevice->uNumSQ3[RATE_54M];
......
...@@ -1680,9 +1680,9 @@ void s_uCalculateLinkQual( ...@@ -1680,9 +1680,9 @@ void s_uCalculateLinkQual(
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
ULONG TxOkRatio, TxCnt; unsigned long TxOkRatio, TxCnt;
ULONG RxOkRatio,RxCnt; unsigned long RxOkRatio,RxCnt;
ULONG RssiRatio; unsigned long RssiRatio;
long ldBm; long ldBm;
TxCnt = pDevice->scStatistic.TxNoRetryOkCount + TxCnt = pDevice->scStatistic.TxNoRetryOkCount +
......
...@@ -205,7 +205,7 @@ typedef struct tagKnownNodeDB { ...@@ -205,7 +205,7 @@ typedef struct tagKnownNodeDB {
BOOL bPSEnable; BOOL bPSEnable;
BOOL bRxPSPoll; BOOL bRxPSPoll;
BYTE byAuthSequence; BYTE byAuthSequence;
ULONG ulLastRxJiffer; unsigned long ulLastRxJiffer;
BYTE bySuppRate; BYTE bySuppRate;
DWORD dwFlags; DWORD dwFlags;
WORD wEnQueueCnt; WORD wEnQueueCnt;
......
...@@ -99,7 +99,7 @@ void CARDvUpdateNextTBTT(DWORD_PTR dwIoBase, QWORD qwTSF, WORD wBeaconInterval); ...@@ -99,7 +99,7 @@ void CARDvUpdateNextTBTT(DWORD_PTR dwIoBase, QWORD qwTSF, WORD wBeaconInterval);
BOOL CARDbGetCurrentTSF(DWORD_PTR dwIoBase, PQWORD pqwCurrTSF); BOOL CARDbGetCurrentTSF(DWORD_PTR dwIoBase, PQWORD pqwCurrTSF);
QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval); QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2); QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
BOOL CARDbSetTxPower(void *pDeviceHandler, ULONG ulTxPower); BOOL CARDbSetTxPower(void *pDeviceHandler, unsigned long ulTxPower);
BYTE CARDbyGetPktType(void *pDeviceHandler); BYTE CARDbyGetPktType(void *pDeviceHandler);
void CARDvSafeResetTx(void *pDeviceHandler); void CARDvSafeResetTx(void *pDeviceHandler);
void CARDvSafeResetRx(void *pDeviceHandler); void CARDvSafeResetRx(void *pDeviceHandler);
......
...@@ -250,7 +250,7 @@ typedef enum _NDIS_802_11_STATUS_TYPE ...@@ -250,7 +250,7 @@ typedef enum _NDIS_802_11_STATUS_TYPE
//Added new types for PMKID Candidate lists. //Added new types for PMKID Candidate lists.
typedef struct _PMKID_CANDIDATE { typedef struct _PMKID_CANDIDATE {
NDIS_802_11_MAC_ADDRESS BSSID; NDIS_802_11_MAC_ADDRESS BSSID;
ULONG Flags; unsigned long Flags;
} PMKID_CANDIDATE, *PPMKID_CANDIDATE; } PMKID_CANDIDATE, *PPMKID_CANDIDATE;
...@@ -261,15 +261,15 @@ typedef struct _BSSID_INFO ...@@ -261,15 +261,15 @@ typedef struct _BSSID_INFO
} BSSID_INFO, *PBSSID_INFO; } BSSID_INFO, *PBSSID_INFO;
typedef struct tagSPMKID { typedef struct tagSPMKID {
ULONG Length; unsigned long Length;
ULONG BSSIDInfoCount; unsigned long BSSIDInfoCount;
BSSID_INFO BSSIDInfo[MAX_BSSIDINFO_4_PMKID]; BSSID_INFO BSSIDInfo[MAX_BSSIDINFO_4_PMKID];
} SPMKID, *PSPMKID; } SPMKID, *PSPMKID;
typedef struct tagSPMKIDCandidateEvent { typedef struct tagSPMKIDCandidateEvent {
NDIS_802_11_STATUS_TYPE StatusType; NDIS_802_11_STATUS_TYPE StatusType;
ULONG Version; // Version of the structure unsigned long Version; // Version of the structure
ULONG NumCandidates; // No. of pmkid candidates unsigned long NumCandidates; // No. of pmkid candidates
PMKID_CANDIDATE CandidateList[MAX_PMKIDLIST]; PMKID_CANDIDATE CandidateList[MAX_PMKIDLIST];
} SPMKIDCandidateEvent, *PSPMKIDCandidateEvent; } SPMKIDCandidateEvent, *PSPMKIDCandidateEvent;
...@@ -618,7 +618,7 @@ typedef struct __device_info { ...@@ -618,7 +618,7 @@ typedef struct __device_info {
//WOW //WOW
BYTE abyIPAddr[4]; BYTE abyIPAddr[4];
ULONG 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 //2007-0925-01<Add>by MikeLiu
...@@ -712,7 +712,7 @@ typedef struct __device_info { ...@@ -712,7 +712,7 @@ typedef struct __device_info {
struct timer_list sTimerCommand; struct timer_list sTimerCommand;
#ifdef TxInSleep #ifdef TxInSleep
struct timer_list sTimerTxData; struct timer_list sTimerTxData;
ULONG nTxDataTimeCout; unsigned long nTxDataTimeCout;
BOOL fTxDataInSleep; BOOL fTxDataInSleep;
BOOL IsTxDataTrigger; BOOL IsTxDataTrigger;
#endif #endif
...@@ -728,18 +728,18 @@ typedef struct __device_info { ...@@ -728,18 +728,18 @@ typedef struct __device_info {
BOOL bDiversityRegCtlON; BOOL bDiversityRegCtlON;
BOOL bDiversityEnable; BOOL bDiversityEnable;
ULONG ulDiversityNValue; unsigned long ulDiversityNValue;
ULONG ulDiversityMValue; unsigned long ulDiversityMValue;
BYTE byTMax; BYTE byTMax;
BYTE byTMax2; BYTE byTMax2;
BYTE byTMax3; BYTE byTMax3;
ULONG ulSQ3TH; unsigned long ulSQ3TH;
// ANT diversity // ANT diversity
ULONG uDiversityCnt; unsigned long uDiversityCnt;
BYTE byAntennaState; BYTE byAntennaState;
ULONG ulRatio_State0; unsigned long ulRatio_State0;
ULONG ulRatio_State1; unsigned long ulRatio_State1;
//SQ3 functions for antenna diversity //SQ3 functions for antenna diversity
struct timer_list TimerSQ3Tmax1; struct timer_list TimerSQ3Tmax1;
...@@ -747,7 +747,7 @@ typedef struct __device_info { ...@@ -747,7 +747,7 @@ typedef struct __device_info {
struct timer_list TimerSQ3Tmax3; struct timer_list TimerSQ3Tmax3;
ULONG uNumSQ3[MAX_RATE]; unsigned long uNumSQ3[MAX_RATE];
WORD wAntDiversityMaxRate; WORD wAntDiversityMaxRate;
......
...@@ -588,7 +588,7 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType) ...@@ -588,7 +588,7 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)
pDevice->ulDiversityMValue = 100*16;//SROMbyReadEmbedded(pDevice->PortOffset, 0x52); pDevice->ulDiversityMValue = 100*16;//SROMbyReadEmbedded(pDevice->PortOffset, 0x52);
pDevice->byTMax = 1;//SROMbyReadEmbedded(pDevice->PortOffset, 0x53); pDevice->byTMax = 1;//SROMbyReadEmbedded(pDevice->PortOffset, 0x53);
pDevice->byTMax2 = 4;//SROMbyReadEmbedded(pDevice->PortOffset, 0x54); pDevice->byTMax2 = 4;//SROMbyReadEmbedded(pDevice->PortOffset, 0x54);
pDevice->ulSQ3TH = 0;//(ULONG) SROMbyReadEmbedded(pDevice->PortOffset, 0x55); pDevice->ulSQ3TH = 0;//(unsigned long) SROMbyReadEmbedded(pDevice->PortOffset, 0x55);
pDevice->byTMax3 = 64;//SROMbyReadEmbedded(pDevice->PortOffset, 0x56); pDevice->byTMax3 = 64;//SROMbyReadEmbedded(pDevice->PortOffset, 0x56);
if (byValue == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) { if (byValue == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) {
...@@ -851,17 +851,17 @@ else CARDbRadioPowerOn(pDevice); ...@@ -851,17 +851,17 @@ else CARDbRadioPowerOn(pDevice);
static void device_init_diversity_timer(PSDevice pDevice) { static void device_init_diversity_timer(PSDevice pDevice) {
init_timer(&pDevice->TimerSQ3Tmax1); init_timer(&pDevice->TimerSQ3Tmax1);
pDevice->TimerSQ3Tmax1.data = (ULONG)pDevice; pDevice->TimerSQ3Tmax1.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax1.function = (TimerFunction)TimerSQ3CallBack; pDevice->TimerSQ3Tmax1.function = (TimerFunction)TimerSQ3CallBack;
pDevice->TimerSQ3Tmax1.expires = RUN_AT(HZ); pDevice->TimerSQ3Tmax1.expires = RUN_AT(HZ);
init_timer(&pDevice->TimerSQ3Tmax2); init_timer(&pDevice->TimerSQ3Tmax2);
pDevice->TimerSQ3Tmax2.data = (ULONG)pDevice; pDevice->TimerSQ3Tmax2.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax2.function = (TimerFunction)TimerSQ3CallBack; pDevice->TimerSQ3Tmax2.function = (TimerFunction)TimerSQ3CallBack;
pDevice->TimerSQ3Tmax2.expires = RUN_AT(HZ); pDevice->TimerSQ3Tmax2.expires = RUN_AT(HZ);
init_timer(&pDevice->TimerSQ3Tmax3); init_timer(&pDevice->TimerSQ3Tmax3);
pDevice->TimerSQ3Tmax3.data = (ULONG)pDevice; pDevice->TimerSQ3Tmax3.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax3.function = (TimerFunction)TimerState1CallBack; pDevice->TimerSQ3Tmax3.function = (TimerFunction)TimerState1CallBack;
pDevice->TimerSQ3Tmax3.expires = RUN_AT(HZ); pDevice->TimerSQ3Tmax3.expires = RUN_AT(HZ);
...@@ -1112,10 +1112,11 @@ static void device_print_info(PSDevice pDevice) ...@@ -1112,10 +1112,11 @@ static void device_print_info(PSDevice pDevice)
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: %s\n",dev->name, get_chip_name(pDevice->chip_id)); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: %s\n",dev->name, get_chip_name(pDevice->chip_id));
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: MAC=%pM", dev->name, dev->dev_addr); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: MAC=%pM", dev->name, dev->dev_addr);
#ifdef IO_MAP #ifdef IO_MAP
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx ",(ULONG) pDevice->ioaddr); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx ",(unsigned long) pDevice->ioaddr);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq);
#else #else
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx Mem=0x%lx ",(ULONG) pDevice->ioaddr,(ULONG) pDevice->PortOffset); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx Mem=0x%lx ",
(unsigned long) pDevice->ioaddr,(unsigned long) pDevice->PortOffset);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq);
#endif #endif
......
...@@ -719,7 +719,7 @@ vConfigWEPKey ( ...@@ -719,7 +719,7 @@ vConfigWEPKey (
PSDevice pDevice, PSDevice pDevice,
DWORD dwKeyIndex, DWORD dwKeyIndex,
PBYTE pbyKey, PBYTE pbyKey,
ULONG uKeyLength unsigned long uKeyLength
) )
{ {
int ii; int ii;
......
...@@ -47,7 +47,7 @@ void vConfigWEPKey ( ...@@ -47,7 +47,7 @@ void vConfigWEPKey (
PSDevice pDevice, PSDevice pDevice,
DWORD dwKeyIndex, DWORD dwKeyIndex,
PBYTE pbyKey, PBYTE pbyKey,
ULONG uKeyLength unsigned long uKeyLength
); );
*/ */
......
...@@ -193,7 +193,7 @@ BOOL KeybSetKey ( ...@@ -193,7 +193,7 @@ BOOL KeybSetKey (
PSKeyManagement pTable, PSKeyManagement pTable,
PBYTE pbyBSSID, PBYTE pbyBSSID,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
...@@ -634,7 +634,7 @@ BOOL KeybCheckPairewiseKey ( ...@@ -634,7 +634,7 @@ BOOL KeybCheckPairewiseKey (
BOOL KeybSetDefaultKey ( BOOL KeybSetDefaultKey (
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
...@@ -741,7 +741,7 @@ BOOL KeybSetDefaultKey ( ...@@ -741,7 +741,7 @@ BOOL KeybSetDefaultKey (
BOOL KeybSetAllGroupKey ( BOOL KeybSetAllGroupKey (
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
typedef struct tagSKeyItem typedef struct tagSKeyItem
{ {
BOOL bKeyValid; BOOL bKeyValid;
ULONG uKeyLength; unsigned long uKeyLength;
BYTE abyKey[MAX_KEY_LEN]; BYTE abyKey[MAX_KEY_LEN];
QWORD KeyRSC; QWORD KeyRSC;
DWORD dwTSC47_16; DWORD dwTSC47_16;
...@@ -114,7 +114,7 @@ BOOL KeybSetKey( ...@@ -114,7 +114,7 @@ BOOL KeybSetKey(
PSKeyManagement pTable, PSKeyManagement pTable,
PBYTE pbyBSSID, PBYTE pbyBSSID,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
...@@ -125,7 +125,7 @@ BOOL KeybSetKey( ...@@ -125,7 +125,7 @@ BOOL KeybSetKey(
BOOL KeybSetDefaultKey( BOOL KeybSetDefaultKey(
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
...@@ -172,7 +172,7 @@ void KeyvRemoveAllWEPKey( ...@@ -172,7 +172,7 @@ void KeyvRemoveAllWEPKey(
BOOL KeybSetAllGroupKey ( BOOL KeybSetAllGroupKey (
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
ULONG uKeyLength, unsigned long uKeyLength,
PQWORD pKeyRSC, PQWORD pKeyRSC,
PBYTE pbyKey, PBYTE pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
// //
typedef struct tagSDot11Counters { typedef struct tagSDot11Counters {
ULONG Length; // Length of structure unsigned long Length; // Length of structure
ULONGLONG TransmittedFragmentCount; ULONGLONG TransmittedFragmentCount;
ULONGLONG MulticastTransmittedFrameCount; ULONGLONG MulticastTransmittedFrameCount;
ULONGLONG FailedCount; ULONGLONG FailedCount;
...@@ -138,7 +138,7 @@ typedef struct tagSRmonCounter { ...@@ -138,7 +138,7 @@ typedef struct tagSRmonCounter {
// Custom counter // Custom counter
// //
typedef struct tagSCustomCounters { typedef struct tagSCustomCounters {
ULONG Length; unsigned long Length;
ULONGLONG ullTsrAllOK; ULONGLONG ullTsrAllOK;
...@@ -177,7 +177,7 @@ typedef struct tagSCustomCounters { ...@@ -177,7 +177,7 @@ typedef struct tagSCustomCounters {
// Custom counter // Custom counter
// //
typedef struct tagSISRCounters { typedef struct tagSISRCounters {
ULONG Length; unsigned long Length;
DWORD dwIsrTx0OK; DWORD dwIsrTx0OK;
DWORD dwIsrAC0TxOK; DWORD dwIsrAC0TxOK;
...@@ -324,15 +324,15 @@ typedef struct tagSStatCounter { ...@@ -324,15 +324,15 @@ typedef struct tagSStatCounter {
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
//Tx count: //Tx count:
ULONG TxNoRetryOkCount; //success tx no retry ! unsigned long TxNoRetryOkCount; //success tx no retry !
ULONG TxRetryOkCount; //success tx but retry ! unsigned long TxRetryOkCount; //success tx but retry !
ULONG TxFailCount; //fail tx ? unsigned long TxFailCount; //fail tx ?
//Rx count: //Rx count:
ULONG RxOkCnt; //success rx ! unsigned long RxOkCnt; //success rx !
ULONG RxFcsErrCnt; //fail rx ? unsigned long RxFcsErrCnt; //fail rx ?
//statistic //statistic
ULONG SignalStren; unsigned long SignalStren;
ULONG LinkQuality; unsigned long LinkQuality;
#endif #endif
} SStatCounter, *PSStatCounter; } SStatCounter, *PSStatCounter;
......
...@@ -68,7 +68,6 @@ typedef int BOOL; ...@@ -68,7 +68,6 @@ typedef int BOOL;
* but it doesn't matter if they're signed or unsigned. * but it doesn't matter if they're signed or unsigned.
*/ */
typedef unsigned long ULONG;
typedef unsigned long long ULONGLONG; //64 bit typedef unsigned long long ULONGLONG; //64 bit
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
#define PCAvDelayByIO(uDelayUnit) { \ #define PCAvDelayByIO(uDelayUnit) { \
BYTE byData; \ BYTE byData; \
ULONG ii; \ unsigned long ii; \
\ \
if (uDelayUnit <= 50) { \ if (uDelayUnit <= 50) { \
udelay(uDelayUnit); \ udelay(uDelayUnit); \
......
...@@ -665,7 +665,7 @@ VNTWIFIbInit( ...@@ -665,7 +665,7 @@ VNTWIFIbInit(
BOOL BOOL
VNTWIFIbSetPMKIDCache ( VNTWIFIbSetPMKIDCache (
void *pMgmtObject, void *pMgmtObject,
ULONG ulCount, unsigned long ulCount,
void *pPMKIDInfo void *pPMKIDInfo
) )
{ {
......
...@@ -265,7 +265,7 @@ VNTWIFIbyGetKeyCypher( ...@@ -265,7 +265,7 @@ VNTWIFIbyGetKeyCypher(
BOOL BOOL
VNTWIFIbSetPMKIDCache ( VNTWIFIbSetPMKIDCache (
void *pMgmtObject, void *pMgmtObject,
ULONG ulCount, unsigned long ulCount,
void *pPMKIDInfo void *pPMKIDInfo
); );
......
...@@ -326,7 +326,7 @@ vCommandTimerWait( ...@@ -326,7 +326,7 @@ vCommandTimerWait(
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
init_timer(&pDevice->sTimerCommand); init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (ULONG)pDevice; pDevice->sTimerCommand.data = (unsigned long) pDevice;
pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer; pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
// RUN_AT :1 msec ~= (HZ/1024) // RUN_AT :1 msec ~= (HZ/1024)
pDevice->sTimerCommand.expires = (unsigned int)RUN_AT((MSecond * HZ) >> 10); pDevice->sTimerCommand.expires = (unsigned int)RUN_AT((MSecond * HZ) >> 10);
...@@ -723,7 +723,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS ...@@ -723,7 +723,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS
// printk("Re-initial TxDataTimer****\n"); // printk("Re-initial TxDataTimer****\n");
del_timer(&pDevice->sTimerTxData); del_timer(&pDevice->sTimerTxData);
init_timer(&pDevice->sTimerTxData); init_timer(&pDevice->sTimerTxData);
pDevice->sTimerTxData.data = (ULONG)pDevice; pDevice->sTimerTxData.data = (unsigned long) pDevice;
pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData;
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
pDevice->fTxDataInSleep = FALSE; pDevice->fTxDataInSleep = FALSE;
...@@ -1092,7 +1092,7 @@ vResetCommandTimer( ...@@ -1092,7 +1092,7 @@ vResetCommandTimer(
del_timer(&pDevice->sTimerCommand); del_timer(&pDevice->sTimerCommand);
//init timer //init timer
init_timer(&pDevice->sTimerCommand); init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (ULONG)pDevice; pDevice->sTimerCommand.data = (unsigned long) pDevice;
pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer; pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
pDevice->sTimerCommand.expires = RUN_AT(HZ); pDevice->sTimerCommand.expires = RUN_AT(HZ);
pDevice->cbFreeCmdQueue = CMD_Q_SIZE; pDevice->cbFreeCmdQueue = CMD_Q_SIZE;
......
...@@ -393,18 +393,18 @@ vMgrTimerInit( ...@@ -393,18 +393,18 @@ vMgrTimerInit(
init_timer(&pMgmt->sTimerSecondCallback); init_timer(&pMgmt->sTimerSecondCallback);
pMgmt->sTimerSecondCallback.data = (ULONG)pDevice; pMgmt->sTimerSecondCallback.data = (unsigned long) pDevice;
pMgmt->sTimerSecondCallback.function = (TimerFunction)BSSvSecondCallBack; pMgmt->sTimerSecondCallback.function = (TimerFunction)BSSvSecondCallBack;
pMgmt->sTimerSecondCallback.expires = RUN_AT(HZ); pMgmt->sTimerSecondCallback.expires = RUN_AT(HZ);
init_timer(&pDevice->sTimerCommand); init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (ULONG)pDevice; pDevice->sTimerCommand.data = (unsigned long) pDevice;
pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer; pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
pDevice->sTimerCommand.expires = RUN_AT(HZ); pDevice->sTimerCommand.expires = RUN_AT(HZ);
#ifdef TxInSleep #ifdef TxInSleep
init_timer(&pDevice->sTimerTxData); init_timer(&pDevice->sTimerTxData);
pDevice->sTimerTxData.data = (ULONG)pDevice; pDevice->sTimerTxData.data = (unsigned long) pDevice;
pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData; pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData;
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
pDevice->fTxDataInSleep = FALSE; pDevice->fTxDataInSleep = FALSE;
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
/*--------------------- Export Types ------------------------------*/ /*--------------------- Export Types ------------------------------*/
#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)(ULONG); typedef void (*TimerFunction)(unsigned long);
//+++ NDIS related //+++ NDIS related
...@@ -105,15 +105,15 @@ typedef struct _NDIS_802_11_AI_RESFI ...@@ -105,15 +105,15 @@ typedef struct _NDIS_802_11_AI_RESFI
typedef struct _NDIS_802_11_ASSOCIATION_INFORMATION typedef struct _NDIS_802_11_ASSOCIATION_INFORMATION
{ {
ULONG Length; unsigned long Length;
unsigned short AvailableRequestFixedIEs; unsigned short AvailableRequestFixedIEs;
NDIS_802_11_AI_REQFI RequestFixedIEs; NDIS_802_11_AI_REQFI RequestFixedIEs;
ULONG RequestIELength; unsigned long RequestIELength;
ULONG OffsetRequestIEs; unsigned long OffsetRequestIEs;
unsigned short AvailableResponseFixedIEs; unsigned short AvailableResponseFixedIEs;
NDIS_802_11_AI_RESFI ResponseFixedIEs; NDIS_802_11_AI_RESFI ResponseFixedIEs;
ULONG ResponseIELength; unsigned long ResponseIELength;
ULONG OffsetResponseIEs; unsigned long OffsetResponseIEs;
} NDIS_802_11_ASSOCIATION_INFORMATION, *PNDIS_802_11_ASSOCIATION_INFORMATION; } NDIS_802_11_ASSOCIATION_INFORMATION, *PNDIS_802_11_ASSOCIATION_INFORMATION;
...@@ -122,7 +122,7 @@ typedef struct tagSAssocInfo { ...@@ -122,7 +122,7 @@ typedef struct tagSAssocInfo {
NDIS_802_11_ASSOCIATION_INFORMATION AssocInfo; NDIS_802_11_ASSOCIATION_INFORMATION AssocInfo;
BYTE abyIEs[WLAN_BEACON_FR_MAXLEN+WLAN_BEACON_FR_MAXLEN]; BYTE abyIEs[WLAN_BEACON_FR_MAXLEN+WLAN_BEACON_FR_MAXLEN];
// store ReqIEs set by OID_802_11_ASSOCIATION_INFORMATION // store ReqIEs set by OID_802_11_ASSOCIATION_INFORMATION
ULONG RequestIELength; unsigned long RequestIELength;
BYTE abyReqIEs[WLAN_BEACON_FR_MAXLEN]; BYTE abyReqIEs[WLAN_BEACON_FR_MAXLEN];
} SAssocInfo, *PSAssocInfo; } SAssocInfo, *PSAssocInfo;
//--- //---
......
...@@ -45,7 +45,7 @@ typedef struct tagsPMKIDInfo { ...@@ -45,7 +45,7 @@ typedef struct tagsPMKIDInfo {
} PMKIDInfo, *PPMKIDInfo; } PMKIDInfo, *PPMKIDInfo;
typedef struct tagSPMKIDCache { typedef struct tagSPMKIDCache {
ULONG BSSIDInfoCount; unsigned long BSSIDInfoCount;
PMKIDInfo BSSIDInfo[MAX_PMKID_CACHE]; PMKIDInfo BSSIDInfo[MAX_PMKID_CACHE];
} SPMKIDCache, *PSPMKIDCache; } SPMKIDCache, *PSPMKIDCache;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册