Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rtl871x_cmd.h File Reference
#include "wlan_bssdef.h"
#include "rtl871x_rf.h"
#include "osdep_service.h"
#include "ieee80211.h"
#include "rtl8712_cmd.h"

Go to the source code of this file.

Data Structures

struct  cmd_obj
 
struct  cmd_priv
 
struct  evt_obj
 
struct  evt_priv
 
struct  usb_suspend_parm
 
struct  joinbss_parm
 
struct  disconnect_parm
 
struct  createbss_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
 
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
 
struct  _cmd_callback
 

Macros

#define C2H_MEM_SZ   (16*1024)
 
#define FREE_CMDOBJ_SZ   128
 
#define MAX_CMDSZ   512
 
#define MAX_RSPSZ   512
 
#define MAX_EVTSZ   1024
 
#define CMDBUFF_ALIGN_SZ   512
 
#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code)
 
#define GEN_CMD_CODE(cmd)   cmd ## _CMD_
 
#define H2C_RSP_OFFSET   512
 
#define H2C_SUCCESS   0x00
 
#define H2C_SUCCESS_RSP   0x01
 
#define H2C_DUPLICATED   0x02
 
#define H2C_DROPPED   0x03
 
#define H2C_PARAMETERS_ERROR   0x04
 
#define H2C_REJECTED   0x05
 
#define H2C_CMD_OVERFLOW   0x06
 
#define H2C_RESERVED   0x07
 

Enumerations

enum  rtl871x_drvint_cid { NONE_WK_CID, WDG_WK_CID, MAX_WK_CID }
 
enum  RFINTFS { SWSI, HWSI, HWPI }
 
enum  _RT_CHANNEL_DOMAIN {
  RT_CHANNEL_DOMAIN_FCC = 0, RT_CHANNEL_DOMAIN_IC = 1, RT_CHANNEL_DOMAIN_ETSI = 2, RT_CHANNEL_DOMAIN_SPAIN = 3,
  RT_CHANNEL_DOMAIN_FRANCE = 4, RT_CHANNEL_DOMAIN_MKK = 5, RT_CHANNEL_DOMAIN_MKK1 = 6, RT_CHANNEL_DOMAIN_ISRAEL = 7,
  RT_CHANNEL_DOMAIN_TELEC = 8, RT_CHANNEL_DOMAIN_MIC = 9, RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN = 10, RT_CHANNEL_DOMAIN_WORLD_WIDE_13 = 11,
  RT_CHANNEL_DOMAIN_TELEC_NETGEAR = 12, RT_CHANNEL_DOMAIN_NCC = 13, RT_CHANNEL_DOMAIN_5G = 14, RT_CHANNEL_DOMAIN_5G_40M = 15,
  RT_CHANNEL_DOMAIN_MAX
}
 

Functions

u32 r8712_enqueue_cmd (struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
 
u32 r8712_enqueue_cmd_ex (struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
 
struct cmd_objr8712_dequeue_cmd (struct __queue *queue)
 
void r8712_free_cmd_obj (struct cmd_obj *pcmd)
 
int r8712_cmd_thread (void *context)
 
u32 r8712_init_cmd_priv (struct cmd_priv *pcmdpriv)
 
void r8712_free_cmd_priv (struct cmd_priv *pcmdpriv)
 
u32 r8712_init_evt_priv (struct evt_priv *pevtpriv)
 
void r8712_free_evt_priv (struct evt_priv *pevtpriv)
 
u8 r8712_setMacAddr_cmd (struct _adapter *padapter, u8 *mac_addr)
 
u8 r8712_setassocsta_cmd (struct _adapter *padapter, u8 *mac_addr)
 
u8 r8712_sitesurvey_cmd (struct _adapter *padapter, struct ndis_802_11_ssid *pssid)
 
u8 r8712_createbss_cmd (struct _adapter *padapter)
 
u8 r8712_setstakey_cmd (struct _adapter *padapter, u8 *psta, u8 unicast_key)
 
u8 r8712_joinbss_cmd (struct _adapter *padapter, struct wlan_network *pnetwork)
 
u8 r8712_disassoc_cmd (struct _adapter *padapter)
 
u8 r8712_setopmode_cmd (struct _adapter *padapter, enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype)
 
u8 r8712_setdatarate_cmd (struct _adapter *padapter, u8 *rateset)
 
u8 r8712_set_chplan_cmd (struct _adapter *padapter, int chplan)
 
u8 r8712_setbasicrate_cmd (struct _adapter *padapter, u8 *rateset)
 
u8 r8712_getrfreg_cmd (struct _adapter *padapter, u8 offset, u8 *pval)
 
u8 r8712_setrfintfs_cmd (struct _adapter *padapter, u8 mode)
 
u8 r8712_setrfreg_cmd (struct _adapter *padapter, u8 offset, u32 val)
 
u8 r8712_setrttbl_cmd (struct _adapter *padapter, struct setratable_parm *prate_table)
 
u8 r8712_gettssi_cmd (struct _adapter *padapter, u8 offset, u8 *pval)
 
u8 r8712_setptm_cmd (struct _adapter *padapter, u8 type)
 
u8 r8712_setfwdig_cmd (struct _adapter *padapter, u8 type)
 
u8 r8712_setfwra_cmd (struct _adapter *padapter, u8 type)
 
u8 r8712_addbareq_cmd (struct _adapter *padapter, u8 tid)
 
u8 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)
 
u8 r8712_disconnectCtrlEx_cmd (struct _adapter *adapter, u32 enableDrvCtrl, u32 tryPktCnt, u32 tryPktInterval, u32 firstStageTO)
 

Macro Definition Documentation

#define C2H_MEM_SZ   (16*1024)

Definition at line 31 of file rtl871x_cmd.h.

#define CMDBUFF_ALIGN_SZ   512

Definition at line 40 of file rtl871x_cmd.h.

#define FREE_CMDOBJ_SZ   128

Definition at line 36 of file rtl871x_cmd.h.

#define GEN_CMD_CODE (   cmd)    cmd ## _CMD_

Definition at line 717 of file rtl871x_cmd.h.

#define H2C_CMD_OVERFLOW   0x06

Definition at line 735 of file rtl871x_cmd.h.

#define H2C_DROPPED   0x03

Definition at line 732 of file rtl871x_cmd.h.

#define H2C_DUPLICATED   0x02

Definition at line 731 of file rtl871x_cmd.h.

#define H2C_PARAMETERS_ERROR   0x04

Definition at line 733 of file rtl871x_cmd.h.

#define H2C_REJECTED   0x05

Definition at line 734 of file rtl871x_cmd.h.

#define H2C_RESERVED   0x07

Definition at line 736 of file rtl871x_cmd.h.

#define H2C_RSP_OFFSET   512

Definition at line 728 of file rtl871x_cmd.h.

#define H2C_SUCCESS   0x00

Definition at line 729 of file rtl871x_cmd.h.

#define H2C_SUCCESS_RSP   0x01

Definition at line 730 of file rtl871x_cmd.h.

#define init_h2fwcmd_w_parm_no_rsp (   pcmd,
  pparm,
  code 
)
Value:
do {\
_init_listhead(&pcmd->list);\
pcmd->cmdcode = code;\
pcmd->parmbuf = (u8 *)(pparm);\
pcmd->cmdsz = sizeof(*pparm);\
pcmd->rsp = NULL;\
pcmd->rspsz = 0;\
} while (0)

Definition at line 84 of file rtl871x_cmd.h.

#define MAX_CMDSZ   512

Definition at line 37 of file rtl871x_cmd.h.

#define MAX_EVTSZ   1024

Definition at line 39 of file rtl871x_cmd.h.

#define MAX_RSPSZ   512

Definition at line 38 of file rtl871x_cmd.h.

Enumeration Type Documentation

Enumerator:
RT_CHANNEL_DOMAIN_FCC 
RT_CHANNEL_DOMAIN_IC 
RT_CHANNEL_DOMAIN_ETSI 
RT_CHANNEL_DOMAIN_SPAIN 
RT_CHANNEL_DOMAIN_FRANCE 
RT_CHANNEL_DOMAIN_MKK 
RT_CHANNEL_DOMAIN_MKK1 
RT_CHANNEL_DOMAIN_ISRAEL 
RT_CHANNEL_DOMAIN_TELEC 
RT_CHANNEL_DOMAIN_MIC 
RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN 
RT_CHANNEL_DOMAIN_WORLD_WIDE_13 
RT_CHANNEL_DOMAIN_TELEC_NETGEAR 
RT_CHANNEL_DOMAIN_NCC 
RT_CHANNEL_DOMAIN_5G 
RT_CHANNEL_DOMAIN_5G_40M 
RT_CHANNEL_DOMAIN_MAX 

Definition at line 323 of file rtl871x_cmd.h.

enum RFINTFS
Enumerator:
SWSI 
HWSI 
HWPI 

Definition at line 110 of file rtl871x_cmd.h.

Enumerator:
NONE_WK_CID 
WDG_WK_CID 
MAX_WK_CID 

Definition at line 104 of file rtl871x_cmd.h.

Function Documentation

u8 r8712_addbareq_cmd ( struct _adapter padapter,
u8  tid 
)

Definition at line 843 of file rtl871x_cmd.c.

int r8712_cmd_thread ( void context)

Definition at line 322 of file rtl8712_cmd.c.

u8 r8712_createbss_cmd ( struct _adapter padapter)

Definition at line 452 of file rtl871x_cmd.c.

void r8712_createbss_cmd_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 921 of file rtl871x_cmd.c.

struct cmd_obj* r8712_dequeue_cmd ( struct __queue queue)
read

Definition at line 199 of file rtl871x_cmd.c.

u8 r8712_disassoc_cmd ( struct _adapter padapter)

Definition at line 628 of file rtl871x_cmd.c.

void r8712_disassoc_cmd_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 897 of file rtl871x_cmd.c.

u8 r8712_disconnectCtrlEx_cmd ( struct _adapter adapter,
u32  enableDrvCtrl,
u32  tryPktCnt,
u32  tryPktInterval,
u32  firstStageTO 
)

Definition at line 1039 of file rtl871x_cmd.c.

u32 r8712_enqueue_cmd ( struct cmd_priv pcmdpriv,
struct cmd_obj obj 
)

Definition at line 171 of file rtl871x_cmd.c.

u32 r8712_enqueue_cmd_ex ( struct cmd_priv pcmdpriv,
struct cmd_obj obj 
)

Definition at line 182 of file rtl871x_cmd.c.

void r8712_free_cmd_obj ( struct cmd_obj pcmd)

Definition at line 204 of file rtl871x_cmd.c.

void r8712_free_cmd_priv ( struct cmd_priv pcmdpriv)

Definition at line 166 of file rtl871x_cmd.c.

void r8712_free_evt_priv ( struct evt_priv pevtpriv)

Definition at line 161 of file rtl871x_cmd.c.

void r8712_getbbrfreg_cmdrsp_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 435 of file rtl871x_cmd.c.

u8 r8712_getrfreg_cmd ( struct _adapter padapter,
u8  offset,
u8 pval 
)

Definition at line 410 of file rtl871x_cmd.c.

u8 r8712_gettssi_cmd ( struct _adapter padapter,
u8  offset,
u8 pval 
)

Definition at line 763 of file rtl871x_cmd.c.

u32 r8712_init_cmd_priv ( struct cmd_priv pcmdpriv)

Definition at line 151 of file rtl871x_cmd.c.

u32 r8712_init_evt_priv ( struct evt_priv pevtpriv)

Definition at line 156 of file rtl871x_cmd.c.

u8 r8712_joinbss_cmd ( struct _adapter padapter,
struct wlan_network pnetwork 
)

Definition at line 480 of file rtl871x_cmd.c.

void r8712_joinbss_cmd_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 912 of file rtl871x_cmd.c.

void r8712_readtssi_cmdrsp_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 443 of file rtl871x_cmd.c.

u8 r8712_set_chplan_cmd ( struct _adapter padapter,
int  chplan 
)

Definition at line 280 of file rtl871x_cmd.c.

u8 r8712_setassocsta_cmd ( struct _adapter padapter,
u8 mac_addr 
)

Definition at line 812 of file rtl871x_cmd.c.

void r8712_setassocsta_cmdrsp_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 1014 of file rtl871x_cmd.c.

u8 r8712_setbasicrate_cmd ( struct _adapter padapter,
u8 rateset 
)

Definition at line 302 of file rtl871x_cmd.c.

u8 r8712_setdatarate_cmd ( struct _adapter padapter,
u8 rateset 
)

Definition at line 257 of file rtl871x_cmd.c.

u8 r8712_setfwdig_cmd ( struct _adapter padapter,
u8  type 
)

Definition at line 346 of file rtl871x_cmd.c.

u8 r8712_setfwra_cmd ( struct _adapter padapter,
u8  type 
)

Definition at line 367 of file rtl871x_cmd.c.

u8 r8712_setMacAddr_cmd ( struct _adapter padapter,
u8 mac_addr 
)

Definition at line 790 of file rtl871x_cmd.c.

u8 r8712_setopmode_cmd ( struct _adapter padapter,
enum NDIS_802_11_NETWORK_INFRASTRUCTURE  networktype 
)

Definition at line 649 of file rtl871x_cmd.c.

u8 r8712_setptm_cmd ( struct _adapter padapter,
u8  type 
)

Definition at line 325 of file rtl871x_cmd.c.

u8 r8712_setrfintfs_cmd ( struct _adapter padapter,
u8  mode 
)

Definition at line 718 of file rtl871x_cmd.c.

u8 r8712_setrfreg_cmd ( struct _adapter padapter,
u8  offset,
u32  val 
)

Definition at line 388 of file rtl871x_cmd.c.

u8 r8712_setrttbl_cmd ( struct _adapter padapter,
struct setratable_parm prate_table 
)

Definition at line 740 of file rtl871x_cmd.c.

u8 r8712_setstakey_cmd ( struct _adapter padapter,
u8 psta,
u8  unicast_key 
)

Definition at line 672 of file rtl871x_cmd.c.

void r8712_setstaKey_cmdrsp_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 998 of file rtl871x_cmd.c.

u8 r8712_sitesurvey_cmd ( struct _adapter padapter,
struct ndis_802_11_ssid pssid 
)

Definition at line 222 of file rtl871x_cmd.c.

void r8712_survey_cmd_callback ( struct _adapter padapter,
struct cmd_obj pcmd 
)

Definition at line 888 of file rtl871x_cmd.c.

u8 r8712_wdg_wk_cmd ( struct _adapter padapter)

Definition at line 865 of file rtl871x_cmd.c.