mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-24 21:43:40 +00:00
rtl8188eu: Convert typedef statement in include/rtw_pwrctrl.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
b2804a6af7
commit
e8012b9521
3 changed files with 9 additions and 11 deletions
|
@ -182,7 +182,7 @@ void rtw_ps_processor(_adapter*padapter)
|
||||||
#endif /* CONFIG_P2P */
|
#endif /* CONFIG_P2P */
|
||||||
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
|
||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||||
rt_rf_power_state rfpwrstate;
|
enum rt_rf_power_state rfpwrstate;
|
||||||
|
|
||||||
pwrpriv->ps_processing = true;
|
pwrpriv->ps_processing = true;
|
||||||
|
|
||||||
|
|
|
@ -1078,11 +1078,11 @@ HwSuspendModeEnable_88eu(
|
||||||
{
|
{
|
||||||
} /* HwSuspendModeEnable92Cu */
|
} /* HwSuspendModeEnable92Cu */
|
||||||
|
|
||||||
rt_rf_power_state RfOnOffDetect( PADAPTER pAdapter )
|
enum rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter)
|
||||||
{
|
{
|
||||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
u8 val8;
|
u8 val8;
|
||||||
rt_rf_power_state rfpowerstate = rf_off;
|
enum rt_rf_power_state rfpowerstate = rf_off;
|
||||||
|
|
||||||
if (pAdapter->pwrctrlpriv.bHWPowerdown)
|
if (pAdapter->pwrctrlpriv.bHWPowerdown)
|
||||||
{
|
{
|
||||||
|
@ -1111,7 +1111,7 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
||||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter);
|
struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv;
|
struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv;
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
rt_rf_power_state eRfPowerStateToSet;
|
enum rt_rf_power_state eRfPowerStateToSet;
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
struct btcoexist_priv *pbtpriv = &(pHalData->bt_coexist);
|
struct btcoexist_priv *pbtpriv = &(pHalData->bt_coexist);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -133,14 +133,13 @@ __inline static void _exit_pwrlock(struct semaphore *plock)
|
||||||
#define EXE_PWR_LPS 0x04
|
#define EXE_PWR_LPS 0x04
|
||||||
|
|
||||||
// RF state.
|
// RF state.
|
||||||
typedef enum _rt_rf_power_state
|
enum rt_rf_power_state {
|
||||||
{
|
|
||||||
rf_on, // RF is on after RFSleep or RFOff
|
rf_on, // RF is on after RFSleep or RFOff
|
||||||
rf_sleep, // 802.11 Power Save mode
|
rf_sleep, // 802.11 Power Save mode
|
||||||
rf_off, // HW/SW Radio OFF or Inactive Power Save
|
rf_off, // HW/SW Radio OFF or Inactive Power Save
|
||||||
//=====Add the new RF state above this line=====//
|
//=====Add the new RF state above this line=====//
|
||||||
rf_max
|
rf_max
|
||||||
}rt_rf_power_state;
|
};
|
||||||
|
|
||||||
// RF Off Level for IPS or HW/SW radio off
|
// RF Off Level for IPS or HW/SW radio off
|
||||||
#define RT_RF_OFF_LEVL_ASPM BIT(0) // PCI ASPM
|
#define RT_RF_OFF_LEVL_ASPM BIT(0) // PCI ASPM
|
||||||
|
@ -237,9 +236,8 @@ struct pwrctrl_priv
|
||||||
|
|
||||||
int ps_flag;
|
int ps_flag;
|
||||||
|
|
||||||
rt_rf_power_state rf_pwrstate;//cur power state
|
enum rt_rf_power_state rf_pwrstate;//cur power state
|
||||||
//rt_rf_power_state current_rfpwrstate;
|
enum rt_rf_power_state change_rfpwrstate;
|
||||||
rt_rf_power_state change_rfpwrstate;
|
|
||||||
|
|
||||||
u8 wepkeymask;
|
u8 wepkeymask;
|
||||||
u8 bHWPowerdown;//if support hw power down
|
u8 bHWPowerdown;//if support hw power down
|
||||||
|
@ -276,7 +274,7 @@ int ips_leave(_adapter * padapter);
|
||||||
|
|
||||||
void rtw_ps_processor(_adapter*padapter);
|
void rtw_ps_processor(_adapter*padapter);
|
||||||
|
|
||||||
rt_rf_power_state RfOnOffDetect( PADAPTER pAdapter );
|
enum rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter );
|
||||||
|
|
||||||
s32 LPS_RF_ON_check(PADAPTER padapter, u32 delay_ms);
|
s32 LPS_RF_ON_check(PADAPTER padapter, u32 delay_ms);
|
||||||
void LPS_Enter(PADAPTER padapter);
|
void LPS_Enter(PADAPTER padapter);
|
||||||
|
|
Loading…
Reference in a new issue