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

Staging: vt6656: Removed IN definition

Code cleanup, removed empty IN definition used to denote input parameters.
Signed-off-by: default avatarAndres More <more.andres@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ecf739e6
...@@ -91,7 +91,7 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -91,7 +91,7 @@ static int msglevel =MSG_LEVEL_INFO;
VOID VOID
vMgrEncodeBeacon( vMgrEncodeBeacon(
IN PWLAN_FR_BEACON pFrame PWLAN_FR_BEACON pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -123,7 +123,7 @@ vMgrEncodeBeacon( ...@@ -123,7 +123,7 @@ vMgrEncodeBeacon(
VOID VOID
vMgrDecodeBeacon( vMgrDecodeBeacon(
IN PWLAN_FR_BEACON pFrame PWLAN_FR_BEACON pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -244,7 +244,7 @@ vMgrDecodeBeacon( ...@@ -244,7 +244,7 @@ vMgrDecodeBeacon(
VOID VOID
vMgrEncodeIBSSATIM( vMgrEncodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame PWLAN_FR_IBSSATIM pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -267,7 +267,7 @@ vMgrEncodeIBSSATIM( ...@@ -267,7 +267,7 @@ vMgrEncodeIBSSATIM(
VOID VOID
vMgrDecodeIBSSATIM( vMgrDecodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame PWLAN_FR_IBSSATIM pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -289,7 +289,7 @@ vMgrDecodeIBSSATIM( ...@@ -289,7 +289,7 @@ vMgrDecodeIBSSATIM(
VOID VOID
vMgrEncodeDisassociation( vMgrEncodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame PWLAN_FR_DISASSOC pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -317,7 +317,7 @@ vMgrEncodeDisassociation( ...@@ -317,7 +317,7 @@ vMgrEncodeDisassociation(
VOID VOID
vMgrDecodeDisassociation( vMgrDecodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame PWLAN_FR_DISASSOC pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -343,7 +343,7 @@ vMgrDecodeDisassociation( ...@@ -343,7 +343,7 @@ vMgrDecodeDisassociation(
VOID VOID
vMgrEncodeAssocRequest( vMgrEncodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame PWLAN_FR_ASSOCREQ pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -370,7 +370,7 @@ vMgrEncodeAssocRequest( ...@@ -370,7 +370,7 @@ vMgrEncodeAssocRequest(
VOID VOID
vMgrDecodeAssocRequest( vMgrDecodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame PWLAN_FR_ASSOCREQ pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -436,7 +436,7 @@ vMgrDecodeAssocRequest( ...@@ -436,7 +436,7 @@ vMgrDecodeAssocRequest(
VOID VOID
vMgrEncodeAssocResponse( vMgrEncodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame PWLAN_FR_ASSOCRESP pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -468,7 +468,7 @@ vMgrEncodeAssocResponse( ...@@ -468,7 +468,7 @@ vMgrEncodeAssocResponse(
VOID VOID
vMgrDecodeAssocResponse( vMgrDecodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame PWLAN_FR_ASSOCRESP pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -514,7 +514,7 @@ vMgrDecodeAssocResponse( ...@@ -514,7 +514,7 @@ vMgrDecodeAssocResponse(
VOID VOID
vMgrEncodeReassocRequest( vMgrEncodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame PWLAN_FR_REASSOCREQ pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -546,7 +546,7 @@ vMgrEncodeReassocRequest( ...@@ -546,7 +546,7 @@ vMgrEncodeReassocRequest(
VOID VOID
vMgrDecodeReassocRequest( vMgrDecodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame PWLAN_FR_REASSOCREQ pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -618,7 +618,7 @@ vMgrDecodeReassocRequest( ...@@ -618,7 +618,7 @@ vMgrDecodeReassocRequest(
VOID VOID
vMgrEncodeProbeRequest( vMgrEncodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame PWLAN_FR_PROBEREQ pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -639,7 +639,7 @@ vMgrEncodeProbeRequest( ...@@ -639,7 +639,7 @@ vMgrEncodeProbeRequest(
VOID VOID
vMgrDecodeProbeRequest( vMgrDecodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame PWLAN_FR_PROBEREQ pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -692,7 +692,7 @@ vMgrDecodeProbeRequest( ...@@ -692,7 +692,7 @@ vMgrDecodeProbeRequest(
VOID VOID
vMgrEncodeProbeResponse( vMgrEncodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame PWLAN_FR_PROBERESP pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -726,7 +726,7 @@ vMgrEncodeProbeResponse( ...@@ -726,7 +726,7 @@ vMgrEncodeProbeResponse(
VOID VOID
vMgrDecodeProbeResponse( vMgrDecodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame PWLAN_FR_PROBERESP pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -840,7 +840,7 @@ vMgrDecodeProbeResponse( ...@@ -840,7 +840,7 @@ vMgrDecodeProbeResponse(
VOID VOID
vMgrEncodeAuthen( vMgrEncodeAuthen(
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -871,7 +871,7 @@ vMgrEncodeAuthen( ...@@ -871,7 +871,7 @@ vMgrEncodeAuthen(
VOID VOID
vMgrDecodeAuthen( vMgrDecodeAuthen(
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
...@@ -911,7 +911,7 @@ vMgrDecodeAuthen( ...@@ -911,7 +911,7 @@ vMgrDecodeAuthen(
VOID VOID
vMgrEncodeDeauthen( vMgrEncodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame PWLAN_FR_DEAUTHEN pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -938,7 +938,7 @@ vMgrEncodeDeauthen( ...@@ -938,7 +938,7 @@ vMgrEncodeDeauthen(
VOID VOID
vMgrDecodeDeauthen( vMgrDecodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame PWLAN_FR_DEAUTHEN pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -964,7 +964,7 @@ vMgrDecodeDeauthen( ...@@ -964,7 +964,7 @@ vMgrDecodeDeauthen(
VOID VOID
vMgrEncodeReassocResponse( vMgrEncodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame PWLAN_FR_REASSOCRESP pFrame
) )
{ {
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf; pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
...@@ -997,7 +997,7 @@ vMgrEncodeReassocResponse( ...@@ -997,7 +997,7 @@ vMgrEncodeReassocResponse(
VOID VOID
vMgrDecodeReassocResponse( vMgrDecodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame PWLAN_FR_REASSOCRESP pFrame
) )
{ {
PWLAN_IE pItem; PWLAN_IE pItem;
......
...@@ -750,112 +750,112 @@ typedef struct tagWLAN_FR_DEAUTHEN { ...@@ -750,112 +750,112 @@ typedef struct tagWLAN_FR_DEAUTHEN {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
VOID VOID
vMgrEncodeBeacon( vMgrEncodeBeacon(
IN PWLAN_FR_BEACON pFrame PWLAN_FR_BEACON pFrame
); );
VOID VOID
vMgrDecodeBeacon( vMgrDecodeBeacon(
IN PWLAN_FR_BEACON pFrame PWLAN_FR_BEACON pFrame
); );
VOID VOID
vMgrEncodeIBSSATIM( vMgrEncodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame PWLAN_FR_IBSSATIM pFrame
); );
VOID VOID
vMgrDecodeIBSSATIM( vMgrDecodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame PWLAN_FR_IBSSATIM pFrame
); );
VOID VOID
vMgrEncodeDisassociation( vMgrEncodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame PWLAN_FR_DISASSOC pFrame
); );
VOID VOID
vMgrDecodeDisassociation( vMgrDecodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame PWLAN_FR_DISASSOC pFrame
); );
VOID VOID
vMgrEncodeAssocRequest( vMgrEncodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame PWLAN_FR_ASSOCREQ pFrame
); );
VOID VOID
vMgrDecodeAssocRequest( vMgrDecodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame PWLAN_FR_ASSOCREQ pFrame
); );
VOID VOID
vMgrEncodeAssocResponse( vMgrEncodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame PWLAN_FR_ASSOCRESP pFrame
); );
VOID VOID
vMgrDecodeAssocResponse( vMgrDecodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame PWLAN_FR_ASSOCRESP pFrame
); );
VOID VOID
vMgrEncodeReassocRequest( vMgrEncodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame PWLAN_FR_REASSOCREQ pFrame
); );
VOID VOID
vMgrDecodeReassocRequest( vMgrDecodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame PWLAN_FR_REASSOCREQ pFrame
); );
VOID VOID
vMgrEncodeProbeRequest( vMgrEncodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame PWLAN_FR_PROBEREQ pFrame
); );
VOID VOID
vMgrDecodeProbeRequest( vMgrDecodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame PWLAN_FR_PROBEREQ pFrame
); );
VOID VOID
vMgrEncodeProbeResponse( vMgrEncodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame PWLAN_FR_PROBERESP pFrame
); );
VOID VOID
vMgrDecodeProbeResponse( vMgrDecodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame PWLAN_FR_PROBERESP pFrame
); );
VOID VOID
vMgrEncodeAuthen( vMgrEncodeAuthen(
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
VOID VOID
vMgrDecodeAuthen( vMgrDecodeAuthen(
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
VOID VOID
vMgrEncodeDeauthen( vMgrEncodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame PWLAN_FR_DEAUTHEN pFrame
); );
VOID VOID
vMgrDecodeDeauthen( vMgrDecodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame PWLAN_FR_DEAUTHEN pFrame
); );
VOID VOID
vMgrEncodeReassocResponse( vMgrEncodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame PWLAN_FR_REASSOCRESP pFrame
); );
VOID VOID
vMgrDecodeReassocResponse( vMgrDecodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame PWLAN_FR_REASSOCRESP pFrame
); );
#endif// __80211MGR_H__ #endif// __80211MGR_H__
...@@ -691,10 +691,10 @@ s_vClearSQ3Value(PSDevice pDevice); ...@@ -691,10 +691,10 @@ s_vClearSQ3Value(PSDevice pDevice);
*/ */
UINT UINT
BBuGetFrameTime ( BBuGetFrameTime (
IN BYTE byPreambleType, BYTE byPreambleType,
IN BYTE byPktType, BYTE byPktType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate WORD wRate
) )
{ {
UINT uFrameTime; UINT uFrameTime;
...@@ -758,10 +758,10 @@ BBuGetFrameTime ( ...@@ -758,10 +758,10 @@ BBuGetFrameTime (
*/ */
VOID VOID
BBvCaculateParameter ( BBvCaculateParameter (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate, WORD wRate,
IN BYTE byPacketType, BYTE byPacketType,
OUT PWORD pwPhyLen, OUT PWORD pwPhyLen,
OUT PBYTE pbyPhySrv, OUT PBYTE pbyPhySrv,
OUT PBYTE pbyPhySgn OUT PBYTE pbyPhySgn
...@@ -1578,7 +1578,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3) ...@@ -1578,7 +1578,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
VOID VOID
TimerSQ3CallBack ( TimerSQ3CallBack (
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1620,7 +1620,7 @@ TimerSQ3CallBack ( ...@@ -1620,7 +1620,7 @@ TimerSQ3CallBack (
VOID VOID
TimerSQ3Tmax3CallBack ( TimerSQ3Tmax3CallBack (
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1652,8 +1652,8 @@ TimerSQ3Tmax3CallBack ( ...@@ -1652,8 +1652,8 @@ TimerSQ3Tmax3CallBack (
VOID VOID
BBvUpdatePreEDThreshold( BBvUpdatePreEDThreshold(
IN PSDevice pDevice, PSDevice pDevice,
IN BOOL bScanning) BOOL bScanning)
{ {
......
...@@ -98,18 +98,18 @@ ...@@ -98,18 +98,18 @@
UINT UINT
BBuGetFrameTime( BBuGetFrameTime(
IN BYTE byPreambleType, BYTE byPreambleType,
IN BYTE byFreqType, BYTE byFreqType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate WORD wRate
); );
VOID VOID
BBvCaculateParameter ( BBvCaculateParameter (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate, WORD wRate,
IN BYTE byPacketType, BYTE byPacketType,
OUT PWORD pwPhyLen, OUT PWORD pwPhyLen,
OUT PBYTE pbyPhySrv, OUT PBYTE pbyPhySrv,
OUT PBYTE pbyPhySgn OUT PBYTE pbyPhySgn
...@@ -119,12 +119,12 @@ BBvCaculateParameter ( ...@@ -119,12 +119,12 @@ BBvCaculateParameter (
VOID VOID
TimerSQ3CallBack ( TimerSQ3CallBack (
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID VOID
TimerSQ3Tmax3CallBack ( TimerSQ3Tmax3CallBack (
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3); VOID BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3);
...@@ -139,8 +139,8 @@ BOOL BBbVT3184Init (PSDevice pDevice); ...@@ -139,8 +139,8 @@ BOOL BBbVT3184Init (PSDevice pDevice);
VOID BBvSetDeepSleep (PSDevice pDevice); VOID BBvSetDeepSleep (PSDevice pDevice);
VOID BBvExitDeepSleep (PSDevice pDevice); VOID BBvExitDeepSleep (PSDevice pDevice);
VOID BBvUpdatePreEDThreshold( VOID BBvUpdatePreEDThreshold(
IN PSDevice pDevice, PSDevice pDevice,
IN BOOL bScanning BOOL bScanning
); );
#endif // __BASEBAND_H__ #endif // __BASEBAND_H__
...@@ -92,16 +92,16 @@ const WORD awHWRetry1[5][5] = { ...@@ -92,16 +92,16 @@ const WORD awHWRetry1[5][5] = {
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
VOID s_vCheckSensitivity( VOID s_vCheckSensitivity(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID s_vCheckPreEDThreshold( VOID s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
VOID s_uCalculateLinkQual( VOID s_uCalculateLinkQual(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#endif #endif
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -125,10 +125,10 @@ VOID s_uCalculateLinkQual( ...@@ -125,10 +125,10 @@ VOID s_uCalculateLinkQual(
PKnownBSS PKnownBSS
BSSpSearchBSSList( BSSpSearchBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE pbyDesireBSSID, PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID, PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType CARD_PHY_TYPE ePhyType
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -298,8 +298,8 @@ pDevice->bSameBSSMaxNum = jj; ...@@ -298,8 +298,8 @@ pDevice->bSameBSSMaxNum = jj;
VOID VOID
BSSvClearBSSList( BSSvClearBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN BOOL bKeepCurrBSSID BOOL bKeepCurrBSSID
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -344,9 +344,9 @@ BSSvClearBSSList( ...@@ -344,9 +344,9 @@ BSSvClearBSSList(
-*/ -*/
PKnownBSS PKnownBSS
BSSpAddrIsInBSSList( BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyBSSID, PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID PWLAN_IE_SSID pSSID
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -385,23 +385,23 @@ BSSpAddrIsInBSSList( ...@@ -385,23 +385,23 @@ BSSpAddrIsInBSSList(
BOOL BOOL
BSSbInsertToBSSList ( BSSbInsertToBSSList (
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyBSSIDAddr, PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp, QWORD qwTimestamp,
IN WORD wBeaconInterval, WORD wBeaconInterval,
IN WORD wCapInfo, WORD wCapInfo,
IN BYTE byCurrChannel, BYTE byCurrChannel,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP, PERPObject psERP,
IN PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength, UINT uIELength,
IN PBYTE pbyIEs, PBYTE pbyIEs,
IN HANDLE pRxPacketContext HANDLE pRxPacketContext
) )
{ {
...@@ -604,24 +604,24 @@ BSSbInsertToBSSList ( ...@@ -604,24 +604,24 @@ BSSbInsertToBSSList (
BOOL BOOL
BSSbUpdateToBSSList ( BSSbUpdateToBSSList (
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN QWORD qwTimestamp, QWORD qwTimestamp,
IN WORD wBeaconInterval, WORD wBeaconInterval,
IN WORD wCapInfo, WORD wCapInfo,
IN BYTE byCurrChannel, BYTE byCurrChannel,
IN BOOL bChannelHit, BOOL bChannelHit,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP, PERPObject psERP,
IN PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
IN PKnownBSS pBSSList, PKnownBSS pBSSList,
IN UINT uIELength, UINT uIELength,
IN PBYTE pbyIEs, PBYTE pbyIEs,
IN HANDLE pRxPacketContext HANDLE pRxPacketContext
) )
{ {
int ii, jj; int ii, jj;
...@@ -770,8 +770,8 @@ BSSbUpdateToBSSList ( ...@@ -770,8 +770,8 @@ BSSbUpdateToBSSList (
BOOL BOOL
BSSbIsSTAInNodeDB( BSSbIsSTAInNodeDB(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyDstAddr, PBYTE abyDstAddr,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
) )
{ {
...@@ -806,7 +806,7 @@ BSSbIsSTAInNodeDB( ...@@ -806,7 +806,7 @@ BSSbIsSTAInNodeDB(
-*/ -*/
VOID VOID
BSSvCreateOneNode( BSSvCreateOneNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
) )
{ {
...@@ -871,8 +871,8 @@ BSSvCreateOneNode( ...@@ -871,8 +871,8 @@ BSSvCreateOneNode(
-*/ -*/
VOID VOID
BSSvRemoveOneNode( BSSvRemoveOneNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN UINT uNodeIndex UINT uNodeIndex
) )
{ {
...@@ -904,10 +904,10 @@ BSSvRemoveOneNode( ...@@ -904,10 +904,10 @@ BSSvRemoveOneNode(
VOID VOID
BSSvUpdateAPNode( BSSvUpdateAPNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PWORD pwCapInfo, PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates PWLAN_IE_SUPP_RATES pExtSuppRates
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -964,7 +964,7 @@ BSSvUpdateAPNode( ...@@ -964,7 +964,7 @@ BSSvUpdateAPNode(
VOID VOID
BSSvAddMulticastNode( BSSvAddMulticastNode(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1011,7 +1011,7 @@ BSSvAddMulticastNode( ...@@ -1011,7 +1011,7 @@ BSSvAddMulticastNode(
VOID VOID
BSSvSecondCallBack( BSSvSecondCallBack(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1397,10 +1397,10 @@ else { ...@@ -1397,10 +1397,10 @@ else {
VOID VOID
BSSvUpdateNodeTxCounter( BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSStatCounter pStatistic, PSStatCounter pStatistic,
IN BYTE byTSR, BYTE byTSR,
IN BYTE byPktNO BYTE byPktNO
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1566,8 +1566,8 @@ BSSvUpdateNodeTxCounter( ...@@ -1566,8 +1566,8 @@ BSSvUpdateNodeTxCounter(
VOID VOID
BSSvClearNodeDBTable( BSSvClearNodeDBTable(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN UINT uStartIndex UINT uStartIndex
) )
{ {
...@@ -1594,7 +1594,7 @@ BSSvClearNodeDBTable( ...@@ -1594,7 +1594,7 @@ BSSvClearNodeDBTable(
VOID s_vCheckSensitivity( VOID s_vCheckSensitivity(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1638,7 +1638,7 @@ VOID s_vCheckSensitivity( ...@@ -1638,7 +1638,7 @@ VOID s_vCheckSensitivity(
#ifdef Calcu_LinkQual #ifdef Calcu_LinkQual
VOID s_uCalculateLinkQual( VOID s_uCalculateLinkQual(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1687,7 +1687,7 @@ else ...@@ -1687,7 +1687,7 @@ else
VOID VOID
BSSvClearAnyBSSJoinRecord ( BSSvClearAnyBSSJoinRecord (
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1701,7 +1701,7 @@ BSSvClearAnyBSSJoinRecord ( ...@@ -1701,7 +1701,7 @@ BSSvClearAnyBSSJoinRecord (
} }
VOID s_vCheckPreEDThreshold( VOID s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
......
...@@ -233,127 +233,127 @@ typedef struct tagKnownNodeDB { ...@@ -233,127 +233,127 @@ typedef struct tagKnownNodeDB {
PKnownBSS PKnownBSS
BSSpSearchBSSList( BSSpSearchBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE pbyDesireBSSID, PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID, PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType CARD_PHY_TYPE ePhyType
); );
PKnownBSS PKnownBSS
BSSpAddrIsInBSSList( BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyBSSID, PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID PWLAN_IE_SSID pSSID
); );
VOID VOID
BSSvClearBSSList( BSSvClearBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN BOOL bKeepCurrBSSID BOOL bKeepCurrBSSID
); );
BOOL BOOL
BSSbInsertToBSSList( BSSbInsertToBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyBSSIDAddr, PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp, QWORD qwTimestamp,
IN WORD wBeaconInterval, WORD wBeaconInterval,
IN WORD wCapInfo, WORD wCapInfo,
IN BYTE byCurrChannel, BYTE byCurrChannel,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP, PERPObject psERP,
IN PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength, UINT uIELength,
IN PBYTE pbyIEs, PBYTE pbyIEs,
IN HANDLE pRxPacketContext HANDLE pRxPacketContext
); );
BOOL BOOL
BSSbUpdateToBSSList( BSSbUpdateToBSSList(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN QWORD qwTimestamp, QWORD qwTimestamp,
IN WORD wBeaconInterval, WORD wBeaconInterval,
IN WORD wCapInfo, WORD wCapInfo,
IN BYTE byCurrChannel, BYTE byCurrChannel,
IN BOOL bChannelHit, BOOL bChannelHit,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates, PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates, PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP, PERPObject psERP,
IN PWLAN_IE_RSN pRSN, PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA, PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country, PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet, PWLAN_IE_QUIET pIE_Quiet,
IN PKnownBSS pBSSList, PKnownBSS pBSSList,
IN UINT uIELength, UINT uIELength,
IN PBYTE pbyIEs, PBYTE pbyIEs,
IN HANDLE pRxPacketContext HANDLE pRxPacketContext
); );
BOOL BOOL
BSSbIsSTAInNodeDB( BSSbIsSTAInNodeDB(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE abyDstAddr, PBYTE abyDstAddr,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
); );
VOID VOID
BSSvCreateOneNode( BSSvCreateOneNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PUINT puNodeIndex OUT PUINT puNodeIndex
); );
VOID VOID
BSSvUpdateAPNode( BSSvUpdateAPNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PWORD pwCapInfo, PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates PWLAN_IE_SUPP_RATES pExtSuppRates
); );
VOID VOID
BSSvSecondCallBack( BSSvSecondCallBack(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID VOID
BSSvUpdateNodeTxCounter( BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSStatCounter pStatistic, PSStatCounter pStatistic,
IN BYTE byTSR, BYTE byTSR,
IN BYTE byPktNO BYTE byPktNO
); );
VOID VOID
BSSvRemoveOneNode( BSSvRemoveOneNode(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN UINT uNodeIndex UINT uNodeIndex
); );
VOID VOID
BSSvAddMulticastNode( BSSvAddMulticastNode(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID VOID
BSSvClearNodeDBTable( BSSvClearNodeDBTable(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN UINT uStartIndex UINT uStartIndex
); );
VOID VOID
BSSvClearAnyBSSJoinRecord( BSSvClearAnyBSSJoinRecord(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#endif //__BSSDB_H__ #endif //__BSSDB_H__
...@@ -224,8 +224,8 @@ WORD swGetOFDMControlRate (PVOID pDeviceHandler, WORD wRateIdx) ...@@ -224,8 +224,8 @@ WORD swGetOFDMControlRate (PVOID pDeviceHandler, WORD wRateIdx)
*/ */
VOID VOID
CARDvCaculateOFDMRParameter ( CARDvCaculateOFDMRParameter (
IN WORD wRate, WORD wRate,
IN BYTE byBBType, BYTE byBBType,
OUT PBYTE pbyTxRate, OUT PBYTE pbyTxRate,
OUT PBYTE pbyRsvTime OUT PBYTE pbyRsvTime
) )
...@@ -1080,10 +1080,10 @@ void CARDvSetBSSMode (PVOID pDeviceHandler) ...@@ -1080,10 +1080,10 @@ void CARDvSetBSSMode (PVOID pDeviceHandler)
-*/ -*/
BOOL BOOL
CARDbChannelSwitch ( CARDbChannelSwitch (
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN BYTE byMode, BYTE byMode,
IN BYTE byNewChannel, BYTE byNewChannel,
IN BYTE byCount BYTE byCount
) )
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; PSDevice pDevice = (PSDevice) pDeviceHandler;
......
...@@ -83,10 +83,10 @@ void CARDvSetBSSMode(PVOID pDeviceHandler); ...@@ -83,10 +83,10 @@ void CARDvSetBSSMode(PVOID pDeviceHandler);
BOOL BOOL
CARDbChannelSwitch ( CARDbChannelSwitch (
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN BYTE byMode, BYTE byMode,
IN BYTE byNewChannel, BYTE byNewChannel,
IN BYTE byCount BYTE byCount
); );
#endif // __CARD_H__ #endif // __CARD_H__
......
...@@ -425,7 +425,7 @@ ChannelValid(UINT CountryCode, UINT ChannelIndex) ...@@ -425,7 +425,7 @@ ChannelValid(UINT CountryCode, UINT ChannelIndex)
************************************************************************/ ************************************************************************/
BOOL BOOL
CHvChannelGetList ( CHvChannelGetList (
IN UINT uCountryCodeIdx, UINT uCountryCodeIdx,
OUT PBYTE pbyChannelTable OUT PBYTE pbyChannelTable
) )
{ {
......
...@@ -50,7 +50,7 @@ BYTE CHbyGetChannelMapping(BYTE byChannelNumber); ...@@ -50,7 +50,7 @@ BYTE CHbyGetChannelMapping(BYTE byChannelNumber);
BOOL BOOL
CHvChannelGetList ( CHvChannelGetList (
IN UINT uCountryCodeIdx, UINT uCountryCodeIdx,
OUT PBYTE pbyChannelTable OUT PBYTE pbyChannelTable
); );
......
...@@ -54,27 +54,27 @@ ...@@ -54,27 +54,27 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void ControlvWriteByte( void ControlvWriteByte(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRegType, BYTE byRegType,
IN BYTE byRegOfs, BYTE byRegOfs,
IN BYTE byData BYTE byData
); );
void ControlvReadByte( void ControlvReadByte(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRegType, BYTE byRegType,
IN BYTE byRegOfs, BYTE byRegOfs,
IN PBYTE pbyData PBYTE pbyData
); );
void ControlvMaskByte( void ControlvMaskByte(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRegType, BYTE byRegType,
IN BYTE byRegOfs, BYTE byRegOfs,
IN BYTE byMask, BYTE byMask,
IN BYTE byData BYTE byData
); );
#endif // __RCV_H__ #endif // __RCV_H__
......
...@@ -66,14 +66,14 @@ const BYTE acbyIERate[MAX_RATE] = ...@@ -66,14 +66,14 @@ const BYTE acbyIERate[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
VOID s_vResetCounter ( VOID s_vResetCounter (
IN PKnownNodeDB psNodeDBTable PKnownNodeDB psNodeDBTable
); );
VOID VOID
s_vResetCounter ( s_vResetCounter (
IN PKnownNodeDB psNodeDBTable PKnownNodeDB psNodeDBTable
) )
{ {
BYTE ii; BYTE ii;
...@@ -107,7 +107,7 @@ s_vResetCounter ( ...@@ -107,7 +107,7 @@ s_vResetCounter (
-*/ -*/
BYTE BYTE
DATARATEbyGetRateIdx ( DATARATEbyGetRateIdx (
IN BYTE byRate BYTE byRate
) )
{ {
BYTE ii; BYTE ii;
...@@ -161,7 +161,7 @@ DATARATEbyGetRateIdx ( ...@@ -161,7 +161,7 @@ DATARATEbyGetRateIdx (
-*/ -*/
WORD WORD
RATEwGetRateIdx( RATEwGetRateIdx(
IN BYTE byRate BYTE byRate
) )
{ {
WORD ii; WORD ii;
...@@ -197,10 +197,10 @@ RATEwGetRateIdx( ...@@ -197,10 +197,10 @@ RATEwGetRateIdx(
-*/ -*/
VOID VOID
RATEvParseMaxRate ( RATEvParseMaxRate (
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pItemExtRates, PWLAN_IE_SUPP_RATES pItemExtRates,
IN BOOL bUpdateBasicRate, BOOL bUpdateBasicRate,
OUT PWORD pwMaxBasicRate, OUT PWORD pwMaxBasicRate,
OUT PWORD pwMaxSuppRate, OUT PWORD pwMaxSuppRate,
OUT PWORD pwSuppRate, OUT PWORD pwSuppRate,
...@@ -310,8 +310,8 @@ UINT uRateLen; ...@@ -310,8 +310,8 @@ UINT uRateLen;
VOID VOID
RATEvTxRateFallBack ( RATEvTxRateFallBack (
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN PKnownNodeDB psNodeDBTable PKnownNodeDB psNodeDBTable
) )
{ {
PSDevice pDevice = (PSDevice) pDeviceHandler; PSDevice pDevice = (PSDevice) pDeviceHandler;
...@@ -473,9 +473,9 @@ if (wIdxUpRate == RATE_54M ) { //11a/g ...@@ -473,9 +473,9 @@ if (wIdxUpRate == RATE_54M ) { //11a/g
-*/ -*/
BYTE BYTE
RATEuSetIE ( RATEuSetIE (
IN PWLAN_IE_SUPP_RATES pSrcRates, PWLAN_IE_SUPP_RATES pSrcRates,
IN PWLAN_IE_SUPP_RATES pDstRates, PWLAN_IE_SUPP_RATES pDstRates,
IN UINT uRateLen UINT uRateLen
) )
{ {
UINT ii, uu, uRateCnt = 0; UINT ii, uu, uRateCnt = 0;
......
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
VOID VOID
RATEvParseMaxRate( RATEvParseMaxRate(
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pItemExtRates, PWLAN_IE_SUPP_RATES pItemExtRates,
IN BOOL bUpdateBasicRate, BOOL bUpdateBasicRate,
OUT PWORD pwMaxBasicRate, OUT PWORD pwMaxBasicRate,
OUT PWORD pwMaxSuppRate, OUT PWORD pwMaxSuppRate,
OUT PWORD pwSuppRate, OUT PWORD pwSuppRate,
...@@ -84,26 +84,26 @@ RATEvParseMaxRate( ...@@ -84,26 +84,26 @@ RATEvParseMaxRate(
VOID VOID
RATEvTxRateFallBack( RATEvTxRateFallBack(
IN PVOID pDeviceHandler, PVOID pDeviceHandler,
IN PKnownNodeDB psNodeDBTable PKnownNodeDB psNodeDBTable
); );
BYTE BYTE
RATEuSetIE( RATEuSetIE(
IN PWLAN_IE_SUPP_RATES pSrcRates, PWLAN_IE_SUPP_RATES pSrcRates,
IN PWLAN_IE_SUPP_RATES pDstRates, PWLAN_IE_SUPP_RATES pDstRates,
IN UINT uRateLen UINT uRateLen
); );
WORD WORD
RATEwGetRateIdx( RATEwGetRateIdx(
IN BYTE byRate BYTE byRate
); );
BYTE BYTE
DATARATEbyGetRateIdx( DATARATEbyGetRateIdx(
IN BYTE byRate BYTE byRate
); );
......
...@@ -74,13 +74,12 @@ const BYTE acbyRxRate[MAX_RATE] = ...@@ -74,13 +74,12 @@ const BYTE acbyRxRate[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
static BYTE s_byGetRateIdx(IN BYTE byRate); static BYTE s_byGetRateIdx(BYTE byRate);
static static
VOID VOID
s_vGetDASA( s_vGetDASA(
IN PBYTE pbyRxBufferAddr, PBYTE pbyRxBufferAddr,
OUT PUINT pcbHeaderSize, OUT PUINT pcbHeaderSize,
OUT PSEthernetHeader psEthHeader OUT PSEthernetHeader psEthHeader
); );
...@@ -88,37 +87,37 @@ s_vGetDASA( ...@@ -88,37 +87,37 @@ s_vGetDASA(
static static
VOID VOID
s_vProcessRxMACHeader ( s_vProcessRxMACHeader (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyRxBufferAddr, PBYTE pbyRxBufferAddr,
IN UINT cbPacketSize, UINT cbPacketSize,
IN BOOL bIsWEP, BOOL bIsWEP,
IN BOOL bExtIV, BOOL bExtIV,
OUT PUINT pcbHeadSize OUT PUINT pcbHeadSize
); );
static BOOL s_bAPModeRxCtl( static BOOL s_bAPModeRxCtl(
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN INT iSANodeIndex INT iSANodeIndex
); );
static BOOL s_bAPModeRxData ( static BOOL s_bAPModeRxData (
IN PSDevice pDevice, PSDevice pDevice,
IN struct sk_buff* skb, struct sk_buff *skb,
IN UINT FrameSize, UINT FrameSize,
IN UINT cbHeaderOffset, UINT cbHeaderOffset,
IN INT iSANodeIndex, INT iSANodeIndex,
IN INT iDANodeIndex INT iDANodeIndex
); );
static BOOL s_bHandleRxEncryption( static BOOL s_bHandleRxEncryption(
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN UINT FrameSize, UINT FrameSize,
IN PBYTE pbyRsr, PBYTE pbyRsr,
OUT PBYTE pbyNewRsr, OUT PBYTE pbyNewRsr,
OUT PSKeyItem *pKeyOut, OUT PSKeyItem *pKeyOut,
int * pbExtIV, int * pbExtIV,
...@@ -128,12 +127,12 @@ static BOOL s_bHandleRxEncryption( ...@@ -128,12 +127,12 @@ static BOOL s_bHandleRxEncryption(
static BOOL s_bHostWepRxEncryption( static BOOL s_bHostWepRxEncryption(
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN UINT FrameSize, UINT FrameSize,
IN PBYTE pbyRsr, PBYTE pbyRsr,
IN BOOL bOnFly, BOOL bOnFly,
IN PSKeyItem pKey, PSKeyItem pKey,
OUT PBYTE pbyNewRsr, OUT PBYTE pbyNewRsr,
int * pbExtIV, int * pbExtIV,
OUT PWORD pwRxTSC15_0, OUT PWORD pwRxTSC15_0,
...@@ -163,11 +162,11 @@ static BOOL s_bHostWepRxEncryption( ...@@ -163,11 +162,11 @@ static BOOL s_bHostWepRxEncryption(
static static
VOID VOID
s_vProcessRxMACHeader ( s_vProcessRxMACHeader (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyRxBufferAddr, PBYTE pbyRxBufferAddr,
IN UINT cbPacketSize, UINT cbPacketSize,
IN BOOL bIsWEP, BOOL bIsWEP,
IN BOOL bExtIV, BOOL bExtIV,
OUT PUINT pcbHeadSize OUT PUINT pcbHeadSize
) )
{ {
...@@ -247,7 +246,7 @@ s_vProcessRxMACHeader ( ...@@ -247,7 +246,7 @@ s_vProcessRxMACHeader (
static BYTE s_byGetRateIdx (IN BYTE byRate) static BYTE s_byGetRateIdx(BYTE byRate)
{ {
BYTE byRateIdx; BYTE byRateIdx;
...@@ -262,7 +261,7 @@ static BYTE s_byGetRateIdx (IN BYTE byRate) ...@@ -262,7 +261,7 @@ static BYTE s_byGetRateIdx (IN BYTE byRate)
static static
VOID VOID
s_vGetDASA ( s_vGetDASA (
IN PBYTE pbyRxBufferAddr, PBYTE pbyRxBufferAddr,
OUT PUINT pcbHeaderSize, OUT PUINT pcbHeaderSize,
OUT PSEthernetHeader psEthHeader OUT PSEthernetHeader psEthHeader
) )
...@@ -317,9 +316,9 @@ s_vGetDASA ( ...@@ -317,9 +316,9 @@ s_vGetDASA (
BOOL BOOL
RXbBulkInProcessData ( RXbBulkInProcessData (
IN PSDevice pDevice, PSDevice pDevice,
IN PRCB pRCB, PRCB pRCB,
IN ULONG BytesToIndicate ULONG BytesToIndicate
) )
{ {
...@@ -1022,9 +1021,9 @@ RXbBulkInProcessData ( ...@@ -1022,9 +1021,9 @@ RXbBulkInProcessData (
static BOOL s_bAPModeRxCtl ( static BOOL s_bAPModeRxCtl (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN INT iSANodeIndex INT iSANodeIndex
) )
{ {
PS802_11Header p802_11Header; PS802_11Header p802_11Header;
...@@ -1144,10 +1143,10 @@ static BOOL s_bAPModeRxCtl ( ...@@ -1144,10 +1143,10 @@ static BOOL s_bAPModeRxCtl (
} }
static BOOL s_bHandleRxEncryption ( static BOOL s_bHandleRxEncryption (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN UINT FrameSize, UINT FrameSize,
IN PBYTE pbyRsr, PBYTE pbyRsr,
OUT PBYTE pbyNewRsr, OUT PBYTE pbyNewRsr,
OUT PSKeyItem *pKeyOut, OUT PSKeyItem *pKeyOut,
int * pbExtIV, int * pbExtIV,
...@@ -1290,12 +1289,12 @@ static BOOL s_bHandleRxEncryption ( ...@@ -1290,12 +1289,12 @@ static BOOL s_bHandleRxEncryption (
static BOOL s_bHostWepRxEncryption ( static BOOL s_bHostWepRxEncryption (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyFrame, PBYTE pbyFrame,
IN UINT FrameSize, UINT FrameSize,
IN PBYTE pbyRsr, PBYTE pbyRsr,
IN BOOL bOnFly, BOOL bOnFly,
IN PSKeyItem pKey, PSKeyItem pKey,
OUT PBYTE pbyNewRsr, OUT PBYTE pbyNewRsr,
int * pbExtIV, int * pbExtIV,
OUT PWORD pwRxTSC15_0, OUT PWORD pwRxTSC15_0,
...@@ -1422,12 +1421,12 @@ static BOOL s_bHostWepRxEncryption ( ...@@ -1422,12 +1421,12 @@ static BOOL s_bHostWepRxEncryption (
static BOOL s_bAPModeRxData ( static BOOL s_bAPModeRxData (
IN PSDevice pDevice, PSDevice pDevice,
IN struct sk_buff* skb, struct sk_buff *skb,
IN UINT FrameSize, UINT FrameSize,
IN UINT cbHeaderOffset, UINT cbHeaderOffset,
IN INT iSANodeIndex, INT iSANodeIndex,
IN INT iDANodeIndex INT iDANodeIndex
) )
{ {
...@@ -1542,8 +1541,8 @@ RXvWorkItem( ...@@ -1542,8 +1541,8 @@ RXvWorkItem(
VOID VOID
RXvFreeRCB( RXvFreeRCB(
IN PRCB pRCB, PRCB pRCB,
IN BOOL bReAllocSkb BOOL bReAllocSkb
) )
{ {
PSDevice pDevice = (PSDevice)pRCB->pDevice; PSDevice pDevice = (PSDevice)pRCB->pDevice;
......
...@@ -53,15 +53,15 @@ RXvMngWorkItem( ...@@ -53,15 +53,15 @@ RXvMngWorkItem(
VOID VOID
RXvFreeRCB( RXvFreeRCB(
IN PRCB pRCB, PRCB pRCB,
IN BOOL bReAllocSkb BOOL bReAllocSkb
); );
BOOL BOOL
RXbBulkInProcessData( RXbBulkInProcessData(
IN PSDevice pDevice, PSDevice pDevice,
IN PRCB pRCB, PRCB pRCB,
IN ULONG BytesToIndicate ULONG BytesToIndicate
); );
#endif // __RXTX_H__ #endif // __RXTX_H__
......
...@@ -770,7 +770,7 @@ const BYTE abyFirmware[] = { ...@@ -770,7 +770,7 @@ const BYTE abyFirmware[] = {
BOOL BOOL
FIRMWAREbDownload( FIRMWAREbDownload(
IN PSDevice pDevice PSDevice pDevice
) )
{ {
NDIS_STATUS NdisStatus; NDIS_STATUS NdisStatus;
...@@ -820,7 +820,7 @@ FIRMWAREbDownload( ...@@ -820,7 +820,7 @@ FIRMWAREbDownload(
BOOL BOOL
FIRMWAREbBrach2Sram( FIRMWAREbBrach2Sram(
IN PSDevice pDevice PSDevice pDevice
) )
{ {
NDIS_STATUS NdisStatus; NDIS_STATUS NdisStatus;
...@@ -845,7 +845,7 @@ FIRMWAREbBrach2Sram( ...@@ -845,7 +845,7 @@ FIRMWAREbBrach2Sram(
BOOL BOOL
FIRMWAREbCheckVersion( FIRMWAREbCheckVersion(
IN PSDevice pDevice PSDevice pDevice
) )
{ {
NTSTATUS ntStatus; NTSTATUS ntStatus;
......
...@@ -43,17 +43,17 @@ ...@@ -43,17 +43,17 @@
BOOL BOOL
FIRMWAREbDownload( FIRMWAREbDownload(
IN PSDevice pDevice PSDevice pDevice
); );
BOOL BOOL
FIRMWAREbBrach2Sram( FIRMWAREbBrach2Sram(
IN PSDevice pDevice PSDevice pDevice
); );
BOOL BOOL
FIRMWAREbCheckVersion( FIRMWAREbCheckVersion(
IN PSDevice pDevice PSDevice pDevice
); );
......
...@@ -94,7 +94,7 @@ INTvWorkItem(PVOID Context) ...@@ -94,7 +94,7 @@ INTvWorkItem(PVOID Context)
} }
NTSTATUS NTSTATUS
INTnsProcessData(IN PSDevice pDevice) INTnsProcessData(PSDevice pDevice)
{ {
NTSTATUS status = STATUS_SUCCESS; NTSTATUS status = STATUS_SUCCESS;
PSINTData pINTData; PSINTData pINTData;
......
...@@ -74,7 +74,7 @@ INTvWorkItem( ...@@ -74,7 +74,7 @@ INTvWorkItem(
NTSTATUS NTSTATUS
INTnsProcessData( INTnsProcessData(
IN PSDevice pDevice PSDevice pDevice
); );
#endif // __INT_H__ #endif // __INT_H__
......
...@@ -44,10 +44,10 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq); ...@@ -44,10 +44,10 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq);
/* /*
VOID vConfigWEPKey ( VOID vConfigWEPKey (
IN PSDevice pDevice, PSDevice pDevice,
IN DWORD dwKeyIndex, DWORD dwKeyIndex,
IN PBYTE pbyKey, PBYTE pbyKey,
IN ULONG uKeyLength ULONG uKeyLength
); );
*/ */
......
...@@ -163,9 +163,9 @@ VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable) ...@@ -163,9 +163,9 @@ VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable)
* *
*/ */
BOOL KeybGetKey ( BOOL KeybGetKey (
IN PSKeyManagement pTable, PSKeyManagement pTable,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN DWORD dwKeyIndex, DWORD dwKeyIndex,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
) )
{ {
...@@ -562,9 +562,9 @@ VOID KeyvRemoveAllWEPKey ( ...@@ -562,9 +562,9 @@ VOID KeyvRemoveAllWEPKey (
* *
*/ */
BOOL KeybGetTransmitKey ( BOOL KeybGetTransmitKey (
IN PSKeyManagement pTable, PSKeyManagement pTable,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN DWORD dwKeyType, DWORD dwKeyType,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
) )
{ {
...@@ -642,7 +642,7 @@ BOOL KeybGetTransmitKey ( ...@@ -642,7 +642,7 @@ BOOL KeybGetTransmitKey (
* *
*/ */
BOOL KeybCheckPairewiseKey ( BOOL KeybCheckPairewiseKey (
IN PSKeyManagement pTable, PSKeyManagement pTable,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
) )
{ {
......
...@@ -100,9 +100,9 @@ typedef struct tagSKeyManagement ...@@ -100,9 +100,9 @@ typedef struct tagSKeyManagement
VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable); VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable);
BOOL KeybGetKey( BOOL KeybGetKey(
IN PSKeyManagement pTable, PSKeyManagement pTable,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN DWORD dwKeyIndex, DWORD dwKeyIndex,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
); );
...@@ -142,14 +142,14 @@ VOID KeyvRemoveAllWEPKey( ...@@ -142,14 +142,14 @@ VOID KeyvRemoveAllWEPKey(
); );
BOOL KeybGetTransmitKey( BOOL KeybGetTransmitKey(
IN PSKeyManagement pTable, PSKeyManagement pTable,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN DWORD dwKeyType, DWORD dwKeyType,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
); );
BOOL KeybCheckPairewiseKey( BOOL KeybCheckPairewiseKey(
IN PSKeyManagement pTable, PSKeyManagement pTable,
OUT PSKeyItem *pKey OUT PSKeyItem *pKey
); );
......
...@@ -78,8 +78,8 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -78,8 +78,8 @@ static int msglevel =MSG_LEVEL_INFO;
VOID VOID
PSvEnablePowerSaving( PSvEnablePowerSaving(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN WORD wListenInterval WORD wListenInterval
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -156,7 +156,7 @@ PSvEnablePowerSaving( ...@@ -156,7 +156,7 @@ PSvEnablePowerSaving(
VOID VOID
PSvDisablePowerSaving( PSvDisablePowerSaving(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -201,9 +201,9 @@ PSvDisablePowerSaving( ...@@ -201,9 +201,9 @@ PSvDisablePowerSaving(
BOOL BOOL
PSbConsiderPowerDown( PSbConsiderPowerDown(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN BOOL bCheckRxDMA, BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp BOOL bCheckCountToWakeUp
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -264,7 +264,7 @@ PSbConsiderPowerDown( ...@@ -264,7 +264,7 @@ PSbConsiderPowerDown(
VOID VOID
PSvSendPSPOLL( PSvSendPSPOLL(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -310,7 +310,7 @@ PSvSendPSPOLL( ...@@ -310,7 +310,7 @@ PSvSendPSPOLL(
-*/ -*/
BOOL BOOL
PSbSendNullPacket( PSbSendNullPacket(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -390,7 +390,7 @@ PSbSendNullPacket( ...@@ -390,7 +390,7 @@ PSbSendNullPacket(
BOOL BOOL
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
......
...@@ -45,40 +45,40 @@ ...@@ -45,40 +45,40 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
// IN PSDevice pDevice /* PSDevice pDevice */
// IN PSDevice hDeviceContext /* PSDevice hDeviceContext */
BOOL BOOL
PSbConsiderPowerDown( PSbConsiderPowerDown(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN BOOL bCheckRxDMA, BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp BOOL bCheckCountToWakeUp
); );
VOID VOID
PSvDisablePowerSaving( PSvDisablePowerSaving(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
VOID VOID
PSvEnablePowerSaving( PSvEnablePowerSaving(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN WORD wListenInterval WORD wListenInterval
); );
VOID VOID
PSvSendPSPOLL( PSvSendPSPOLL(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
BOOL BOOL
PSbSendNullPacket( PSbSendNullPacket(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
BOOL BOOL
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#endif //__POWER_H__ #endif //__POWER_H__
...@@ -757,9 +757,9 @@ BOOL IFRFbWriteEmbeded (PSDevice pDevice, DWORD dwData) ...@@ -757,9 +757,9 @@ BOOL IFRFbWriteEmbeded (PSDevice pDevice, DWORD dwData)
* *
*/ */
BOOL RFbSetPower ( BOOL RFbSetPower (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uRATE, UINT uRATE,
IN UINT uCH UINT uCH
) )
{ {
BOOL bResult = TRUE; BOOL bResult = TRUE;
...@@ -811,9 +811,9 @@ BYTE byPwr = pDevice->byCCKPwr; ...@@ -811,9 +811,9 @@ BYTE byPwr = pDevice->byCCKPwr;
* *
*/ */
BOOL RFbRawSetPower ( BOOL RFbRawSetPower (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPwr, BYTE byPwr,
IN UINT uRATE UINT uRATE
) )
{ {
BOOL bResult = TRUE; BOOL bResult = TRUE;
...@@ -956,8 +956,8 @@ BOOL bResult = TRUE; ...@@ -956,8 +956,8 @@ BOOL bResult = TRUE;
-*/ -*/
VOID VOID
RFvRSSITodBm ( RFvRSSITodBm (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byCurrRSSI, BYTE byCurrRSSI,
long * pldBm long * pldBm
) )
{ {
...@@ -986,7 +986,7 @@ RFvRSSITodBm ( ...@@ -986,7 +986,7 @@ RFvRSSITodBm (
VOID VOID
RFbRFTableDownload ( RFbRFTableDownload (
IN PSDevice pDevice PSDevice pDevice
) )
{ {
WORD wLength1 = 0,wLength2 = 0 ,wLength3 = 0; WORD wLength1 = 0,wLength2 = 0 ,wLength3 = 0;
...@@ -1133,9 +1133,9 @@ BYTE abyArray[256]; ...@@ -1133,9 +1133,9 @@ BYTE abyArray[256];
// RobertYu:20060412, TWIF1.11 adjust LO Current for 11b mode // RobertYu:20060412, TWIF1.11 adjust LO Current for 11b mode
BOOL s_bVT3226D0_11bLoCurrentAdjust( BOOL s_bVT3226D0_11bLoCurrentAdjust(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byChannel, BYTE byChannel,
IN BOOL b11bMode ) BOOL b11bMode)
{ {
BOOL bResult; BOOL bResult;
......
...@@ -65,33 +65,33 @@ extern const BYTE RFaby11aChannelIndex[200]; ...@@ -65,33 +65,33 @@ extern const BYTE RFaby11aChannelIndex[200];
BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData); BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData);
BOOL RFbSetPower ( BOOL RFbSetPower (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uRATE, UINT uRATE,
IN UINT uCH UINT uCH
); );
BOOL RFbRawSetPower( BOOL RFbRawSetPower(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPwr, BYTE byPwr,
IN UINT uRATE UINT uRATE
); );
VOID VOID
RFvRSSITodBm ( RFvRSSITodBm (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byCurrRSSI, BYTE byCurrRSSI,
long * pldBm long * pldBm
); );
VOID VOID
RFbRFTableDownload ( RFbRFTableDownload (
IN PSDevice pDevice PSDevice pDevice
); );
BOOL s_bVT3226D0_11bLoCurrentAdjust( BOOL s_bVT3226D0_11bLoCurrentAdjust(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byChannel, BYTE byChannel,
IN BOOL b11bMode BOOL b11bMode
); );
#endif // __RF_H__ #endif // __RF_H__
......
...@@ -115,11 +115,11 @@ const WORD wFB_Opt1[2][5] = { ...@@ -115,11 +115,11 @@ const WORD wFB_Opt1[2][5] = {
static static
VOID VOID
s_vSaveTxPktInfo( s_vSaveTxPktInfo(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktNum, BYTE byPktNum,
IN PBYTE pbyDestAddr, PBYTE pbyDestAddr,
IN WORD wPktLength, WORD wPktLength,
IN WORD wFIFOCtl WORD wFIFOCtl
); );
static static
...@@ -132,34 +132,34 @@ s_vGetFreeContext( ...@@ -132,34 +132,34 @@ s_vGetFreeContext(
static static
VOID VOID
s_vGenerateTxParameter( s_vGenerateTxParameter(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN WORD wCurrentRate, WORD wCurrentRate,
IN PVOID pTxBufHead, PVOID pTxBufHead,
IN PVOID pvRrvTime, PVOID pvRrvTime,
IN PVOID pvRTS, PVOID pvRTS,
IN PVOID pvCTS, PVOID pvCTS,
IN UINT cbFrameSize, UINT cbFrameSize,
IN BOOL bNeedACK, BOOL bNeedACK,
IN UINT uDMAIdx, UINT uDMAIdx,
IN PSEthernetHeader psEthHeader PSEthernetHeader psEthHeader
); );
static static
UINT UINT
s_uFillDataHead ( s_uFillDataHead (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN WORD wCurrentRate, WORD wCurrentRate,
IN PVOID pTxDataHead, PVOID pTxDataHead,
IN UINT cbFrameLength, UINT cbFrameLength,
IN UINT uDMAIdx, UINT uDMAIdx,
IN BOOL bNeedAck, BOOL bNeedAck,
IN UINT uFragIdx, UINT uFragIdx,
IN UINT cbLastFragmentSize, UINT cbLastFragmentSize,
IN UINT uMACfragNum, UINT uMACfragNum,
IN BYTE byFBOption BYTE byFBOption
); );
...@@ -168,112 +168,112 @@ s_uFillDataHead ( ...@@ -168,112 +168,112 @@ s_uFillDataHead (
static static
VOID VOID
s_vGenerateMACHeader ( s_vGenerateMACHeader (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyBufferAddr, PBYTE pbyBufferAddr,
IN WORD wDuration, WORD wDuration,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN BOOL bNeedEncrypt, BOOL bNeedEncrypt,
IN WORD wFragType, WORD wFragType,
IN UINT uDMAIdx, UINT uDMAIdx,
IN UINT uFragIdx UINT uFragIdx
); );
static static
VOID VOID
s_vFillTxKey( s_vFillTxKey(
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyBuf, PBYTE pbyBuf,
IN PBYTE pbyIVHead, PBYTE pbyIVHead,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN PBYTE pbyHdrBuf, PBYTE pbyHdrBuf,
IN WORD wPayloadLen, WORD wPayloadLen,
OUT PBYTE pMICHDR OUT PBYTE pMICHDR
); );
static static
VOID VOID
s_vSWencryption ( s_vSWencryption (
IN PSDevice pDevice, PSDevice pDevice,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN PBYTE pbyPayloadHead, PBYTE pbyPayloadHead,
IN WORD wPayloadSize WORD wPayloadSize
); );
static static
UINT UINT
s_uGetTxRsvTime ( s_uGetTxRsvTime (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck BOOL bNeedAck
); );
static static
UINT UINT
s_uGetRTSCTSRsvTime ( s_uGetRTSCTSRsvTime (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRTSRsvType, BYTE byRTSRsvType,
IN BYTE byPktType, BYTE byPktType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wCurrentRate WORD wCurrentRate
); );
static static
VOID VOID
s_vFillCTSHead ( s_vFillCTSHead (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uDMAIdx, UINT uDMAIdx,
IN BYTE byPktType, BYTE byPktType,
IN PVOID pvCTS, PVOID pvCTS,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BOOL bDisCRC, BOOL bDisCRC,
IN WORD wCurrentRate, WORD wCurrentRate,
IN BYTE byFBOption BYTE byFBOption
); );
static static
VOID VOID
s_vFillRTSHead( s_vFillRTSHead(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN PVOID pvRTS, PVOID pvRTS,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BOOL bDisCRC, BOOL bDisCRC,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN WORD wCurrentRate, WORD wCurrentRate,
IN BYTE byFBOption BYTE byFBOption
); );
static static
UINT UINT
s_uGetDataDuration ( s_uGetDataDuration (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byDurType, BYTE byDurType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BYTE byPktType, BYTE byPktType,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck, BOOL bNeedAck,
IN UINT uFragIdx, UINT uFragIdx,
IN UINT cbLastFragmentSize, UINT cbLastFragmentSize,
IN UINT uMACfragNum, UINT uMACfragNum,
IN BYTE byFBOption BYTE byFBOption
); );
static static
UINT UINT
s_uGetRTSCTSDuration ( s_uGetRTSCTSDuration (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byDurType, BYTE byDurType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BYTE byPktType, BYTE byPktType,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BYTE byFBOption BYTE byFBOption
); );
...@@ -333,12 +333,12 @@ s_vSaveTxPktInfo(PSDevice pDevice, BYTE byPktNum, PBYTE pbyDestAddr, WORD wPktLe ...@@ -333,12 +333,12 @@ s_vSaveTxPktInfo(PSDevice pDevice, BYTE byPktNum, PBYTE pbyDestAddr, WORD wPktLe
static static
VOID VOID
s_vFillTxKey ( s_vFillTxKey (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyBuf, PBYTE pbyBuf,
IN PBYTE pbyIVHead, PBYTE pbyIVHead,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN PBYTE pbyHdrBuf, PBYTE pbyHdrBuf,
IN WORD wPayloadLen, WORD wPayloadLen,
OUT PBYTE pMICHDR OUT PBYTE pMICHDR
) )
{ {
...@@ -450,10 +450,10 @@ s_vFillTxKey ( ...@@ -450,10 +450,10 @@ s_vFillTxKey (
static static
VOID VOID
s_vSWencryption ( s_vSWencryption (
IN PSDevice pDevice, PSDevice pDevice,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN PBYTE pbyPayloadHead, PBYTE pbyPayloadHead,
IN WORD wPayloadSize WORD wPayloadSize
) )
{ {
UINT cbICVlen = 4; UINT cbICVlen = 4;
...@@ -499,11 +499,11 @@ s_vSWencryption ( ...@@ -499,11 +499,11 @@ s_vSWencryption (
static static
UINT UINT
s_uGetTxRsvTime ( s_uGetTxRsvTime (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck BOOL bNeedAck
) )
{ {
UINT uDataTime, uAckTime; UINT uDataTime, uAckTime;
...@@ -527,11 +527,11 @@ s_uGetTxRsvTime ( ...@@ -527,11 +527,11 @@ s_uGetTxRsvTime (
static static
UINT UINT
s_uGetRTSCTSRsvTime ( s_uGetRTSCTSRsvTime (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRTSRsvType, BYTE byRTSRsvType,
IN BYTE byPktType, BYTE byPktType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN WORD wCurrentRate WORD wCurrentRate
) )
{ {
UINT uRrvTime , uRTSTime, uCTSTime, uAckTime, uDataTime; UINT uRrvTime , uRTSTime, uCTSTime, uAckTime, uDataTime;
...@@ -569,16 +569,16 @@ s_uGetRTSCTSRsvTime ( ...@@ -569,16 +569,16 @@ s_uGetRTSCTSRsvTime (
static static
UINT UINT
s_uGetDataDuration ( s_uGetDataDuration (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byDurType, BYTE byDurType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BYTE byPktType, BYTE byPktType,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck, BOOL bNeedAck,
IN UINT uFragIdx, UINT uFragIdx,
IN UINT cbLastFragmentSize, UINT cbLastFragmentSize,
IN UINT uMACfragNum, UINT uMACfragNum,
IN BYTE byFBOption BYTE byFBOption
) )
{ {
BOOL bLastFrag = 0; BOOL bLastFrag = 0;
...@@ -739,13 +739,13 @@ s_uGetDataDuration ( ...@@ -739,13 +739,13 @@ s_uGetDataDuration (
static static
UINT UINT
s_uGetRTSCTSDuration ( s_uGetRTSCTSDuration (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byDurType, BYTE byDurType,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BYTE byPktType, BYTE byPktType,
IN WORD wRate, WORD wRate,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BYTE byFBOption BYTE byFBOption
) )
{ {
UINT uCTSTime = 0, uDurTime = 0; UINT uCTSTime = 0, uDurTime = 0;
...@@ -838,17 +838,17 @@ s_uGetRTSCTSDuration ( ...@@ -838,17 +838,17 @@ s_uGetRTSCTSDuration (
static static
UINT UINT
s_uFillDataHead ( s_uFillDataHead (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN WORD wCurrentRate, WORD wCurrentRate,
IN PVOID pTxDataHead, PVOID pTxDataHead,
IN UINT cbFrameLength, UINT cbFrameLength,
IN UINT uDMAIdx, UINT uDMAIdx,
IN BOOL bNeedAck, BOOL bNeedAck,
IN UINT uFragIdx, UINT uFragIdx,
IN UINT cbLastFragmentSize, UINT cbLastFragmentSize,
IN UINT uMACfragNum, UINT uMACfragNum,
IN BYTE byFBOption BYTE byFBOption
) )
{ {
...@@ -983,15 +983,15 @@ s_uFillDataHead ( ...@@ -983,15 +983,15 @@ s_uFillDataHead (
static static
VOID VOID
s_vFillRTSHead ( s_vFillRTSHead (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN PVOID pvRTS, PVOID pvRTS,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BOOL bDisCRC, BOOL bDisCRC,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN WORD wCurrentRate, WORD wCurrentRate,
IN BYTE byFBOption BYTE byFBOption
) )
{ {
UINT uRTSFrameLen = 20; UINT uRTSFrameLen = 20;
...@@ -1211,15 +1211,15 @@ s_vFillRTSHead ( ...@@ -1211,15 +1211,15 @@ s_vFillRTSHead (
static static
VOID VOID
s_vFillCTSHead ( s_vFillCTSHead (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uDMAIdx, UINT uDMAIdx,
IN BYTE byPktType, BYTE byPktType,
IN PVOID pvCTS, PVOID pvCTS,
IN UINT cbFrameLength, UINT cbFrameLength,
IN BOOL bNeedAck, BOOL bNeedAck,
IN BOOL bDisCRC, BOOL bDisCRC,
IN WORD wCurrentRate, WORD wCurrentRate,
IN BYTE byFBOption BYTE byFBOption
) )
{ {
UINT uCTSFrameLen = 14; UINT uCTSFrameLen = 14;
...@@ -1311,17 +1311,17 @@ s_vFillCTSHead ( ...@@ -1311,17 +1311,17 @@ s_vFillCTSHead (
static static
VOID VOID
s_vGenerateTxParameter ( s_vGenerateTxParameter (
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN WORD wCurrentRate, WORD wCurrentRate,
IN PVOID pTxBufHead, PVOID pTxBufHead,
IN PVOID pvRrvTime, PVOID pvRrvTime,
IN PVOID pvRTS, PVOID pvRTS,
IN PVOID pvCTS, PVOID pvCTS,
IN UINT cbFrameSize, UINT cbFrameSize,
IN BOOL bNeedACK, BOOL bNeedACK,
IN UINT uDMAIdx, UINT uDMAIdx,
IN PSEthernetHeader psEthHeader PSEthernetHeader psEthHeader
) )
{ {
UINT cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24 UINT cbMACHdLen = WLAN_HDR_ADDR3_LEN; //24
...@@ -1428,17 +1428,17 @@ s_vGenerateTxParameter ( ...@@ -1428,17 +1428,17 @@ s_vGenerateTxParameter (
BOOL BOOL
s_bPacketToWirelessUsb( s_bPacketToWirelessUsb(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN PBYTE usbPacketBuf, PBYTE usbPacketBuf,
IN BOOL bNeedEncryption, BOOL bNeedEncryption,
IN UINT uSkbPacketLen, UINT uSkbPacketLen,
IN UINT uDMAIdx, UINT uDMAIdx,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN PBYTE pPacket, PBYTE pPacket,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN UINT uNodeIndex, UINT uNodeIndex,
IN WORD wCurrentRate, WORD wCurrentRate,
OUT UINT *pcbHeaderLen, OUT UINT *pcbHeaderLen,
OUT UINT *pcbTotalLen OUT UINT *pcbTotalLen
) )
...@@ -1858,14 +1858,14 @@ s_bPacketToWirelessUsb( ...@@ -1858,14 +1858,14 @@ s_bPacketToWirelessUsb(
VOID VOID
s_vGenerateMACHeader ( s_vGenerateMACHeader (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbyBufferAddr, PBYTE pbyBufferAddr,
IN WORD wDuration, WORD wDuration,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN BOOL bNeedEncrypt, BOOL bNeedEncrypt,
IN WORD wFragType, WORD wFragType,
IN UINT uDMAIdx, UINT uDMAIdx,
IN UINT uFragIdx UINT uFragIdx
) )
{ {
PS802_11Header pMACHeader = (PS802_11Header)pbyBufferAddr; PS802_11Header pMACHeader = (PS802_11Header)pbyBufferAddr;
...@@ -1958,8 +1958,8 @@ s_vGenerateMACHeader ( ...@@ -1958,8 +1958,8 @@ s_vGenerateMACHeader (
-*/ -*/
CMD_STATUS csMgmt_xmit( CMD_STATUS csMgmt_xmit(
IN PSDevice pDevice, PSDevice pDevice,
IN PSTxMgmtPacket pPacket PSTxMgmtPacket pPacket
) )
{ {
BYTE byPktType; BYTE byPktType;
...@@ -2251,8 +2251,8 @@ CMD_STATUS csMgmt_xmit( ...@@ -2251,8 +2251,8 @@ CMD_STATUS csMgmt_xmit(
CMD_STATUS CMD_STATUS
csBeacon_xmit( csBeacon_xmit(
IN PSDevice pDevice, PSDevice pDevice,
IN PSTxMgmtPacket pPacket PSTxMgmtPacket pPacket
) )
{ {
...@@ -2750,9 +2750,9 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb) { ...@@ -2750,9 +2750,9 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb) {
NTSTATUS NTSTATUS
nsDMA_tx_packet( nsDMA_tx_packet(
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uDMAIdx, UINT uDMAIdx,
IN struct sk_buff *skb struct sk_buff *skb
) )
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
...@@ -3168,10 +3168,10 @@ nsDMA_tx_packet( ...@@ -3168,10 +3168,10 @@ nsDMA_tx_packet(
BOOL BOOL
bRelayPacketSend ( bRelayPacketSend (
IN PSDevice pDevice, PSDevice pDevice,
IN PBYTE pbySkbData, PBYTE pbySkbData,
IN UINT uDataLen, UINT uDataLen,
IN UINT uNodeIndex UINT uNodeIndex
) )
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
......
...@@ -667,17 +667,17 @@ typedef struct tagSBEACON_BUFFER ...@@ -667,17 +667,17 @@ typedef struct tagSBEACON_BUFFER
BOOL BOOL
bPacketToWirelessUsb( bPacketToWirelessUsb(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byPktType, BYTE byPktType,
IN PBYTE usbPacketBuf, PBYTE usbPacketBuf,
IN BOOL bNeedEncrypt, BOOL bNeedEncrypt,
IN UINT cbPayloadSize, UINT cbPayloadSize,
IN UINT uDMAIdx, UINT uDMAIdx,
IN PSEthernetHeader psEthHeader, PSEthernetHeader psEthHeader,
IN PBYTE pPacket, PBYTE pPacket,
IN PSKeyItem pTransmitKey, PSKeyItem pTransmitKey,
IN UINT uNodeIndex, UINT uNodeIndex,
IN WORD wCurrentRate, WORD wCurrentRate,
OUT UINT *pcbHeaderLen, OUT UINT *pcbHeaderLen,
OUT UINT *pcbTotalLen OUT UINT *pcbTotalLen
); );
......
...@@ -37,10 +37,6 @@ ...@@ -37,10 +37,6 @@
#define VOID void #define VOID void
#endif #endif
#ifndef IN
#define IN
#endif
#ifndef OUT #ifndef OUT
#define OUT #define OUT
#endif #endif
......
...@@ -73,34 +73,34 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -73,34 +73,34 @@ static int msglevel =MSG_LEVEL_INFO;
static static
VOID VOID
s_nsInterruptUsbIoCompleteRead( s_nsInterruptUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
); );
static static
VOID VOID
s_nsBulkInUsbIoCompleteRead( s_nsBulkInUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
); );
static static
VOID VOID
s_nsBulkOutIoCompleteWrite( s_nsBulkOutIoCompleteWrite(
IN struct urb *urb struct urb *urb
); );
static static
VOID VOID
s_nsControlInUsbIoCompleteRead( s_nsControlInUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
); );
static static
VOID VOID
s_nsControlInUsbIoCompleteWrite( s_nsControlInUsbIoCompleteWrite(
IN struct urb *urb struct urb *urb
); );
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -111,12 +111,12 @@ s_nsControlInUsbIoCompleteWrite( ...@@ -111,12 +111,12 @@ s_nsControlInUsbIoCompleteWrite(
NTSTATUS NTSTATUS
PIPEnsControlOutAsyn( PIPEnsControlOutAsyn(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN PBYTE pbyBuffer PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus; NTSTATUS ntStatus;
...@@ -162,12 +162,12 @@ PIPEnsControlOutAsyn( ...@@ -162,12 +162,12 @@ PIPEnsControlOutAsyn(
NTSTATUS NTSTATUS
PIPEnsControlOut( PIPEnsControlOut(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN PBYTE pbyBuffer PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus = 0; NTSTATUS ntStatus = 0;
...@@ -224,12 +224,12 @@ PIPEnsControlOut( ...@@ -224,12 +224,12 @@ PIPEnsControlOut(
NTSTATUS NTSTATUS
PIPEnsControlIn( PIPEnsControlIn(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN OUT PBYTE pbyBuffer OUT PBYTE pbyBuffer
) )
{ {
NTSTATUS ntStatus = 0; NTSTATUS ntStatus = 0;
...@@ -281,7 +281,7 @@ PIPEnsControlIn( ...@@ -281,7 +281,7 @@ PIPEnsControlIn(
static static
VOID VOID
s_nsControlInUsbIoCompleteWrite( s_nsControlInUsbIoCompleteWrite(
IN struct urb *urb struct urb *urb
) )
{ {
PSDevice pDevice; PSDevice pDevice;
...@@ -322,7 +322,7 @@ s_nsControlInUsbIoCompleteWrite( ...@@ -322,7 +322,7 @@ s_nsControlInUsbIoCompleteWrite(
static static
VOID VOID
s_nsControlInUsbIoCompleteRead( s_nsControlInUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
) )
{ {
PSDevice pDevice; PSDevice pDevice;
...@@ -362,7 +362,7 @@ s_nsControlInUsbIoCompleteRead( ...@@ -362,7 +362,7 @@ s_nsControlInUsbIoCompleteRead(
*/ */
NTSTATUS NTSTATUS
PIPEnsInterruptRead( PIPEnsInterruptRead(
IN PSDevice pDevice PSDevice pDevice
) )
{ {
NTSTATUS ntStatus = STATUS_FAILURE; NTSTATUS ntStatus = STATUS_FAILURE;
...@@ -443,7 +443,7 @@ usb_fill_bulk_urb(pDevice->pInterruptURB, ...@@ -443,7 +443,7 @@ usb_fill_bulk_urb(pDevice->pInterruptURB,
static static
VOID VOID
s_nsInterruptUsbIoCompleteRead( s_nsInterruptUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
) )
{ {
...@@ -543,8 +543,8 @@ s_nsInterruptUsbIoCompleteRead( ...@@ -543,8 +543,8 @@ s_nsInterruptUsbIoCompleteRead(
*/ */
NTSTATUS NTSTATUS
PIPEnsBulkInUsbRead( PIPEnsBulkInUsbRead(
IN PSDevice pDevice, PSDevice pDevice,
IN PRCB pRCB PRCB pRCB
) )
{ {
NTSTATUS ntStatus= 0; NTSTATUS ntStatus= 0;
...@@ -608,7 +608,7 @@ PIPEnsBulkInUsbRead( ...@@ -608,7 +608,7 @@ PIPEnsBulkInUsbRead(
static static
VOID VOID
s_nsBulkInUsbIoCompleteRead( s_nsBulkInUsbIoCompleteRead(
IN struct urb *urb struct urb *urb
) )
{ {
...@@ -687,8 +687,8 @@ s_nsBulkInUsbIoCompleteRead( ...@@ -687,8 +687,8 @@ s_nsBulkInUsbIoCompleteRead(
*/ */
NDIS_STATUS NDIS_STATUS
PIPEnsSendBulkOut( PIPEnsSendBulkOut(
IN PSDevice pDevice, PSDevice pDevice,
IN PUSB_SEND_CONTEXT pContext PUSB_SEND_CONTEXT pContext
) )
{ {
NTSTATUS status; NTSTATUS status;
...@@ -768,7 +768,7 @@ PIPEnsSendBulkOut( ...@@ -768,7 +768,7 @@ PIPEnsSendBulkOut(
static static
VOID VOID
s_nsBulkOutIoCompleteWrite( s_nsBulkOutIoCompleteWrite(
IN struct urb *urb struct urb *urb
) )
{ {
PSDevice pDevice; PSDevice pDevice;
......
...@@ -43,34 +43,34 @@ ...@@ -43,34 +43,34 @@
NTSTATUS NTSTATUS
PIPEnsControlOut( PIPEnsControlOut(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN PBYTE pbyBuffer PBYTE pbyBuffer
); );
NTSTATUS NTSTATUS
PIPEnsControlOutAsyn( PIPEnsControlOutAsyn(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN PBYTE pbyBuffer PBYTE pbyBuffer
); );
NTSTATUS NTSTATUS
PIPEnsControlIn( PIPEnsControlIn(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byRequest, BYTE byRequest,
IN WORD wValue, WORD wValue,
IN WORD wIndex, WORD wIndex,
IN WORD wLength, WORD wLength,
IN OUT PBYTE pbyBuffer OUT PBYTE pbyBuffer
); );
...@@ -78,19 +78,19 @@ PIPEnsControlIn( ...@@ -78,19 +78,19 @@ PIPEnsControlIn(
NTSTATUS NTSTATUS
PIPEnsInterruptRead( PIPEnsInterruptRead(
IN PSDevice pDevice PSDevice pDevice
); );
NTSTATUS NTSTATUS
PIPEnsBulkInUsbRead( PIPEnsBulkInUsbRead(
IN PSDevice pDevice, PSDevice pDevice,
IN PRCB pRCB PRCB pRCB
); );
NTSTATUS NTSTATUS
PIPEnsSendBulkOut( PIPEnsSendBulkOut(
IN PSDevice pDevice, PSDevice pDevice,
IN PUSB_SEND_CONTEXT pContext PUSB_SEND_CONTEXT pContext
); );
#endif // __USBPIPE_H__ #endif // __USBPIPE_H__
......
...@@ -71,19 +71,19 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -71,19 +71,19 @@ static int msglevel =MSG_LEVEL_INFO;
static static
VOID VOID
s_vProbeChannel( s_vProbeChannel(
IN PSDevice pDevice PSDevice pDevice
); );
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeProbeRequest( s_MgrMakeProbeRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pScanBSSID, PBYTE pScanBSSID,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
...@@ -96,7 +96,7 @@ s_bCommandComplete ( ...@@ -96,7 +96,7 @@ s_bCommandComplete (
static static
BOOL s_bClearBSSID_SCAN ( BOOL s_bClearBSSID_SCAN (
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
/*--------------------- Export Variables --------------------------*/ /*--------------------- Export Variables --------------------------*/
...@@ -212,7 +212,7 @@ vAdHocBeaconRestart(PSDevice pDevice) ...@@ -212,7 +212,7 @@ vAdHocBeaconRestart(PSDevice pDevice)
static static
VOID VOID
s_vProbeChannel( s_vProbeChannel(
IN PSDevice pDevice PSDevice pDevice
) )
{ {
//1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M //1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M
...@@ -275,12 +275,12 @@ s_vProbeChannel( ...@@ -275,12 +275,12 @@ s_vProbeChannel(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeProbeRequest( s_MgrMakeProbeRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pScanBSSID, PBYTE pScanBSSID,
IN PWLAN_IE_SSID pSSID, PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
...@@ -327,8 +327,8 @@ s_MgrMakeProbeRequest( ...@@ -327,8 +327,8 @@ s_MgrMakeProbeRequest(
VOID VOID
vCommandTimerWait( vCommandTimerWait(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN UINT MSecond UINT MSecond
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -347,7 +347,7 @@ vCommandTimerWait( ...@@ -347,7 +347,7 @@ vCommandTimerWait(
VOID VOID
vRunCommand( vRunCommand(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1193,9 +1193,9 @@ s_bCommandComplete ( ...@@ -1193,9 +1193,9 @@ s_bCommandComplete (
} }
BOOL bScheduleCommand ( BOOL bScheduleCommand (
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN CMD_CODE eCommand, CMD_CODE eCommand,
IN PBYTE pbyItem0 PBYTE pbyItem0
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1266,7 +1266,7 @@ BOOL bScheduleCommand ( ...@@ -1266,7 +1266,7 @@ BOOL bScheduleCommand (
*/ */
static static
BOOL s_bClearBSSID_SCAN ( BOOL s_bClearBSSID_SCAN (
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1289,7 +1289,7 @@ BOOL s_bClearBSSID_SCAN ( ...@@ -1289,7 +1289,7 @@ BOOL s_bClearBSSID_SCAN (
//mike add:reset command timer //mike add:reset command timer
VOID VOID
vResetCommandTimer( vResetCommandTimer(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -1313,7 +1313,7 @@ vResetCommandTimer( ...@@ -1313,7 +1313,7 @@ vResetCommandTimer(
#ifdef TxInSleep #ifdef TxInSleep
VOID VOID
BSSvSecondTxData( BSSvSecondTxData(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
......
...@@ -118,19 +118,19 @@ typedef enum tagCMD_STATE { ...@@ -118,19 +118,19 @@ typedef enum tagCMD_STATE {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
VOID VOID
vResetCommandTimer( vResetCommandTimer(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
BOOL BOOL
bScheduleCommand( bScheduleCommand(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN CMD_CODE eCommand, CMD_CODE eCommand,
IN PBYTE pbyItem0 PBYTE pbyItem0
); );
VOID VOID
vRunCommand( vRunCommand(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
/* /*
VOID VOID
...@@ -143,7 +143,7 @@ WCMDvCommandThread( ...@@ -143,7 +143,7 @@ WCMDvCommandThread(
#ifdef TxInSleep #ifdef TxInSleep
VOID VOID
BSSvSecondTxData( BSSvSecondTxData(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#endif #endif
......
...@@ -94,110 +94,110 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -94,110 +94,110 @@ static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
//2008-0730-01<Add>by MikeLiu //2008-0730-01<Add>by MikeLiu
static BOOL ChannelExceedZoneType( static BOOL ChannelExceedZoneType(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byCurrChannel BYTE byCurrChannel
); );
// Association/diassociation functions // Association/diassociation functions
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeAssocRequest( s_MgrMakeAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pDAddr, PBYTE pDAddr,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wListenInterval, WORD wListenInterval,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
static static
VOID VOID
s_vMgrRxAssocRequest( s_vMgrRxAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN UINT uNodeIndex UINT uNodeIndex
); );
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeReAssocRequest( s_MgrMakeReAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pDAddr, PBYTE pDAddr,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wListenInterval, WORD wListenInterval,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
static static
VOID VOID
s_vMgrRxAssocResponse( s_vMgrRxAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN BOOL bReAssocType BOOL bReAssocType
); );
static static
VOID VOID
s_vMgrRxDisassociation( s_vMgrRxDisassociation(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
// Authentication/deauthen functions // Authentication/deauthen functions
static static
VOID VOID
s_vMgrRxAuthenSequence_1( s_vMgrRxAuthenSequence_1(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
static static
VOID VOID
s_vMgrRxAuthenSequence_2( s_vMgrRxAuthenSequence_2(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
static static
VOID VOID
s_vMgrRxAuthenSequence_3( s_vMgrRxAuthenSequence_3(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
static static
VOID VOID
s_vMgrRxAuthenSequence_4( s_vMgrRxAuthenSequence_4(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
); );
static static
VOID VOID
s_vMgrRxAuthentication( s_vMgrRxAuthentication(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
static static
VOID VOID
s_vMgrRxDeauthentication( s_vMgrRxDeauthentication(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
// Scan functions // Scan functions
...@@ -205,49 +205,49 @@ s_vMgrRxDeauthentication( ...@@ -205,49 +205,49 @@ s_vMgrRxDeauthentication(
static static
VOID VOID
s_vMgrRxProbeRequest( s_vMgrRxProbeRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
static static
VOID VOID
s_vMgrRxProbeResponse( s_vMgrRxProbeResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
// beacon functions // beacon functions
static static
VOID VOID
s_vMgrRxBeacon( s_vMgrRxBeacon(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN BOOL bInScan BOOL bInScan
); );
static static
VOID VOID
s_vMgrFormatTIM( s_vMgrFormatTIM(
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_IE_TIM pTIM PWLAN_IE_TIM pTIM
); );
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeBeacon( s_MgrMakeBeacon(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wCurrBeaconPeriod, WORD wCurrBeaconPeriod,
IN UINT uCurrChannel, UINT uCurrChannel,
IN WORD wCurrATIMWinodw, WORD wCurrATIMWinodw,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PBYTE pCurrBSSID, PBYTE pCurrBSSID,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
...@@ -255,78 +255,78 @@ s_MgrMakeBeacon( ...@@ -255,78 +255,78 @@ s_MgrMakeBeacon(
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeAssocResponse( s_MgrMakeAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wAssocStatus, WORD wAssocStatus,
IN WORD wAssocAID, WORD wAssocAID,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
// ReAssociation response // ReAssociation response
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeReAssocResponse( s_MgrMakeReAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wAssocStatus, WORD wAssocStatus,
IN WORD wAssocAID, WORD wAssocAID,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
); );
// Probe response // Probe response
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeProbeResponse( s_MgrMakeProbeResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wCurrBeaconPeriod, WORD wCurrBeaconPeriod,
IN UINT uCurrChannel, UINT uCurrChannel,
IN WORD wCurrATIMWinodw, WORD wCurrATIMWinodw,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PBYTE pCurrBSSID, PBYTE pCurrBSSID,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates, PWLAN_IE_SUPP_RATES pCurrExtSuppRates,
IN BYTE byPHYType BYTE byPHYType
); );
// received status // received status
static static
VOID VOID
s_vMgrLogStatus( s_vMgrLogStatus(
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wStatus WORD wStatus
); );
static static
VOID VOID
s_vMgrSynchBSS ( s_vMgrSynchBSS (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uBSSMode, UINT uBSSMode,
IN PKnownBSS pCurr, PKnownBSS pCurr,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
static BOOL static BOOL
s_bCipherMatch ( s_bCipherMatch (
IN PKnownBSS pBSSNode, PKnownBSS pBSSNode,
IN NDIS_802_11_ENCRYPTION_STATUS EncStatus, NDIS_802_11_ENCRYPTION_STATUS EncStatus,
OUT PBYTE pbyCCSPK, OUT PBYTE pbyCCSPK,
OUT PBYTE pbyCCSGK OUT PBYTE pbyCCSGK
); );
static VOID Encyption_Rebuild( static VOID Encyption_Rebuild(
IN PSDevice pDevice, PSDevice pDevice,
IN PKnownBSS pCurr PKnownBSS pCurr
); );
...@@ -349,7 +349,7 @@ s_bCipherMatch ( ...@@ -349,7 +349,7 @@ s_bCipherMatch (
VOID VOID
vMgrObjectInit( vMgrObjectInit(
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -417,8 +417,8 @@ vMgrObjectInit( ...@@ -417,8 +417,8 @@ vMgrObjectInit(
VOID VOID
vMgrAssocBeginSta( vMgrAssocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -493,8 +493,8 @@ vMgrAssocBeginSta( ...@@ -493,8 +493,8 @@ vMgrAssocBeginSta(
VOID VOID
vMgrReAssocBeginSta( vMgrReAssocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -572,10 +572,10 @@ vMgrReAssocBeginSta( ...@@ -572,10 +572,10 @@ vMgrReAssocBeginSta(
VOID VOID
vMgrDisassocBeginSta( vMgrDisassocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, PBYTE abyDestAddress,
IN WORD wReason, WORD wReason,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -635,10 +635,10 @@ vMgrDisassocBeginSta( ...@@ -635,10 +635,10 @@ vMgrDisassocBeginSta(
static static
VOID VOID
s_vMgrRxAssocRequest( s_vMgrRxAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN UINT uNodeIndex UINT uNodeIndex
) )
{ {
WLAN_FR_ASSOCREQ sFrame; WLAN_FR_ASSOCREQ sFrame;
...@@ -791,10 +791,10 @@ s_vMgrRxAssocRequest( ...@@ -791,10 +791,10 @@ s_vMgrRxAssocRequest(
static static
VOID VOID
s_vMgrRxReAssocRequest( s_vMgrRxReAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN UINT uNodeIndex UINT uNodeIndex
) )
{ {
WLAN_FR_REASSOCREQ sFrame; WLAN_FR_REASSOCREQ sFrame;
...@@ -938,10 +938,10 @@ s_vMgrRxReAssocRequest( ...@@ -938,10 +938,10 @@ s_vMgrRxReAssocRequest(
static static
VOID VOID
s_vMgrRxAssocResponse( s_vMgrRxAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN BOOL bReAssocType BOOL bReAssocType
) )
{ {
WLAN_FR_ASSOCRESP sFrame; WLAN_FR_ASSOCRESP sFrame;
...@@ -1104,8 +1104,8 @@ if(pMgmt->eCurrState == WMAC_STATE_ASSOC) ...@@ -1104,8 +1104,8 @@ if(pMgmt->eCurrState == WMAC_STATE_ASSOC)
VOID VOID
vMgrAuthenBeginSta( vMgrAuthenBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -1162,10 +1162,10 @@ vMgrAuthenBeginSta( ...@@ -1162,10 +1162,10 @@ vMgrAuthenBeginSta(
VOID VOID
vMgrDeAuthenBeginSta( vMgrDeAuthenBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, PBYTE abyDestAddress,
IN WORD wReason, WORD wReason,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -1219,9 +1219,9 @@ vMgrDeAuthenBeginSta( ...@@ -1219,9 +1219,9 @@ vMgrDeAuthenBeginSta(
static static
VOID VOID
s_vMgrRxAuthentication( s_vMgrRxAuthentication(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
WLAN_FR_AUTHEN sFrame; WLAN_FR_AUTHEN sFrame;
...@@ -1277,9 +1277,9 @@ s_vMgrRxAuthentication( ...@@ -1277,9 +1277,9 @@ s_vMgrRxAuthentication(
static static
VOID VOID
s_vMgrRxAuthenSequence_1( s_vMgrRxAuthenSequence_1(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -1383,9 +1383,9 @@ s_vMgrRxAuthenSequence_1( ...@@ -1383,9 +1383,9 @@ s_vMgrRxAuthenSequence_1(
static static
VOID VOID
s_vMgrRxAuthenSequence_2( s_vMgrRxAuthenSequence_2(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
WLAN_FR_AUTHEN sFrame; WLAN_FR_AUTHEN sFrame;
...@@ -1485,9 +1485,9 @@ s_vMgrRxAuthenSequence_2( ...@@ -1485,9 +1485,9 @@ s_vMgrRxAuthenSequence_2(
static static
VOID VOID
s_vMgrRxAuthenSequence_3( s_vMgrRxAuthenSequence_3(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -1573,9 +1573,9 @@ s_vMgrRxAuthenSequence_3( ...@@ -1573,9 +1573,9 @@ s_vMgrRxAuthenSequence_3(
static static
VOID VOID
s_vMgrRxAuthenSequence_4( s_vMgrRxAuthenSequence_4(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_FR_AUTHEN pFrame PWLAN_FR_AUTHEN pFrame
) )
{ {
...@@ -1612,9 +1612,9 @@ s_vMgrRxAuthenSequence_4( ...@@ -1612,9 +1612,9 @@ s_vMgrRxAuthenSequence_4(
static static
VOID VOID
s_vMgrRxDisassociation( s_vMgrRxDisassociation(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
WLAN_FR_DISASSOC sFrame; WLAN_FR_DISASSOC sFrame;
...@@ -1702,9 +1702,9 @@ s_vMgrRxDisassociation( ...@@ -1702,9 +1702,9 @@ s_vMgrRxDisassociation(
static static
VOID VOID
s_vMgrRxDeauthentication( s_vMgrRxDeauthentication(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
WLAN_FR_DEAUTHEN sFrame; WLAN_FR_DEAUTHEN sFrame;
...@@ -1791,8 +1791,8 @@ s_vMgrRxDeauthentication( ...@@ -1791,8 +1791,8 @@ s_vMgrRxDeauthentication(
-*/ -*/
static BOOL static BOOL
ChannelExceedZoneType( ChannelExceedZoneType(
IN PSDevice pDevice, PSDevice pDevice,
IN BYTE byCurrChannel BYTE byCurrChannel
) )
{ {
BOOL exceed=FALSE; BOOL exceed=FALSE;
...@@ -1828,10 +1828,10 @@ ChannelExceedZoneType( ...@@ -1828,10 +1828,10 @@ ChannelExceedZoneType(
static static
VOID VOID
s_vMgrRxBeacon( s_vMgrRxBeacon(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket, PSRxMgmtPacket pRxPacket,
IN BOOL bInScan BOOL bInScan
) )
{ {
...@@ -2357,7 +2357,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE) ...@@ -2357,7 +2357,7 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
-*/ -*/
VOID VOID
vMgrCreateOwnIBSS( vMgrCreateOwnIBSS(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -2631,7 +2631,7 @@ vMgrCreateOwnIBSS( ...@@ -2631,7 +2631,7 @@ vMgrCreateOwnIBSS(
VOID VOID
vMgrJoinBSSBegin( vMgrJoinBSSBegin(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -2962,9 +2962,9 @@ vMgrJoinBSSBegin( ...@@ -2962,9 +2962,9 @@ vMgrJoinBSSBegin(
static static
VOID VOID
s_vMgrSynchBSS ( s_vMgrSynchBSS (
IN PSDevice pDevice, PSDevice pDevice,
IN UINT uBSSMode, UINT uBSSMode,
IN PKnownBSS pCurr, PKnownBSS pCurr,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
) )
{ {
...@@ -3123,8 +3123,8 @@ s_vMgrSynchBSS ( ...@@ -3123,8 +3123,8 @@ s_vMgrSynchBSS (
//mike add: fix NetworkManager 0.7.0 hidden ssid mode in WPA encryption //mike add: fix NetworkManager 0.7.0 hidden ssid mode in WPA encryption
// ,need reset eAuthenMode and eEncryptionStatus // ,need reset eAuthenMode and eEncryptionStatus
static VOID Encyption_Rebuild( static VOID Encyption_Rebuild(
IN PSDevice pDevice, PSDevice pDevice,
IN PKnownBSS pCurr PKnownBSS pCurr
) )
{ {
PSMgmtObject pMgmt = &(pDevice->sMgmtObj); PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
...@@ -3181,8 +3181,8 @@ s_vMgrSynchBSS ( ...@@ -3181,8 +3181,8 @@ s_vMgrSynchBSS (
static static
VOID VOID
s_vMgrFormatTIM( s_vMgrFormatTIM(
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PWLAN_IE_TIM pTIM PWLAN_IE_TIM pTIM
) )
{ {
BYTE byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80}; BYTE byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80};
...@@ -3256,16 +3256,16 @@ s_vMgrFormatTIM( ...@@ -3256,16 +3256,16 @@ s_vMgrFormatTIM(
static static
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeBeacon( s_MgrMakeBeacon(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wCurrBeaconPeriod, WORD wCurrBeaconPeriod,
IN UINT uCurrChannel, UINT uCurrChannel,
IN WORD wCurrATIMWinodw, WORD wCurrATIMWinodw,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PBYTE pCurrBSSID, PBYTE pCurrBSSID,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -3430,18 +3430,18 @@ s_MgrMakeBeacon( ...@@ -3430,18 +3430,18 @@ s_MgrMakeBeacon(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeProbeResponse( s_MgrMakeProbeResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wCurrBeaconPeriod, WORD wCurrBeaconPeriod,
IN UINT uCurrChannel, UINT uCurrChannel,
IN WORD wCurrATIMWinodw, WORD wCurrATIMWinodw,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PBYTE pCurrBSSID, PBYTE pCurrBSSID,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates, PWLAN_IE_SUPP_RATES pCurrExtSuppRates,
IN BYTE byPHYType BYTE byPHYType
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -3562,14 +3562,14 @@ s_MgrMakeProbeResponse( ...@@ -3562,14 +3562,14 @@ s_MgrMakeProbeResponse(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeAssocRequest( s_MgrMakeAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pDAddr, PBYTE pDAddr,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wListenInterval, WORD wListenInterval,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -3824,14 +3824,14 @@ s_MgrMakeAssocRequest( ...@@ -3824,14 +3824,14 @@ s_MgrMakeAssocRequest(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeReAssocRequest( s_MgrMakeReAssocRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE pDAddr, PBYTE pDAddr,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wListenInterval, WORD wListenInterval,
IN PWLAN_IE_SSID pCurrSSID, PWLAN_IE_SSID pCurrSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates, PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -4078,14 +4078,14 @@ s_MgrMakeReAssocRequest( ...@@ -4078,14 +4078,14 @@ s_MgrMakeReAssocRequest(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeAssocResponse( s_MgrMakeAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wAssocStatus, WORD wAssocStatus,
IN WORD wAssocAID, WORD wAssocAID,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -4152,14 +4152,14 @@ s_MgrMakeAssocResponse( ...@@ -4152,14 +4152,14 @@ s_MgrMakeAssocResponse(
PSTxMgmtPacket PSTxMgmtPacket
s_MgrMakeReAssocResponse( s_MgrMakeReAssocResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wCurrCapInfo, WORD wCurrCapInfo,
IN WORD wAssocStatus, WORD wAssocStatus,
IN WORD wAssocAID, WORD wAssocAID,
IN PBYTE pDstAddr, PBYTE pDstAddr,
IN PWLAN_IE_SUPP_RATES pCurrSuppRates, PWLAN_IE_SUPP_RATES pCurrSuppRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates PWLAN_IE_SUPP_RATES pCurrExtSuppRates
) )
{ {
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -4226,9 +4226,9 @@ s_MgrMakeReAssocResponse( ...@@ -4226,9 +4226,9 @@ s_MgrMakeReAssocResponse(
static static
VOID VOID
s_vMgrRxProbeResponse( s_vMgrRxProbeResponse(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
PKnownBSS pBSSList = NULL; PKnownBSS pBSSList = NULL;
...@@ -4356,9 +4356,9 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE) ...@@ -4356,9 +4356,9 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==TRUE)
static static
VOID VOID
s_vMgrRxProbeRequest( s_vMgrRxProbeRequest(
IN PSDevice pDevice, PSDevice pDevice,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
WLAN_FR_PROBEREQ sFrame; WLAN_FR_PROBEREQ sFrame;
...@@ -4452,9 +4452,9 @@ s_vMgrRxProbeRequest( ...@@ -4452,9 +4452,9 @@ s_vMgrRxProbeRequest(
VOID VOID
vMgrRxManagePacket( vMgrRxManagePacket(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -4604,8 +4604,8 @@ vMgrRxManagePacket( ...@@ -4604,8 +4604,8 @@ vMgrRxManagePacket(
-*/ -*/
BOOL BOOL
bMgrPrepareBeaconToSend( bMgrPrepareBeaconToSend(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt PSMgmtObject pMgmt
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -4660,8 +4660,8 @@ bMgrPrepareBeaconToSend( ...@@ -4660,8 +4660,8 @@ bMgrPrepareBeaconToSend(
static static
VOID VOID
s_vMgrLogStatus( s_vMgrLogStatus(
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN WORD wStatus WORD wStatus
) )
{ {
switch( wStatus ){ switch( wStatus ){
...@@ -4729,9 +4729,9 @@ s_vMgrLogStatus( ...@@ -4729,9 +4729,9 @@ s_vMgrLogStatus(
-*/ -*/
BOOL BOOL
bAdd_PMKID_Candidate ( bAdd_PMKID_Candidate (
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN PSRSNCapObject psRSNCapObj PSRSNCapObject psRSNCapObj
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -4793,7 +4793,7 @@ bAdd_PMKID_Candidate ( ...@@ -4793,7 +4793,7 @@ bAdd_PMKID_Candidate (
-*/ -*/
VOID VOID
vFlush_PMKID_Candidate ( vFlush_PMKID_Candidate (
IN HANDLE hDeviceContext HANDLE hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -4806,8 +4806,8 @@ vFlush_PMKID_Candidate ( ...@@ -4806,8 +4806,8 @@ vFlush_PMKID_Candidate (
static BOOL static BOOL
s_bCipherMatch ( s_bCipherMatch (
IN PKnownBSS pBSSNode, PKnownBSS pBSSNode,
IN NDIS_802_11_ENCRYPTION_STATUS EncStatus, NDIS_802_11_ENCRYPTION_STATUS EncStatus,
OUT PBYTE pbyCCSPK, OUT PBYTE pbyCCSPK,
OUT PBYTE pbyCCSGK OUT PBYTE pbyCCSGK
) )
......
...@@ -410,93 +410,93 @@ typedef struct tagSMgmtObject ...@@ -410,93 +410,93 @@ typedef struct tagSMgmtObject
void void
vMgrObjectInit( vMgrObjectInit(
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
void void
vMgrAssocBeginSta( vMgrAssocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrReAssocBeginSta( vMgrReAssocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrDisassocBeginSta( vMgrDisassocBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, PBYTE abyDestAddress,
IN WORD wReason, WORD wReason,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrAuthenBeginSta( vMgrAuthenBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrCreateOwnIBSS( vMgrCreateOwnIBSS(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrJoinBSSBegin( vMgrJoinBSSBegin(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
VOID VOID
vMgrRxManagePacket( vMgrRxManagePacket(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket PSRxMgmtPacket pRxPacket
); );
/* /*
VOID VOID
vMgrScanBegin( vMgrScanBegin(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
*/ */
VOID VOID
vMgrDeAuthenBeginSta( vMgrDeAuthenBeginSta(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt, PSMgmtObject pMgmt,
IN PBYTE abyDestAddress, PBYTE abyDestAddress,
IN WORD wReason, WORD wReason,
OUT PCMD_STATUS pStatus OUT PCMD_STATUS pStatus
); );
BOOL BOOL
bMgrPrepareBeaconToSend( bMgrPrepareBeaconToSend(
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PSMgmtObject pMgmt PSMgmtObject pMgmt
); );
BOOL BOOL
bAdd_PMKID_Candidate ( bAdd_PMKID_Candidate (
IN HANDLE hDeviceContext, HANDLE hDeviceContext,
IN PBYTE pbyBSSID, PBYTE pbyBSSID,
IN PSRSNCapObject psRSNCapObj PSRSNCapObject psRSNCapObj
); );
VOID VOID
vFlush_PMKID_Candidate ( vFlush_PMKID_Candidate (
IN HANDLE hDeviceContext HANDLE hDeviceContext
); );
#endif // __WMGR_H__ #endif // __WMGR_H__
...@@ -70,7 +70,7 @@ const BYTE abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 }; ...@@ -70,7 +70,7 @@ const BYTE abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
VOID VOID
WPA_ClearRSN ( WPA_ClearRSN (
IN PKnownBSS pBSSList PKnownBSS pBSSList
) )
{ {
int ii; int ii;
...@@ -106,8 +106,8 @@ WPA_ClearRSN ( ...@@ -106,8 +106,8 @@ WPA_ClearRSN (
-*/ -*/
VOID VOID
WPA_ParseRSN ( WPA_ParseRSN (
IN PKnownBSS pBSSList, PKnownBSS pBSSList,
IN PWLAN_IE_RSN_EXT pRSN PWLAN_IE_RSN_EXT pRSN
) )
{ {
PWLAN_IE_RSN_AUTH pIE_RSN_Auth = NULL; PWLAN_IE_RSN_AUTH pIE_RSN_Auth = NULL;
...@@ -241,7 +241,7 @@ BOOL ...@@ -241,7 +241,7 @@ BOOL
WPA_SearchRSN ( WPA_SearchRSN (
BYTE byCmd, BYTE byCmd,
BYTE byEncrypt, BYTE byEncrypt,
IN PKnownBSS pBSSList PKnownBSS pBSSList
) )
{ {
int ii; int ii;
...@@ -299,7 +299,7 @@ WPA_SearchRSN ( ...@@ -299,7 +299,7 @@ WPA_SearchRSN (
-*/ -*/
BOOL BOOL
WPAb_Is_RSN ( WPAb_Is_RSN (
IN PWLAN_IE_RSN_EXT pRSN PWLAN_IE_RSN_EXT pRSN
) )
{ {
if (pRSN == NULL) if (pRSN == NULL)
......
...@@ -60,25 +60,25 @@ ...@@ -60,25 +60,25 @@
VOID VOID
WPA_ClearRSN( WPA_ClearRSN(
IN PKnownBSS pBSSList PKnownBSS pBSSList
); );
VOID VOID
WPA_ParseRSN( WPA_ParseRSN(
IN PKnownBSS pBSSList, PKnownBSS pBSSList,
IN PWLAN_IE_RSN_EXT pRSN PWLAN_IE_RSN_EXT pRSN
); );
BOOL BOOL
WPA_SearchRSN( WPA_SearchRSN(
BYTE byCmd, BYTE byCmd,
BYTE byEncrypt, BYTE byEncrypt,
IN PKnownBSS pBSSList PKnownBSS pBSSList
); );
BOOL BOOL
WPAb_Is_RSN( WPAb_Is_RSN(
IN PWLAN_IE_RSN_EXT pRSN PWLAN_IE_RSN_EXT pRSN
); );
#endif // __WPA_H__ #endif // __WPA_H__
...@@ -73,7 +73,7 @@ const BYTE abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 }; ...@@ -73,7 +73,7 @@ const BYTE abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 };
-*/ -*/
VOID VOID
WPA2_ClearRSN ( WPA2_ClearRSN (
IN PKnownBSS pBSSNode PKnownBSS pBSSNode
) )
{ {
int ii; int ii;
...@@ -108,8 +108,8 @@ WPA2_ClearRSN ( ...@@ -108,8 +108,8 @@ WPA2_ClearRSN (
-*/ -*/
VOID VOID
WPA2vParseRSN ( WPA2vParseRSN (
IN PKnownBSS pBSSNode, PKnownBSS pBSSNode,
IN PWLAN_IE_RSN pRSN PWLAN_IE_RSN pRSN
) )
{ {
int i, j; int i, j;
...@@ -262,7 +262,7 @@ WPA2vParseRSN ( ...@@ -262,7 +262,7 @@ WPA2vParseRSN (
-*/ -*/
UINT UINT
WPA2uSetIEs( WPA2uSetIEs(
IN PVOID pMgmtHandle, PVOID pMgmtHandle,
OUT PWLAN_IE_RSN pRSNIEs OUT PWLAN_IE_RSN pRSNIEs
) )
{ {
......
...@@ -60,18 +60,18 @@ typedef struct tagSPMKIDCache { ...@@ -60,18 +60,18 @@ typedef struct tagSPMKIDCache {
VOID VOID
WPA2_ClearRSN ( WPA2_ClearRSN (
IN PKnownBSS pBSSNode PKnownBSS pBSSNode
); );
VOID VOID
WPA2vParseRSN ( WPA2vParseRSN (
IN PKnownBSS pBSSNode, PKnownBSS pBSSNode,
IN PWLAN_IE_RSN pRSN PWLAN_IE_RSN pRSN
); );
UINT UINT
WPA2uSetIEs( WPA2uSetIEs(
IN PVOID pMgmtHandle, PVOID pMgmtHandle,
OUT PWLAN_IE_RSN pRSNIEs OUT PWLAN_IE_RSN pRSNIEs
); );
......
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