mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: Remove CONFIG_IPS
This one is always defined. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d9320ea25b
commit
7f75913cfb
8 changed files with 4 additions and 39 deletions
|
@ -69,11 +69,7 @@ static int rtw_soft_ap = 0;
|
|||
/* int smart_ps = 1; */
|
||||
#ifdef CONFIG_POWER_SAVING
|
||||
static int rtw_power_mgnt = 1;
|
||||
#ifdef CONFIG_IPS_LEVEL_2
|
||||
static int rtw_ips_mode = IPS_LEVEL_2;
|
||||
#else
|
||||
static int rtw_ips_mode = IPS_NORMAL;
|
||||
#endif
|
||||
#else
|
||||
static int rtw_power_mgnt = PS_MODE_ACTIVE;
|
||||
static int rtw_ips_mode = IPS_NONE;
|
||||
|
@ -1386,7 +1382,6 @@ int netdev_open(struct net_device *pnetdev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IPS
|
||||
static int ips_netdrv_open(struct adapter *padapter)
|
||||
{
|
||||
int status = _SUCCESS;
|
||||
|
@ -1457,7 +1452,7 @@ void rtw_ips_pwr_down(struct adapter *padapter)
|
|||
padapter->bCardDisableWOHSM = false;
|
||||
DBG_871X("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
}
|
||||
#endif
|
||||
|
||||
void rtw_ips_dev_unload(struct adapter *padapter)
|
||||
{
|
||||
struct net_device *pnetdev= (struct net_device*)padapter->pnetdev;
|
||||
|
@ -1517,11 +1512,8 @@ int pm_netdev_open(struct net_device *pnetdev,u8 bnormal)
|
|||
|
||||
if (true == bnormal)
|
||||
status = netdev_open(pnetdev);
|
||||
#ifdef CONFIG_IPS
|
||||
else
|
||||
status = (_SUCCESS == ips_netdrv_open((struct adapter *)rtw_netdev_priv(pnetdev)))?(0):(-1);
|
||||
#endif
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue