#ifndef __RTW_CMD_H_
#define __RTW_CMD_H_
#include <linux/completion.h>
#define C2H_MEM_SZ …
#define FREE_CMDOBJ_SZ …
#define MAX_CMDSZ …
#define MAX_RSPSZ …
#define MAX_EVTSZ …
#define CMDBUFF_ALIGN_SZ …
struct cmd_obj { … };
enum { … };
struct cmd_priv { … };
struct evt_priv { … };
#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) …
#define init_h2fwcmd_w_parm_no_parm_rsp(pcmd, code) …
struct c2h_evt_hdr { … };
struct c2h_evt_hdr_88xx { … };
#define c2h_evt_valid(c2h_evt) …
int rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
extern struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv);
extern void rtw_free_cmd_obj(struct cmd_obj *pcmd);
void rtw_stop_cmd_thread(struct adapter *adapter);
int rtw_cmd_thread(void *context);
extern void rtw_free_cmd_priv(struct cmd_priv *pcmdpriv);
extern void rtw_free_evt_priv(struct evt_priv *pevtpriv);
extern void rtw_evt_notify_isr(struct evt_priv *pevtpriv);
enum { … };
enum { … };
enum { … };
struct joinbss_parm { … };
struct disconnect_parm { … };
struct createbss_parm { … };
struct setopmode_parm { … };
#define RTW_SSID_SCAN_AMOUNT …
#define RTW_CHANNEL_SCAN_AMOUNT …
struct sitesurvey_parm { … };
struct setauth_parm { … };
struct setkey_parm { … };
struct set_stakey_parm { … };
struct set_stakey_rsp { … };
struct set_assocsta_parm { … };
struct set_assocsta_rsp { … };
struct del_assocsta_parm { … };
struct setstapwrstate_parm { … };
struct setbasicrate_parm { … };
struct getbasicrate_parm { … };
struct setdatarate_parm { … };
struct getdatarate_parm { … };
struct setphyinfo_parm { … };
struct getphyinfo_parm { … };
struct setphy_parm { … };
struct getphy_parm { … };
struct Tx_Beacon_param { … };
struct drvextra_cmd_parm { … };
struct getcountjudge_rsp { … };
struct addBaReq_parm { … };
struct set_ch_parm { … };
struct SetChannelPlan_param { … };
struct SetChannelSwitch_param { … };
struct TDLSoption_param { … };
struct RunInThread_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 …
u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid, int ssid_num, struct rtw_ieee80211_channel *ch, int ch_num);
extern u8 rtw_createbss_cmd(struct adapter *padapter);
int rtw_startbss_cmd(struct adapter *padapter, int flags);
struct sta_info;
extern u8 rtw_setstakey_cmd(struct adapter *padapter, struct sta_info *sta, u8 unicast_key, bool enqueue);
extern u8 rtw_clearstakey_cmd(struct adapter *padapter, struct sta_info *sta, u8 enqueue);
extern u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork);
u8 rtw_disassoc_cmd(struct adapter *padapter, u32 deauth_timeout_ms, bool enqueue);
extern u8 rtw_setopmode_cmd(struct adapter *padapter, enum ndis_802_11_network_infrastructure networktype, bool enqueue);
extern u8 rtw_setrfintfs_cmd(struct adapter *padapter, u8 mode);
extern u8 rtw_gettssi_cmd(struct adapter *padapter, u8 offset, u8 *pval);
extern u8 rtw_setfwdig_cmd(struct adapter *padapter, u8 type);
extern u8 rtw_setfwra_cmd(struct adapter *padapter, u8 type);
extern u8 rtw_addbareq_cmd(struct adapter *padapter, u8 tid, u8 *addr);
extern u8 rtw_reset_securitypriv_cmd(struct adapter *padapter);
extern u8 rtw_free_assoc_resources_cmd(struct adapter *padapter);
extern u8 rtw_dynamic_chk_wk_cmd(struct adapter *adapter);
u8 rtw_lps_ctrl_wk_cmd(struct adapter *padapter, u8 lps_ctrl_type, u8 enqueue);
u8 rtw_dm_in_lps_wk_cmd(struct adapter *padapter);
u8 rtw_dm_ra_mask_wk_cmd(struct adapter *padapter, u8 *psta);
extern u8 rtw_ps_cmd(struct adapter *padapter);
u8 rtw_chk_hi_queue_cmd(struct adapter *padapter);
extern u8 rtw_c2h_packet_wk_cmd(struct adapter *padapter, u8 *pbuf, u16 length);
extern u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt);
u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf);
extern void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_joinbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_getbbrfreg_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_setstaKey_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_setassocsta_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd);
extern void rtw_getrttbl_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd);
struct _cmd_callback { … };
enum { … };
#define _GetBBReg_CMD_ …
#define _SetBBReg_CMD_ …
#define _GetRFReg_CMD_ …
#define _SetRFReg_CMD_ …
#endif