Commit e64354c0 authored by Charles Clément's avatar Charles Clément Committed by Greg Kroah-Hartman

Staging: vt6655: remove HANDLE definition and use

Signed-off-by: default avatarCharles Clément <caratorn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 089a4198
...@@ -2878,7 +2878,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3) ...@@ -2878,7 +2878,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
void void
TimerSQ3CallBack ( TimerSQ3CallBack (
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -2926,7 +2926,7 @@ TimerSQ3CallBack ( ...@@ -2926,7 +2926,7 @@ TimerSQ3CallBack (
void void
TimerState1CallBack ( TimerState1CallBack (
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
......
...@@ -162,12 +162,12 @@ void BBvExitDeepSleep(DWORD_PTR dwIoBase, BYTE byLocalID); ...@@ -162,12 +162,12 @@ void BBvExitDeepSleep(DWORD_PTR dwIoBase, BYTE byLocalID);
void void
TimerSQ3CallBack ( TimerSQ3CallBack (
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
TimerState1CallBack( TimerState1CallBack(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3); void BBvAntennaDiversity(PSDevice pDevice, BYTE byRxRate, BYTE bySQ3);
......
...@@ -91,18 +91,18 @@ const WORD awHWRetry1[5][5] = { ...@@ -91,18 +91,18 @@ const WORD awHWRetry1[5][5] = {
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
void s_vCheckSensitivity( void s_vCheckSensitivity(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
void s_uCalculateLinkQual( void s_uCalculateLinkQual(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#endif #endif
void s_vCheckPreEDThreshold( void s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -125,7 +125,7 @@ void s_vCheckPreEDThreshold( ...@@ -125,7 +125,7 @@ void s_vCheckPreEDThreshold(
PKnownBSS PKnownBSS
BSSpSearchBSSList( BSSpSearchBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE pbyDesireBSSID, IN PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID, IN PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType IN CARD_PHY_TYPE ePhyType
...@@ -282,7 +282,7 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE; ...@@ -282,7 +282,7 @@ if(pDevice->bLinkPass==FALSE) pCurrBSS->bSelected = FALSE;
void void
BSSvClearBSSList( BSSvClearBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BOOL bKeepCurrBSSID IN BOOL bKeepCurrBSSID
) )
{ {
...@@ -325,7 +325,7 @@ BSSvClearBSSList( ...@@ -325,7 +325,7 @@ BSSvClearBSSList(
-*/ -*/
PKnownBSS PKnownBSS
BSSpAddrIsInBSSList( BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE abyBSSID, IN PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID IN PWLAN_IE_SSID pSSID
) )
...@@ -368,7 +368,7 @@ BSSpAddrIsInBSSList( ...@@ -368,7 +368,7 @@ BSSpAddrIsInBSSList(
BOOL BOOL
BSSbInsertToBSSList ( BSSbInsertToBSSList (
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE abyBSSIDAddr, IN PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp, IN QWORD qwTimestamp,
IN WORD wBeaconInterval, IN WORD wBeaconInterval,
...@@ -384,7 +384,7 @@ BSSbInsertToBSSList ( ...@@ -384,7 +384,7 @@ BSSbInsertToBSSList (
IN PWLAN_IE_QUIET pIE_Quiet, IN PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength, IN UINT uIELength,
IN PBYTE pbyIEs, IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext IN void *pRxPacketContext
) )
{ {
...@@ -502,7 +502,7 @@ BSSbInsertToBSSList ( ...@@ -502,7 +502,7 @@ BSSbInsertToBSSList (
if ((bIs802_1x == TRUE) && (pSSID->len == ((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->len) && if ((bIs802_1x == TRUE) && (pSSID->len == ((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->len) &&
( !memcmp(pSSID->abySSID, ((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySSID, pSSID->len))) { ( !memcmp(pSSID->abySSID, ((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySSID, pSSID->len))) {
bAdd_PMKID_Candidate((HANDLE)pDevice, pBSSList->abyBSSID, &pBSSList->sRSNCapObj); bAdd_PMKID_Candidate((void *)pDevice, pBSSList->abyBSSID, &pBSSList->sRSNCapObj);
if ((pDevice->bLinkPass == TRUE) && (pMgmt->eCurrState == WMAC_STATE_ASSOC)) { if ((pDevice->bLinkPass == TRUE) && (pMgmt->eCurrState == WMAC_STATE_ASSOC)) {
if ((KeybGetTransmitKey(&(pDevice->sKey), pDevice->abyBSSID, PAIRWISE_KEY, &pTransmitKey) == TRUE) || if ((KeybGetTransmitKey(&(pDevice->sKey), pDevice->abyBSSID, PAIRWISE_KEY, &pTransmitKey) == TRUE) ||
...@@ -585,7 +585,7 @@ BSSbInsertToBSSList ( ...@@ -585,7 +585,7 @@ BSSbInsertToBSSList (
BOOL BOOL
BSSbUpdateToBSSList ( BSSbUpdateToBSSList (
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN QWORD qwTimestamp, IN QWORD qwTimestamp,
IN WORD wBeaconInterval, IN WORD wBeaconInterval,
IN WORD wCapInfo, IN WORD wCapInfo,
...@@ -602,7 +602,7 @@ BSSbUpdateToBSSList ( ...@@ -602,7 +602,7 @@ BSSbUpdateToBSSList (
IN PKnownBSS pBSSList, IN PKnownBSS pBSSList,
IN UINT uIELength, IN UINT uIELength,
IN PBYTE pbyIEs, IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext IN void *pRxPacketContext
) )
{ {
int ii; int ii;
...@@ -799,7 +799,7 @@ BSSDBbIsSTAInNodeDB( ...@@ -799,7 +799,7 @@ BSSDBbIsSTAInNodeDB(
-*/ -*/
void void
BSSvCreateOneNode( BSSvCreateOneNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
) )
{ {
...@@ -864,7 +864,7 @@ BSSvCreateOneNode( ...@@ -864,7 +864,7 @@ BSSvCreateOneNode(
-*/ -*/
void void
BSSvRemoveOneNode( BSSvRemoveOneNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN UINT uNodeIndex IN UINT uNodeIndex
) )
{ {
...@@ -897,7 +897,7 @@ BSSvRemoveOneNode( ...@@ -897,7 +897,7 @@ BSSvRemoveOneNode(
void void
BSSvUpdateAPNode( BSSvUpdateAPNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PWORD pwCapInfo, IN PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pSuppRates, IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates IN PWLAN_IE_SUPP_RATES pExtSuppRates
...@@ -960,7 +960,7 @@ BSSvUpdateAPNode( ...@@ -960,7 +960,7 @@ BSSvUpdateAPNode(
void void
BSSvAddMulticastNode( BSSvAddMulticastNode(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1013,7 +1013,7 @@ UINT status; ...@@ -1013,7 +1013,7 @@ UINT status;
#endif #endif
void void
BSSvSecondCallBack( BSSvSecondCallBack(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1111,7 +1111,7 @@ CARDbRadioPowerOn(pDevice); ...@@ -1111,7 +1111,7 @@ CARDbRadioPowerOn(pDevice);
} }
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
s_uCalculateLinkQual((HANDLE)pDevice); s_uCalculateLinkQual((void *)pDevice);
#endif #endif
for (ii = 0; ii < (MAX_NODE_NUM + 1); ii++) { for (ii = 0; ii < (MAX_NODE_NUM + 1); ii++) {
...@@ -1261,18 +1261,18 @@ CARDbRadioPowerOn(pDevice); ...@@ -1261,18 +1261,18 @@ CARDbRadioPowerOn(pDevice);
if (pMgmt->sNodeDBTable[0].bActive) { // Assoc with BSS if (pMgmt->sNodeDBTable[0].bActive) { // Assoc with BSS
// DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "Callback inactive Count = [%d]\n", pMgmt->sNodeDBTable[0].uInActiveCount); // DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "Callback inactive Count = [%d]\n", pMgmt->sNodeDBTable[0].uInActiveCount);
//if (pDevice->bUpdateBBVGA) { //if (pDevice->bUpdateBBVGA) {
// s_vCheckSensitivity((HANDLE) pDevice); // s_vCheckSensitivity((void *) pDevice);
//} //}
if (pDevice->bUpdateBBVGA) { if (pDevice->bUpdateBBVGA) {
// s_vCheckSensitivity((HANDLE) pDevice); // s_vCheckSensitivity((void *) pDevice);
s_vCheckPreEDThreshold((HANDLE)pDevice); s_vCheckPreEDThreshold((void *)pDevice);
} }
if ((pMgmt->sNodeDBTable[0].uInActiveCount >= (LOST_BEACON_COUNT/2)) && if ((pMgmt->sNodeDBTable[0].uInActiveCount >= (LOST_BEACON_COUNT/2)) &&
(pDevice->byBBVGACurrent != pDevice->abyBBVGA[0]) ) { (pDevice->byBBVGACurrent != pDevice->abyBBVGA[0]) ) {
pDevice->byBBVGANew = pDevice->abyBBVGA[0]; pDevice->byBBVGANew = pDevice->abyBBVGA[0];
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_BBSENSITIVITY, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_CHANGE_BBSENSITIVITY, NULL);
} }
if (pMgmt->sNodeDBTable[0].uInActiveCount >= LOST_BEACON_COUNT) { if (pMgmt->sNodeDBTable[0].uInActiveCount >= LOST_BEACON_COUNT) {
...@@ -1324,10 +1324,10 @@ CARDbRadioPowerOn(pDevice); ...@@ -1324,10 +1324,10 @@ CARDbRadioPowerOn(pDevice);
pDevice->eEncryptionStatus = pDevice->eOldEncryptionStatus; pDevice->eEncryptionStatus = pDevice->eOldEncryptionStatus;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Roaming ...\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Roaming ...\n");
BSSvClearBSSList((HANDLE)pDevice, pDevice->bLinkPass); BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
pMgmt->eScanType = WMAC_SCAN_ACTIVE; pMgmt->eScanType = WMAC_SCAN_ACTIVE;
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID);
pDevice->uAutoReConnectTime = 0; pDevice->uAutoReConnectTime = 0;
} }
} }
...@@ -1342,16 +1342,16 @@ CARDbRadioPowerOn(pDevice); ...@@ -1342,16 +1342,16 @@ CARDbRadioPowerOn(pDevice);
else { else {
DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Adhoc re-scaning ...\n"); DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Adhoc re-scaning ...\n");
pMgmt->eScanType = WMAC_SCAN_ACTIVE; pMgmt->eScanType = WMAC_SCAN_ACTIVE;
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
pDevice->uAutoReConnectTime = 0; pDevice->uAutoReConnectTime = 0;
}; };
} }
if (pMgmt->eCurrState == WMAC_STATE_JOINTED) { if (pMgmt->eCurrState == WMAC_STATE_JOINTED) {
if (pDevice->bUpdateBBVGA) { if (pDevice->bUpdateBBVGA) {
//s_vCheckSensitivity((HANDLE) pDevice); //s_vCheckSensitivity((void *) pDevice);
s_vCheckPreEDThreshold((HANDLE)pDevice); s_vCheckPreEDThreshold((void *)pDevice);
} }
if (pMgmt->sNodeDBTable[0].uInActiveCount >=ADHOC_LOST_BEACON_COUNT) { if (pMgmt->sNodeDBTable[0].uInActiveCount >=ADHOC_LOST_BEACON_COUNT) {
DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Lost other STA beacon [%d] sec, started !\n", pMgmt->sNodeDBTable[0].uInActiveCount); DBG_PRT(MSG_LEVEL_NOTICE, KERN_INFO "Lost other STA beacon [%d] sec, started !\n", pMgmt->sNodeDBTable[0].uInActiveCount);
...@@ -1390,7 +1390,7 @@ CARDbRadioPowerOn(pDevice); ...@@ -1390,7 +1390,7 @@ CARDbRadioPowerOn(pDevice);
void void
BSSvUpdateNodeTxCounter( BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BYTE byTsr0, IN BYTE byTsr0,
IN BYTE byTsr1, IN BYTE byTsr1,
IN PBYTE pbyBuffer, IN PBYTE pbyBuffer,
...@@ -1503,7 +1503,7 @@ BSSvUpdateNodeTxCounter( ...@@ -1503,7 +1503,7 @@ BSSvUpdateNodeTxCounter(
pMACHeader = (PS802_11Header)(pbyBuffer + uFIFOHeaderSize); pMACHeader = (PS802_11Header)(pbyBuffer + uFIFOHeaderSize);
if (BSSDBbIsSTAInNodeDB((HANDLE)pMgmt, &(pMACHeader->abyAddr1[0]), &uNodeIndex)){ if (BSSDBbIsSTAInNodeDB((void *)pMgmt, &(pMACHeader->abyAddr1[0]), &uNodeIndex)){
pMgmt->sNodeDBTable[uNodeIndex].uTxAttempts += 1; pMgmt->sNodeDBTable[uNodeIndex].uTxAttempts += 1;
if ((byTsr1 & TSR1_TERR) == 0) { if ((byTsr1 & TSR1_TERR) == 0) {
// transmit success, TxAttempts at least plus one // transmit success, TxAttempts at least plus one
...@@ -1583,7 +1583,7 @@ BSSvUpdateNodeTxCounter( ...@@ -1583,7 +1583,7 @@ BSSvUpdateNodeTxCounter(
void void
BSSvClearNodeDBTable( BSSvClearNodeDBTable(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN UINT uStartIndex IN UINT uStartIndex
) )
...@@ -1611,7 +1611,7 @@ BSSvClearNodeDBTable( ...@@ -1611,7 +1611,7 @@ BSSvClearNodeDBTable(
void s_vCheckSensitivity( void s_vCheckSensitivity(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1649,7 +1649,7 @@ void s_vCheckSensitivity( ...@@ -1649,7 +1649,7 @@ void s_vCheckSensitivity(
if (pDevice->byBBVGANew != pDevice->byBBVGACurrent) { if (pDevice->byBBVGANew != pDevice->byBBVGACurrent) {
pDevice->uBBVGADiffCount++; pDevice->uBBVGADiffCount++;
if (pDevice->uBBVGADiffCount >= BB_VGA_CHANGE_THRESHOLD) if (pDevice->uBBVGADiffCount >= BB_VGA_CHANGE_THRESHOLD)
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_CHANGE_BBSENSITIVITY, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_CHANGE_BBSENSITIVITY, NULL);
} else { } else {
pDevice->uBBVGADiffCount = 0; pDevice->uBBVGADiffCount = 0;
} }
...@@ -1661,7 +1661,7 @@ void s_vCheckSensitivity( ...@@ -1661,7 +1661,7 @@ void s_vCheckSensitivity(
void void
BSSvClearAnyBSSJoinRecord ( BSSvClearAnyBSSJoinRecord (
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1676,7 +1676,7 @@ BSSvClearAnyBSSJoinRecord ( ...@@ -1676,7 +1676,7 @@ BSSvClearAnyBSSJoinRecord (
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
void s_uCalculateLinkQual( void s_uCalculateLinkQual(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1724,7 +1724,7 @@ else ...@@ -1724,7 +1724,7 @@ else
#endif #endif
void s_vCheckPreEDThreshold( void s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
......
...@@ -244,7 +244,7 @@ typedef struct tagKnownNodeDB { ...@@ -244,7 +244,7 @@ typedef struct tagKnownNodeDB {
PKnownBSS PKnownBSS
BSSpSearchBSSList( BSSpSearchBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE pbyDesireBSSID, IN PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID, IN PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType IN CARD_PHY_TYPE ePhyType
...@@ -252,20 +252,20 @@ BSSpSearchBSSList( ...@@ -252,20 +252,20 @@ BSSpSearchBSSList(
PKnownBSS PKnownBSS
BSSpAddrIsInBSSList( BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE abyBSSID, IN PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID IN PWLAN_IE_SSID pSSID
); );
void void
BSSvClearBSSList( BSSvClearBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BOOL bKeepCurrBSSID IN BOOL bKeepCurrBSSID
); );
BOOL BOOL
BSSbInsertToBSSList( BSSbInsertToBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE abyBSSIDAddr, IN PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp, IN QWORD qwTimestamp,
IN WORD wBeaconInterval, IN WORD wBeaconInterval,
...@@ -281,13 +281,13 @@ BSSbInsertToBSSList( ...@@ -281,13 +281,13 @@ BSSbInsertToBSSList(
IN PWLAN_IE_QUIET pIE_Quiet, IN PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength, IN UINT uIELength,
IN PBYTE pbyIEs, IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext IN void *pRxPacketContext
); );
BOOL BOOL
BSSbUpdateToBSSList( BSSbUpdateToBSSList(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN QWORD qwTimestamp, IN QWORD qwTimestamp,
IN WORD wBeaconInterval, IN WORD wBeaconInterval,
IN WORD wCapInfo, IN WORD wCapInfo,
...@@ -304,26 +304,26 @@ BSSbUpdateToBSSList( ...@@ -304,26 +304,26 @@ BSSbUpdateToBSSList(
IN PKnownBSS pBSSList, IN PKnownBSS pBSSList,
IN UINT uIELength, IN UINT uIELength,
IN PBYTE pbyIEs, IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext IN void *pRxPacketContext
); );
BOOL BOOL
BSSDBbIsSTAInNodeDB( BSSDBbIsSTAInNodeDB(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE abyDstAddr, IN PBYTE abyDstAddr,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
); );
void void
BSSvCreateOneNode( BSSvCreateOneNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
); );
void void
BSSvUpdateAPNode( BSSvUpdateAPNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PWORD pwCapInfo, IN PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pItemRates, IN PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates IN PWLAN_IE_SUPP_RATES pExtSuppRates
...@@ -332,13 +332,13 @@ BSSvUpdateAPNode( ...@@ -332,13 +332,13 @@ BSSvUpdateAPNode(
void void
BSSvSecondCallBack( BSSvSecondCallBack(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
BSSvUpdateNodeTxCounter( BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BYTE byTsr0, IN BYTE byTsr0,
IN BYTE byTsr1, IN BYTE byTsr1,
IN PBYTE pbyBuffer, IN PBYTE pbyBuffer,
...@@ -347,25 +347,25 @@ BSSvUpdateNodeTxCounter( ...@@ -347,25 +347,25 @@ BSSvUpdateNodeTxCounter(
void void
BSSvRemoveOneNode( BSSvRemoveOneNode(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN UINT uNodeIndex IN UINT uNodeIndex
); );
void void
BSSvAddMulticastNode( BSSvAddMulticastNode(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
BSSvClearNodeDBTable( BSSvClearNodeDBTable(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN UINT uStartIndex IN UINT uStartIndex
); );
void void
BSSvClearAnyBSSJoinRecord( BSSvClearAnyBSSJoinRecord(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#endif //__BSSDB_H__ #endif //__BSSDB_H__
...@@ -2011,11 +2011,11 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call MACvIntEnable\n"); ...@@ -2011,11 +2011,11 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "call MACvIntEnable\n");
MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE);
if (pDevice->pMgmt->eConfigMode == WMAC_CONFIG_AP) { if (pDevice->pMgmt->eConfigMode == WMAC_CONFIG_AP) {
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RUN_AP, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RUN_AP, NULL);
} }
else { else {
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_BSSID_SCAN, NULL);
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_SSID, NULL);
} }
pDevice->flags |=DEVICE_FLAGS_OPENED; pDevice->flags |=DEVICE_FLAGS_OPENED;
...@@ -2034,7 +2034,7 @@ static int device_close(struct net_device *dev) { ...@@ -2034,7 +2034,7 @@ static int device_close(struct net_device *dev) {
//PLICE_DEBUG<- //PLICE_DEBUG<-
//2007-1121-02<Add>by EinsnLiu //2007-1121-02<Add>by EinsnLiu
if (pDevice->bLinkPass) { if (pDevice->bLinkPass) {
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_DISASSOCIATE, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_DISASSOCIATE, NULL);
mdelay(30); mdelay(30);
} }
#ifdef TxInSleep #ifdef TxInSleep
...@@ -2860,7 +2860,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { ...@@ -2860,7 +2860,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) {
pDevice->bBeaconSent = FALSE; pDevice->bBeaconSent = FALSE;
if (pDevice->bEnablePSMode) { if (pDevice->bEnablePSMode) {
PSbIsNextTBTTWakeUp((HANDLE)pDevice); PSbIsNextTBTTWakeUp((void *)pDevice);
}; };
if ((pDevice->eOPMode == OP_MODE_AP) || if ((pDevice->eOPMode == OP_MODE_AP) ||
...@@ -2893,7 +2893,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) { ...@@ -2893,7 +2893,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) {
// check if mutltcast tx bufferring // check if mutltcast tx bufferring
pMgmt->byDTIMCount = pMgmt->byDTIMPeriod - 1; pMgmt->byDTIMCount = pMgmt->byDTIMPeriod - 1;
pMgmt->sNodeDBTable[0].bRxPSPoll = TRUE; pMgmt->sNodeDBTable[0].bRxPSPoll = TRUE;
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RX_PSPOLL, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL);
} }
} }
} }
...@@ -3549,7 +3549,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { ...@@ -3549,7 +3549,7 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
if (pMgmt->eConfigMode == WMAC_CONFIG_AP) { if (pMgmt->eConfigMode == WMAC_CONFIG_AP) {
netif_stop_queue(pDevice->dev); netif_stop_queue(pDevice->dev);
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RUN_AP, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RUN_AP, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
} }
else { else {
...@@ -3563,8 +3563,8 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { ...@@ -3563,8 +3563,8 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
pMgmt->eScanType = WMAC_SCAN_ACTIVE; pMgmt->eScanType = WMAC_SCAN_ACTIVE;
if(pDevice->bWPASuppWextEnabled !=TRUE) if(pDevice->bWPASuppWextEnabled !=TRUE)
#endif #endif
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
} }
pDevice->bCommit = FALSE; pDevice->bCommit = FALSE;
...@@ -3719,9 +3719,9 @@ viawget_resume(struct pci_dev *pcid) ...@@ -3719,9 +3719,9 @@ viawget_resume(struct pci_dev *pcid)
init_timer(&pMgmt->sTimerSecondCallback); init_timer(&pMgmt->sTimerSecondCallback);
init_timer(&pDevice->sTimerCommand); init_timer(&pDevice->sTimerCommand);
MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE);
BSSvClearBSSList((HANDLE)pDevice, pDevice->bLinkPass); BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
} }
return 0; return 0;
......
...@@ -631,13 +631,13 @@ device_receive_frame ( ...@@ -631,13 +631,13 @@ device_receive_frame (
tasklet_schedule(&pDevice->RxMngWorkItem); tasklet_schedule(&pDevice->RxMngWorkItem);
#else #else
//printk("RxMan\n"); //printk("RxMan\n");
vMgrRxManagePacket((HANDLE)pDevice, pDevice->pMgmt, pRxPacket); vMgrRxManagePacket((void *)pDevice, pDevice->pMgmt, pRxPacket);
//tasklet_schedule(&pDevice->RxMngWorkItem); //tasklet_schedule(&pDevice->RxMngWorkItem);
#endif #endif
#endif #endif
//PLICE_DEBUG<- //PLICE_DEBUG<-
//vMgrRxManagePacket((HANDLE)pDevice, pDevice->pMgmt, pRxPacket); //vMgrRxManagePacket((void *)pDevice, pDevice->pMgmt, pRxPacket);
// hostap Deamon handle 802.11 management // hostap Deamon handle 802.11 management
if (pDevice->bEnableHostapd) { if (pDevice->bEnableHostapd) {
skb->dev = pDevice->apdev; skb->dev = pDevice->apdev;
...@@ -1087,7 +1087,7 @@ static BOOL s_bAPModeRxCtl ( ...@@ -1087,7 +1087,7 @@ static BOOL s_bAPModeRxCtl (
// delcare received ps-poll event // delcare received ps-poll event
if (IS_CTL_PSPOLL(pbyFrame)) { if (IS_CTL_PSPOLL(pbyFrame)) {
pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE; pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE;
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RX_PSPOLL, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 1\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 1\n");
} }
else { else {
...@@ -1096,7 +1096,7 @@ static BOOL s_bAPModeRxCtl ( ...@@ -1096,7 +1096,7 @@ static BOOL s_bAPModeRxCtl (
if (!IS_FC_POWERMGT(pbyFrame)) { if (!IS_FC_POWERMGT(pbyFrame)) {
pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE; pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE;
pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE; pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE;
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RX_PSPOLL, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 2\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 2\n");
} }
} }
...@@ -1112,7 +1112,7 @@ static BOOL s_bAPModeRxCtl ( ...@@ -1112,7 +1112,7 @@ static BOOL s_bAPModeRxCtl (
if (pMgmt->sNodeDBTable[iSANodeIndex].wEnQueueCnt > 0) { if (pMgmt->sNodeDBTable[iSANodeIndex].wEnQueueCnt > 0) {
pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE; pMgmt->sNodeDBTable[iSANodeIndex].bPSEnable = FALSE;
pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE; pMgmt->sNodeDBTable[iSANodeIndex].bRxPSPoll = TRUE;
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RX_PSPOLL, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RX_PSPOLL, NULL);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 3\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "dpc: WLAN_CMD_RX_PSPOLL 3\n");
} }
......
...@@ -109,14 +109,14 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { ...@@ -109,14 +109,14 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
} }
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0) if (memcmp(pMgmt->abyCurrBSSID, &abyNullAddr[0], 6) == 0)
BSSvClearBSSList((HANDLE)pDevice, FALSE); BSSvClearBSSList((void *)pDevice, FALSE);
else else
BSSvClearBSSList((HANDLE)pDevice, pDevice->bLinkPass); BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
if (pItemSSID->len != 0) if (pItemSSID->len != 0)
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, abyScanSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, abyScanSSID);
else else
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
break; break;
...@@ -223,8 +223,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { ...@@ -223,8 +223,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
netif_stop_queue(pDevice->dev); netif_stop_queue(pDevice->dev);
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
pMgmt->eCurrState = WMAC_STATE_IDLE; pMgmt->eCurrState = WMAC_STATE_IDLE;
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
break; break;
...@@ -593,7 +593,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { ...@@ -593,7 +593,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
netif_stop_queue(pDevice->dev); netif_stop_queue(pDevice->dev);
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_RUN_AP, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_RUN_AP, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
break; break;
......
...@@ -190,7 +190,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating! ...@@ -190,7 +190,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating!
} }
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
BSSvClearBSSList((HANDLE)pDevice, pDevice->bLinkPass); BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
//mike add: active scan OR passive scan OR desire_ssid scan //mike add: active scan OR passive scan OR desire_ssid scan
if(wrq->length == sizeof(struct iw_scan_req)) { if(wrq->length == sizeof(struct iw_scan_req)) {
...@@ -208,7 +208,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating! ...@@ -208,7 +208,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating!
pMgmt->eScanType = WMAC_SCAN_PASSIVE; pMgmt->eScanType = WMAC_SCAN_PASSIVE;
PRINT_K("SIOCSIWSCAN:[desired_ssid=%s,len=%d]\n",((PWLAN_IE_SSID)abyScanSSID)->abySSID, PRINT_K("SIOCSIWSCAN:[desired_ssid=%s,len=%d]\n",((PWLAN_IE_SSID)abyScanSSID)->abySSID,
((PWLAN_IE_SSID)abyScanSSID)->len); ((PWLAN_IE_SSID)abyScanSSID)->len);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, abyScanSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, abyScanSSID);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return 0; return 0;
...@@ -223,7 +223,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating! ...@@ -223,7 +223,7 @@ if(pDevice->byReAssocCount > 0) { //reject scan when re-associating!
pMgmt->eScanType = WMAC_SCAN_PASSIVE; pMgmt->eScanType = WMAC_SCAN_PASSIVE;
//printk("SIOCSIWSCAN:WLAN_CMD_BSSID_SCAN\n"); //printk("SIOCSIWSCAN:WLAN_CMD_BSSID_SCAN\n");
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return 0; return 0;
...@@ -897,10 +897,10 @@ if (pMgmt->eScanState == WMAC_IS_SCANNING) { ...@@ -897,10 +897,10 @@ if (pMgmt->eScanState == WMAC_IS_SCANNING) {
if (pCurr == NULL){ if (pCurr == NULL){
PRINT_K("SIOCSIWESSID:hidden ssid site survey before associate.......\n"); PRINT_K("SIOCSIWESSID:hidden ssid site survey before associate.......\n");
vResetCommandTimer((HANDLE) pDevice); vResetCommandTimer((void *) pDevice);
pMgmt->eScanType = WMAC_SCAN_ACTIVE; pMgmt->eScanType = WMAC_SCAN_ACTIVE;
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID);
} }
else { //mike:to find out if that desired SSID is a hidden-ssid AP , else { //mike:to find out if that desired SSID is a hidden-ssid AP ,
// by means of judging if there are two same BSSID exist in list ? // by means of judging if there are two same BSSID exist in list ?
...@@ -912,10 +912,10 @@ if (pMgmt->eScanState == WMAC_IS_SCANNING) { ...@@ -912,10 +912,10 @@ if (pMgmt->eScanState == WMAC_IS_SCANNING) {
} }
if(uSameBssidNum >= 2) { //hit: desired AP is in hidden ssid mode!!! if(uSameBssidNum >= 2) { //hit: desired AP is in hidden ssid mode!!!
printk("SIOCSIWESSID:hidden ssid directly associate.......\n"); printk("SIOCSIWESSID:hidden ssid directly associate.......\n");
vResetCommandTimer((HANDLE) pDevice); vResetCommandTimer((void *) pDevice);
pMgmt->eScanType = WMAC_SCAN_PASSIVE; //this scan type,you'll submit scan result! pMgmt->eScanType = WMAC_SCAN_PASSIVE; //this scan type,you'll submit scan result!
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, pMgmt->abyDesireSSID);
} }
} }
} }
...@@ -1660,11 +1660,11 @@ int iwctl_siwpower(struct net_device *dev, ...@@ -1660,11 +1660,11 @@ int iwctl_siwpower(struct net_device *dev,
} }
if ((wrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) { if ((wrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) {
pDevice->ePSMode = WMAC_POWER_FAST; pDevice->ePSMode = WMAC_POWER_FAST;
PSvEnablePowerSaving((HANDLE)pDevice, pMgmt->wListenInterval); PSvEnablePowerSaving((void *)pDevice, pMgmt->wListenInterval);
} else if ((wrq->flags & IW_POWER_TYPE) == IW_POWER_PERIOD) { } else if ((wrq->flags & IW_POWER_TYPE) == IW_POWER_PERIOD) {
pDevice->ePSMode = WMAC_POWER_FAST; pDevice->ePSMode = WMAC_POWER_FAST;
PSvEnablePowerSaving((HANDLE)pDevice, pMgmt->wListenInterval); PSvEnablePowerSaving((void *)pDevice, pMgmt->wListenInterval);
} }
switch (wrq->flags & IW_POWER_MODE) { switch (wrq->flags & IW_POWER_MODE) {
case IW_POWER_UNICAST_R: case IW_POWER_UNICAST_R:
...@@ -2096,7 +2096,7 @@ int iwctl_siwmlme(struct net_device *dev, ...@@ -2096,7 +2096,7 @@ int iwctl_siwmlme(struct net_device *dev,
switch(mlme->cmd){ switch(mlme->cmd){
case IW_MLME_DEAUTH: case IW_MLME_DEAUTH:
//this command seems to be not complete,please test it --einsnliu //this command seems to be not complete,please test it --einsnliu
//bScheduleCommand((HANDLE) pDevice, WLAN_CMD_DEAUTH, (PBYTE)&reason); //bScheduleCommand((void *) pDevice, WLAN_CMD_DEAUTH, (PBYTE)&reason);
break; break;
case IW_MLME_DISASSOC: case IW_MLME_DISASSOC:
if(pDevice->bLinkPass == TRUE){ if(pDevice->bLinkPass == TRUE){
...@@ -2104,7 +2104,7 @@ int iwctl_siwmlme(struct net_device *dev, ...@@ -2104,7 +2104,7 @@ int iwctl_siwmlme(struct net_device *dev,
//clear related flags //clear related flags
memset(pMgmt->abyDesireBSSID, 0xFF,6); memset(pMgmt->abyDesireBSSID, 0xFF,6);
KeyvInitTable(&pDevice->sKey, pDevice->PortOffset); KeyvInitTable(&pDevice->sKey, pDevice->PortOffset);
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_DISASSOCIATE, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_DISASSOCIATE, NULL);
} }
break; break;
default: default:
......
...@@ -76,7 +76,7 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -76,7 +76,7 @@ static int msglevel =MSG_LEVEL_INFO;
void void
PSvEnablePowerSaving( PSvEnablePowerSaving(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN WORD wListenInterval IN WORD wListenInterval
) )
{ {
...@@ -146,7 +146,7 @@ PSvEnablePowerSaving( ...@@ -146,7 +146,7 @@ PSvEnablePowerSaving(
void void
PSvDisablePowerSaving( PSvDisablePowerSaving(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -184,7 +184,7 @@ PSvDisablePowerSaving( ...@@ -184,7 +184,7 @@ PSvDisablePowerSaving(
BOOL BOOL
PSbConsiderPowerDown( PSbConsiderPowerDown(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BOOL bCheckRxDMA, IN BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp IN BOOL bCheckCountToWakeUp
) )
...@@ -252,7 +252,7 @@ PSbConsiderPowerDown( ...@@ -252,7 +252,7 @@ PSbConsiderPowerDown(
void void
PSvSendPSPOLL( PSvSendPSPOLL(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -298,7 +298,7 @@ PSvSendPSPOLL( ...@@ -298,7 +298,7 @@ PSvSendPSPOLL(
-*/ -*/
BOOL BOOL
PSbSendNullPacket( PSbSendNullPacket(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -384,7 +384,7 @@ PSbSendNullPacket( ...@@ -384,7 +384,7 @@ PSbSendNullPacket(
BOOL BOOL
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext IN void *hDeviceContext
) )
{ {
......
...@@ -50,35 +50,35 @@ ...@@ -50,35 +50,35 @@
BOOL BOOL
PSbConsiderPowerDown( PSbConsiderPowerDown(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN BOOL bCheckRxDMA, IN BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp IN BOOL bCheckCountToWakeUp
); );
void void
PSvDisablePowerSaving( PSvDisablePowerSaving(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
PSvEnablePowerSaving( PSvEnablePowerSaving(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN WORD wListenInterval IN WORD wListenInterval
); );
void void
PSvSendPSPOLL( PSvSendPSPOLL(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
BOOL BOOL
PSbSendNullPacket( PSbSendNullPacket(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
BOOL BOOL
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#endif //__POWER_H__ #endif //__POWER_H__
...@@ -132,6 +132,4 @@ typedef DWORD * PDWORD; ...@@ -132,6 +132,4 @@ typedef DWORD * PDWORD;
typedef QWORD * PQWORD; typedef QWORD * PQWORD;
typedef void *HANDLE;
#endif // __TTYPE_H__ #endif // __TTYPE_H__
This diff is collapsed.
...@@ -111,34 +111,34 @@ typedef enum tagCMD_STATE { ...@@ -111,34 +111,34 @@ typedef enum tagCMD_STATE {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void void
vResetCommandTimer( vResetCommandTimer(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
vCommandTimer ( vCommandTimer (
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
BOOL bClearBSSID_SCAN( BOOL bClearBSSID_SCAN(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
BOOL BOOL
bScheduleCommand( bScheduleCommand(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN CMD_CODE eCommand, IN CMD_CODE eCommand,
IN PBYTE pbyItem0 IN PBYTE pbyItem0
); );
void void
vCommandTimerWait( vCommandTimerWait(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN UINT MSecond IN UINT MSecond
); );
#ifdef TxInSleep #ifdef TxInSleep
void void
BSSvSecondTxData( BSSvSecondTxData(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#endif #endif
......
This diff is collapsed.
...@@ -401,36 +401,36 @@ typedef struct tagSMgmtObject ...@@ -401,36 +401,36 @@ typedef struct tagSMgmtObject
void void
vMgrObjectInit( vMgrObjectInit(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
vMgrTimerInit( vMgrTimerInit(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
vMgrObjectReset( vMgrObjectReset(
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
void void
vMgrAssocBeginSta( vMgrAssocBeginSta(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
void void
vMgrReAssocBeginSta( vMgrReAssocBeginSta(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
void void
vMgrDisassocBeginSta( vMgrDisassocBeginSta(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, IN PBYTE abyDestAddress,
IN WORD wReason, IN WORD wReason,
...@@ -439,26 +439,26 @@ vMgrDisassocBeginSta( ...@@ -439,26 +439,26 @@ vMgrDisassocBeginSta(
void void
vMgrAuthenBeginSta( vMgrAuthenBeginSta(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
void void
vMgrCreateOwnIBSS( vMgrCreateOwnIBSS(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
void void
vMgrJoinBSSBegin( vMgrJoinBSSBegin(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
void void
vMgrRxManagePacket( vMgrRxManagePacket(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket IN PSRxMgmtPacket pRxPacket
); );
...@@ -466,14 +466,14 @@ vMgrRxManagePacket( ...@@ -466,14 +466,14 @@ vMgrRxManagePacket(
/* /*
void void
vMgrScanBegin( vMgrScanBegin(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
*/ */
void void
vMgrDeAuthenBeginSta( vMgrDeAuthenBeginSta(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt, IN PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, IN PBYTE abyDestAddress,
IN WORD wReason, IN WORD wReason,
...@@ -482,21 +482,21 @@ vMgrDeAuthenBeginSta( ...@@ -482,21 +482,21 @@ vMgrDeAuthenBeginSta(
BOOL BOOL
bMgrPrepareBeaconToSend( bMgrPrepareBeaconToSend(
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PSMgmtObject pMgmt IN PSMgmtObject pMgmt
); );
BOOL BOOL
bAdd_PMKID_Candidate ( bAdd_PMKID_Candidate (
IN HANDLE hDeviceContext, IN void *hDeviceContext,
IN PBYTE pbyBSSID, IN PBYTE pbyBSSID,
IN PSRSNCapObject psRSNCapObj IN PSRSNCapObject psRSNCapObj
); );
void void
vFlush_PMKID_Candidate ( vFlush_PMKID_Candidate (
IN HANDLE hDeviceContext IN void *hDeviceContext
); );
#endif // __WMGR_H__ #endif // __WMGR_H__
...@@ -496,7 +496,7 @@ static int wpa_set_disassociate(PSDevice pDevice, ...@@ -496,7 +496,7 @@ static int wpa_set_disassociate(PSDevice pDevice,
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
if (pDevice->bLinkPass) { if (pDevice->bLinkPass) {
if (!memcmp(param->addr, pMgmt->abyCurrBSSID, 6)) if (!memcmp(param->addr, pMgmt->abyCurrBSSID, 6))
bScheduleCommand((HANDLE)pDevice, WLAN_CMD_DISASSOCIATE, NULL); bScheduleCommand((void *)pDevice, WLAN_CMD_DISASSOCIATE, NULL);
} }
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
...@@ -525,8 +525,8 @@ static int wpa_set_scan(PSDevice pDevice, ...@@ -525,8 +525,8 @@ static int wpa_set_scan(PSDevice pDevice,
int ret = 0; int ret = 0;
spin_lock_irq(&pDevice->lock); spin_lock_irq(&pDevice->lock);
BSSvClearBSSList((HANDLE)pDevice, pDevice->bLinkPass); BSSvClearBSSList((void *)pDevice, pDevice->bLinkPass);
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return ret; return ret;
...@@ -786,7 +786,7 @@ static int wpa_set_associate(PSDevice pDevice, ...@@ -786,7 +786,7 @@ static int wpa_set_associate(PSDevice pDevice,
memcpy(pMgmt->abyDesireBSSID, param->u.wpa_associate.bssid, 6); memcpy(pMgmt->abyDesireBSSID, param->u.wpa_associate.bssid, 6);
else else
{ {
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pItemSSID->abySSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pItemSSID->abySSID);
} }
if (param->u.wpa_associate.wpa_ie_len == 0) { if (param->u.wpa_associate.wpa_ie_len == 0) {
...@@ -870,11 +870,11 @@ if (!((pMgmt->eAuthenMode == WMAC_AUTH_SHAREKEY) || ...@@ -870,11 +870,11 @@ if (!((pMgmt->eAuthenMode == WMAC_AUTH_SHAREKEY) ||
if (pCurr == NULL){ if (pCurr == NULL){
printk("wpa_set_associate---->hidden mode site survey before associate.......\n"); printk("wpa_set_associate---->hidden mode site survey before associate.......\n");
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID); bScheduleCommand((void *) pDevice, WLAN_CMD_BSSID_SCAN, pMgmt->abyDesireSSID);
}; };
} }
/****************************************************************/ /****************************************************************/
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_SSID, NULL); bScheduleCommand((void *) pDevice, WLAN_CMD_SSID, NULL);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return ret; return ret;
......
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