2009-06-13 05:38:31 -06:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* File: power.c
|
|
|
|
*
|
2012-08-26 09:16:43 -06:00
|
|
|
* Purpose: Handles 802.11 power management functions
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Author: Lyndon Chen
|
|
|
|
*
|
|
|
|
* Date: July 17, 2002
|
|
|
|
*
|
|
|
|
* Functions:
|
|
|
|
* PSvEnablePowerSaving - Enable Power Saving Mode
|
|
|
|
* PSvDiasblePowerSaving - Disable Power Saving Mode
|
|
|
|
* PSbConsiderPowerDown - Decide if we can Power Down
|
|
|
|
* PSvSendPSPOLL - Send PS-POLL packet
|
|
|
|
* PSbSendNullPacket - Send Null packet
|
|
|
|
* PSbIsNextTBTTWakeUp - Decide if we need to wake up at next Beacon
|
|
|
|
*
|
|
|
|
* Revision History:
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mac.h"
|
|
|
|
#include "device.h"
|
|
|
|
#include "wmgr.h"
|
|
|
|
#include "power.h"
|
|
|
|
#include "wcmd.h"
|
|
|
|
#include "rxtx.h"
|
|
|
|
#include "card.h"
|
|
|
|
#include "control.h"
|
|
|
|
#include "rndis.h"
|
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
static int msglevel = MSG_LEVEL_INFO;
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Enable hw power saving functions
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None.
|
|
|
|
*
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
void PSvEnablePowerSaving(struct vnt_private *pDevice, u16 wListenInterval)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
2013-01-17 16:17:21 -07:00
|
|
|
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
|
|
|
|
u16 wAID = pMgmt->wCurrAID | BIT14 | BIT15;
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
/* set period of power up before TBTT */
|
|
|
|
MACvWriteWord(pDevice, MAC_REG_PWBT, C_PWBT);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
if (pDevice->eOPMode != OP_MODE_ADHOC) {
|
|
|
|
/* set AID */
|
|
|
|
MACvWriteWord(pDevice, MAC_REG_AIDATIM, wAID);
|
|
|
|
} else {
|
2011-03-02 07:34:40 -07:00
|
|
|
/* set ATIM Window */
|
|
|
|
/* MACvWriteATIMW(pDevice->PortOffset, pMgmt->wCurrATIMWindow); */
|
2011-03-02 07:34:39 -07:00
|
|
|
}
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Warren:06-18-2004,the sequence must follow PSEN->AUTOSLEEP->GO2DOZE */
|
|
|
|
/* enable power saving hw function */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_PSEN);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Set AutoSleep */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Warren:MUST turn on this once before turn on AUTOSLEEP ,or the AUTOSLEEP doesn't work */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_GO2DOZE);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
if (wListenInterval >= 2) {
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* clear always listen beacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOff(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* first time set listen next beacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
pMgmt->wCountToWakeUp = wListenInterval;
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
} else {
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* always listen beacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:39 -07:00
|
|
|
pMgmt->wCountToWakeUp = 0;
|
|
|
|
}
|
|
|
|
|
2013-02-12 18:36:30 -07:00
|
|
|
pDevice->bEnablePSMode = true;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* We don't send null pkt in ad hoc mode since beacon will handle this. */
|
2011-03-02 07:34:45 -07:00
|
|
|
if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE)
|
2011-03-02 07:34:39 -07:00
|
|
|
PSbSendNullPacket(pDevice);
|
|
|
|
|
2013-02-12 18:36:30 -07:00
|
|
|
pDevice->bPWBitOn = true;
|
2011-03-02 07:34:43 -07:00
|
|
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "PS:Power Saving Mode Enable...\n");
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Disable hw power saving functions
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None.
|
|
|
|
*
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
void PSvDisablePowerSaving(struct vnt_private *pDevice)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* disable power saving hw function */
|
2011-03-02 07:34:39 -07:00
|
|
|
CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_DISABLE_PS, 0,
|
|
|
|
0, 0, NULL);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* clear AutoSleep */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOff(pDevice, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* set always listen beacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_ALBCN);
|
2013-02-12 18:36:29 -07:00
|
|
|
pDevice->bEnablePSMode = false;
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2011-03-02 07:34:41 -07:00
|
|
|
if (pDevice->eOPMode == OP_MODE_INFRASTRUCTURE)
|
2011-03-02 07:34:39 -07:00
|
|
|
PSbSendNullPacket(pDevice);
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-02-12 18:36:29 -07:00
|
|
|
pDevice->bPWBitOn = false;
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Consider to power down when no more packets to tx or rx.
|
|
|
|
*
|
|
|
|
* Return Value:
|
2013-02-12 18:36:30 -07:00
|
|
|
* true, if power down success
|
2013-02-12 18:36:29 -07:00
|
|
|
* false, if fail
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
int PSbConsiderPowerDown(struct vnt_private *pDevice, int bCheckRxDMA,
|
|
|
|
int bCheckCountToWakeUp)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
2013-01-17 16:17:21 -07:00
|
|
|
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
|
|
|
|
u8 byData;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* check if already in Doze mode */
|
2011-03-02 07:34:39 -07:00
|
|
|
ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG,
|
|
|
|
MAC_REG_PSCTL, &byData);
|
|
|
|
|
2011-03-02 07:34:43 -07:00
|
|
|
if ((byData & PSCTL_PS) != 0)
|
2013-02-12 18:36:30 -07:00
|
|
|
return true;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
|
|
|
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
|
2011-03-02 07:34:40 -07:00
|
|
|
/* check if in TIM wake period */
|
2011-03-02 07:34:39 -07:00
|
|
|
if (pMgmt->bInTIMWake)
|
2013-02-12 18:36:29 -07:00
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* check scan state */
|
2011-03-02 07:34:39 -07:00
|
|
|
if (pDevice->bCmdRunning)
|
2013-02-12 18:36:29 -07:00
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Tx Burst */
|
2011-03-02 07:34:43 -07:00
|
|
|
if (pDevice->bPSModeTxBurst)
|
2013-02-12 18:36:29 -07:00
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Froce PSEN on */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_PSEN);
|
|
|
|
|
|
|
|
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA) {
|
|
|
|
if (bCheckCountToWakeUp && (pMgmt->wCountToWakeUp == 0
|
|
|
|
|| pMgmt->wCountToWakeUp == 1)) {
|
2013-02-12 18:36:29 -07:00
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-12 18:36:30 -07:00
|
|
|
pDevice->bPSRxBeacon = true;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/* no Tx, no Rx isr, now go to Doze */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_GO2DOZE);
|
|
|
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Go to Doze ZZZZZZZZZZZZZZZ\n");
|
2013-02-12 18:36:30 -07:00
|
|
|
return true;
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Send PS-POLL packet
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None.
|
|
|
|
*
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
void PSvSendPSPOLL(struct vnt_private *pDevice)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
2013-01-17 16:17:21 -07:00
|
|
|
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
|
|
|
|
struct vnt_tx_mgmt *pTxPacket = NULL;
|
|
|
|
|
|
|
|
memset(pMgmt->pbyPSPacketPool, 0, sizeof(struct vnt_tx_mgmt)
|
|
|
|
+ WLAN_HDR_ADDR2_LEN);
|
|
|
|
pTxPacket = (struct vnt_tx_mgmt *)pMgmt->pbyPSPacketPool;
|
|
|
|
pTxPacket->p80211Header = (PUWLAN_80211HDR)((u8 *)pTxPacket
|
|
|
|
+ sizeof(struct vnt_tx_mgmt));
|
2011-03-02 07:34:39 -07:00
|
|
|
|
|
|
|
pTxPacket->p80211Header->sA2.wFrameCtl = cpu_to_le16(
|
|
|
|
(
|
|
|
|
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);
|
|
|
|
pTxPacket->cbMPDULen = WLAN_HDR_ADDR2_LEN;
|
|
|
|
pTxPacket->cbPayloadLen = 0;
|
|
|
|
|
2011-03-02 07:34:42 -07:00
|
|
|
/* log failure if sending failed */
|
2013-10-23 23:26:46 -06:00
|
|
|
if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING)
|
2011-03-02 07:34:39 -07:00
|
|
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send PS-Poll packet failed..\n");
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Send NULL packet to AP for notification power state of STA
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None.
|
|
|
|
*
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2010-05-06 17:34:29 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
int PSbSendNullPacket(struct vnt_private *pDevice)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
2013-01-17 16:17:21 -07:00
|
|
|
struct vnt_tx_mgmt *pTxPacket = NULL;
|
|
|
|
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
|
2011-03-02 10:36:35 -07:00
|
|
|
u16 flags = 0;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2013-02-12 18:36:29 -07:00
|
|
|
if (pDevice->bLinkPass == false)
|
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2013-10-14 12:46:52 -06:00
|
|
|
if (pDevice->bEnablePSMode == false && pDevice->tx_trigger == false)
|
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
memset(pMgmt->pbyPSPacketPool, 0, sizeof(struct vnt_tx_mgmt)
|
|
|
|
+ WLAN_NULLDATA_FR_MAXLEN);
|
|
|
|
pTxPacket = (struct vnt_tx_mgmt *)pMgmt->pbyPSPacketPool;
|
|
|
|
pTxPacket->p80211Header = (PUWLAN_80211HDR)((u8 *)pTxPacket
|
|
|
|
+ sizeof(struct vnt_tx_mgmt));
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 10:36:35 -07:00
|
|
|
flags = WLAN_SET_FC_FTYPE(WLAN_TYPE_DATA) |
|
2013-10-27 15:02:09 -06:00
|
|
|
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_NULL);
|
2011-03-02 10:36:35 -07:00
|
|
|
|
|
|
|
if (pDevice->bEnablePSMode)
|
|
|
|
flags |= WLAN_SET_FC_PWRMGT(1);
|
|
|
|
else
|
|
|
|
flags |= WLAN_SET_FC_PWRMGT(0);
|
|
|
|
|
|
|
|
pTxPacket->p80211Header->sA3.wFrameCtl = cpu_to_le16(flags);
|
2011-03-02 07:34:39 -07:00
|
|
|
|
2011-03-02 07:34:43 -07:00
|
|
|
if (pMgmt->eCurrMode != WMAC_MODE_IBSS_STA)
|
2013-02-25 18:32:52 -07:00
|
|
|
pTxPacket->p80211Header->sA3.wFrameCtl |= cpu_to_le16((u16)WLAN_SET_FC_TODS(1));
|
2011-03-02 07:34:39 -07:00
|
|
|
|
|
|
|
memcpy(pTxPacket->p80211Header->sA3.abyAddr1, pMgmt->abyCurrBSSID, WLAN_ADDR_LEN);
|
|
|
|
memcpy(pTxPacket->p80211Header->sA3.abyAddr2, pMgmt->abyMACAddr, WLAN_ADDR_LEN);
|
|
|
|
memcpy(pTxPacket->p80211Header->sA3.abyAddr3, pMgmt->abyCurrBSSID, WLAN_BSSID_LEN);
|
|
|
|
pTxPacket->cbMPDULen = WLAN_HDR_ADDR3_LEN;
|
|
|
|
pTxPacket->cbPayloadLen = 0;
|
2011-03-02 07:34:42 -07:00
|
|
|
/* log error if sending failed */
|
2011-03-02 07:34:39 -07:00
|
|
|
if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) {
|
|
|
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send Null Packet failed !\n");
|
2013-02-12 18:36:29 -07:00
|
|
|
return false;
|
2011-03-02 07:34:39 -07:00
|
|
|
}
|
2013-02-12 18:36:30 -07:00
|
|
|
return true;
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|
2011-03-02 07:34:40 -07:00
|
|
|
/*
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
* Routine Description:
|
|
|
|
* Check if Next TBTT must wake up
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None.
|
|
|
|
*
|
2011-03-02 07:34:40 -07:00
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-17 16:17:21 -07:00
|
|
|
int PSbIsNextTBTTWakeUp(struct vnt_private *pDevice)
|
2009-06-13 05:38:31 -06:00
|
|
|
{
|
2013-01-17 16:17:21 -07:00
|
|
|
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
|
2013-02-12 18:36:29 -07:00
|
|
|
int bWakeUp = false;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
|
|
|
if (pMgmt->wListenInterval >= 2) {
|
2011-03-02 07:34:41 -07:00
|
|
|
if (pMgmt->wCountToWakeUp == 0)
|
2011-03-02 07:34:39 -07:00
|
|
|
pMgmt->wCountToWakeUp = pMgmt->wListenInterval;
|
|
|
|
|
2011-03-02 07:34:43 -07:00
|
|
|
pMgmt->wCountToWakeUp--;
|
2011-03-02 07:34:39 -07:00
|
|
|
|
|
|
|
if (pMgmt->wCountToWakeUp == 1) {
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Turn on wake up to listen next beacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
2013-02-12 18:36:29 -07:00
|
|
|
pDevice->bPSRxBeacon = false;
|
2013-02-12 18:36:30 -07:00
|
|
|
bWakeUp = true;
|
2011-03-02 07:34:43 -07:00
|
|
|
} else if (!pDevice->bPSRxBeacon) {
|
2011-03-02 07:34:40 -07:00
|
|
|
/* Listen until RxBeacon */
|
2011-03-02 07:34:39 -07:00
|
|
|
MACvRegBitsOn(pDevice, MAC_REG_PSCTL, PSCTL_LNBCN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return bWakeUp;
|
2009-06-13 05:38:31 -06:00
|
|
|
}
|
|
|
|
|