Commit 474f0f89 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging:vt6655:power: Whitespace cleanups

Neatening only.
git diff -w shows no differences.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a51ff905
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
/*--------------------- Static Classes ----------------------------*/ /*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/ /*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
...@@ -71,14 +71,14 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -71,14 +71,14 @@ static int msglevel =MSG_LEVEL_INFO;
* Return Value: * Return Value:
* None. * None.
* *
-*/ -*/
void void
PSvEnablePowerSaving( PSvEnablePowerSaving(
void *hDeviceContext, void *hDeviceContext,
unsigned short wListenInterval unsigned short wListenInterval
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt;
...@@ -142,12 +142,12 @@ PSvEnablePowerSaving( ...@@ -142,12 +142,12 @@ PSvEnablePowerSaving(
* Return Value: * Return Value:
* None. * None.
* *
-*/ -*/
void void
PSvDisablePowerSaving( PSvDisablePowerSaving(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
// PSMgmtObject pMgmt = pDevice->pMgmt; // PSMgmtObject pMgmt = pDevice->pMgmt;
...@@ -179,7 +179,7 @@ PSvDisablePowerSaving( ...@@ -179,7 +179,7 @@ PSvDisablePowerSaving(
* Return Value: * Return Value:
* true, if power down success * true, if power down success
* false, if fail * false, if fail
-*/ -*/
bool bool
...@@ -187,7 +187,7 @@ PSbConsiderPowerDown( ...@@ -187,7 +187,7 @@ PSbConsiderPowerDown(
void *hDeviceContext, void *hDeviceContext,
bool bCheckRxDMA, bool bCheckRxDMA,
bool bCheckCountToWakeUp bool bCheckCountToWakeUp
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt;
...@@ -211,15 +211,15 @@ PSbConsiderPowerDown( ...@@ -211,15 +211,15 @@ PSbConsiderPowerDown(
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN); MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN);
// check if all TD are empty, // check if all TD are empty,
for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx++) {
if (pDevice->iTDUsed[uIdx] != 0) if (pDevice->iTDUsed[uIdx] != 0)
return false; return false;
} }
// check if rx isr is clear // check if rx isr is clear
if (bCheckRxDMA && if (bCheckRxDMA &&
((pDevice->dwIsr& ISR_RXDMA0) != 0) && ((pDevice->dwIsr & ISR_RXDMA0) != 0) &&
((pDevice->dwIsr & ISR_RXDMA1) != 0)){ ((pDevice->dwIsr & ISR_RXDMA1) != 0)) {
return false; return false;
} }
...@@ -246,14 +246,14 @@ PSbConsiderPowerDown( ...@@ -246,14 +246,14 @@ PSbConsiderPowerDown(
* Return Value: * Return Value:
* None. * None.
* *
-*/ -*/
void void
PSvSendPSPOLL( PSvSendPSPOLL(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
PSMgmtObject pMgmt = pDevice->pMgmt; PSMgmtObject pMgmt = pDevice->pMgmt;
...@@ -268,7 +268,7 @@ PSvSendPSPOLL( ...@@ -268,7 +268,7 @@ PSvSendPSPOLL(
WLAN_SET_FC_FTYPE(WLAN_TYPE_CTL) | WLAN_SET_FC_FTYPE(WLAN_TYPE_CTL) |
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_PSPOLL) | WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_PSPOLL) |
WLAN_SET_FC_PWRMGT(0) WLAN_SET_FC_PWRMGT(0)
)); ));
pTxPacket->p80211Header->sA2.wDurationID = pMgmt->wCurrAID | BIT14 | BIT15; pTxPacket->p80211Header->sA2.wDurationID = pMgmt->wCurrAID | BIT14 | BIT15;
memcpy(pTxPacket->p80211Header->sA2.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN); memcpy(pTxPacket->p80211Header->sA2.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN);
memcpy(pTxPacket->p80211Header->sA2.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN); memcpy(pTxPacket->p80211Header->sA2.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN);
...@@ -295,11 +295,11 @@ PSvSendPSPOLL( ...@@ -295,11 +295,11 @@ PSvSendPSPOLL(
* Return Value: * Return Value:
* None. * None.
* *
-*/ -*/
bool bool
PSbSendNullPacket( PSbSendNullPacket(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
PSTxMgmtPacket pTxPacket = NULL; PSTxMgmtPacket pTxPacket = NULL;
...@@ -310,9 +310,9 @@ PSbSendNullPacket( ...@@ -310,9 +310,9 @@ PSbSendNullPacket(
if (pDevice->bLinkPass == false) { if (pDevice->bLinkPass == false) {
return false; return false;
} }
#ifdef TxInSleep #ifdef TxInSleep
if ((pDevice->bEnablePSMode == false) && if ((pDevice->bEnablePSMode == false) &&
(pDevice->fTxDataInSleep == false)){ (pDevice->fTxDataInSleep == false)) {
return false; return false;
} }
#else #else
...@@ -321,7 +321,7 @@ PSbSendNullPacket( ...@@ -321,7 +321,7 @@ PSbSendNullPacket(
} }
#endif #endif
if (pDevice->bEnablePSMode) { if (pDevice->bEnablePSMode) {
for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx ++) { for (uIdx = 0; uIdx < TYPE_MAXTD; uIdx++) {
if (pDevice->iTDUsed[uIdx] != 0) if (pDevice->iTDUsed[uIdx] != 0)
return false; return false;
} }
...@@ -338,7 +338,7 @@ PSbSendNullPacket( ...@@ -338,7 +338,7 @@ PSbSendNullPacket(
WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) | WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) |
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL) | WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL) |
WLAN_SET_FC_PWRMGT(1) WLAN_SET_FC_PWRMGT(1)
)); ));
} }
else { else {
pTxPacket->p80211Header->sA3.wFrameCtl = cpu_to_le16( pTxPacket->p80211Header->sA3.wFrameCtl = cpu_to_le16(
...@@ -346,10 +346,10 @@ PSbSendNullPacket( ...@@ -346,10 +346,10 @@ PSbSendNullPacket(
WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) | WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) |
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL) | WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL) |
WLAN_SET_FC_PWRMGT(0) WLAN_SET_FC_PWRMGT(0)
)); ));
} }
if(pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) { if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((unsigned short)WLAN_SET_FC_TODS(1)); pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((unsigned short)WLAN_SET_FC_TODS(1));
} }
...@@ -369,7 +369,7 @@ PSbSendNullPacket( ...@@ -369,7 +369,7 @@ PSbSendNullPacket(
} }
return true ; return true;
} }
/*+ /*+
...@@ -380,12 +380,12 @@ PSbSendNullPacket( ...@@ -380,12 +380,12 @@ PSbSendNullPacket(
* Return Value: * Return Value:
* None. * None.
* *
-*/ -*/
bool bool
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
void *hDeviceContext void *hDeviceContext
) )
{ {
PSDevice pDevice = (PSDevice)hDeviceContext; PSDevice pDevice = (PSDevice)hDeviceContext;
...@@ -397,7 +397,7 @@ PSbIsNextTBTTWakeUp( ...@@ -397,7 +397,7 @@ PSbIsNextTBTTWakeUp(
pMgmt->wCountToWakeUp = pMgmt->wListenInterval; pMgmt->wCountToWakeUp = pMgmt->wListenInterval;
} }
pMgmt->wCountToWakeUp --; pMgmt->wCountToWakeUp--;
if (pMgmt->wCountToWakeUp == 1) { if (pMgmt->wCountToWakeUp == 1) {
// Turn on wake up to listen next beacon // Turn on wake up to listen next beacon
......
...@@ -53,32 +53,32 @@ PSbConsiderPowerDown( ...@@ -53,32 +53,32 @@ PSbConsiderPowerDown(
void *hDeviceContext, void *hDeviceContext,
bool bCheckRxDMA, bool bCheckRxDMA,
bool bCheckCountToWakeUp bool bCheckCountToWakeUp
); );
void void
PSvDisablePowerSaving( PSvDisablePowerSaving(
void *hDeviceContext void *hDeviceContext
); );
void void
PSvEnablePowerSaving( PSvEnablePowerSaving(
void *hDeviceContext, void *hDeviceContext,
unsigned short wListenInterval unsigned short wListenInterval
); );
void void
PSvSendPSPOLL( PSvSendPSPOLL(
void *hDeviceContext void *hDeviceContext
); );
bool bool
PSbSendNullPacket( PSbSendNullPacket(
void *hDeviceContext void *hDeviceContext
); );
bool bool
PSbIsNextTBTTWakeUp( PSbIsNextTBTTWakeUp(
void *hDeviceContext void *hDeviceContext
); );
#endif //__POWER_H__ #endif //__POWER_H__
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