Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236209
b: refs/heads/master
c: c5b0b5f
h: refs/heads/master
i:
  236207: 2ca254a
v: v3
  • Loading branch information
Philip Worrall authored and Greg Kroah-Hartman committed Mar 2, 2011
1 parent 2981fc6 commit 4edc51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e25b75ec83ec1d76690a9f26d457d2af945119d2
refs/heads/master: c5b0b5fcdbde44cba6f5069d58aeffae4eec2572
12 changes: 6 additions & 6 deletions trunk/drivers/staging/vt6656/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void PSvEnablePowerSaving(void *hDeviceContext,
}

pDevice->bPWBitOn = TRUE;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable... \n");
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable...\n");
}

/*
Expand Down Expand Up @@ -186,7 +186,7 @@ BOOL PSbConsiderPowerDown(void *hDeviceContext,
ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG,
MAC_REG_PSCTL, &byData);

if ( (byData & PSCTL_PS) != 0 )
if ((byData & PSCTL_PS) != 0)
return TRUE;

if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
Expand All @@ -200,7 +200,7 @@ BOOL PSbConsiderPowerDown(void *hDeviceContext,
return FALSE;

/* Tx Burst */
if ( pDevice->bPSModeTxBurst )
if (pDevice->bPSModeTxBurst)
return FALSE;

/* Froce PSEN on */
Expand Down Expand Up @@ -303,7 +303,7 @@ BOOL PSbSendNullPacket(void *hDeviceContext)
));
}

if(pMgmt->eCurrMode != WMAC_MODE_IBSS_STA)
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA)
pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((WORD)WLAN_SET_FC_TODS(1));

memcpy(pTxPacket->p80211Header->sA3.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN);
Expand Down Expand Up @@ -339,14 +339,14 @@ BOOL PSbIsNextTBTTWakeUp(void *hDeviceContext)
if (pMgmt->wCountToWakeUp == 0)
pMgmt->wCountToWakeUp = pMgmt->wListenInterval;

pMgmt->wCountToWakeUp --;
pMgmt->wCountToWakeUp--;

if (pMgmt->wCountToWakeUp == 1) {
/* Turn on wake up to listen next beacon */
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
pDevice->bPSRxBeacon = FALSE;
bWakeUp = TRUE;
} else if ( !pDevice->bPSRxBeacon ) {
} else if (!pDevice->bPSRxBeacon) {
/* Listen until RxBeacon */
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
}
Expand Down

0 comments on commit 4edc51d

Please sign in to comment.