Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
bool bResult = true;
spin_lock(&priv->ps_lock);
- if (priv->SetRFPowerStateInProgress) {
- bResult = false;
- goto out;
- }
- priv->SetRFPowerStateInProgress = true;
switch( eRFPowerState )
{
}
out:
- priv->SetRFPowerStateInProgress = false;
spin_unlock(&priv->ps_lock);
return bResult;
}
bool bHwRadioOff;
//by amy for ps
bool RFChangeInProgress; // RF Chnage in progress, by Bruce, 2007-10-30
- bool SetRFPowerStateInProgress;
RT_OP_MODE OpMode;
//by amy for reset_count
u32 reset_count;
priv->ieee80211->RfOffReason = 0;
priv->RFChangeInProgress = false;
priv->bHwRfOffAction = 0;
- priv->SetRFPowerStateInProgress = false;
priv->ieee80211->PowerSaveControl.bInactivePs = true;
priv->ieee80211->PowerSaveControl.bIPSModeBackup = false;