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;
VOID
vMgrEncodeBeacon(
IN PWLAN_FR_BEACON pFrame
PWLAN_FR_BEACON pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -123,7 +123,7 @@ vMgrEncodeBeacon(
VOID
vMgrDecodeBeacon(
IN PWLAN_FR_BEACON pFrame
PWLAN_FR_BEACON pFrame
)
{
PWLAN_IE pItem;
......@@ -244,7 +244,7 @@ vMgrDecodeBeacon(
VOID
vMgrEncodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame
PWLAN_FR_IBSSATIM pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -267,7 +267,7 @@ vMgrEncodeIBSSATIM(
VOID
vMgrDecodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame
PWLAN_FR_IBSSATIM pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -289,7 +289,7 @@ vMgrDecodeIBSSATIM(
VOID
vMgrEncodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame
PWLAN_FR_DISASSOC pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -317,7 +317,7 @@ vMgrEncodeDisassociation(
VOID
vMgrDecodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame
PWLAN_FR_DISASSOC pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -343,7 +343,7 @@ vMgrDecodeDisassociation(
VOID
vMgrEncodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame
PWLAN_FR_ASSOCREQ pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -370,7 +370,7 @@ vMgrEncodeAssocRequest(
VOID
vMgrDecodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame
PWLAN_FR_ASSOCREQ pFrame
)
{
PWLAN_IE pItem;
......@@ -436,7 +436,7 @@ vMgrDecodeAssocRequest(
VOID
vMgrEncodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame
PWLAN_FR_ASSOCRESP pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -468,7 +468,7 @@ vMgrEncodeAssocResponse(
VOID
vMgrDecodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame
PWLAN_FR_ASSOCRESP pFrame
)
{
PWLAN_IE pItem;
......@@ -514,7 +514,7 @@ vMgrDecodeAssocResponse(
VOID
vMgrEncodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame
PWLAN_FR_REASSOCREQ pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -546,7 +546,7 @@ vMgrEncodeReassocRequest(
VOID
vMgrDecodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame
PWLAN_FR_REASSOCREQ pFrame
)
{
PWLAN_IE pItem;
......@@ -618,7 +618,7 @@ vMgrDecodeReassocRequest(
VOID
vMgrEncodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame
PWLAN_FR_PROBEREQ pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -639,7 +639,7 @@ vMgrEncodeProbeRequest(
VOID
vMgrDecodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame
PWLAN_FR_PROBEREQ pFrame
)
{
PWLAN_IE pItem;
......@@ -692,7 +692,7 @@ vMgrDecodeProbeRequest(
VOID
vMgrEncodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame
PWLAN_FR_PROBERESP pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -726,7 +726,7 @@ vMgrEncodeProbeResponse(
VOID
vMgrDecodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame
PWLAN_FR_PROBERESP pFrame
)
{
PWLAN_IE pItem;
......@@ -840,7 +840,7 @@ vMgrDecodeProbeResponse(
VOID
vMgrEncodeAuthen(
IN PWLAN_FR_AUTHEN pFrame
PWLAN_FR_AUTHEN pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -871,7 +871,7 @@ vMgrEncodeAuthen(
VOID
vMgrDecodeAuthen(
IN PWLAN_FR_AUTHEN pFrame
PWLAN_FR_AUTHEN pFrame
)
{
PWLAN_IE pItem;
......@@ -911,7 +911,7 @@ vMgrDecodeAuthen(
VOID
vMgrEncodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame
PWLAN_FR_DEAUTHEN pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -938,7 +938,7 @@ vMgrEncodeDeauthen(
VOID
vMgrDecodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame
PWLAN_FR_DEAUTHEN pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -964,7 +964,7 @@ vMgrDecodeDeauthen(
VOID
vMgrEncodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame
PWLAN_FR_REASSOCRESP pFrame
)
{
pFrame->pHdr = (PUWLAN_80211HDR)pFrame->pBuf;
......@@ -997,7 +997,7 @@ vMgrEncodeReassocResponse(
VOID
vMgrDecodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame
PWLAN_FR_REASSOCRESP pFrame
)
{
PWLAN_IE pItem;
......
......@@ -750,112 +750,112 @@ typedef struct tagWLAN_FR_DEAUTHEN {
/*--------------------- Export Functions --------------------------*/
VOID
vMgrEncodeBeacon(
IN PWLAN_FR_BEACON pFrame
PWLAN_FR_BEACON pFrame
);
VOID
vMgrDecodeBeacon(
IN PWLAN_FR_BEACON pFrame
PWLAN_FR_BEACON pFrame
);
VOID
vMgrEncodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame
PWLAN_FR_IBSSATIM pFrame
);
VOID
vMgrDecodeIBSSATIM(
IN PWLAN_FR_IBSSATIM pFrame
PWLAN_FR_IBSSATIM pFrame
);
VOID
vMgrEncodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame
PWLAN_FR_DISASSOC pFrame
);
VOID
vMgrDecodeDisassociation(
IN PWLAN_FR_DISASSOC pFrame
PWLAN_FR_DISASSOC pFrame
);
VOID
vMgrEncodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame
PWLAN_FR_ASSOCREQ pFrame
);
VOID
vMgrDecodeAssocRequest(
IN PWLAN_FR_ASSOCREQ pFrame
PWLAN_FR_ASSOCREQ pFrame
);
VOID
vMgrEncodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame
PWLAN_FR_ASSOCRESP pFrame
);
VOID
vMgrDecodeAssocResponse(
IN PWLAN_FR_ASSOCRESP pFrame
PWLAN_FR_ASSOCRESP pFrame
);
VOID
vMgrEncodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame
PWLAN_FR_REASSOCREQ pFrame
);
VOID
vMgrDecodeReassocRequest(
IN PWLAN_FR_REASSOCREQ pFrame
PWLAN_FR_REASSOCREQ pFrame
);
VOID
vMgrEncodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame
PWLAN_FR_PROBEREQ pFrame
);
VOID
vMgrDecodeProbeRequest(
IN PWLAN_FR_PROBEREQ pFrame
PWLAN_FR_PROBEREQ pFrame
);
VOID
vMgrEncodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame
PWLAN_FR_PROBERESP pFrame
);
VOID
vMgrDecodeProbeResponse(
IN PWLAN_FR_PROBERESP pFrame
PWLAN_FR_PROBERESP pFrame
);
VOID
vMgrEncodeAuthen(
IN PWLAN_FR_AUTHEN pFrame
PWLAN_FR_AUTHEN pFrame
);
VOID
vMgrDecodeAuthen(
IN PWLAN_FR_AUTHEN pFrame
PWLAN_FR_AUTHEN pFrame
);
VOID
vMgrEncodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame
PWLAN_FR_DEAUTHEN pFrame
);
VOID
vMgrDecodeDeauthen(
IN PWLAN_FR_DEAUTHEN pFrame
PWLAN_FR_DEAUTHEN pFrame
);
VOID
vMgrEncodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame
PWLAN_FR_REASSOCRESP pFrame
);
VOID
vMgrDecodeReassocResponse(
IN PWLAN_FR_REASSOCRESP pFrame
PWLAN_FR_REASSOCRESP pFrame
);
#endif// __80211MGR_H__
......@@ -691,10 +691,10 @@ s_vClearSQ3Value(PSDevice pDevice);
*/
UINT
BBuGetFrameTime (
IN BYTE byPreambleType,
IN BYTE byPktType,
IN UINT cbFrameLength,
IN WORD wRate
BYTE byPreambleType,
BYTE byPktType,
UINT cbFrameLength,
WORD wRate
)
{
UINT uFrameTime;
......@@ -758,10 +758,10 @@ BBuGetFrameTime (
*/
VOID
BBvCaculateParameter (
IN PSDevice pDevice,
IN UINT cbFrameLength,
IN WORD wRate,
IN BYTE byPacketType,
PSDevice pDevice,
UINT cbFrameLength,
WORD wRate,
BYTE byPacketType,
OUT PWORD pwPhyLen,
OUT PBYTE pbyPhySrv,
OUT PBYTE pbyPhySgn
......@@ -1578,7 +1578,7 @@ BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3)
VOID
TimerSQ3CallBack (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1620,7 +1620,7 @@ TimerSQ3CallBack (
VOID
TimerSQ3Tmax3CallBack (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1652,8 +1652,8 @@ TimerSQ3Tmax3CallBack (
VOID
BBvUpdatePreEDThreshold(
IN PSDevice pDevice,
IN BOOL bScanning)
PSDevice pDevice,
BOOL bScanning)
{
......
......@@ -98,18 +98,18 @@
UINT
BBuGetFrameTime(
IN BYTE byPreambleType,
IN BYTE byFreqType,
IN UINT cbFrameLength,
IN WORD wRate
BYTE byPreambleType,
BYTE byFreqType,
UINT cbFrameLength,
WORD wRate
);
VOID
BBvCaculateParameter (
IN PSDevice pDevice,
IN UINT cbFrameLength,
IN WORD wRate,
IN BYTE byPacketType,
PSDevice pDevice,
UINT cbFrameLength,
WORD wRate,
BYTE byPacketType,
OUT PWORD pwPhyLen,
OUT PBYTE pbyPhySrv,
OUT PBYTE pbyPhySgn
......@@ -119,12 +119,12 @@ BBvCaculateParameter (
VOID
TimerSQ3CallBack (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID
TimerSQ3Tmax3CallBack (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID BBvAntennaDiversity (PSDevice pDevice, BYTE byRxRate, BYTE bySQ3);
......@@ -139,8 +139,8 @@ BOOL BBbVT3184Init (PSDevice pDevice);
VOID BBvSetDeepSleep (PSDevice pDevice);
VOID BBvExitDeepSleep (PSDevice pDevice);
VOID BBvUpdatePreEDThreshold(
IN PSDevice pDevice,
IN BOOL bScanning
PSDevice pDevice,
BOOL bScanning
);
#endif // __BASEBAND_H__
......@@ -92,16 +92,16 @@ const WORD awHWRetry1[5][5] = {
/*--------------------- Static Functions --------------------------*/
VOID s_vCheckSensitivity(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#ifdef Calcu_LinkQual
VOID s_uCalculateLinkQual(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#endif
/*--------------------- Export Variables --------------------------*/
......@@ -125,10 +125,10 @@ VOID s_uCalculateLinkQual(
PKnownBSS
BSSpSearchBSSList(
IN HANDLE hDeviceContext,
IN PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType
HANDLE hDeviceContext,
PBYTE pbyDesireBSSID,
PBYTE pbyDesireSSID,
CARD_PHY_TYPE ePhyType
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -298,8 +298,8 @@ pDevice->bSameBSSMaxNum = jj;
VOID
BSSvClearBSSList(
IN HANDLE hDeviceContext,
IN BOOL bKeepCurrBSSID
HANDLE hDeviceContext,
BOOL bKeepCurrBSSID
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -344,9 +344,9 @@ BSSvClearBSSList(
-*/
PKnownBSS
BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext,
IN PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID
HANDLE hDeviceContext,
PBYTE abyBSSID,
PWLAN_IE_SSID pSSID
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -385,23 +385,23 @@ BSSpAddrIsInBSSList(
BOOL
BSSbInsertToBSSList (
IN HANDLE hDeviceContext,
IN PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp,
IN WORD wBeaconInterval,
IN WORD wCapInfo,
IN BYTE byCurrChannel,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP,
IN PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength,
IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext
HANDLE hDeviceContext,
PBYTE abyBSSIDAddr,
QWORD qwTimestamp,
WORD wBeaconInterval,
WORD wCapInfo,
BYTE byCurrChannel,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP,
PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet,
UINT uIELength,
PBYTE pbyIEs,
HANDLE pRxPacketContext
)
{
......@@ -604,24 +604,24 @@ BSSbInsertToBSSList (
BOOL
BSSbUpdateToBSSList (
IN HANDLE hDeviceContext,
IN QWORD qwTimestamp,
IN WORD wBeaconInterval,
IN WORD wCapInfo,
IN BYTE byCurrChannel,
IN BOOL bChannelHit,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP,
IN PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet,
IN PKnownBSS pBSSList,
IN UINT uIELength,
IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext
HANDLE hDeviceContext,
QWORD qwTimestamp,
WORD wBeaconInterval,
WORD wCapInfo,
BYTE byCurrChannel,
BOOL bChannelHit,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP,
PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet,
PKnownBSS pBSSList,
UINT uIELength,
PBYTE pbyIEs,
HANDLE pRxPacketContext
)
{
int ii, jj;
......@@ -770,8 +770,8 @@ BSSbUpdateToBSSList (
BOOL
BSSbIsSTAInNodeDB(
IN HANDLE hDeviceContext,
IN PBYTE abyDstAddr,
HANDLE hDeviceContext,
PBYTE abyDstAddr,
OUT PUINT puNodeIndex
)
{
......@@ -806,7 +806,7 @@ BSSbIsSTAInNodeDB(
-*/
VOID
BSSvCreateOneNode(
IN HANDLE hDeviceContext,
HANDLE hDeviceContext,
OUT PUINT puNodeIndex
)
{
......@@ -871,8 +871,8 @@ BSSvCreateOneNode(
-*/
VOID
BSSvRemoveOneNode(
IN HANDLE hDeviceContext,
IN UINT uNodeIndex
HANDLE hDeviceContext,
UINT uNodeIndex
)
{
......@@ -904,10 +904,10 @@ BSSvRemoveOneNode(
VOID
BSSvUpdateAPNode(
IN HANDLE hDeviceContext,
IN PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates
HANDLE hDeviceContext,
PWORD pwCapInfo,
PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -964,7 +964,7 @@ BSSvUpdateAPNode(
VOID
BSSvAddMulticastNode(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1011,7 +1011,7 @@ BSSvAddMulticastNode(
VOID
BSSvSecondCallBack(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1397,10 +1397,10 @@ else {
VOID
BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext,
IN PSStatCounter pStatistic,
IN BYTE byTSR,
IN BYTE byPktNO
HANDLE hDeviceContext,
PSStatCounter pStatistic,
BYTE byTSR,
BYTE byPktNO
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1566,8 +1566,8 @@ BSSvUpdateNodeTxCounter(
VOID
BSSvClearNodeDBTable(
IN HANDLE hDeviceContext,
IN UINT uStartIndex
HANDLE hDeviceContext,
UINT uStartIndex
)
{
......@@ -1594,7 +1594,7 @@ BSSvClearNodeDBTable(
VOID s_vCheckSensitivity(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1638,7 +1638,7 @@ VOID s_vCheckSensitivity(
#ifdef Calcu_LinkQual
VOID s_uCalculateLinkQual(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1687,7 +1687,7 @@ else
VOID
BSSvClearAnyBSSJoinRecord (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1701,7 +1701,7 @@ BSSvClearAnyBSSJoinRecord (
}
VOID s_vCheckPreEDThreshold(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......
......@@ -233,127 +233,127 @@ typedef struct tagKnownNodeDB {
PKnownBSS
BSSpSearchBSSList(
IN HANDLE hDeviceContext,
IN PBYTE pbyDesireBSSID,
IN PBYTE pbyDesireSSID,
IN CARD_PHY_TYPE ePhyType
HANDLE hDeviceContext,
PBYTE pbyDesireBSSID,
PBYTE pbyDesireSSID,
CARD_PHY_TYPE ePhyType
);
PKnownBSS
BSSpAddrIsInBSSList(
IN HANDLE hDeviceContext,
IN PBYTE abyBSSID,
IN PWLAN_IE_SSID pSSID
HANDLE hDeviceContext,
PBYTE abyBSSID,
PWLAN_IE_SSID pSSID
);
VOID
BSSvClearBSSList(
IN HANDLE hDeviceContext,
IN BOOL bKeepCurrBSSID
HANDLE hDeviceContext,
BOOL bKeepCurrBSSID
);
BOOL
BSSbInsertToBSSList(
IN HANDLE hDeviceContext,
IN PBYTE abyBSSIDAddr,
IN QWORD qwTimestamp,
IN WORD wBeaconInterval,
IN WORD wCapInfo,
IN BYTE byCurrChannel,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP,
IN PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet,
IN UINT uIELength,
IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext
HANDLE hDeviceContext,
PBYTE abyBSSIDAddr,
QWORD qwTimestamp,
WORD wBeaconInterval,
WORD wCapInfo,
BYTE byCurrChannel,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP,
PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet,
UINT uIELength,
PBYTE pbyIEs,
HANDLE pRxPacketContext
);
BOOL
BSSbUpdateToBSSList(
IN HANDLE hDeviceContext,
IN QWORD qwTimestamp,
IN WORD wBeaconInterval,
IN WORD wCapInfo,
IN BYTE byCurrChannel,
IN BOOL bChannelHit,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pSuppRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates,
IN PERPObject psERP,
IN PWLAN_IE_RSN pRSN,
IN PWLAN_IE_RSN_EXT pRSNWPA,
IN PWLAN_IE_COUNTRY pIE_Country,
IN PWLAN_IE_QUIET pIE_Quiet,
IN PKnownBSS pBSSList,
IN UINT uIELength,
IN PBYTE pbyIEs,
IN HANDLE pRxPacketContext
HANDLE hDeviceContext,
QWORD qwTimestamp,
WORD wBeaconInterval,
WORD wCapInfo,
BYTE byCurrChannel,
BOOL bChannelHit,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pSuppRates,
PWLAN_IE_SUPP_RATES pExtSuppRates,
PERPObject psERP,
PWLAN_IE_RSN pRSN,
PWLAN_IE_RSN_EXT pRSNWPA,
PWLAN_IE_COUNTRY pIE_Country,
PWLAN_IE_QUIET pIE_Quiet,
PKnownBSS pBSSList,
UINT uIELength,
PBYTE pbyIEs,
HANDLE pRxPacketContext
);
BOOL
BSSbIsSTAInNodeDB(
IN HANDLE hDeviceContext,
IN PBYTE abyDstAddr,
HANDLE hDeviceContext,
PBYTE abyDstAddr,
OUT PUINT puNodeIndex
);
VOID
BSSvCreateOneNode(
IN HANDLE hDeviceContext,
HANDLE hDeviceContext,
OUT PUINT puNodeIndex
);
VOID
BSSvUpdateAPNode(
IN HANDLE hDeviceContext,
IN PWORD pwCapInfo,
IN PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pExtSuppRates
HANDLE hDeviceContext,
PWORD pwCapInfo,
PWLAN_IE_SUPP_RATES pItemRates,
PWLAN_IE_SUPP_RATES pExtSuppRates
);
VOID
BSSvSecondCallBack(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID
BSSvUpdateNodeTxCounter(
IN HANDLE hDeviceContext,
IN PSStatCounter pStatistic,
IN BYTE byTSR,
IN BYTE byPktNO
HANDLE hDeviceContext,
PSStatCounter pStatistic,
BYTE byTSR,
BYTE byPktNO
);
VOID
BSSvRemoveOneNode(
IN HANDLE hDeviceContext,
IN UINT uNodeIndex
HANDLE hDeviceContext,
UINT uNodeIndex
);
VOID
BSSvAddMulticastNode(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID
BSSvClearNodeDBTable(
IN HANDLE hDeviceContext,
IN UINT uStartIndex
HANDLE hDeviceContext,
UINT uStartIndex
);
VOID
BSSvClearAnyBSSJoinRecord(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#endif //__BSSDB_H__
......@@ -224,8 +224,8 @@ WORD swGetOFDMControlRate (PVOID pDeviceHandler, WORD wRateIdx)
*/
VOID
CARDvCaculateOFDMRParameter (
IN WORD wRate,
IN BYTE byBBType,
WORD wRate,
BYTE byBBType,
OUT PBYTE pbyTxRate,
OUT PBYTE pbyRsvTime
)
......@@ -1080,10 +1080,10 @@ void CARDvSetBSSMode (PVOID pDeviceHandler)
-*/
BOOL
CARDbChannelSwitch (
IN PVOID pDeviceHandler,
IN BYTE byMode,
IN BYTE byNewChannel,
IN BYTE byCount
PVOID pDeviceHandler,
BYTE byMode,
BYTE byNewChannel,
BYTE byCount
)
{
PSDevice pDevice = (PSDevice) pDeviceHandler;
......
......@@ -83,10 +83,10 @@ void CARDvSetBSSMode(PVOID pDeviceHandler);
BOOL
CARDbChannelSwitch (
IN PVOID pDeviceHandler,
IN BYTE byMode,
IN BYTE byNewChannel,
IN BYTE byCount
PVOID pDeviceHandler,
BYTE byMode,
BYTE byNewChannel,
BYTE byCount
);
#endif // __CARD_H__
......
......@@ -425,7 +425,7 @@ ChannelValid(UINT CountryCode, UINT ChannelIndex)
************************************************************************/
BOOL
CHvChannelGetList (
IN UINT uCountryCodeIdx,
UINT uCountryCodeIdx,
OUT PBYTE pbyChannelTable
)
{
......
......@@ -50,7 +50,7 @@ BYTE CHbyGetChannelMapping(BYTE byChannelNumber);
BOOL
CHvChannelGetList (
IN UINT uCountryCodeIdx,
UINT uCountryCodeIdx,
OUT PBYTE pbyChannelTable
);
......
......@@ -54,27 +54,27 @@
/*--------------------- Export Functions --------------------------*/
void ControlvWriteByte(
IN PSDevice pDevice,
IN BYTE byRegType,
IN BYTE byRegOfs,
IN BYTE byData
PSDevice pDevice,
BYTE byRegType,
BYTE byRegOfs,
BYTE byData
);
void ControlvReadByte(
IN PSDevice pDevice,
IN BYTE byRegType,
IN BYTE byRegOfs,
IN PBYTE pbyData
PSDevice pDevice,
BYTE byRegType,
BYTE byRegOfs,
PBYTE pbyData
);
void ControlvMaskByte(
IN PSDevice pDevice,
IN BYTE byRegType,
IN BYTE byRegOfs,
IN BYTE byMask,
IN BYTE byData
PSDevice pDevice,
BYTE byRegType,
BYTE byRegOfs,
BYTE byMask,
BYTE byData
);
#endif // __RCV_H__
......
......@@ -66,14 +66,14 @@ const BYTE acbyIERate[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/
VOID s_vResetCounter (
IN PKnownNodeDB psNodeDBTable
PKnownNodeDB psNodeDBTable
);
VOID
s_vResetCounter (
IN PKnownNodeDB psNodeDBTable
PKnownNodeDB psNodeDBTable
)
{
BYTE ii;
......@@ -107,7 +107,7 @@ s_vResetCounter (
-*/
BYTE
DATARATEbyGetRateIdx (
IN BYTE byRate
BYTE byRate
)
{
BYTE ii;
......@@ -161,7 +161,7 @@ DATARATEbyGetRateIdx (
-*/
WORD
RATEwGetRateIdx(
IN BYTE byRate
BYTE byRate
)
{
WORD ii;
......@@ -197,10 +197,10 @@ RATEwGetRateIdx(
-*/
VOID
RATEvParseMaxRate (
IN PVOID pDeviceHandler,
IN PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pItemExtRates,
IN BOOL bUpdateBasicRate,
PVOID pDeviceHandler,
PWLAN_IE_SUPP_RATES pItemRates,
PWLAN_IE_SUPP_RATES pItemExtRates,
BOOL bUpdateBasicRate,
OUT PWORD pwMaxBasicRate,
OUT PWORD pwMaxSuppRate,
OUT PWORD pwSuppRate,
......@@ -310,8 +310,8 @@ UINT uRateLen;
VOID
RATEvTxRateFallBack (
IN PVOID pDeviceHandler,
IN PKnownNodeDB psNodeDBTable
PVOID pDeviceHandler,
PKnownNodeDB psNodeDBTable
)
{
PSDevice pDevice = (PSDevice) pDeviceHandler;
......@@ -473,9 +473,9 @@ if (wIdxUpRate == RATE_54M ) { //11a/g
-*/
BYTE
RATEuSetIE (
IN PWLAN_IE_SUPP_RATES pSrcRates,
IN PWLAN_IE_SUPP_RATES pDstRates,
IN UINT uRateLen
PWLAN_IE_SUPP_RATES pSrcRates,
PWLAN_IE_SUPP_RATES pDstRates,
UINT uRateLen
)
{
UINT ii, uu, uRateCnt = 0;
......
......@@ -71,10 +71,10 @@
VOID
RATEvParseMaxRate(
IN PVOID pDeviceHandler,
IN PWLAN_IE_SUPP_RATES pItemRates,
IN PWLAN_IE_SUPP_RATES pItemExtRates,
IN BOOL bUpdateBasicRate,
PVOID pDeviceHandler,
PWLAN_IE_SUPP_RATES pItemRates,
PWLAN_IE_SUPP_RATES pItemExtRates,
BOOL bUpdateBasicRate,
OUT PWORD pwMaxBasicRate,
OUT PWORD pwMaxSuppRate,
OUT PWORD pwSuppRate,
......@@ -84,26 +84,26 @@ RATEvParseMaxRate(
VOID
RATEvTxRateFallBack(
IN PVOID pDeviceHandler,
IN PKnownNodeDB psNodeDBTable
PVOID pDeviceHandler,
PKnownNodeDB psNodeDBTable
);
BYTE
RATEuSetIE(
IN PWLAN_IE_SUPP_RATES pSrcRates,
IN PWLAN_IE_SUPP_RATES pDstRates,
IN UINT uRateLen
PWLAN_IE_SUPP_RATES pSrcRates,
PWLAN_IE_SUPP_RATES pDstRates,
UINT uRateLen
);
WORD
RATEwGetRateIdx(
IN BYTE byRate
BYTE byRate
);
BYTE
DATARATEbyGetRateIdx(
IN BYTE byRate
BYTE byRate
);
......
......@@ -74,13 +74,12 @@ const BYTE acbyRxRate[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/
static BYTE s_byGetRateIdx(IN BYTE byRate);
static BYTE s_byGetRateIdx(BYTE byRate);
static
VOID
s_vGetDASA(
IN PBYTE pbyRxBufferAddr,
PBYTE pbyRxBufferAddr,
OUT PUINT pcbHeaderSize,
OUT PSEthernetHeader psEthHeader
);
......@@ -88,37 +87,37 @@ s_vGetDASA(
static
VOID
s_vProcessRxMACHeader (
IN PSDevice pDevice,
IN PBYTE pbyRxBufferAddr,
IN UINT cbPacketSize,
IN BOOL bIsWEP,
IN BOOL bExtIV,
PSDevice pDevice,
PBYTE pbyRxBufferAddr,
UINT cbPacketSize,
BOOL bIsWEP,
BOOL bExtIV,
OUT PUINT pcbHeadSize
);
static BOOL s_bAPModeRxCtl(
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN INT iSANodeIndex
PSDevice pDevice,
PBYTE pbyFrame,
INT iSANodeIndex
);
static BOOL s_bAPModeRxData (
IN PSDevice pDevice,
IN struct sk_buff* skb,
IN UINT FrameSize,
IN UINT cbHeaderOffset,
IN INT iSANodeIndex,
IN INT iDANodeIndex
PSDevice pDevice,
struct sk_buff *skb,
UINT FrameSize,
UINT cbHeaderOffset,
INT iSANodeIndex,
INT iDANodeIndex
);
static BOOL s_bHandleRxEncryption(
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN UINT FrameSize,
IN PBYTE pbyRsr,
PSDevice pDevice,
PBYTE pbyFrame,
UINT FrameSize,
PBYTE pbyRsr,
OUT PBYTE pbyNewRsr,
OUT PSKeyItem *pKeyOut,
int * pbExtIV,
......@@ -128,12 +127,12 @@ static BOOL s_bHandleRxEncryption(
static BOOL s_bHostWepRxEncryption(
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN UINT FrameSize,
IN PBYTE pbyRsr,
IN BOOL bOnFly,
IN PSKeyItem pKey,
PSDevice pDevice,
PBYTE pbyFrame,
UINT FrameSize,
PBYTE pbyRsr,
BOOL bOnFly,
PSKeyItem pKey,
OUT PBYTE pbyNewRsr,
int * pbExtIV,
OUT PWORD pwRxTSC15_0,
......@@ -163,11 +162,11 @@ static BOOL s_bHostWepRxEncryption(
static
VOID
s_vProcessRxMACHeader (
IN PSDevice pDevice,
IN PBYTE pbyRxBufferAddr,
IN UINT cbPacketSize,
IN BOOL bIsWEP,
IN BOOL bExtIV,
PSDevice pDevice,
PBYTE pbyRxBufferAddr,
UINT cbPacketSize,
BOOL bIsWEP,
BOOL bExtIV,
OUT PUINT pcbHeadSize
)
{
......@@ -247,7 +246,7 @@ s_vProcessRxMACHeader (
static BYTE s_byGetRateIdx (IN BYTE byRate)
static BYTE s_byGetRateIdx(BYTE byRate)
{
BYTE byRateIdx;
......@@ -262,7 +261,7 @@ static BYTE s_byGetRateIdx (IN BYTE byRate)
static
VOID
s_vGetDASA (
IN PBYTE pbyRxBufferAddr,
PBYTE pbyRxBufferAddr,
OUT PUINT pcbHeaderSize,
OUT PSEthernetHeader psEthHeader
)
......@@ -317,9 +316,9 @@ s_vGetDASA (
BOOL
RXbBulkInProcessData (
IN PSDevice pDevice,
IN PRCB pRCB,
IN ULONG BytesToIndicate
PSDevice pDevice,
PRCB pRCB,
ULONG BytesToIndicate
)
{
......@@ -1022,9 +1021,9 @@ RXbBulkInProcessData (
static BOOL s_bAPModeRxCtl (
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN INT iSANodeIndex
PSDevice pDevice,
PBYTE pbyFrame,
INT iSANodeIndex
)
{
PS802_11Header p802_11Header;
......@@ -1144,10 +1143,10 @@ static BOOL s_bAPModeRxCtl (
}
static BOOL s_bHandleRxEncryption (
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN UINT FrameSize,
IN PBYTE pbyRsr,
PSDevice pDevice,
PBYTE pbyFrame,
UINT FrameSize,
PBYTE pbyRsr,
OUT PBYTE pbyNewRsr,
OUT PSKeyItem *pKeyOut,
int * pbExtIV,
......@@ -1290,12 +1289,12 @@ static BOOL s_bHandleRxEncryption (
static BOOL s_bHostWepRxEncryption (
IN PSDevice pDevice,
IN PBYTE pbyFrame,
IN UINT FrameSize,
IN PBYTE pbyRsr,
IN BOOL bOnFly,
IN PSKeyItem pKey,
PSDevice pDevice,
PBYTE pbyFrame,
UINT FrameSize,
PBYTE pbyRsr,
BOOL bOnFly,
PSKeyItem pKey,
OUT PBYTE pbyNewRsr,
int * pbExtIV,
OUT PWORD pwRxTSC15_0,
......@@ -1422,12 +1421,12 @@ static BOOL s_bHostWepRxEncryption (
static BOOL s_bAPModeRxData (
IN PSDevice pDevice,
IN struct sk_buff* skb,
IN UINT FrameSize,
IN UINT cbHeaderOffset,
IN INT iSANodeIndex,
IN INT iDANodeIndex
PSDevice pDevice,
struct sk_buff *skb,
UINT FrameSize,
UINT cbHeaderOffset,
INT iSANodeIndex,
INT iDANodeIndex
)
{
......@@ -1542,8 +1541,8 @@ RXvWorkItem(
VOID
RXvFreeRCB(
IN PRCB pRCB,
IN BOOL bReAllocSkb
PRCB pRCB,
BOOL bReAllocSkb
)
{
PSDevice pDevice = (PSDevice)pRCB->pDevice;
......
......@@ -53,15 +53,15 @@ RXvMngWorkItem(
VOID
RXvFreeRCB(
IN PRCB pRCB,
IN BOOL bReAllocSkb
PRCB pRCB,
BOOL bReAllocSkb
);
BOOL
RXbBulkInProcessData(
IN PSDevice pDevice,
IN PRCB pRCB,
IN ULONG BytesToIndicate
PSDevice pDevice,
PRCB pRCB,
ULONG BytesToIndicate
);
#endif // __RXTX_H__
......
......@@ -770,7 +770,7 @@ const BYTE abyFirmware[] = {
BOOL
FIRMWAREbDownload(
IN PSDevice pDevice
PSDevice pDevice
)
{
NDIS_STATUS NdisStatus;
......@@ -820,7 +820,7 @@ FIRMWAREbDownload(
BOOL
FIRMWAREbBrach2Sram(
IN PSDevice pDevice
PSDevice pDevice
)
{
NDIS_STATUS NdisStatus;
......@@ -845,7 +845,7 @@ FIRMWAREbBrach2Sram(
BOOL
FIRMWAREbCheckVersion(
IN PSDevice pDevice
PSDevice pDevice
)
{
NTSTATUS ntStatus;
......
......@@ -43,17 +43,17 @@
BOOL
FIRMWAREbDownload(
IN PSDevice pDevice
PSDevice pDevice
);
BOOL
FIRMWAREbBrach2Sram(
IN PSDevice pDevice
PSDevice pDevice
);
BOOL
FIRMWAREbCheckVersion(
IN PSDevice pDevice
PSDevice pDevice
);
......
......@@ -94,7 +94,7 @@ INTvWorkItem(PVOID Context)
}
NTSTATUS
INTnsProcessData(IN PSDevice pDevice)
INTnsProcessData(PSDevice pDevice)
{
NTSTATUS status = STATUS_SUCCESS;
PSINTData pINTData;
......
......@@ -74,7 +74,7 @@ INTvWorkItem(
NTSTATUS
INTnsProcessData(
IN PSDevice pDevice
PSDevice pDevice
);
#endif // __INT_H__
......
......@@ -44,10 +44,10 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq);
/*
VOID vConfigWEPKey (
IN PSDevice pDevice,
IN DWORD dwKeyIndex,
IN PBYTE pbyKey,
IN ULONG uKeyLength
PSDevice pDevice,
DWORD dwKeyIndex,
PBYTE pbyKey,
ULONG uKeyLength
);
*/
......
......@@ -163,9 +163,9 @@ VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable)
*
*/
BOOL KeybGetKey (
IN PSKeyManagement pTable,
IN PBYTE pbyBSSID,
IN DWORD dwKeyIndex,
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyIndex,
OUT PSKeyItem *pKey
)
{
......@@ -562,9 +562,9 @@ VOID KeyvRemoveAllWEPKey (
*
*/
BOOL KeybGetTransmitKey (
IN PSKeyManagement pTable,
IN PBYTE pbyBSSID,
IN DWORD dwKeyType,
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyType,
OUT PSKeyItem *pKey
)
{
......@@ -642,7 +642,7 @@ BOOL KeybGetTransmitKey (
*
*/
BOOL KeybCheckPairewiseKey (
IN PSKeyManagement pTable,
PSKeyManagement pTable,
OUT PSKeyItem *pKey
)
{
......
......@@ -100,9 +100,9 @@ typedef struct tagSKeyManagement
VOID KeyvInitTable(PVOID pDeviceHandler, PSKeyManagement pTable);
BOOL KeybGetKey(
IN PSKeyManagement pTable,
IN PBYTE pbyBSSID,
IN DWORD dwKeyIndex,
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyIndex,
OUT PSKeyItem *pKey
);
......@@ -142,14 +142,14 @@ VOID KeyvRemoveAllWEPKey(
);
BOOL KeybGetTransmitKey(
IN PSKeyManagement pTable,
IN PBYTE pbyBSSID,
IN DWORD dwKeyType,
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyType,
OUT PSKeyItem *pKey
);
BOOL KeybCheckPairewiseKey(
IN PSKeyManagement pTable,
PSKeyManagement pTable,
OUT PSKeyItem *pKey
);
......
......@@ -78,8 +78,8 @@ static int msglevel =MSG_LEVEL_INFO;
VOID
PSvEnablePowerSaving(
IN HANDLE hDeviceContext,
IN WORD wListenInterval
HANDLE hDeviceContext,
WORD wListenInterval
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -156,7 +156,7 @@ PSvEnablePowerSaving(
VOID
PSvDisablePowerSaving(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -201,9 +201,9 @@ PSvDisablePowerSaving(
BOOL
PSbConsiderPowerDown(
IN HANDLE hDeviceContext,
IN BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp
HANDLE hDeviceContext,
BOOL bCheckRxDMA,
BOOL bCheckCountToWakeUp
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -264,7 +264,7 @@ PSbConsiderPowerDown(
VOID
PSvSendPSPOLL(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -310,7 +310,7 @@ PSvSendPSPOLL(
-*/
BOOL
PSbSendNullPacket(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -390,7 +390,7 @@ PSbSendNullPacket(
BOOL
PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
......
......@@ -45,40 +45,40 @@
/*--------------------- Export Functions --------------------------*/
// IN PSDevice pDevice
// IN PSDevice hDeviceContext
/* PSDevice pDevice */
/* PSDevice hDeviceContext */
BOOL
PSbConsiderPowerDown(
IN HANDLE hDeviceContext,
IN BOOL bCheckRxDMA,
IN BOOL bCheckCountToWakeUp
HANDLE hDeviceContext,
BOOL bCheckRxDMA,
BOOL bCheckCountToWakeUp
);
VOID
PSvDisablePowerSaving(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
VOID
PSvEnablePowerSaving(
IN HANDLE hDeviceContext,
IN WORD wListenInterval
HANDLE hDeviceContext,
WORD wListenInterval
);
VOID
PSvSendPSPOLL(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
BOOL
PSbSendNullPacket(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
BOOL
PSbIsNextTBTTWakeUp(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#endif //__POWER_H__
......@@ -757,9 +757,9 @@ BOOL IFRFbWriteEmbeded (PSDevice pDevice, DWORD dwData)
*
*/
BOOL RFbSetPower (
IN PSDevice pDevice,
IN UINT uRATE,
IN UINT uCH
PSDevice pDevice,
UINT uRATE,
UINT uCH
)
{
BOOL bResult = TRUE;
......@@ -811,9 +811,9 @@ BYTE byPwr = pDevice->byCCKPwr;
*
*/
BOOL RFbRawSetPower (
IN PSDevice pDevice,
IN BYTE byPwr,
IN UINT uRATE
PSDevice pDevice,
BYTE byPwr,
UINT uRATE
)
{
BOOL bResult = TRUE;
......@@ -956,8 +956,8 @@ BOOL bResult = TRUE;
-*/
VOID
RFvRSSITodBm (
IN PSDevice pDevice,
IN BYTE byCurrRSSI,
PSDevice pDevice,
BYTE byCurrRSSI,
long * pldBm
)
{
......@@ -986,7 +986,7 @@ RFvRSSITodBm (
VOID
RFbRFTableDownload (
IN PSDevice pDevice
PSDevice pDevice
)
{
WORD wLength1 = 0,wLength2 = 0 ,wLength3 = 0;
......@@ -1133,9 +1133,9 @@ BYTE abyArray[256];
// RobertYu:20060412, TWIF1.11 adjust LO Current for 11b mode
BOOL s_bVT3226D0_11bLoCurrentAdjust(
IN PSDevice pDevice,
IN BYTE byChannel,
IN BOOL b11bMode )
PSDevice pDevice,
BYTE byChannel,
BOOL b11bMode)
{
BOOL bResult;
......
......@@ -65,33 +65,33 @@ extern const BYTE RFaby11aChannelIndex[200];
BOOL IFRFbWriteEmbeded(PSDevice pDevice, DWORD dwData);
BOOL RFbSetPower (
IN PSDevice pDevice,
IN UINT uRATE,
IN UINT uCH
PSDevice pDevice,
UINT uRATE,
UINT uCH
);
BOOL RFbRawSetPower(
IN PSDevice pDevice,
IN BYTE byPwr,
IN UINT uRATE
PSDevice pDevice,
BYTE byPwr,
UINT uRATE
);
VOID
RFvRSSITodBm (
IN PSDevice pDevice,
IN BYTE byCurrRSSI,
PSDevice pDevice,
BYTE byCurrRSSI,
long * pldBm
);
VOID
RFbRFTableDownload (
IN PSDevice pDevice
PSDevice pDevice
);
BOOL s_bVT3226D0_11bLoCurrentAdjust(
IN PSDevice pDevice,
IN BYTE byChannel,
IN BOOL b11bMode
PSDevice pDevice,
BYTE byChannel,
BOOL b11bMode
);
#endif // __RF_H__
......
This diff is collapsed.
......@@ -667,17 +667,17 @@ typedef struct tagSBEACON_BUFFER
BOOL
bPacketToWirelessUsb(
IN PSDevice pDevice,
IN BYTE byPktType,
IN PBYTE usbPacketBuf,
IN BOOL bNeedEncrypt,
IN UINT cbPayloadSize,
IN UINT uDMAIdx,
IN PSEthernetHeader psEthHeader,
IN PBYTE pPacket,
IN PSKeyItem pTransmitKey,
IN UINT uNodeIndex,
IN WORD wCurrentRate,
PSDevice pDevice,
BYTE byPktType,
PBYTE usbPacketBuf,
BOOL bNeedEncrypt,
UINT cbPayloadSize,
UINT uDMAIdx,
PSEthernetHeader psEthHeader,
PBYTE pPacket,
PSKeyItem pTransmitKey,
UINT uNodeIndex,
WORD wCurrentRate,
OUT UINT *pcbHeaderLen,
OUT UINT *pcbTotalLen
);
......
......@@ -37,10 +37,6 @@
#define VOID void
#endif
#ifndef IN
#define IN
#endif
#ifndef OUT
#define OUT
#endif
......
......@@ -73,34 +73,34 @@ static int msglevel =MSG_LEVEL_INFO;
static
VOID
s_nsInterruptUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
);
static
VOID
s_nsBulkInUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
);
static
VOID
s_nsBulkOutIoCompleteWrite(
IN struct urb *urb
struct urb *urb
);
static
VOID
s_nsControlInUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
);
static
VOID
s_nsControlInUsbIoCompleteWrite(
IN struct urb *urb
struct urb *urb
);
/*--------------------- Export Variables --------------------------*/
......@@ -111,12 +111,12 @@ s_nsControlInUsbIoCompleteWrite(
NTSTATUS
PIPEnsControlOutAsyn(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
PBYTE pbyBuffer
)
{
NTSTATUS ntStatus;
......@@ -162,12 +162,12 @@ PIPEnsControlOutAsyn(
NTSTATUS
PIPEnsControlOut(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
PBYTE pbyBuffer
)
{
NTSTATUS ntStatus = 0;
......@@ -224,12 +224,12 @@ PIPEnsControlOut(
NTSTATUS
PIPEnsControlIn(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN OUT PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
OUT PBYTE pbyBuffer
)
{
NTSTATUS ntStatus = 0;
......@@ -281,7 +281,7 @@ PIPEnsControlIn(
static
VOID
s_nsControlInUsbIoCompleteWrite(
IN struct urb *urb
struct urb *urb
)
{
PSDevice pDevice;
......@@ -322,7 +322,7 @@ s_nsControlInUsbIoCompleteWrite(
static
VOID
s_nsControlInUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
)
{
PSDevice pDevice;
......@@ -362,7 +362,7 @@ s_nsControlInUsbIoCompleteRead(
*/
NTSTATUS
PIPEnsInterruptRead(
IN PSDevice pDevice
PSDevice pDevice
)
{
NTSTATUS ntStatus = STATUS_FAILURE;
......@@ -443,7 +443,7 @@ usb_fill_bulk_urb(pDevice->pInterruptURB,
static
VOID
s_nsInterruptUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
)
{
......@@ -543,8 +543,8 @@ s_nsInterruptUsbIoCompleteRead(
*/
NTSTATUS
PIPEnsBulkInUsbRead(
IN PSDevice pDevice,
IN PRCB pRCB
PSDevice pDevice,
PRCB pRCB
)
{
NTSTATUS ntStatus= 0;
......@@ -608,7 +608,7 @@ PIPEnsBulkInUsbRead(
static
VOID
s_nsBulkInUsbIoCompleteRead(
IN struct urb *urb
struct urb *urb
)
{
......@@ -687,8 +687,8 @@ s_nsBulkInUsbIoCompleteRead(
*/
NDIS_STATUS
PIPEnsSendBulkOut(
IN PSDevice pDevice,
IN PUSB_SEND_CONTEXT pContext
PSDevice pDevice,
PUSB_SEND_CONTEXT pContext
)
{
NTSTATUS status;
......@@ -768,7 +768,7 @@ PIPEnsSendBulkOut(
static
VOID
s_nsBulkOutIoCompleteWrite(
IN struct urb *urb
struct urb *urb
)
{
PSDevice pDevice;
......
......@@ -43,34 +43,34 @@
NTSTATUS
PIPEnsControlOut(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
PBYTE pbyBuffer
);
NTSTATUS
PIPEnsControlOutAsyn(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
PBYTE pbyBuffer
);
NTSTATUS
PIPEnsControlIn(
IN PSDevice pDevice,
IN BYTE byRequest,
IN WORD wValue,
IN WORD wIndex,
IN WORD wLength,
IN OUT PBYTE pbyBuffer
PSDevice pDevice,
BYTE byRequest,
WORD wValue,
WORD wIndex,
WORD wLength,
OUT PBYTE pbyBuffer
);
......@@ -78,19 +78,19 @@ PIPEnsControlIn(
NTSTATUS
PIPEnsInterruptRead(
IN PSDevice pDevice
PSDevice pDevice
);
NTSTATUS
PIPEnsBulkInUsbRead(
IN PSDevice pDevice,
IN PRCB pRCB
PSDevice pDevice,
PRCB pRCB
);
NTSTATUS
PIPEnsSendBulkOut(
IN PSDevice pDevice,
IN PUSB_SEND_CONTEXT pContext
PSDevice pDevice,
PUSB_SEND_CONTEXT pContext
);
#endif // __USBPIPE_H__
......
......@@ -71,19 +71,19 @@ static int msglevel =MSG_LEVEL_INFO;
static
VOID
s_vProbeChannel(
IN PSDevice pDevice
PSDevice pDevice
);
static
PSTxMgmtPacket
s_MgrMakeProbeRequest(
IN PSDevice pDevice,
IN PSMgmtObject pMgmt,
IN PBYTE pScanBSSID,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates
PSDevice pDevice,
PSMgmtObject pMgmt,
PBYTE pScanBSSID,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pCurrRates,
PWLAN_IE_SUPP_RATES pCurrExtSuppRates
);
......@@ -96,7 +96,7 @@ s_bCommandComplete (
static
BOOL s_bClearBSSID_SCAN (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
/*--------------------- Export Variables --------------------------*/
......@@ -212,7 +212,7 @@ vAdHocBeaconRestart(PSDevice pDevice)
static
VOID
s_vProbeChannel(
IN PSDevice pDevice
PSDevice pDevice
)
{
//1M, 2M, 5M, 11M, 18M, 24M, 36M, 54M
......@@ -275,12 +275,12 @@ s_vProbeChannel(
PSTxMgmtPacket
s_MgrMakeProbeRequest(
IN PSDevice pDevice,
IN PSMgmtObject pMgmt,
IN PBYTE pScanBSSID,
IN PWLAN_IE_SSID pSSID,
IN PWLAN_IE_SUPP_RATES pCurrRates,
IN PWLAN_IE_SUPP_RATES pCurrExtSuppRates
PSDevice pDevice,
PSMgmtObject pMgmt,
PBYTE pScanBSSID,
PWLAN_IE_SSID pSSID,
PWLAN_IE_SUPP_RATES pCurrRates,
PWLAN_IE_SUPP_RATES pCurrExtSuppRates
)
{
......@@ -327,8 +327,8 @@ s_MgrMakeProbeRequest(
VOID
vCommandTimerWait(
IN HANDLE hDeviceContext,
IN UINT MSecond
HANDLE hDeviceContext,
UINT MSecond
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -347,7 +347,7 @@ vCommandTimerWait(
VOID
vRunCommand(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1193,9 +1193,9 @@ s_bCommandComplete (
}
BOOL bScheduleCommand (
IN HANDLE hDeviceContext,
IN CMD_CODE eCommand,
IN PBYTE pbyItem0
HANDLE hDeviceContext,
CMD_CODE eCommand,
PBYTE pbyItem0
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1266,7 +1266,7 @@ BOOL bScheduleCommand (
*/
static
BOOL s_bClearBSSID_SCAN (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1289,7 +1289,7 @@ BOOL s_bClearBSSID_SCAN (
//mike add:reset command timer
VOID
vResetCommandTimer(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......@@ -1313,7 +1313,7 @@ vResetCommandTimer(
#ifdef TxInSleep
VOID
BSSvSecondTxData(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
......
......@@ -118,19 +118,19 @@ typedef enum tagCMD_STATE {
/*--------------------- Export Functions --------------------------*/
VOID
vResetCommandTimer(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
BOOL
bScheduleCommand(
IN HANDLE hDeviceContext,
IN CMD_CODE eCommand,
IN PBYTE pbyItem0
HANDLE hDeviceContext,
CMD_CODE eCommand,
PBYTE pbyItem0
);
VOID
vRunCommand(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
/*
VOID
......@@ -143,7 +143,7 @@ WCMDvCommandThread(
#ifdef TxInSleep
VOID
BSSvSecondTxData(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#endif
......
This diff is collapsed.
......@@ -410,93 +410,93 @@ typedef struct tagSMgmtObject
void
vMgrObjectInit(
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
void
vMgrAssocBeginSta(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus
);
VOID
vMgrReAssocBeginSta(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus
);
VOID
vMgrDisassocBeginSta(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
IN PBYTE abyDestAddress,
IN WORD wReason,
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
PBYTE abyDestAddress,
WORD wReason,
OUT PCMD_STATUS pStatus
);
VOID
vMgrAuthenBeginSta(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
OUT PCMD_STATUS pStatus
);
VOID
vMgrCreateOwnIBSS(
IN HANDLE hDeviceContext,
HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus
);
VOID
vMgrJoinBSSBegin(
IN HANDLE hDeviceContext,
HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus
);
VOID
vMgrRxManagePacket(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
IN PSRxMgmtPacket pRxPacket
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
PSRxMgmtPacket pRxPacket
);
/*
VOID
vMgrScanBegin(
IN HANDLE hDeviceContext,
HANDLE hDeviceContext,
OUT PCMD_STATUS pStatus
);
*/
VOID
vMgrDeAuthenBeginSta(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt,
IN PBYTE abyDestAddress,
IN WORD wReason,
HANDLE hDeviceContext,
PSMgmtObject pMgmt,
PBYTE abyDestAddress,
WORD wReason,
OUT PCMD_STATUS pStatus
);
BOOL
bMgrPrepareBeaconToSend(
IN HANDLE hDeviceContext,
IN PSMgmtObject pMgmt
HANDLE hDeviceContext,
PSMgmtObject pMgmt
);
BOOL
bAdd_PMKID_Candidate (
IN HANDLE hDeviceContext,
IN PBYTE pbyBSSID,
IN PSRSNCapObject psRSNCapObj
HANDLE hDeviceContext,
PBYTE pbyBSSID,
PSRSNCapObject psRSNCapObj
);
VOID
vFlush_PMKID_Candidate (
IN HANDLE hDeviceContext
HANDLE hDeviceContext
);
#endif // __WMGR_H__
......@@ -70,7 +70,7 @@ const BYTE abyOUI05[4] = { 0x00, 0x50, 0xf2, 0x05 };
VOID
WPA_ClearRSN (
IN PKnownBSS pBSSList
PKnownBSS pBSSList
)
{
int ii;
......@@ -106,8 +106,8 @@ WPA_ClearRSN (
-*/
VOID
WPA_ParseRSN (
IN PKnownBSS pBSSList,
IN PWLAN_IE_RSN_EXT pRSN
PKnownBSS pBSSList,
PWLAN_IE_RSN_EXT pRSN
)
{
PWLAN_IE_RSN_AUTH pIE_RSN_Auth = NULL;
......@@ -241,7 +241,7 @@ BOOL
WPA_SearchRSN (
BYTE byCmd,
BYTE byEncrypt,
IN PKnownBSS pBSSList
PKnownBSS pBSSList
)
{
int ii;
......@@ -299,7 +299,7 @@ WPA_SearchRSN (
-*/
BOOL
WPAb_Is_RSN (
IN PWLAN_IE_RSN_EXT pRSN
PWLAN_IE_RSN_EXT pRSN
)
{
if (pRSN == NULL)
......
......@@ -60,25 +60,25 @@
VOID
WPA_ClearRSN(
IN PKnownBSS pBSSList
PKnownBSS pBSSList
);
VOID
WPA_ParseRSN(
IN PKnownBSS pBSSList,
IN PWLAN_IE_RSN_EXT pRSN
PKnownBSS pBSSList,
PWLAN_IE_RSN_EXT pRSN
);
BOOL
WPA_SearchRSN(
BYTE byCmd,
BYTE byEncrypt,
IN PKnownBSS pBSSList
PKnownBSS pBSSList
);
BOOL
WPAb_Is_RSN(
IN PWLAN_IE_RSN_EXT pRSN
PWLAN_IE_RSN_EXT pRSN
);
#endif // __WPA_H__
......@@ -73,7 +73,7 @@ const BYTE abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 };
-*/
VOID
WPA2_ClearRSN (
IN PKnownBSS pBSSNode
PKnownBSS pBSSNode
)
{
int ii;
......@@ -108,8 +108,8 @@ WPA2_ClearRSN (
-*/
VOID
WPA2vParseRSN (
IN PKnownBSS pBSSNode,
IN PWLAN_IE_RSN pRSN
PKnownBSS pBSSNode,
PWLAN_IE_RSN pRSN
)
{
int i, j;
......@@ -262,7 +262,7 @@ WPA2vParseRSN (
-*/
UINT
WPA2uSetIEs(
IN PVOID pMgmtHandle,
PVOID pMgmtHandle,
OUT PWLAN_IE_RSN pRSNIEs
)
{
......
......@@ -60,18 +60,18 @@ typedef struct tagSPMKIDCache {
VOID
WPA2_ClearRSN (
IN PKnownBSS pBSSNode
PKnownBSS pBSSNode
);
VOID
WPA2vParseRSN (
IN PKnownBSS pBSSNode,
IN PWLAN_IE_RSN pRSN
PKnownBSS pBSSNode,
PWLAN_IE_RSN pRSN
);
UINT
WPA2uSetIEs(
IN PVOID pMgmtHandle,
PVOID pMgmtHandle,
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