[go: nahoru, domu]

1/******************************************************************************
2 *
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 ******************************************************************************/
15#ifndef __RTW_CMD_H_
16#define __RTW_CMD_H_
17
18#include <wlan_bssdef.h>
19#include <rtw_rf.h>
20#include <rtw_led.h>
21
22#define C2H_MEM_SZ (16*1024)
23
24#include <osdep_service.h>
25#include <ieee80211.h> /*  <ieee80211/ieee80211.h> */
26
27
28#define MAX_CMDSZ	1024
29#define MAX_RSPSZ	512
30#define MAX_EVTSZ	1024
31
32#define CMDBUFF_ALIGN_SZ 512
33
34struct cmd_obj {
35	struct work_struct work;
36	struct rtw_adapter *padapter;
37	u16	cmdcode;
38	int	res;
39	u32	cmdsz;
40	u8	*parmbuf;
41	u8	*rsp;
42	u32	rspsz;
43};
44
45struct cmd_priv {
46	struct workqueue_struct *wq;
47	u32	cmd_issued_cnt;
48	u32	cmd_done_cnt;
49	u32	rsp_cnt;
50	struct rtw_adapter *padapter;
51};
52
53#define C2H_QUEUE_MAX_LEN 10
54
55struct	evt_priv {
56	struct workqueue_struct *wq;
57	struct work_struct irq_wk;
58};
59
60#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
61do {\
62	pcmd->cmdcode = code;\
63	pcmd->parmbuf = (u8 *)(pparm);\
64	pcmd->cmdsz = sizeof (*pparm);\
65	pcmd->rsp = NULL;\
66	pcmd->rspsz = 0;\
67} while(0)
68
69struct c2h_evt_hdr {
70	u8 id:4;
71	u8 plen:4;
72	u8 seq;
73	u8 payload[0];
74};
75
76/*
77 * Do not reorder - this allows for struct evt_work to be passed on to
78 * rtw_c2h_wk_cmd23a() as a 'struct c2h_evt_hdr *' without making an
79 * additional copy.
80 */
81struct evt_work {
82	union {
83		struct c2h_evt_hdr c2h_evt;
84		u8 buf[16];
85	} u;
86	struct work_struct work;
87	struct rtw_adapter *adapter;
88};
89
90#define c2h_evt_exist(c2h_evt) ((c2h_evt)->id || (c2h_evt)->plen)
91
92void rtw_evt_work(struct work_struct *work);
93
94int rtw_enqueue_cmd23a(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
95void rtw_free_cmd_obj23a(struct cmd_obj *pcmd);
96
97int rtw_cmd_thread23a(void *context);
98
99int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv);
100
101u32 rtw_init_evt_priv23a (struct evt_priv *pevtpriv);
102void rtw_free_evt_priv23a (struct evt_priv *pevtpriv);
103void rtw_cmd_clr_isr23a(struct cmd_priv *pcmdpriv);
104void rtw_evt_notify_isr(struct evt_priv *pevtpriv);
105
106enum rtw_drvextra_cmd_id
107{
108	NONE_WK_CID,
109	DYNAMIC_CHK_WK_CID,
110	DM_CTRL_WK_CID,
111	PBC_POLLING_WK_CID,
112	POWER_SAVING_CTRL_WK_CID,/* IPS,AUTOSuspend */
113	LPS_CTRL_WK_CID,
114	ANT_SELECT_WK_CID,
115	P2P_PS_WK_CID,
116	P2P_PROTO_WK_CID,
117	CHECK_HIQ_WK_CID,/* for softap mode, check hi queue if empty */
118	C2H_WK_CID,
119	RTP_TIMER_CFG_WK_CID,
120	MAX_WK_CID
121};
122
123enum LPS_CTRL_TYPE
124{
125	LPS_CTRL_SCAN=0,
126	LPS_CTRL_JOINBSS=1,
127	LPS_CTRL_CONNECT=2,
128	LPS_CTRL_DISCONNECT=3,
129	LPS_CTRL_SPECIAL_PACKET=4,
130	LPS_CTRL_LEAVE=5,
131};
132
133enum RFINTFS {
134	SWSI,
135	HWSI,
136	HWPI,
137};
138
139/*
140Caller Mode: Infra, Ad-HoC(C)
141
142Notes: To enter USB suspend mode
143
144Command Mode
145
146*/
147struct usb_suspend_parm {
148	u32 action;/*  1: sleep, 0:resume */
149};
150
151/*
152Caller Mode: Infra, Ad-HoC
153
154Notes: To join a known BSS.
155
156Command-Event Mode
157
158*/
159
160/*
161Caller Mode: Infra, Ad-HoC(C)
162
163Notes: To disconnect the current associated BSS
164
165Command Mode
166
167*/
168struct disconnect_parm {
169	u32 deauth_timeout_ms;
170};
171
172struct	setopmode_parm {
173	enum nl80211_iftype mode;
174};
175
176/*
177Caller Mode: AP, Ad-HoC, Infra
178
179Notes: To ask RTL8711 performing site-survey
180
181Command-Event Mode
182
183*/
184
185#define RTW_SSID_SCAN_AMOUNT 9 /*  for WEXT_CSCAN_AMOUNT 9 */
186#define RTW_CHANNEL_SCAN_AMOUNT (14+37)
187struct sitesurvey_parm {
188	int scan_mode;	/* active: 1, passive: 0 */
189	u8 ssid_num;
190	u8 ch_num;
191	struct cfg80211_ssid ssid[RTW_SSID_SCAN_AMOUNT];
192	struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT];
193};
194
195/*
196Caller Mode: Any
197
198Notes: To set the auth type of RTL8711. open/shared/802.1x
199
200Command Mode
201
202*/
203struct setauth_parm {
204	u8 mode;  /* 0: legacy open, 1: legacy shared 2: 802.1x */
205	u8 _1x;   /* 0: PSK, 1: TLS */
206	u8 rsvd[2];
207};
208
209/*
210Caller Mode: Infra
211
212a. algorithm: wep40, wep104, tkip & aes
213b. keytype: grp key/unicast key
214c. key contents
215
216when shared key ==> keyid is the camid
217when 802.1x ==> keyid [0:1] ==> grp key
218when 802.1x ==> keyid > 2 ==> unicast key
219
220*/
221struct setkey_parm {
222	u32	algorithm;	/*  encryption algorithm, could be none, wep40, TKIP, CCMP, wep104 */
223	u8	keyid;
224	u8	grpkey;		/*  1: this is the grpkey for 802.1x. 0: this is the unicast key for 802.1x */
225	u8	set_tx;		/*  1: main tx key for wep. 0: other key. */
226	u8	key[16];	/*  this could be 40 or 104 */
227};
228
229/*
230When in AP or Ad-Hoc mode, this is used to
231allocate an sw/hw entry for a newly associated sta.
232
233Command
234
235when shared key ==> algorithm/keyid
236
237*/
238struct set_stakey_parm {
239	u8	addr[ETH_ALEN];
240	u8	id;/*  currently for erasing cam entry if algorithm == _NO_PRIVACY_ */
241	u32	algorithm;
242	u8	key[16];
243};
244
245struct set_stakey_rsp {
246	u8	addr[ETH_ALEN];
247	u8	keyid;
248	u8	rsvd;
249};
250
251/*
252Caller Ad-Hoc/AP
253
254Command -Rsp(AID == CAMID) mode
255
256This is to force fw to add an sta_data entry per driver's request.
257
258FW will write an cam entry associated with it.
259
260*/
261struct set_assocsta_parm {
262	u8	addr[ETH_ALEN];
263};
264
265struct set_assocsta_rsp {
266	u8	cam_id;
267	u8	rsvd[3];
268};
269
270/*
271	Caller Ad-Hoc/AP
272
273	Command mode
274
275	This is to force fw to del an sta_data entry per driver's request
276
277	FW will invalidate the cam entry associated with it.
278
279*/
280struct del_assocsta_parm {
281	u8	addr[ETH_ALEN];
282};
283
284/*
285Caller Mode: AP/Ad-HoC(M)
286
287Notes: To notify fw that given staid has changed its power state
288
289Command Mode
290
291*/
292struct setstapwrstate_parm {
293	u8	staid;
294	u8	status;
295	u8	hwaddr[6];
296};
297
298/*
299Caller Mode: Any
300
301Notes: To setup the basic rate of RTL8711
302
303Command Mode
304
305*/
306struct	setbasicrate_parm {
307	u8	basicrates[NumRates];
308};
309
310/*
311Caller Mode: Any
312
313Notes: To read the current basic rate
314
315Command-Rsp Mode
316
317*/
318struct getbasicrate_parm {
319	u32 rsvd;
320};
321
322struct getbasicrate_rsp {
323	u8 basicrates[NumRates];
324};
325
326/*
327Caller Mode: Any
328
329Notes: To setup the data rate of RTL8711
330
331Command Mode
332
333*/
334struct setdatarate_parm {
335	u8	mac_id;
336	u8	datarates[NumRates];
337};
338
339/*
340Caller Mode: Any
341
342Notes: To read the current data rate
343
344Command-Rsp Mode
345
346*/
347struct getdatarate_parm {
348	u32 rsvd;
349};
350
351struct getdatarate_rsp {
352	u8 datarates[NumRates];
353};
354
355
356/*
357Caller Mode: Any
358AP: AP can use the info for the contents of beacon frame
359Infra: STA can use the info when sitesurveying
360Ad-HoC(M): Like AP
361Ad-HoC(C): Like STA
362
363
364Notes: To set the phy capability of the NIC
365
366Command Mode
367
368*/
369
370struct	setphyinfo_parm {
371	struct regulatory_class class_sets[NUM_REGULATORYS];
372	u8	status;
373};
374
375struct	getphyinfo_parm {
376	u32 rsvd;
377};
378
379struct	getphyinfo_rsp {
380	struct regulatory_class class_sets[NUM_REGULATORYS];
381	u8	status;
382};
383
384/*
385Caller Mode: Any
386
387Notes: To set the channel/modem/band
388This command will be used when channel/modem/band is changed.
389
390Command Mode
391
392*/
393struct	setphy_parm {
394	u8	rfchannel;
395	u8	modem;
396};
397
398/*
399Caller Mode: Any
400
401Notes: To get the current setting of channel/modem/band
402
403Command-Rsp Mode
404
405*/
406struct	getphy_parm {
407	u32 rsvd;
408};
409
410struct	getphy_rsp {
411	u8	rfchannel;
412	u8	modem;
413};
414
415struct readBB_parm {
416	u8	offset;
417};
418
419struct readBB_rsp {
420	u8	value;
421};
422
423struct readTSSI_parm {
424	u8	offset;
425};
426
427struct readTSSI_rsp {
428	u8	value;
429};
430
431struct writeBB_parm {
432	u8	offset;
433	u8	value;
434};
435
436struct readRF_parm {
437	u8	offset;
438};
439
440struct readRF_rsp {
441	u32	value;
442};
443
444struct writeRF_parm {
445	u32	offset;
446	u32	value;
447};
448
449struct getrfintfs_parm {
450	u8	rfintfs;
451};
452
453struct Tx_Beacon_param
454{
455	struct wlan_bssid_ex network;
456};
457
458/*  CMD param Formart for driver extra cmd handler */
459struct drvextra_cmd_parm {
460	int ec_id; /* extra cmd id */
461	int type_size; /*  Can use this field as the type id or command size */
462	unsigned char *pbuf;
463};
464
465/*------------------- Below are used for RF/BB tunning ---------------------*/
466
467struct	setantenna_parm {
468	u8	tx_antset;
469	u8	rx_antset;
470	u8	tx_antenna;
471	u8	rx_antenna;
472};
473
474struct	enrateadaptive_parm {
475	u32	en;
476};
477
478struct settxagctbl_parm {
479	u32	txagc[MAX_RATES_LENGTH];
480};
481
482struct gettxagctbl_parm {
483	u32 rsvd;
484};
485
486struct gettxagctbl_rsp {
487	u32	txagc[MAX_RATES_LENGTH];
488};
489
490struct setagcctrl_parm {
491	u32	agcctrl;		/*  0: pure hw, 1: fw */
492};
493
494struct setssup_parm	{
495	u32	ss_ForceUp[MAX_RATES_LENGTH];
496};
497
498struct getssup_parm	{
499	u32 rsvd;
500};
501
502struct getssup_rsp	{
503	u8	ss_ForceUp[MAX_RATES_LENGTH];
504};
505
506struct setssdlevel_parm	{
507	u8	ss_DLevel[MAX_RATES_LENGTH];
508};
509
510struct getssdlevel_parm	{
511	u32 rsvd;
512};
513
514struct getssdlevel_rsp	{
515	u8	ss_DLevel[MAX_RATES_LENGTH];
516};
517
518struct setssulevel_parm	{
519	u8	ss_ULevel[MAX_RATES_LENGTH];
520};
521
522struct getssulevel_parm	{
523	u32 rsvd;
524};
525
526struct getssulevel_rsp	{
527	u8	ss_ULevel[MAX_RATES_LENGTH];
528};
529
530struct	setcountjudge_parm {
531	u8	count_judge[MAX_RATES_LENGTH];
532};
533
534struct	getcountjudge_parm {
535	u32 rsvd;
536};
537
538struct	getcountjudge_rsp {
539	u8	count_judge[MAX_RATES_LENGTH];
540};
541
542struct setratable_parm {
543	u8 ss_ForceUp[NumRates];
544	u8 ss_ULevel[NumRates];
545	u8 ss_DLevel[NumRates];
546	u8 count_judge[NumRates];
547};
548
549struct getratable_parm {
550	uint rsvd;
551};
552
553struct getratable_rsp {
554	u8 ss_ForceUp[NumRates];
555	u8 ss_ULevel[NumRates];
556	u8 ss_DLevel[NumRates];
557	u8 count_judge[NumRates];
558};
559
560/* to get TX,RX retry count */
561struct gettxretrycnt_parm{
562	unsigned int rsvd;
563};
564struct gettxretrycnt_rsp{
565	unsigned long tx_retrycnt;
566};
567
568struct getrxretrycnt_parm{
569	unsigned int rsvd;
570};
571struct getrxretrycnt_rsp{
572	unsigned long rx_retrycnt;
573};
574
575/* to get BCNOK,BCNERR count */
576struct getbcnokcnt_parm{
577	unsigned int rsvd;
578};
579struct getbcnokcnt_rsp{
580	unsigned long  bcnokcnt;
581};
582
583struct getbcnerrcnt_parm{
584	unsigned int rsvd;
585};
586struct getbcnerrcnt_rsp{
587	unsigned long bcnerrcnt;
588};
589
590/*  to get current TX power level */
591struct getcurtxpwrlevel_parm{
592	unsigned int rsvd;
593};
594
595struct getcurtxpwrlevel_rsp{
596	unsigned short tx_power;
597};
598
599struct setprobereqextraie_parm {
600	unsigned char e_id;
601	unsigned char ie_len;
602	unsigned char ie[0];
603};
604
605struct setassocreqextraie_parm {
606	unsigned char e_id;
607	unsigned char ie_len;
608	unsigned char ie[0];
609};
610
611struct setproberspextraie_parm {
612	unsigned char e_id;
613	unsigned char ie_len;
614	unsigned char ie[0];
615};
616
617struct setassocrspextraie_parm {
618	unsigned char e_id;
619	unsigned char ie_len;
620	unsigned char ie[0];
621};
622
623struct addBaReq_parm {
624	unsigned int tid;
625	u8	addr[ETH_ALEN];
626};
627
628/*H2C Handler index: 46 */
629struct set_ch_parm {
630	u8 ch;
631	u8 bw;
632	u8 ch_offset;
633};
634
635/*H2C Handler index: 59 */
636struct SetChannelPlan_param {
637	u8 channel_plan;
638};
639
640/*H2C Handler index: 60 */
641struct LedBlink_param {
642	struct led_8723a *pLed;
643};
644
645/*H2C Handler index: 61 */
646struct SetChannelSwitch_param {
647	u8 new_ch_no;
648};
649
650/*H2C Handler index: 62 */
651struct TDLSoption_param {
652	u8 addr[ETH_ALEN];
653	u8 option;
654};
655
656#define GEN_CMD_CODE(cmd)	cmd ## _CMD_
657
658
659/*
660
661Result:
6620x00: success
6630x01: sucess, and check Response.
6640x02: cmd ignored due to duplicated sequcne number
6650x03: cmd dropped due to invalid cmd code
6660x04: reserved.
667
668*/
669
670#define H2C_RSP_OFFSET			512
671
672#define H2C_SUCCESS			0x00
673#define H2C_SUCCESS_RSP			0x01
674#define H2C_DUPLICATED			0x02
675#define H2C_DROPPED			0x03
676#define H2C_PARAMETERS_ERROR		0x04
677#define H2C_REJECTED			0x05
678#define H2C_CMD_OVERFLOW		0x06
679#define H2C_RESERVED			0x07
680
681int rtw_setassocsta_cmd(struct rtw_adapter  *padapter, u8 *mac_addr);
682int rtw_setstandby_cmd(struct rtw_adapter *padapter, uint action);
683int rtw_sitesurvey_cmd23a(struct rtw_adapter  *padapter, struct cfg80211_ssid *ssid, int ssid_num, struct rtw_ieee80211_channel *ch, int ch_num);
684int rtw_createbss_cmd23a(struct rtw_adapter  *padapter);
685int rtw_createbss_cmd23a_ex(struct rtw_adapter  *padapter, unsigned char *pbss, unsigned int sz);
686int rtw_setphy_cmd(struct rtw_adapter  *padapter, u8 modem, u8 ch);
687int rtw_setstakey_cmd23a(struct rtw_adapter  *padapter, u8 *psta, u8 unicast_key);
688int rtw_clearstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 entry, u8 enqueue);
689int rtw_joinbss_cmd23a(struct rtw_adapter  *padapter, struct wlan_network* pnetwork);
690int rtw_disassoc_cmd23a(struct rtw_adapter *padapter, u32 deauth_timeout_ms, bool enqueue);
691int rtw_setopmode_cmd23a(struct rtw_adapter *padapter, enum nl80211_iftype ifmode);
692int rtw_setdatarate_cmd(struct rtw_adapter  *padapter, u8 *rateset);
693int rtw_setbasicrate_cmd(struct rtw_adapter  *padapter, u8 *rateset);
694int rtw_setbbreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 val);
695int rtw_setrfreg_cmd(struct rtw_adapter * padapter, u8 offset, u32 val);
696int rtw_getbbreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 * pval);
697int rtw_getrfreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 * pval);
698int rtw_setrfintfs_cmd(struct rtw_adapter  *padapter, u8 mode);
699int rtw_setrttbl_cmd(struct rtw_adapter  *padapter, struct setratable_parm *prate_table);
700int rtw_getrttbl_cmd(struct rtw_adapter  *padapter, struct getratable_rsp *pval);
701
702int rtw_gettssi_cmd(struct rtw_adapter  *padapter, u8 offset, u8 *pval);
703int rtw_setfwdig_cmd(struct rtw_adapter*padapter, u8 type);
704int rtw_setfwra_cmd(struct rtw_adapter*padapter, u8 type);
705
706int rtw_addbareq_cmd23a(struct rtw_adapter*padapter, u8 tid, u8 *addr);
707
708int rtw_dynamic_chk_wk_cmd23a(struct rtw_adapter *adapter);
709
710int rtw_lps_ctrl_wk_cmd23a(struct rtw_adapter*padapter, u8 lps_ctrl_type, u8 enqueue);
711
712int rtw_ps_cmd23a(struct rtw_adapter*padapter);
713
714#ifdef CONFIG_8723AU_AP_MODE
715int rtw_chk_hi_queue_cmd23a(struct rtw_adapter*padapter);
716#endif
717
718int rtw_set_ch_cmd23a(struct rtw_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, u8 enqueue);
719int rtw_set_chplan_cmd(struct rtw_adapter*padapter, u8 chplan, u8 enqueue);
720int rtw_led_blink_cmd(struct rtw_adapter*padapter, struct led_8723a *pLed);
721int rtw_set_csa_cmd(struct rtw_adapter*padapter, u8 new_ch_no);
722
723int rtw_c2h_wk_cmd23a(struct rtw_adapter *padapter, u8 *c2h_evt);
724
725int rtw_drvextra_cmd_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf);
726
727void rtw_survey_cmd_callback23a(struct rtw_adapter  *padapter, struct cmd_obj *pcmd);
728void rtw_disassoc_cmd23a_callback(struct rtw_adapter  *padapter, struct cmd_obj *pcmd);
729void rtw_joinbss_cmd23a_callback(struct rtw_adapter  *padapter, struct cmd_obj *pcmd);
730void rtw_createbss_cmd23a_callback(struct rtw_adapter  *padapter, struct cmd_obj *pcmd);
731void rtw_getbbrfreg_cmdrsp_callback23a(struct rtw_adapter  *padapter, struct cmd_obj *pcmd);
732void rtw_readtssi_cmdrsp_callback(struct rtw_adapter*	padapter,  struct cmd_obj *pcmd);
733
734void rtw_setstaKey_cmdrsp_callback23a(struct rtw_adapter  *padapter,  struct cmd_obj *pcmd);
735void rtw_setassocsta_cmdrsp_callback23a(struct rtw_adapter  *padapter,  struct cmd_obj *pcmd);
736void rtw_getrttbl_cmdrsp_callback(struct rtw_adapter  *padapter,  struct cmd_obj *pcmd);
737
738struct _cmd_callback {
739	u32	cmd_code;
740	void (*callback)(struct rtw_adapter  *padapter, struct cmd_obj *cmd);
741};
742
743enum rtw_h2c_cmd {
744	GEN_CMD_CODE(_Read_MACREG) ,	/*0*/
745	GEN_CMD_CODE(_Write_MACREG) ,
746	GEN_CMD_CODE(_Read_BBREG) ,
747	GEN_CMD_CODE(_Write_BBREG) ,
748	GEN_CMD_CODE(_Read_RFREG) ,
749	GEN_CMD_CODE(_Write_RFREG) , /*5*/
750	GEN_CMD_CODE(_Read_EEPROM) ,
751	GEN_CMD_CODE(_Write_EEPROM) ,
752	GEN_CMD_CODE(_Read_EFUSE) ,
753	GEN_CMD_CODE(_Write_EFUSE) ,
754
755	GEN_CMD_CODE(_Read_CAM) ,	/*10*/
756	GEN_CMD_CODE(_Write_CAM) ,
757	GEN_CMD_CODE(_setBCNITV),
758	GEN_CMD_CODE(_setMBIDCFG),
759	GEN_CMD_CODE(_JoinBss),   /*14*/
760	GEN_CMD_CODE(_DisConnect) , /*15*/
761	GEN_CMD_CODE(_CreateBss) ,
762	GEN_CMD_CODE(_SetOpMode) ,
763	GEN_CMD_CODE(_SiteSurvey),  /*18*/
764	GEN_CMD_CODE(_SetAuth) ,
765
766	GEN_CMD_CODE(_SetKey) ,	/*20*/
767	GEN_CMD_CODE(_SetStaKey) ,
768	GEN_CMD_CODE(_SetAssocSta) ,
769	GEN_CMD_CODE(_DelAssocSta) ,
770	GEN_CMD_CODE(_SetStaPwrState) ,
771	GEN_CMD_CODE(_SetBasicRate) , /*25*/
772	GEN_CMD_CODE(_GetBasicRate) ,
773	GEN_CMD_CODE(_SetDataRate) ,
774	GEN_CMD_CODE(_GetDataRate) ,
775	GEN_CMD_CODE(_SetPhyInfo) ,
776
777	GEN_CMD_CODE(_GetPhyInfo) ,	/*30*/
778	GEN_CMD_CODE(_SetPhy) ,
779	GEN_CMD_CODE(_GetPhy) ,
780	GEN_CMD_CODE(_readRssi) ,
781	GEN_CMD_CODE(_readGain) ,
782	GEN_CMD_CODE(_SetAtim) , /*35*/
783	GEN_CMD_CODE(_SetPwrMode) ,
784	GEN_CMD_CODE(_JoinbssRpt),
785	GEN_CMD_CODE(_SetRaTable) ,
786	GEN_CMD_CODE(_GetRaTable) ,
787
788	GEN_CMD_CODE(_GetCCXReport), /*40*/
789	GEN_CMD_CODE(_GetDTMReport),
790	GEN_CMD_CODE(_GetTXRateStatistics),
791	GEN_CMD_CODE(_SetUsbSuspend),
792	GEN_CMD_CODE(_SetH2cLbk),
793	GEN_CMD_CODE(_AddBAReq) , /*45*/
794	GEN_CMD_CODE(_SetChannel), /*46*/
795	GEN_CMD_CODE(_SetTxPower),
796	GEN_CMD_CODE(_SwitchAntenna),
797	GEN_CMD_CODE(_SetCrystalCap),
798	GEN_CMD_CODE(_SetSingleCarrierTx), /*50*/
799
800	GEN_CMD_CODE(_SetSingleToneTx),/*51*/
801	GEN_CMD_CODE(_SetCarrierSuppressionTx),
802	GEN_CMD_CODE(_SetContinuousTx),
803	GEN_CMD_CODE(_SwitchBandwidth), /*54*/
804	GEN_CMD_CODE(_TX_Beacon), /*55*/
805
806	GEN_CMD_CODE(_Set_MLME_EVT), /*56*/
807	GEN_CMD_CODE(_Set_Drv_Extra), /*57*/
808	GEN_CMD_CODE(_Set_H2C_MSG), /*58*/
809
810	GEN_CMD_CODE(_SetChannelPlan), /*59*/
811	GEN_CMD_CODE(_LedBlink), /*60*/
812
813	GEN_CMD_CODE(_SetChannelSwitch), /*61*/
814	GEN_CMD_CODE(_TDLS), /*62*/
815
816	MAX_H2CCMD
817};
818
819extern struct _cmd_callback	rtw_cmd_callback[];
820
821#endif /*  _CMD_H_ */
822