35 unsigned long flags = 0;
38 spin_unlock_irqrestore(&priv->
rf_ps_lock, flags);
43 spin_unlock_irqrestore(&priv->
rf_ps_lock, flags);
54 rtl8192_hw_sleep_down(dev);
60 unsigned long flags = 0;
63 spin_unlock_irqrestore(&priv->
rf_ps_lock, flags);
70 spin_unlock_irqrestore(&priv->
rf_ps_lock, flags);
84 #define MIN_SLEEP_TIME 50
85 #define MAX_SLEEP_TIME 10000
95 time -=
MSECS(8+16+7);
98 spin_unlock_irqrestore(&priv->
ps_lock, flags);
107 spin_unlock_irqrestore(&priv->
ps_lock, flags);
112 &priv->
rtllib->hw_wakeup_wq, tmp);
114 (
void *)&priv->
rtllib->hw_sleep_wq, 0);
115 spin_unlock_irqrestore(&priv->
ps_lock, flags);
118 static void InactivePsWorkItemCallback(
struct net_device *dev)
122 &(priv->
rtllib->PowerSaveControl);
140 &(priv->
rtllib->PowerSaveControl);
144 rtState = priv->
rtllib->eRFPowerState;
152 InactivePsWorkItemCallback(dev);
161 &(priv->
rtllib->PowerSaveControl);
165 rtState = priv->
rtllib->eRFPowerState;
171 InactivePsWorkItemCallback(dev);
191 rtState = priv->
rtllib->eRFPowerState;
193 if (priv->
rtllib->PowerSaveControl.bInactivePs) {
203 &priv->
rtllib->ips_leave_wq);
227 priv->
rtllib->ps = rtPsMode;
237 " ++++++++++ SendNullFunctionData\n");
239 spin_unlock_irqrestore(&(priv->
rtllib->mgmt_tx_lock), flags);
249 &(priv->
rtllib->PowerSaveControl);
253 "Count is %d,RT_CHECK_FOR_HANG_PERIOD is %d\n",
269 "802.11 power save mode...\n");
272 if (priv->
rtllib->SetFwCmdHandler)
273 priv->
rtllib->SetFwCmdHandler(
289 &(priv->
rtllib->PowerSaveControl);
299 "Leave 802.11 power save..\n");
304 if (priv->
rtllib->SetFwCmdHandler)
305 priv->
rtllib->SetFwCmdHandler(dev,