rtl1811eu: Convert typedef statements in include/rtl8188e_cmd.h

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-26 14:58:04 -05:00
parent 7449a3d03b
commit cf3dfeecf9
2 changed files with 17 additions and 20 deletions

View file

@ -237,7 +237,7 @@ void rtl8188e_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg, u8 rssi_level)
void rtl8188e_set_FwPwrMode_cmd(PADAPTER padapter, u8 Mode) void rtl8188e_set_FwPwrMode_cmd(PADAPTER padapter, u8 Mode)
{ {
SETPWRMODE_PARM H2CSetPwrMode; struct setpwrmode_parm H2CSetPwrMode;
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
u8 RLBM = 0; /* 0:Min, 1:Max , 2:User define */ u8 RLBM = 0; /* 0:Min, 1:Max , 2:User define */
_func_enter_; _func_enter_;
@ -555,8 +555,7 @@ static void SetFwRsvdPagePkt(PADAPTER padapter, bool bDLFinished)
u8 PageNum, PageNeed, TxDescLen; u8 PageNum, PageNeed, TxDescLen;
u16 BufIndex; u16 BufIndex;
u32 TotalPacketLen; u32 TotalPacketLen;
RSVDPAGE_LOC RsvdPageLoc; struct rsvdpage_loc RsvdPageLoc;
DBG_88E("%s\n", __func__); DBG_88E("%s\n", __func__);
@ -665,7 +664,7 @@ exit:
void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus) void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus)
{ {
JOINBSSRPT_PARM JoinBssRptParm; struct joinbssrpt_parm JoinBssRptParm;
struct hal_data_8188e *pHalData = GET_HAL_DATA(padapter); struct hal_data_8188e *pHalData = GET_HAL_DATA(padapter);
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv); struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
@ -868,8 +867,8 @@ void rtl8188es_set_wowlan_cmd(_adapter* padapter, u8 enable)
u8 res=_SUCCESS; u8 res=_SUCCESS;
u32 test=0; u32 test=0;
struct recv_priv *precvpriv = &padapter->recvpriv; struct recv_priv *precvpriv = &padapter->recvpriv;
SETWOWLAN_PARM pwowlan_parm; struct setwowlan_parm pwowlan_parm;
SETAOAC_GLOBAL_INFO paoac_global_info_parm; struct setaoac_glocal_info paoac_global_info_parm;
struct pwrctrl_priv *pwrpriv=&padapter->pwrctrlpriv; struct pwrctrl_priv *pwrpriv=&padapter->pwrctrlpriv;
_func_enter_; _func_enter_;

View file

@ -20,8 +20,7 @@
#ifndef __RTL8188E_CMD_H__ #ifndef __RTL8188E_CMD_H__
#define __RTL8188E_CMD_H__ #define __RTL8188E_CMD_H__
typedef enum _RTL8188E_H2C_CMD_ID enum RTL8188E_H2C_CMD_ID {
{
//Class Common //Class Common
H2C_COM_RSVD_PAGE =0x00, H2C_COM_RSVD_PAGE =0x00,
H2C_COM_MEDIA_STATUS_RPT =0x01, H2C_COM_MEDIA_STATUS_RPT =0x01,
@ -63,7 +62,7 @@ typedef enum _RTL8188E_H2C_CMD_ID
//Class //Class
H2C_RESET_TSF =0xc0, H2C_RESET_TSF =0xc0,
}RTL8188E_H2C_CMD_ID; };
struct cmd_msg_parm { struct cmd_msg_parm {
u8 eid; //element id u8 eid; //element id
@ -75,34 +74,33 @@ enum{
PWRS PWRS
}; };
typedef struct _SETPWRMODE_PARM { struct setpwrmode_parm {
u8 Mode;//0:Active,1:LPS,2:WMMPS u8 Mode;//0:Active,1:LPS,2:WMMPS
u8 SmartPS_RLBM;//LPS=0:PS_Poll,1:PS_Poll,2:NullData,WMM=0:PS_Poll,1:NullData u8 SmartPS_RLBM;//LPS=0:PS_Poll,1:PS_Poll,2:NullData,WMM=0:PS_Poll,1:NullData
u8 AwakeInterval; // unit: beacon interval u8 AwakeInterval; // unit: beacon interval
u8 bAllQueueUAPSD; u8 bAllQueueUAPSD;
u8 PwrState;//AllON(0x0c),RFON(0x04),RFOFF(0x00) u8 PwrState;//AllON(0x0c),RFON(0x04),RFOFF(0x00)
} SETPWRMODE_PARM, *PSETPWRMODE_PARM; };
struct H2C_SS_RFOFF_PARAM{ struct H2C_SS_RFOFF_PARAM{
u8 ROFOn; // 1: on, 0:off u8 ROFOn; // 1: on, 0:off
u16 gpio_period; // unit: 1024 us u16 gpio_period; // unit: 1024 us
}__attribute__ ((packed)); }__attribute__ ((packed));
struct joinbssrpt_parm {
typedef struct JOINBSSRPT_PARM{
u8 OpMode; // RT_MEDIA_STATUS u8 OpMode; // RT_MEDIA_STATUS
#ifdef CONFIG_WOWLAN #ifdef CONFIG_WOWLAN
u8 MacID; // MACID u8 MacID; // MACID
#endif //CONFIG_WOWLAN #endif //CONFIG_WOWLAN
}JOINBSSRPT_PARM, *PJOINBSSRPT_PARM; };
typedef struct _RSVDPAGE_LOC { struct rsvdpage_loc {
u8 LocProbeRsp; u8 LocProbeRsp;
u8 LocPsPoll; u8 LocPsPoll;
u8 LocNullData; u8 LocNullData;
u8 LocQosNull; u8 LocQosNull;
u8 LocBTQosNull; u8 LocBTQosNull;
} RSVDPAGE_LOC, *PRSVDPAGE_LOC; };
struct P2P_PS_Offload_t { struct P2P_PS_Offload_t {
u8 Offload_En:1; u8 Offload_En:1;
@ -137,18 +135,18 @@ void CheckFwRsvdPageContent(PADAPTER padapter);
void rtl8188e_set_FwMediaStatus_cmd(PADAPTER padapter, __le16 mstatus_rpt); void rtl8188e_set_FwMediaStatus_cmd(PADAPTER padapter, __le16 mstatus_rpt);
#ifdef CONFIG_WOWLAN #ifdef CONFIG_WOWLAN
typedef struct _SETWOWLAN_PARM{ struct setwowlan_parm {
u8 mode; u8 mode;
u8 gpio_index; u8 gpio_index;
u8 gpio_duration; u8 gpio_duration;
u8 second_mode; u8 second_mode;
u8 reserve; u8 reserve;
}SETWOWLAN_PARM, *PSETWOWLAN_PARM; };
typedef struct _SETAOAC_GLOBAL_INFO{ struct setaoac_glocal_info {
u8 pairwiseEncAlg; u8 pairwiseEncAlg;
u8 groupEncAlg; u8 groupEncAlg;
}SETAOAC_GLOBAL_INFO, *PSETAOAC_GLOBAL_INFO; };
#define FW_WOWLAN_FUN_EN BIT(0) #define FW_WOWLAN_FUN_EN BIT(0)
#define FW_WOWLAN_PATTERN_MATCH BIT(1) #define FW_WOWLAN_PATTERN_MATCH BIT(1)