mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove SUPPORT_HW_RFOFF_DETECTED
This symbol is always defined. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
7f75913cfb
commit
636309c83f
8 changed files with 3 additions and 36 deletions
|
@ -378,10 +378,8 @@ static uint loadparam( struct adapter *padapter, _nic_hdl pnetdev)
|
|||
#ifdef CONFIG_AUTOSUSPEND
|
||||
registry_par->usbss_enable = (u8)rtw_enusbss;/* 0:disable,1:enable */
|
||||
#endif
|
||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||
registry_par->hwpdn_mode = (u8)rtw_hwpdn_mode;/* 0:disable,1:enable,2:by EFUSE config */
|
||||
registry_par->hwpwrp_detect = (u8)rtw_hwpwrp_detect;/* 0:disable,1:enable */
|
||||
#endif
|
||||
|
||||
registry_par->qos_opt_enable = (u8)rtw_qos_opt_enable;
|
||||
registry_par->hw_wps_pbc = (u8)rtw_hw_wps_pbc;
|
||||
|
|
|
@ -546,7 +546,6 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||
int rtw_hw_suspend(struct adapter *padapter )
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||
|
@ -672,9 +671,7 @@ error_exit:
|
|||
DBG_871X("%s, Open net dev failed \n",__FUNCTION__);
|
||||
return (-1);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
#ifdef CONFIG_WOWLAN
|
||||
static void rtw_suspend_wow(struct adapter *padapter)
|
||||
{
|
||||
|
@ -785,7 +782,6 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
if(pwrpriv->bInternalAutoSuspend )
|
||||
{
|
||||
#ifdef CONFIG_AUTOSUSPEND
|
||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||
/* The FW command register update must after MAC and FW init ready. */
|
||||
if((padapter->bFWReady) && (pwrpriv->bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
|
||||
{
|
||||
|
@ -793,7 +789,6 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
pwrpriv->bInSuspend = true;
|
||||
|
@ -819,7 +814,6 @@ exit:
|
|||
;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
static int rtw_resume(struct usb_interface *pusb_intf)
|
||||
{
|
||||
struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
|
||||
|
@ -903,7 +897,6 @@ int rtw_resume_process(struct adapter *padapter)
|
|||
if(pwrpriv->bInternalAutoSuspend )
|
||||
{
|
||||
#ifdef CONFIG_AUTOSUSPEND
|
||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||
/* The FW command register update must after MAC and FW init ready. */
|
||||
if((padapter->bFWReady) && (pwrpriv->bHWPwrPindetect) && (padapter->registrypriv.usbss_enable ))
|
||||
{
|
||||
|
@ -911,7 +904,6 @@ int rtw_resume_process(struct adapter *padapter)
|
|||
rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
DBG_871X("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
if( true == pwrpriv->bAutoResume ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue