Remove typedef from enum.
Rename enum.
Rename uses.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
{
struct r8192_priv *priv = rtllib_priv(dev);
#ifdef ENABLE_PS
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
pAdapter->HalFunc.GetHwRegHandler(pAdapter, HW_VAR_RF_STATE, (pu1Byte)(&rtState));
#ifdef ENABLE_PS
- RT_RF_POWER_STATE rtstate;
+ enum rt_rf_power_state rtstate;
pAdapter->HalFunc.GetHwRegHandler(pAdapter, HW_VAR_RF_STATE, (pu1Byte)(&rtState));
bool
SetRFPowerState8190(
struct net_device* dev,
- RT_RF_POWER_STATE eRFPowerState
+ enum rt_rf_power_state eRFPowerState
)
{
struct r8192_priv *priv = rtllib_priv(dev);
bool
SetRFPowerState(
struct net_device* dev,
- RT_RF_POWER_STATE eRFPowerState
+ enum rt_rf_power_state eRFPowerState
)
{
struct r8192_priv *priv = rtllib_priv(dev);
bool
SetRFPowerState(
struct net_device* dev,
- RT_RF_POWER_STATE eRFPowerState
+ enum rt_rf_power_state eRFPowerState
);
#define PHY_SetRFPowerState SetRFPowerState
u16 usConfig = 0;
u8 i;
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
rtState = priv->rtllib->eRFPowerState;
if (priv->rtllib->PowerSaveControl.bInactivePs){
if (rtState == eRfOff){
bool
MgntActSet_RF_State(
struct net_device* dev,
- RT_RF_POWER_STATE StateToSet,
+ enum rt_rf_power_state StateToSet,
RT_RF_CHANGE_SOURCE ChangeSource,
bool ProtectOrNot
)
struct rtllib_device * ieee = priv->rtllib;
bool bActionAllowed = false;
bool bConnectBySSID = false;
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
u16 RFWaitCounter = 0;
unsigned long flag;
RT_TRACE((COMP_PS | COMP_RF), "===>MgntActSet_RF_State(): StateToSet(%d)\n",StateToSet);
struct r8192_priv *priv = rtllib_priv(dev);
enum reset_type TxResetType = RESET_TYPE_NORESET;
enum reset_type RxResetType = RESET_TYPE_NORESET;
- RT_RF_POWER_STATE rfState;
+ enum rt_rf_power_state rfState;
rfState = priv->rtllib->eRFPowerState;
bool
MgntActSet_RF_State(
struct net_device* dev,
- RT_RF_POWER_STATE StateToSet,
+ enum rt_rf_power_state StateToSet,
RT_RF_CHANGE_SOURCE ChangeSource,
bool ProtectOrNot
);
struct r8192_priv *priv = container_of_dwork_rsl(data, struct r8192_priv,gpio_change_rf_wq);
struct net_device *dev = priv->rtllib->dev;
u8 tmp1byte;
- RT_RF_POWER_STATE eRfPowerStateToSet;
+ enum rt_rf_power_state eRfPowerStateToSet;
bool bActuallySet = false;
char *argv[3];
{
struct r8192_priv *priv = rtllib_priv(dev);
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
if (pPSC->bInactivePs)
{
{
struct r8192_priv *priv = rtllib_priv(dev);
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
if (pPSC->bInactivePs)
{
void rtllib_ips_leave_wq(struct net_device *dev)
{
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
rtState = priv->rtllib->eRFPowerState;
if (priv->rtllib->PowerSaveControl.bInactivePs){
struct r8192_priv *priv = rtllib_priv(dev);
struct rtllib_device* ieee = netdev_priv_rsl(dev);
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
int ret;
if (priv->bHwRadioOff == true)
{
struct r8192_priv *priv = rtllib_priv(dev);
struct rtllib_device* ieee = priv->rtllib;
- RT_RF_POWER_STATE rtState;
+ enum rt_rf_power_state rtState;
int ret;
if (!(ieee->softmac_features & IEEE_SOFTMAC_SCAN)){
};
#define MAX_NUM_RATES 264
-typedef enum _RT_RF_POWER_STATE
-{
+enum rt_rf_power_state {
eRfOn,
eRfSleep,
eRfOff
-} RT_RF_POWER_STATE;
+};
#define MAX_SUPPORT_WOL_PATTERN_NUM 8
bool bIPSModeBackup;
bool bHaltAdapterClkRQ;
bool bSwRfProcessing;
- RT_RF_POWER_STATE eInactivePowerState;
+ enum rt_rf_power_state eInactivePowerState;
struct work_struct InactivePsWorkItem;
struct timer_list InactivePsTimer;
bool FirstIe_InScan;
bool be_scan_inprogress;
bool beinretry;
- RT_RF_POWER_STATE eRFPowerState;
+ enum rt_rf_power_state eRFPowerState;
RT_RF_CHANGE_SOURCE RfOffReason;
bool is_set_key;
bool wx_set_enc;