hostcmd.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. /*
  2. * This file contains the function prototypes, data structure
  3. * and defines for all the host/station commands
  4. */
  5. #ifndef _LBS_HOSTCMD_H
  6. #define _LBS_HOSTCMD_H
  7. #include <linux/wireless.h>
  8. #include "11d.h"
  9. #include "types.h"
  10. /* 802.11-related definitions */
  11. /* TxPD descriptor */
  12. struct txpd {
  13. /* Current Tx packet status */
  14. __le32 tx_status;
  15. /* Tx control */
  16. __le32 tx_control;
  17. __le32 tx_packet_location;
  18. /* Tx packet length */
  19. __le16 tx_packet_length;
  20. /* First 2 byte of destination MAC address */
  21. u8 tx_dest_addr_high[2];
  22. /* Last 4 byte of destination MAC address */
  23. u8 tx_dest_addr_low[4];
  24. /* Pkt Priority */
  25. u8 priority;
  26. /* Pkt Trasnit Power control */
  27. u8 powermgmt;
  28. /* Amount of time the packet has been queued in the driver (units = 2ms) */
  29. u8 pktdelay_2ms;
  30. /* reserved */
  31. u8 reserved1;
  32. } __attribute__ ((packed));
  33. /* RxPD Descriptor */
  34. struct rxpd {
  35. /* Current Rx packet status */
  36. __le16 status;
  37. /* SNR */
  38. u8 snr;
  39. /* Tx control */
  40. u8 rx_control;
  41. /* Pkt length */
  42. __le16 pkt_len;
  43. /* Noise Floor */
  44. u8 nf;
  45. /* Rx Packet Rate */
  46. u8 rx_rate;
  47. /* Pkt addr */
  48. __le32 pkt_ptr;
  49. /* Next Rx RxPD addr */
  50. __le32 next_rxpd_ptr;
  51. /* Pkt Priority */
  52. u8 priority;
  53. u8 reserved[3];
  54. } __attribute__ ((packed));
  55. struct cmd_header {
  56. __le16 command;
  57. __le16 size;
  58. __le16 seqnum;
  59. __le16 result;
  60. } __attribute__ ((packed));
  61. struct cmd_ctrl_node {
  62. struct list_head list;
  63. int result;
  64. /* command response */
  65. int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *);
  66. unsigned long callback_arg;
  67. /* command data */
  68. struct cmd_header *cmdbuf;
  69. /* wait queue */
  70. u16 cmdwaitqwoken;
  71. wait_queue_head_t cmdwait_q;
  72. };
  73. /* Generic structure to hold all key types. */
  74. struct enc_key {
  75. u16 len;
  76. u16 flags; /* KEY_INFO_* from defs.h */
  77. u16 type; /* KEY_TYPE_* from defs.h */
  78. u8 key[32];
  79. };
  80. /* lbs_offset_value */
  81. struct lbs_offset_value {
  82. u32 offset;
  83. u32 value;
  84. } __attribute__ ((packed));
  85. /* Define general data structure */
  86. /* cmd_DS_GEN */
  87. struct cmd_ds_gen {
  88. __le16 command;
  89. __le16 size;
  90. __le16 seqnum;
  91. __le16 result;
  92. void *cmdresp[0];
  93. } __attribute__ ((packed));
  94. #define S_DS_GEN sizeof(struct cmd_ds_gen)
  95. /*
  96. * Define data structure for CMD_GET_HW_SPEC
  97. * This structure defines the response for the GET_HW_SPEC command
  98. */
  99. struct cmd_ds_get_hw_spec {
  100. struct cmd_header hdr;
  101. /* HW Interface version number */
  102. __le16 hwifversion;
  103. /* HW version number */
  104. __le16 version;
  105. /* Max number of TxPD FW can handle */
  106. __le16 nr_txpd;
  107. /* Max no of Multicast address */
  108. __le16 nr_mcast_adr;
  109. /* MAC address */
  110. u8 permanentaddr[6];
  111. /* region Code */
  112. __le16 regioncode;
  113. /* Number of antenna used */
  114. __le16 nr_antenna;
  115. /* FW release number, example 0x01030304 = 2.3.4p1 */
  116. __le32 fwrelease;
  117. /* Base Address of TxPD queue */
  118. __le32 wcb_base;
  119. /* Read Pointer of RxPd queue */
  120. __le32 rxpd_rdptr;
  121. /* Write Pointer of RxPd queue */
  122. __le32 rxpd_wrptr;
  123. /*FW/HW capability */
  124. __le32 fwcapinfo;
  125. } __attribute__ ((packed));
  126. struct cmd_ds_802_11_subscribe_event {
  127. struct cmd_header hdr;
  128. __le16 action;
  129. __le16 events;
  130. /* A TLV to the CMD_802_11_SUBSCRIBE_EVENT command can contain a
  131. * number of TLVs. From the v5.1 manual, those TLVs would add up to
  132. * 40 bytes. However, future firmware might add additional TLVs, so I
  133. * bump this up a bit.
  134. */
  135. uint8_t tlv[128];
  136. } __attribute__ ((packed));
  137. /*
  138. * This scan handle Country Information IE(802.11d compliant)
  139. * Define data structure for CMD_802_11_SCAN
  140. */
  141. struct cmd_ds_802_11_scan {
  142. struct cmd_header hdr;
  143. uint8_t bsstype;
  144. uint8_t bssid[ETH_ALEN];
  145. uint8_t tlvbuffer[0];
  146. #if 0
  147. mrvlietypes_ssidparamset_t ssidParamSet;
  148. mrvlietypes_chanlistparamset_t ChanListParamSet;
  149. mrvlietypes_ratesparamset_t OpRateSet;
  150. #endif
  151. } __attribute__ ((packed));
  152. struct cmd_ds_802_11_scan_rsp {
  153. struct cmd_header hdr;
  154. __le16 bssdescriptsize;
  155. uint8_t nr_sets;
  156. uint8_t bssdesc_and_tlvbuffer[0];
  157. } __attribute__ ((packed));
  158. struct cmd_ds_802_11_get_log {
  159. struct cmd_header hdr;
  160. __le32 mcasttxframe;
  161. __le32 failed;
  162. __le32 retry;
  163. __le32 multiretry;
  164. __le32 framedup;
  165. __le32 rtssuccess;
  166. __le32 rtsfailure;
  167. __le32 ackfailure;
  168. __le32 rxfrag;
  169. __le32 mcastrxframe;
  170. __le32 fcserror;
  171. __le32 txframe;
  172. __le32 wepundecryptable;
  173. } __attribute__ ((packed));
  174. struct cmd_ds_mac_control {
  175. struct cmd_header hdr;
  176. __le16 action;
  177. u16 reserved;
  178. } __attribute__ ((packed));
  179. struct cmd_ds_mac_multicast_adr {
  180. struct cmd_header hdr;
  181. __le16 action;
  182. __le16 nr_of_adrs;
  183. u8 maclist[ETH_ALEN * MRVDRV_MAX_MULTICAST_LIST_SIZE];
  184. } __attribute__ ((packed));
  185. struct cmd_ds_gspi_bus_config {
  186. struct cmd_header hdr;
  187. __le16 action;
  188. __le16 bus_delay_mode;
  189. __le16 host_time_delay_to_read_port;
  190. __le16 host_time_delay_to_read_register;
  191. } __attribute__ ((packed));
  192. struct cmd_ds_802_11_authenticate {
  193. u8 macaddr[ETH_ALEN];
  194. u8 authtype;
  195. u8 reserved[10];
  196. } __attribute__ ((packed));
  197. struct cmd_ds_802_11_deauthenticate {
  198. struct cmd_header hdr;
  199. u8 macaddr[ETH_ALEN];
  200. __le16 reasoncode;
  201. } __attribute__ ((packed));
  202. struct cmd_ds_802_11_associate {
  203. u8 peerstaaddr[6];
  204. __le16 capability;
  205. __le16 listeninterval;
  206. __le16 bcnperiod;
  207. u8 dtimperiod;
  208. #if 0
  209. mrvlietypes_ssidparamset_t ssidParamSet;
  210. mrvlietypes_phyparamset_t phyparamset;
  211. mrvlietypes_ssparamset_t ssparamset;
  212. mrvlietypes_ratesparamset_t ratesParamSet;
  213. #endif
  214. } __attribute__ ((packed));
  215. struct cmd_ds_802_11_associate_rsp {
  216. struct ieeetypes_assocrsp assocRsp;
  217. } __attribute__ ((packed));
  218. struct cmd_ds_802_11_set_wep {
  219. struct cmd_header hdr;
  220. /* ACT_ADD, ACT_REMOVE or ACT_ENABLE */
  221. __le16 action;
  222. /* key Index selected for Tx */
  223. __le16 keyindex;
  224. /* 40, 128bit or TXWEP */
  225. uint8_t keytype[4];
  226. uint8_t keymaterial[4][16];
  227. } __attribute__ ((packed));
  228. struct cmd_ds_802_3_get_stat {
  229. __le32 xmitok;
  230. __le32 rcvok;
  231. __le32 xmiterror;
  232. __le32 rcverror;
  233. __le32 rcvnobuffer;
  234. __le32 rcvcrcerror;
  235. } __attribute__ ((packed));
  236. struct cmd_ds_802_11_get_stat {
  237. __le32 txfragmentcnt;
  238. __le32 mcasttxframecnt;
  239. __le32 failedcnt;
  240. __le32 retrycnt;
  241. __le32 Multipleretrycnt;
  242. __le32 rtssuccesscnt;
  243. __le32 rtsfailurecnt;
  244. __le32 ackfailurecnt;
  245. __le32 frameduplicatecnt;
  246. __le32 rxfragmentcnt;
  247. __le32 mcastrxframecnt;
  248. __le32 fcserrorcnt;
  249. __le32 bcasttxframecnt;
  250. __le32 bcastrxframecnt;
  251. __le32 txbeacon;
  252. __le32 rxbeacon;
  253. __le32 wepundecryptable;
  254. } __attribute__ ((packed));
  255. struct cmd_ds_802_11_snmp_mib {
  256. struct cmd_header hdr;
  257. __le16 action;
  258. __le16 oid;
  259. __le16 bufsize;
  260. u8 value[128];
  261. } __attribute__ ((packed));
  262. struct cmd_ds_mac_reg_map {
  263. __le16 buffersize;
  264. u8 regmap[128];
  265. __le16 reserved;
  266. } __attribute__ ((packed));
  267. struct cmd_ds_bbp_reg_map {
  268. __le16 buffersize;
  269. u8 regmap[128];
  270. __le16 reserved;
  271. } __attribute__ ((packed));
  272. struct cmd_ds_rf_reg_map {
  273. __le16 buffersize;
  274. u8 regmap[64];
  275. __le16 reserved;
  276. } __attribute__ ((packed));
  277. struct cmd_ds_mac_reg_access {
  278. __le16 action;
  279. __le16 offset;
  280. __le32 value;
  281. } __attribute__ ((packed));
  282. struct cmd_ds_bbp_reg_access {
  283. __le16 action;
  284. __le16 offset;
  285. u8 value;
  286. u8 reserved[3];
  287. } __attribute__ ((packed));
  288. struct cmd_ds_rf_reg_access {
  289. __le16 action;
  290. __le16 offset;
  291. u8 value;
  292. u8 reserved[3];
  293. } __attribute__ ((packed));
  294. struct cmd_ds_802_11_radio_control {
  295. struct cmd_header hdr;
  296. __le16 action;
  297. __le16 control;
  298. } __attribute__ ((packed));
  299. struct cmd_ds_802_11_beacon_control {
  300. __le16 action;
  301. __le16 beacon_enable;
  302. __le16 beacon_period;
  303. } __attribute__ ((packed));
  304. struct cmd_ds_802_11_sleep_params {
  305. struct cmd_header hdr;
  306. /* ACT_GET/ACT_SET */
  307. __le16 action;
  308. /* Sleep clock error in ppm */
  309. __le16 error;
  310. /* Wakeup offset in usec */
  311. __le16 offset;
  312. /* Clock stabilization time in usec */
  313. __le16 stabletime;
  314. /* control periodic calibration */
  315. uint8_t calcontrol;
  316. /* control the use of external sleep clock */
  317. uint8_t externalsleepclk;
  318. /* reserved field, should be set to zero */
  319. __le16 reserved;
  320. } __attribute__ ((packed));
  321. struct cmd_ds_802_11_inactivity_timeout {
  322. struct cmd_header hdr;
  323. /* ACT_GET/ACT_SET */
  324. __le16 action;
  325. /* Inactivity timeout in msec */
  326. __le16 timeout;
  327. } __attribute__ ((packed));
  328. struct cmd_ds_802_11_rf_channel {
  329. struct cmd_header hdr;
  330. __le16 action;
  331. __le16 channel;
  332. __le16 rftype; /* unused */
  333. __le16 reserved; /* unused */
  334. u8 channellist[32]; /* unused */
  335. } __attribute__ ((packed));
  336. struct cmd_ds_802_11_rssi {
  337. /* weighting factor */
  338. __le16 N;
  339. __le16 reserved_0;
  340. __le16 reserved_1;
  341. __le16 reserved_2;
  342. } __attribute__ ((packed));
  343. struct cmd_ds_802_11_rssi_rsp {
  344. __le16 SNR;
  345. __le16 noisefloor;
  346. __le16 avgSNR;
  347. __le16 avgnoisefloor;
  348. } __attribute__ ((packed));
  349. struct cmd_ds_802_11_mac_address {
  350. struct cmd_header hdr;
  351. __le16 action;
  352. u8 macadd[ETH_ALEN];
  353. } __attribute__ ((packed));
  354. struct cmd_ds_802_11_rf_tx_power {
  355. struct cmd_header hdr;
  356. __le16 action;
  357. __le16 curlevel;
  358. s8 maxlevel;
  359. s8 minlevel;
  360. } __attribute__ ((packed));
  361. struct cmd_ds_802_11_rf_antenna {
  362. __le16 action;
  363. /* Number of antennas or 0xffff(diversity) */
  364. __le16 antennamode;
  365. } __attribute__ ((packed));
  366. struct cmd_ds_802_11_monitor_mode {
  367. __le16 action;
  368. __le16 mode;
  369. } __attribute__ ((packed));
  370. struct cmd_ds_set_boot2_ver {
  371. struct cmd_header hdr;
  372. __le16 action;
  373. __le16 version;
  374. } __attribute__ ((packed));
  375. struct cmd_ds_802_11_fw_wake_method {
  376. struct cmd_header hdr;
  377. __le16 action;
  378. __le16 method;
  379. } __attribute__ ((packed));
  380. struct cmd_ds_802_11_sleep_period {
  381. struct cmd_header hdr;
  382. __le16 action;
  383. __le16 period;
  384. } __attribute__ ((packed));
  385. struct cmd_ds_802_11_ps_mode {
  386. __le16 action;
  387. __le16 nullpktinterval;
  388. __le16 multipledtim;
  389. __le16 reserved;
  390. __le16 locallisteninterval;
  391. } __attribute__ ((packed));
  392. struct cmd_confirm_sleep {
  393. struct cmd_header hdr;
  394. __le16 action;
  395. __le16 nullpktinterval;
  396. __le16 multipledtim;
  397. __le16 reserved;
  398. __le16 locallisteninterval;
  399. } __attribute__ ((packed));
  400. struct cmd_ds_802_11_data_rate {
  401. struct cmd_header hdr;
  402. __le16 action;
  403. __le16 reserved;
  404. u8 rates[MAX_RATES];
  405. } __attribute__ ((packed));
  406. struct cmd_ds_802_11_rate_adapt_rateset {
  407. struct cmd_header hdr;
  408. __le16 action;
  409. __le16 enablehwauto;
  410. __le16 bitmap;
  411. } __attribute__ ((packed));
  412. struct cmd_ds_802_11_ad_hoc_start {
  413. struct cmd_header hdr;
  414. u8 ssid[IW_ESSID_MAX_SIZE];
  415. u8 bsstype;
  416. __le16 beaconperiod;
  417. u8 dtimperiod; /* Reserved on v9 and later */
  418. union IEEEtypes_ssparamset ssparamset;
  419. union ieeetypes_phyparamset phyparamset;
  420. __le16 probedelay;
  421. __le16 capability;
  422. u8 rates[MAX_RATES];
  423. u8 tlv_memory_size_pad[100];
  424. } __attribute__ ((packed));
  425. struct cmd_ds_802_11_ad_hoc_result {
  426. struct cmd_header hdr;
  427. u8 pad[3];
  428. u8 bssid[ETH_ALEN];
  429. } __attribute__ ((packed));
  430. struct adhoc_bssdesc {
  431. u8 bssid[ETH_ALEN];
  432. u8 ssid[IW_ESSID_MAX_SIZE];
  433. u8 type;
  434. __le16 beaconperiod;
  435. u8 dtimperiod;
  436. __le64 timestamp;
  437. __le64 localtime;
  438. union ieeetypes_phyparamset phyparamset;
  439. union IEEEtypes_ssparamset ssparamset;
  440. __le16 capability;
  441. u8 rates[MAX_RATES];
  442. /* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the
  443. * Adhoc join command and will cause a binary layout mismatch with
  444. * the firmware
  445. */
  446. } __attribute__ ((packed));
  447. struct cmd_ds_802_11_ad_hoc_join {
  448. struct cmd_header hdr;
  449. struct adhoc_bssdesc bss;
  450. __le16 failtimeout; /* Reserved on v9 and later */
  451. __le16 probedelay; /* Reserved on v9 and later */
  452. } __attribute__ ((packed));
  453. struct cmd_ds_802_11_ad_hoc_stop {
  454. struct cmd_header hdr;
  455. } __attribute__ ((packed));
  456. struct cmd_ds_802_11_enable_rsn {
  457. struct cmd_header hdr;
  458. __le16 action;
  459. __le16 enable;
  460. } __attribute__ ((packed));
  461. struct MrvlIEtype_keyParamSet {
  462. /* type ID */
  463. __le16 type;
  464. /* length of Payload */
  465. __le16 length;
  466. /* type of key: WEP=0, TKIP=1, AES=2 */
  467. __le16 keytypeid;
  468. /* key control Info specific to a keytypeid */
  469. __le16 keyinfo;
  470. /* length of key */
  471. __le16 keylen;
  472. /* key material of size keylen */
  473. u8 key[32];
  474. } __attribute__ ((packed));
  475. #define MAX_WOL_RULES 16
  476. struct host_wol_rule {
  477. uint8_t rule_no;
  478. uint8_t rule_ops;
  479. __le16 sig_offset;
  480. __le16 sig_length;
  481. __le16 reserve;
  482. __be32 sig_mask;
  483. __be32 signature;
  484. } __attribute__ ((packed));
  485. struct wol_config {
  486. uint8_t action;
  487. uint8_t pattern;
  488. uint8_t no_rules_in_cmd;
  489. uint8_t result;
  490. struct host_wol_rule rule[MAX_WOL_RULES];
  491. } __attribute__ ((packed));
  492. struct cmd_ds_host_sleep {
  493. struct cmd_header hdr;
  494. __le32 criteria;
  495. uint8_t gpio;
  496. uint16_t gap;
  497. struct wol_config wol_conf;
  498. } __attribute__ ((packed));
  499. struct cmd_ds_802_11_key_material {
  500. struct cmd_header hdr;
  501. __le16 action;
  502. struct MrvlIEtype_keyParamSet keyParamSet[2];
  503. } __attribute__ ((packed));
  504. struct cmd_ds_802_11_eeprom_access {
  505. struct cmd_header hdr;
  506. __le16 action;
  507. __le16 offset;
  508. __le16 len;
  509. /* firmware says it returns a maximum of 20 bytes */
  510. #define LBS_EEPROM_READ_LEN 20
  511. u8 value[LBS_EEPROM_READ_LEN];
  512. } __attribute__ ((packed));
  513. struct cmd_ds_802_11_tpc_cfg {
  514. struct cmd_header hdr;
  515. __le16 action;
  516. uint8_t enable;
  517. int8_t P0;
  518. int8_t P1;
  519. int8_t P2;
  520. uint8_t usesnr;
  521. } __attribute__ ((packed));
  522. struct cmd_ds_802_11_pa_cfg {
  523. struct cmd_header hdr;
  524. __le16 action;
  525. uint8_t enable;
  526. int8_t P0;
  527. int8_t P1;
  528. int8_t P2;
  529. } __attribute__ ((packed));
  530. struct cmd_ds_802_11_led_ctrl {
  531. __le16 action;
  532. __le16 numled;
  533. u8 data[256];
  534. } __attribute__ ((packed));
  535. struct cmd_ds_802_11_afc {
  536. __le16 afc_auto;
  537. union {
  538. struct {
  539. __le16 threshold;
  540. __le16 period;
  541. };
  542. struct {
  543. __le16 timing_offset; /* signed */
  544. __le16 carrier_offset; /* signed */
  545. };
  546. };
  547. } __attribute__ ((packed));
  548. struct cmd_tx_rate_query {
  549. __le16 txrate;
  550. } __attribute__ ((packed));
  551. struct cmd_ds_get_tsf {
  552. __le64 tsfvalue;
  553. } __attribute__ ((packed));
  554. struct cmd_ds_bt_access {
  555. __le16 action;
  556. __le32 id;
  557. u8 addr1[ETH_ALEN];
  558. u8 addr2[ETH_ALEN];
  559. } __attribute__ ((packed));
  560. struct cmd_ds_fwt_access {
  561. __le16 action;
  562. __le32 id;
  563. u8 valid;
  564. u8 da[ETH_ALEN];
  565. u8 dir;
  566. u8 ra[ETH_ALEN];
  567. __le32 ssn;
  568. __le32 dsn;
  569. __le32 metric;
  570. u8 rate;
  571. u8 hopcount;
  572. u8 ttl;
  573. __le32 expiration;
  574. u8 sleepmode;
  575. __le32 snr;
  576. __le32 references;
  577. u8 prec[ETH_ALEN];
  578. } __attribute__ ((packed));
  579. struct cmd_ds_mesh_config {
  580. struct cmd_header hdr;
  581. __le16 action;
  582. __le16 channel;
  583. __le16 type;
  584. __le16 length;
  585. u8 data[128]; /* last position reserved */
  586. } __attribute__ ((packed));
  587. struct cmd_ds_mesh_access {
  588. struct cmd_header hdr;
  589. __le16 action;
  590. __le32 data[32]; /* last position reserved */
  591. } __attribute__ ((packed));
  592. /* Number of stats counters returned by the firmware */
  593. #define MESH_STATS_NUM 8
  594. struct cmd_ds_command {
  595. /* command header */
  596. __le16 command;
  597. __le16 size;
  598. __le16 seqnum;
  599. __le16 result;
  600. /* command Body */
  601. union {
  602. struct cmd_ds_802_11_ps_mode psmode;
  603. struct cmd_ds_802_11_associate associate;
  604. struct cmd_ds_802_11_authenticate auth;
  605. struct cmd_ds_802_11_get_stat gstat;
  606. struct cmd_ds_802_3_get_stat gstat_8023;
  607. struct cmd_ds_802_11_rf_antenna rant;
  608. struct cmd_ds_802_11_monitor_mode monitor;
  609. struct cmd_ds_802_11_rssi rssi;
  610. struct cmd_ds_802_11_rssi_rsp rssirsp;
  611. struct cmd_ds_mac_reg_access macreg;
  612. struct cmd_ds_bbp_reg_access bbpreg;
  613. struct cmd_ds_rf_reg_access rfreg;
  614. struct cmd_ds_802_11d_domain_info domaininfo;
  615. struct cmd_ds_802_11d_domain_info domaininforesp;
  616. struct cmd_ds_802_11_tpc_cfg tpccfg;
  617. struct cmd_ds_802_11_afc afc;
  618. struct cmd_ds_802_11_led_ctrl ledgpio;
  619. struct cmd_tx_rate_query txrate;
  620. struct cmd_ds_bt_access bt;
  621. struct cmd_ds_fwt_access fwt;
  622. struct cmd_ds_get_tsf gettsf;
  623. struct cmd_ds_802_11_beacon_control bcn_ctrl;
  624. } params;
  625. } __attribute__ ((packed));
  626. #endif