dest_not_QSTA = 0x32, /* 50 */
};
-typedef enum _RT_PS_MODE {
- eActive, /* Active/Continuous access. */
- eMaxPs, /* Max power save mode. */
- eFastPs /* Fast power save mode. */
-} RT_PS_MODE;
+enum rt_ps_mode {
+ ACTIVE, /* Active/Continuous access. */
+ MAX_PS, /* Max power save mode. */
+ FAST_PS /* Fast power save mode. */
+};
/* by amy for power save. */
struct r8180_priv {
bool SetRFPowerStateInProgress;
u8 RFProgType;
bool bLeisurePs;
- RT_PS_MODE dot11PowerSaveMode;
+ enum rt_ps_mode dot11PowerSaveMode;
/* u32 NumRxOkInPeriod;*/ /* YJ,del,080828 */
/* u32 NumTxOkInPeriod;*/ /* YJ,del,080828 */
u8 TxPollingTimes;
priv->led_strategy = SW_LED_MODE0;
priv->TxPollingTimes = 0; /* lzm add 080826 */
priv->bLeisurePs = true;
- priv->dot11PowerSaveMode = eActive;
+ priv->dot11PowerSaveMode = ACTIVE;
priv->AdMinCheckPeriod = 5;
priv->AdMaxCheckPeriod = 10;
priv->AdMaxRxSsThreshold = 30; /* 60->30 */
* Change current and default preamble mode.
*/
static bool MgntActSet_802_11_PowerSaveMode(struct r8180_priv *priv,
- RT_PS_MODE rtPsMode)
+ enum rt_ps_mode rtPsMode)
{
/* Currently, we do not change power save mode on IBSS mode. */
if (priv->ieee80211->iw_mode == IW_MODE_ADHOC)