mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove CONFIG_LPS
This parameter is defined. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
5fc5fdc06a
commit
167e245287
13 changed files with 3 additions and 60 deletions
|
@ -2565,11 +2565,8 @@ static int cfg80211_rtw_set_power_mgmt(struct wiphy *wiphy,
|
|||
|
||||
rtw_wdev_priv->power_mgmt = enabled;
|
||||
|
||||
#ifdef CONFIG_LPS
|
||||
if (!enabled)
|
||||
LPS_Leave(padapter);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -7844,10 +7844,8 @@ static int rtw_mp_efuse_get(struct net_device *dev,
|
|||
err = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
#ifdef CONFIG_LPS
|
||||
lps_mode = pwrctrlpriv->power_mgnt;//keep org value
|
||||
rtw_pm_set_lps(padapter,PS_MODE_ACTIVE);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IPS
|
||||
ips_mode = pwrctrlpriv->ips_mode;//keep org value
|
||||
|
@ -8267,9 +8265,7 @@ exit:
|
|||
#ifdef CONFIG_IPS
|
||||
rtw_pm_set_ips(padapter, ips_mode);
|
||||
#endif
|
||||
#ifdef CONFIG_LPS
|
||||
rtw_pm_set_lps(padapter, lps_mode);
|
||||
#endif
|
||||
padapter->registrypriv.fw_iol = org_fw_iol;// 0:Disable, 1:enable, 2:by usb speed
|
||||
return err;
|
||||
}
|
||||
|
@ -8320,10 +8316,8 @@ static int rtw_mp_efuse_set(struct net_device *dev,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_LPS
|
||||
lps_mode = pwrctrlpriv->power_mgnt;//keep org value
|
||||
rtw_pm_set_lps(padapter,PS_MODE_ACTIVE);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IPS
|
||||
ips_mode = pwrctrlpriv->ips_mode;//keep org value
|
||||
|
@ -8692,9 +8686,7 @@ exit:
|
|||
#ifdef CONFIG_IPS
|
||||
rtw_pm_set_ips(padapter, ips_mode);
|
||||
#endif
|
||||
#ifdef CONFIG_LPS
|
||||
rtw_pm_set_lps(padapter, lps_mode);
|
||||
#endif
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -542,10 +542,8 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
|
||||
rtw_os_indicate_disconnect(padapter);
|
||||
|
||||
#ifdef CONFIG_LPS
|
||||
//donnot enqueue cmd
|
||||
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_DISCONNECT, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue