#ifndef __RTL871X_CMD_H_
#define __RTL871X_CMD_H_
#include "wlan_bssdef.h"
#include "rtl871x_rf.h"
#define C2H_MEM_SZ …
#include "osdep_service.h"
#include "ieee80211.h"
#define FREE_CMDOBJ_SZ …
#define MAX_CMDSZ …
#define MAX_RSPSZ …
#define MAX_EVTSZ …
#define CMDBUFF_ALIGN_SZ …
struct cmd_obj { … };
struct cmd_priv { … };
struct evt_obj { … };
struct evt_priv { … };
#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) …
void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
void r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
struct cmd_obj *r8712_dequeue_cmd(struct __queue *queue);
void r8712_free_cmd_obj(struct cmd_obj *pcmd);
int r8712_cmd_thread(void *context);
int r8712_init_cmd_priv(struct cmd_priv *pcmdpriv);
void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv);
int r8712_init_evt_priv(struct evt_priv *pevtpriv);
void r8712_free_evt_priv(struct evt_priv *pevtpriv);
enum rtl871x_drvint_cid { … };
enum RFINTFS { … };
struct usb_suspend_parm { … };
struct disconnect_parm { … };
struct setopmode_parm { … };
struct sitesurvey_parm { … };
struct setauth_parm { … };
struct setkey_parm { … };
struct set_stakey_parm { … };
struct set_stakey_rsp { … };
struct SetMacAddr_param { … };
struct set_assocsta_parm { … };
struct set_assocsta_rsp { … };
struct del_assocsta_parm { … };
struct setstapwrstate_parm { … };
struct setbasicrate_parm { … };
struct getbasicrate_parm { … };
struct getbasicrate_rsp { … };
struct setdatarate_parm { … };
enum _RT_CHANNEL_DOMAIN { … };
struct SetChannelPlan_param { … };
struct getdatarate_parm { … };
struct getdatarate_rsp { … };
struct getphy_rsp { … };
struct readBB_parm { … };
struct readBB_rsp { … };
struct readTSSI_parm { … };
struct readTSSI_rsp { … };
struct writeBB_parm { … };
struct writePTM_parm { … };
struct readRF_parm { … };
struct readRF_rsp { … };
struct writeRF_parm { … };
struct setrfintfs_parm { … };
struct getrfintfs_parm { … };
struct drvint_cmd_parm { … };
struct setantenna_parm { … };
struct enrateadaptive_parm { … };
struct settxagctbl_parm { … };
struct gettxagctbl_parm { … };
struct gettxagctbl_rsp { … };
struct setagcctrl_parm { … };
struct setssup_parm { … };
struct getssup_parm { … };
struct getssup_rsp { … };
struct setssdlevel_parm { … };
struct getssdlevel_parm { … };
struct getssdlevel_rsp { … };
struct setssulevel_parm { … };
struct getssulevel_parm { … };
struct getssulevel_rsp { … };
struct setcountjudge_parm { … };
struct getcountjudge_parm { … };
struct getcountjudge_rsp { … };
struct setpwrmode_parm { … };
struct setatim_parm { … };
struct setratable_parm { … };
struct getratable_parm { … };
struct getratable_rsp { … };
struct gettxretrycnt_parm { … };
struct gettxretrycnt_rsp { … };
struct getrxretrycnt_parm { … };
struct getrxretrycnt_rsp { … };
struct getbcnokcnt_parm { … };
struct getbcnokcnt_rsp { … };
struct getbcnerrcnt_parm { … };
struct getbcnerrcnt_rsp { … };
struct getcurtxpwrlevel_parm { … };
struct getcurtxpwrlevel_rsp { … };
struct setdig_parm { … };
struct setra_parm { … };
struct setprobereqextraie_parm { … };
struct setassocreqextraie_parm { … };
struct setproberspextraie_parm { … };
struct setassocrspextraie_parm { … };
struct addBaReq_parm { … };
struct SetChannel_parm { … };
struct DisconnectCtrlEx_param { … };
#define GEN_CMD_CODE(cmd) …
#define H2C_RSP_OFFSET …
#define H2C_SUCCESS …
#define H2C_SUCCESS_RSP …
#define H2C_DUPLICATED …
#define H2C_DROPPED …
#define H2C_PARAMETERS_ERROR …
#define H2C_REJECTED …
#define H2C_CMD_OVERFLOW …
#define H2C_RESERVED …
void r8712_setMacAddr_cmd(struct _adapter *padapter, const u8 *mac_addr);
u8 r8712_sitesurvey_cmd(struct _adapter *padapter, struct ndis_802_11_ssid *pssid);
int r8712_createbss_cmd(struct _adapter *padapter);
void r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key);
int r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork);
void r8712_disassoc_cmd(struct _adapter *padapter);
void r8712_setopmode_cmd(struct _adapter *padapter, enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
int r8712_setdatarate_cmd(struct _adapter *padapter, u8 *rateset);
void r8712_set_chplan_cmd(struct _adapter *padapter, int chplan);
int r8712_getrfreg_cmd(struct _adapter *padapter, u8 offset, u8 *pval);
int r8712_setrfreg_cmd(struct _adapter *padapter, u8 offset, u32 val);
void r8712_addbareq_cmd(struct _adapter *padapter, u8 tid);
void r8712_wdg_wk_cmd(struct _adapter *padapter);
void r8712_survey_cmd_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_disassoc_cmd_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_joinbss_cmd_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_createbss_cmd_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_getbbrfreg_cmdrsp_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_readtssi_cmdrsp_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_setstaKey_cmdrsp_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_setassocsta_cmdrsp_callback(struct _adapter *padapter, struct cmd_obj *pcmd);
void r8712_disconnectCtrlEx_cmd(struct _adapter *adapter, u32 enableDrvCtrl, u32 tryPktCnt,
u32 tryPktInterval, u32 firstStageTO);
struct _cmd_callback { … };
#include "rtl8712_cmd.h"
#endif