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