2 * This file function prototypes, data structure
3 * and definitions for all the host/station commands
11 #define DEFAULT_AD_HOC_CHANNEL 6
13 #define CMD_OPTION_WAITFORRSP 0x0002
15 /** Host command IDs */
17 /* Return command are almost always the same as the host command, but with
18 * bit 15 set high. There are a few exceptions, though...
20 #define CMD_RET(cmd) (0x8000 | cmd)
22 /* Return command convention exceptions: */
23 #define CMD_RET_802_11_ASSOCIATE 0x8012
26 #define CMD_GET_HW_SPEC 0x0003
27 #define CMD_EEPROM_UPDATE 0x0004
28 #define CMD_802_11_RESET 0x0005
29 #define CMD_802_11_SCAN 0x0006
30 #define CMD_802_11_GET_LOG 0x000b
31 #define CMD_MAC_MULTICAST_ADR 0x0010
32 #define CMD_802_11_AUTHENTICATE 0x0011
33 #define CMD_802_11_EEPROM_ACCESS 0x0059
34 #define CMD_802_11_ASSOCIATE 0x0050
35 #define CMD_802_11_SET_WEP 0x0013
36 #define CMD_802_11_GET_STAT 0x0014
37 #define CMD_802_3_GET_STAT 0x0015
38 #define CMD_802_11_SNMP_MIB 0x0016
39 #define CMD_MAC_REG_MAP 0x0017
40 #define CMD_BBP_REG_MAP 0x0018
41 #define CMD_MAC_REG_ACCESS 0x0019
42 #define CMD_BBP_REG_ACCESS 0x001a
43 #define CMD_RF_REG_ACCESS 0x001b
44 #define CMD_802_11_RADIO_CONTROL 0x001c
45 #define CMD_802_11_RF_CHANNEL 0x001d
46 #define CMD_802_11_RF_TX_POWER 0x001e
47 #define CMD_802_11_RSSI 0x001f
48 #define CMD_802_11_RF_ANTENNA 0x0020
49 #define CMD_802_11_PS_MODE 0x0021
50 #define CMD_802_11_DATA_RATE 0x0022
51 #define CMD_RF_REG_MAP 0x0023
52 #define CMD_802_11_DEAUTHENTICATE 0x0024
53 #define CMD_802_11_REASSOCIATE 0x0025
54 #define CMD_MAC_CONTROL 0x0028
55 #define CMD_802_11_AD_HOC_START 0x002b
56 #define CMD_802_11_AD_HOC_JOIN 0x002c
57 #define CMD_802_11_QUERY_TKIP_REPLY_CNTRS 0x002e
58 #define CMD_802_11_ENABLE_RSN 0x002f
59 #define CMD_802_11_SET_AFC 0x003c
60 #define CMD_802_11_GET_AFC 0x003d
61 #define CMD_802_11_DEEP_SLEEP 0x003e
62 #define CMD_802_11_AD_HOC_STOP 0x0040
63 #define CMD_802_11_HOST_SLEEP_CFG 0x0043
64 #define CMD_802_11_WAKEUP_CONFIRM 0x0044
65 #define CMD_802_11_HOST_SLEEP_ACTIVATE 0x0045
66 #define CMD_802_11_BEACON_STOP 0x0049
67 #define CMD_802_11_MAC_ADDRESS 0x004d
68 #define CMD_802_11_LED_GPIO_CTRL 0x004e
69 #define CMD_802_11_EEPROM_ACCESS 0x0059
70 #define CMD_802_11_BAND_CONFIG 0x0058
71 #define CMD_GSPI_BUS_CONFIG 0x005a
72 #define CMD_802_11D_DOMAIN_INFO 0x005b
73 #define CMD_802_11_KEY_MATERIAL 0x005e
74 #define CMD_802_11_SLEEP_PARAMS 0x0066
75 #define CMD_802_11_INACTIVITY_TIMEOUT 0x0067
76 #define CMD_802_11_SLEEP_PERIOD 0x0068
77 #define CMD_802_11_TPC_CFG 0x0072
78 #define CMD_802_11_PA_CFG 0x0073
79 #define CMD_802_11_FW_WAKE_METHOD 0x0074
80 #define CMD_802_11_SUBSCRIBE_EVENT 0x0075
81 #define CMD_802_11_RATE_ADAPT_RATESET 0x0076
82 #define CMD_802_11_TX_RATE_QUERY 0x007f
83 #define CMD_GET_TSF 0x0080
84 #define CMD_BT_ACCESS 0x0087
85 #define CMD_FWT_ACCESS 0x0095
86 #define CMD_802_11_MONITOR_MODE 0x0098
87 #define CMD_MESH_ACCESS 0x009b
88 #define CMD_MESH_CONFIG_OLD 0x00a3
89 #define CMD_MESH_CONFIG 0x00ac
90 #define CMD_SET_BOOT2_VER 0x00a5
91 #define CMD_FUNC_INIT 0x00a9
92 #define CMD_FUNC_SHUTDOWN 0x00aa
93 #define CMD_802_11_BEACON_CTRL 0x00b0
95 /* For the IEEE Power Save */
96 #define CMD_SUBCMD_ENTER_PS 0x0030
97 #define CMD_SUBCMD_EXIT_PS 0x0031
98 #define CMD_SUBCMD_SLEEP_CONFIRMED 0x0034
99 #define CMD_SUBCMD_FULL_POWERDOWN 0x0035
100 #define CMD_SUBCMD_FULL_POWERUP 0x0036
102 #define CMD_ENABLE_RSN 0x0001
103 #define CMD_DISABLE_RSN 0x0000
105 #define CMD_ACT_GET 0x0000
106 #define CMD_ACT_SET 0x0001
108 /* Define action or option for CMD_802_11_SET_WEP */
109 #define CMD_ACT_ADD 0x0002
110 #define CMD_ACT_REMOVE 0x0004
112 #define CMD_TYPE_WEP_40_BIT 0x01
113 #define CMD_TYPE_WEP_104_BIT 0x02
115 #define CMD_NUM_OF_WEP_KEYS 4
117 #define CMD_WEP_KEY_INDEX_MASK 0x3fff
119 /* Define action or option for CMD_802_11_SCAN */
120 #define CMD_BSS_TYPE_BSS 0x0001
121 #define CMD_BSS_TYPE_IBSS 0x0002
122 #define CMD_BSS_TYPE_ANY 0x0003
124 /* Define action or option for CMD_802_11_SCAN */
125 #define CMD_SCAN_TYPE_ACTIVE 0x0000
126 #define CMD_SCAN_TYPE_PASSIVE 0x0001
128 #define CMD_SCAN_RADIO_TYPE_BG 0
130 #define CMD_SCAN_PROBE_DELAY_TIME 0
132 /* Define action or option for CMD_MAC_CONTROL */
133 #define CMD_ACT_MAC_RX_ON 0x0001
134 #define CMD_ACT_MAC_TX_ON 0x0002
135 #define CMD_ACT_MAC_LOOPBACK_ON 0x0004
136 #define CMD_ACT_MAC_WEP_ENABLE 0x0008
137 #define CMD_ACT_MAC_INT_ENABLE 0x0010
138 #define CMD_ACT_MAC_MULTICAST_ENABLE 0x0020
139 #define CMD_ACT_MAC_BROADCAST_ENABLE 0x0040
140 #define CMD_ACT_MAC_PROMISCUOUS_ENABLE 0x0080
141 #define CMD_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100
142 #define CMD_ACT_MAC_STRICT_PROTECTION_ENABLE 0x0400
144 /* Event flags for CMD_802_11_SUBSCRIBE_EVENT */
145 #define CMD_SUBSCRIBE_RSSI_LOW 0x0001
146 #define CMD_SUBSCRIBE_SNR_LOW 0x0002
147 #define CMD_SUBSCRIBE_FAILCOUNT 0x0004
148 #define CMD_SUBSCRIBE_BCNMISS 0x0008
149 #define CMD_SUBSCRIBE_RSSI_HIGH 0x0010
150 #define CMD_SUBSCRIBE_SNR_HIGH 0x0020
152 #define RADIO_PREAMBLE_LONG 0x00
153 #define RADIO_PREAMBLE_SHORT 0x02
154 #define RADIO_PREAMBLE_AUTO 0x04
156 /* Define action or option for CMD_802_11_RF_CHANNEL */
157 #define CMD_OPT_802_11_RF_CHANNEL_GET 0x00
158 #define CMD_OPT_802_11_RF_CHANNEL_SET 0x01
160 /* Define action or option for CMD_802_11_DATA_RATE */
161 #define CMD_ACT_SET_TX_AUTO 0x0000
162 #define CMD_ACT_SET_TX_FIX_RATE 0x0001
163 #define CMD_ACT_GET_TX_RATE 0x0002
165 /* Define action or option for CMD_802_11_PS_MODE */
166 #define CMD_TYPE_CAM 0x0000
167 #define CMD_TYPE_MAX_PSP 0x0001
168 #define CMD_TYPE_FAST_PSP 0x0002
170 /* Options for CMD_802_11_FW_WAKE_METHOD */
171 #define CMD_WAKE_METHOD_UNCHANGED 0x0000
172 #define CMD_WAKE_METHOD_COMMAND_INT 0x0001
173 #define CMD_WAKE_METHOD_GPIO 0x0002
175 /* Object IDs for CMD_802_11_SNMP_MIB */
176 #define SNMP_MIB_OID_BSS_TYPE 0x0000
177 #define SNMP_MIB_OID_OP_RATE_SET 0x0001
178 #define SNMP_MIB_OID_BEACON_PERIOD 0x0002 /* Reserved on v9+ */
179 #define SNMP_MIB_OID_DTIM_PERIOD 0x0003 /* Reserved on v9+ */
180 #define SNMP_MIB_OID_ASSOC_TIMEOUT 0x0004 /* Reserved on v9+ */
181 #define SNMP_MIB_OID_RTS_THRESHOLD 0x0005
182 #define SNMP_MIB_OID_SHORT_RETRY_LIMIT 0x0006
183 #define SNMP_MIB_OID_LONG_RETRY_LIMIT 0x0007
184 #define SNMP_MIB_OID_FRAG_THRESHOLD 0x0008
185 #define SNMP_MIB_OID_11D_ENABLE 0x0009
186 #define SNMP_MIB_OID_11H_ENABLE 0x000A
188 /* Define action or option for CMD_BT_ACCESS */
189 enum cmd_bt_access_opts {
190 /* The bt commands start at 5 instead of 1 because the old dft commands
191 * are mapped to 1-4. These old commands are no longer maintained and
192 * should not be called.
194 CMD_ACT_BT_ACCESS_ADD = 5,
195 CMD_ACT_BT_ACCESS_DEL,
196 CMD_ACT_BT_ACCESS_LIST,
197 CMD_ACT_BT_ACCESS_RESET,
198 CMD_ACT_BT_ACCESS_SET_INVERT,
199 CMD_ACT_BT_ACCESS_GET_INVERT
202 /* Define action or option for CMD_FWT_ACCESS */
203 enum cmd_fwt_access_opts {
204 CMD_ACT_FWT_ACCESS_ADD = 1,
205 CMD_ACT_FWT_ACCESS_DEL,
206 CMD_ACT_FWT_ACCESS_LOOKUP,
207 CMD_ACT_FWT_ACCESS_LIST,
208 CMD_ACT_FWT_ACCESS_LIST_ROUTE,
209 CMD_ACT_FWT_ACCESS_LIST_NEIGHBOR,
210 CMD_ACT_FWT_ACCESS_RESET,
211 CMD_ACT_FWT_ACCESS_CLEANUP,
212 CMD_ACT_FWT_ACCESS_TIME,
215 /* Define action or option for CMD_802_11_HOST_SLEEP_CFG */
216 enum cmd_wol_cfg_opts {
217 CMD_ACT_ACTION_NONE = 0,
218 CMD_ACT_SET_WOL_RULE,
219 CMD_ACT_GET_WOL_RULE,
220 CMD_ACT_RESET_WOL_RULE,
223 /* Define action or option for CMD_MESH_ACCESS */
224 enum cmd_mesh_access_opts {
225 CMD_ACT_MESH_GET_TTL = 1,
226 CMD_ACT_MESH_SET_TTL,
227 CMD_ACT_MESH_GET_STATS,
228 CMD_ACT_MESH_GET_ANYCAST,
229 CMD_ACT_MESH_SET_ANYCAST,
230 CMD_ACT_MESH_SET_LINK_COSTS,
231 CMD_ACT_MESH_GET_LINK_COSTS,
232 CMD_ACT_MESH_SET_BCAST_RATE,
233 CMD_ACT_MESH_GET_BCAST_RATE,
234 CMD_ACT_MESH_SET_RREQ_DELAY,
235 CMD_ACT_MESH_GET_RREQ_DELAY,
236 CMD_ACT_MESH_SET_ROUTE_EXP,
237 CMD_ACT_MESH_GET_ROUTE_EXP,
238 CMD_ACT_MESH_SET_AUTOSTART_ENABLED,
239 CMD_ACT_MESH_GET_AUTOSTART_ENABLED,
240 CMD_ACT_MESH_SET_GET_PRB_RSP_LIMIT = 17,
243 /* Define actions and types for CMD_MESH_CONFIG */
244 enum cmd_mesh_config_actions {
245 CMD_ACT_MESH_CONFIG_STOP = 0,
246 CMD_ACT_MESH_CONFIG_START,
247 CMD_ACT_MESH_CONFIG_SET,
248 CMD_ACT_MESH_CONFIG_GET,
251 enum cmd_mesh_config_types {
252 CMD_TYPE_MESH_SET_BOOTFLAG = 1,
253 CMD_TYPE_MESH_SET_BOOTTIME,
254 CMD_TYPE_MESH_SET_DEF_CHANNEL,
255 CMD_TYPE_MESH_SET_MESH_IE,
256 CMD_TYPE_MESH_GET_DEFAULTS,
257 CMD_TYPE_MESH_GET_MESH_IE, /* GET_DEFAULTS is superset of GET_MESHIE */
260 /** Card Event definition */
261 #define MACREG_INT_CODE_TX_PPA_FREE 0
262 #define MACREG_INT_CODE_TX_DMA_DONE 1
263 #define MACREG_INT_CODE_LINK_LOST_W_SCAN 2
264 #define MACREG_INT_CODE_LINK_LOST_NO_SCAN 3
265 #define MACREG_INT_CODE_LINK_SENSED 4
266 #define MACREG_INT_CODE_CMD_FINISHED 5
267 #define MACREG_INT_CODE_MIB_CHANGED 6
268 #define MACREG_INT_CODE_INIT_DONE 7
269 #define MACREG_INT_CODE_DEAUTHENTICATED 8
270 #define MACREG_INT_CODE_DISASSOCIATED 9
271 #define MACREG_INT_CODE_PS_AWAKE 10
272 #define MACREG_INT_CODE_PS_SLEEP 11
273 #define MACREG_INT_CODE_MIC_ERR_MULTICAST 13
274 #define MACREG_INT_CODE_MIC_ERR_UNICAST 14
275 #define MACREG_INT_CODE_WM_AWAKE 15
276 #define MACREG_INT_CODE_DEEP_SLEEP_AWAKE 16
277 #define MACREG_INT_CODE_ADHOC_BCN_LOST 17
278 #define MACREG_INT_CODE_HOST_AWAKE 18
279 #define MACREG_INT_CODE_STOP_TX 19
280 #define MACREG_INT_CODE_START_TX 20
281 #define MACREG_INT_CODE_CHANNEL_SWITCH 21
282 #define MACREG_INT_CODE_MEASUREMENT_RDY 22
283 #define MACREG_INT_CODE_WMM_CHANGE 23
284 #define MACREG_INT_CODE_BG_SCAN_REPORT 24
285 #define MACREG_INT_CODE_RSSI_LOW 25
286 #define MACREG_INT_CODE_SNR_LOW 26
287 #define MACREG_INT_CODE_MAX_FAIL 27
288 #define MACREG_INT_CODE_RSSI_HIGH 28
289 #define MACREG_INT_CODE_SNR_HIGH 29
290 #define MACREG_INT_CODE_MESH_AUTO_STARTED 35
291 #define MACREG_INT_CODE_FIRMWARE_READY 48
294 /* 802.11-related definitions */
296 /* TxPD descriptor */
298 /* union to cope up with later FW revisions */
300 /* Current Tx packet status */
303 /* BSS type: client, AP, etc. */
313 __le32 tx_packet_location;
314 /* Tx packet length */
315 __le16 tx_packet_length;
316 /* First 2 byte of destination MAC address */
317 u8 tx_dest_addr_high[2];
318 /* Last 4 byte of destination MAC address */
319 u8 tx_dest_addr_low[4];
322 /* Pkt Trasnit Power control */
324 /* Amount of time the packet has been queued (units = 2ms) */
328 } __attribute__ ((packed));
330 /* RxPD Descriptor */
332 /* union to cope up with later FW revisions */
334 /* Current Rx packet status */
337 /* BSS type: client, AP, etc. */
341 } __attribute__ ((packed)) bss;
342 } __attribute__ ((packed)) u;
362 /* Next Rx RxPD addr */
363 __le32 next_rxpd_ptr;
368 } __attribute__ ((packed));
375 } __attribute__ ((packed));
377 struct cmd_ctrl_node {
378 struct list_head list;
380 /* command response */
381 int (*callback)(struct lbs_private *,
383 struct cmd_header *);
384 unsigned long callback_arg;
386 struct cmd_header *cmdbuf;
389 wait_queue_head_t cmdwait_q;
392 /* Generic structure to hold all key types. */
395 u16 flags; /* KEY_INFO_* from defs.h */
396 u16 type; /* KEY_TYPE_* from defs.h */
400 /* lbs_offset_value */
401 struct lbs_offset_value {
404 } __attribute__ ((packed));
406 /* Define general data structure */
414 } __attribute__ ((packed));
416 #define S_DS_GEN sizeof(struct cmd_ds_gen)
420 * Define data structure for CMD_GET_HW_SPEC
421 * This structure defines the response for the GET_HW_SPEC command
423 struct cmd_ds_get_hw_spec {
424 struct cmd_header hdr;
426 /* HW Interface version number */
428 /* HW version number */
430 /* Max number of TxPD FW can handle */
432 /* Max no of Multicast address */
440 /* Number of antenna used */
443 /* FW release number, example 0x01030304 = 2.3.4p1 */
446 /* Base Address of TxPD queue */
448 /* Read Pointer of RxPd queue */
451 /* Write Pointer of RxPd queue */
454 /*FW/HW capability */
456 } __attribute__ ((packed));
458 struct cmd_ds_802_11_subscribe_event {
459 struct cmd_header hdr;
464 /* A TLV to the CMD_802_11_SUBSCRIBE_EVENT command can contain a
465 * number of TLVs. From the v5.1 manual, those TLVs would add up to
466 * 40 bytes. However, future firmware might add additional TLVs, so I
467 * bump this up a bit.
470 } __attribute__ ((packed));
473 * This scan handle Country Information IE(802.11d compliant)
474 * Define data structure for CMD_802_11_SCAN
476 struct cmd_ds_802_11_scan {
477 struct cmd_header hdr;
480 uint8_t bssid[ETH_ALEN];
481 uint8_t tlvbuffer[0];
482 } __attribute__ ((packed));
484 struct cmd_ds_802_11_scan_rsp {
485 struct cmd_header hdr;
487 __le16 bssdescriptsize;
489 uint8_t bssdesc_and_tlvbuffer[0];
490 } __attribute__ ((packed));
492 struct cmd_ds_802_11_get_log {
493 struct cmd_header hdr;
507 __le32 wepundecryptable;
508 } __attribute__ ((packed));
510 struct cmd_ds_mac_control {
511 struct cmd_header hdr;
514 } __attribute__ ((packed));
516 struct cmd_ds_mac_multicast_adr {
517 struct cmd_header hdr;
520 u8 maclist[ETH_ALEN * MRVDRV_MAX_MULTICAST_LIST_SIZE];
521 } __attribute__ ((packed));
523 struct cmd_ds_802_11_authenticate {
524 struct cmd_header hdr;
529 } __attribute__ ((packed));
531 struct cmd_ds_802_11_deauthenticate {
532 struct cmd_header hdr;
534 u8 macaddr[ETH_ALEN];
536 } __attribute__ ((packed));
538 struct cmd_ds_802_11_associate {
539 struct cmd_header hdr;
543 __le16 listeninterval;
546 u8 iebuf[512]; /* Enough for required and most optional IEs */
547 } __attribute__ ((packed));
549 struct cmd_ds_802_11_associate_response {
550 struct cmd_header hdr;
556 } __attribute__ ((packed));
558 struct cmd_ds_802_11_set_wep {
559 struct cmd_header hdr;
561 /* ACT_ADD, ACT_REMOVE or ACT_ENABLE */
564 /* key Index selected for Tx */
567 /* 40, 128bit or TXWEP */
569 uint8_t keymaterial[4][16];
570 } __attribute__ ((packed));
572 struct cmd_ds_802_11_snmp_mib {
573 struct cmd_header hdr;
579 } __attribute__ ((packed));
581 struct cmd_ds_mac_reg_access {
585 } __attribute__ ((packed));
587 struct cmd_ds_bbp_reg_access {
592 } __attribute__ ((packed));
594 struct cmd_ds_rf_reg_access {
599 } __attribute__ ((packed));
601 struct cmd_ds_802_11_radio_control {
602 struct cmd_header hdr;
606 } __attribute__ ((packed));
608 struct cmd_ds_802_11_beacon_control {
610 __le16 beacon_enable;
611 __le16 beacon_period;
612 } __attribute__ ((packed));
614 struct cmd_ds_802_11_sleep_params {
615 struct cmd_header hdr;
617 /* ACT_GET/ACT_SET */
620 /* Sleep clock error in ppm */
623 /* Wakeup offset in usec */
626 /* Clock stabilization time in usec */
629 /* control periodic calibration */
632 /* control the use of external sleep clock */
633 uint8_t externalsleepclk;
635 /* reserved field, should be set to zero */
637 } __attribute__ ((packed));
639 struct cmd_ds_802_11_inactivity_timeout {
640 struct cmd_header hdr;
642 /* ACT_GET/ACT_SET */
645 /* Inactivity timeout in msec */
647 } __attribute__ ((packed));
649 struct cmd_ds_802_11_rf_channel {
650 struct cmd_header hdr;
654 __le16 rftype; /* unused */
655 __le16 reserved; /* unused */
656 u8 channellist[32]; /* unused */
657 } __attribute__ ((packed));
659 struct cmd_ds_802_11_rssi {
660 /* weighting factor */
666 } __attribute__ ((packed));
668 struct cmd_ds_802_11_rssi_rsp {
672 __le16 avgnoisefloor;
673 } __attribute__ ((packed));
675 struct cmd_ds_802_11_mac_address {
676 struct cmd_header hdr;
680 } __attribute__ ((packed));
682 struct cmd_ds_802_11_rf_tx_power {
683 struct cmd_header hdr;
689 } __attribute__ ((packed));
691 struct cmd_ds_802_11_monitor_mode {
694 } __attribute__ ((packed));
696 struct cmd_ds_set_boot2_ver {
697 struct cmd_header hdr;
701 } __attribute__ ((packed));
703 struct cmd_ds_802_11_fw_wake_method {
704 struct cmd_header hdr;
708 } __attribute__ ((packed));
710 struct cmd_ds_802_11_ps_mode {
712 __le16 nullpktinterval;
715 __le16 locallisteninterval;
716 } __attribute__ ((packed));
718 struct cmd_confirm_sleep {
719 struct cmd_header hdr;
722 __le16 nullpktinterval;
725 __le16 locallisteninterval;
726 } __attribute__ ((packed));
728 struct cmd_ds_802_11_data_rate {
729 struct cmd_header hdr;
734 } __attribute__ ((packed));
736 struct cmd_ds_802_11_rate_adapt_rateset {
737 struct cmd_header hdr;
741 } __attribute__ ((packed));
743 struct cmd_ds_802_11_ad_hoc_start {
744 struct cmd_header hdr;
746 u8 ssid[IW_ESSID_MAX_SIZE];
749 u8 dtimperiod; /* Reserved on v9 and later */
750 struct ieee_ie_ibss_param_set ibss;
752 struct ieee_ie_ds_param_set ds;
754 __le16 probedelay; /* Reserved on v9 and later */
757 u8 tlv_memory_size_pad[100];
758 } __attribute__ ((packed));
760 struct cmd_ds_802_11_ad_hoc_result {
761 struct cmd_header hdr;
765 } __attribute__ ((packed));
767 struct adhoc_bssdesc {
769 u8 ssid[IW_ESSID_MAX_SIZE];
775 struct ieee_ie_ds_param_set ds;
777 struct ieee_ie_ibss_param_set ibss;
782 /* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the
783 * Adhoc join command and will cause a binary layout mismatch with
786 } __attribute__ ((packed));
788 struct cmd_ds_802_11_ad_hoc_join {
789 struct cmd_header hdr;
791 struct adhoc_bssdesc bss;
792 __le16 failtimeout; /* Reserved on v9 and later */
793 __le16 probedelay; /* Reserved on v9 and later */
794 } __attribute__ ((packed));
796 struct cmd_ds_802_11_ad_hoc_stop {
797 struct cmd_header hdr;
798 } __attribute__ ((packed));
800 struct cmd_ds_802_11_enable_rsn {
801 struct cmd_header hdr;
805 } __attribute__ ((packed));
807 struct MrvlIEtype_keyParamSet {
811 /* length of Payload */
814 /* type of key: WEP=0, TKIP=1, AES=2 */
817 /* key control Info specific to a keytypeid */
823 /* key material of size keylen */
825 } __attribute__ ((packed));
827 #define MAX_WOL_RULES 16
829 struct host_wol_rule {
837 } __attribute__ ((packed));
842 uint8_t no_rules_in_cmd;
844 struct host_wol_rule rule[MAX_WOL_RULES];
845 } __attribute__ ((packed));
847 struct cmd_ds_host_sleep {
848 struct cmd_header hdr;
852 struct wol_config wol_conf;
853 } __attribute__ ((packed));
857 struct cmd_ds_802_11_key_material {
858 struct cmd_header hdr;
861 struct MrvlIEtype_keyParamSet keyParamSet[2];
862 } __attribute__ ((packed));
864 struct cmd_ds_802_11_eeprom_access {
865 struct cmd_header hdr;
869 /* firmware says it returns a maximum of 20 bytes */
870 #define LBS_EEPROM_READ_LEN 20
871 u8 value[LBS_EEPROM_READ_LEN];
872 } __attribute__ ((packed));
874 struct cmd_ds_802_11_tpc_cfg {
875 struct cmd_header hdr;
883 } __attribute__ ((packed));
886 struct cmd_ds_802_11_pa_cfg {
887 struct cmd_header hdr;
894 } __attribute__ ((packed));
897 struct cmd_ds_802_11_led_ctrl {
901 } __attribute__ ((packed));
903 struct cmd_ds_802_11_afc {
911 __le16 timing_offset; /* signed */
912 __le16 carrier_offset; /* signed */
915 } __attribute__ ((packed));
917 struct cmd_tx_rate_query {
919 } __attribute__ ((packed));
921 struct cmd_ds_get_tsf {
923 } __attribute__ ((packed));
925 struct cmd_ds_bt_access {
930 } __attribute__ ((packed));
932 struct cmd_ds_fwt_access {
950 } __attribute__ ((packed));
952 struct cmd_ds_mesh_config {
953 struct cmd_header hdr;
959 u8 data[128]; /* last position reserved */
960 } __attribute__ ((packed));
962 struct cmd_ds_mesh_access {
963 struct cmd_header hdr;
966 __le32 data[32]; /* last position reserved */
967 } __attribute__ ((packed));
969 /* Number of stats counters returned by the firmware */
970 #define MESH_STATS_NUM 8
972 struct cmd_ds_command {
981 struct cmd_ds_802_11_ps_mode psmode;
982 struct cmd_ds_802_11_monitor_mode monitor;
983 struct cmd_ds_802_11_rssi rssi;
984 struct cmd_ds_802_11_rssi_rsp rssirsp;
985 struct cmd_ds_mac_reg_access macreg;
986 struct cmd_ds_bbp_reg_access bbpreg;
987 struct cmd_ds_rf_reg_access rfreg;
989 struct cmd_ds_802_11d_domain_info domaininfo;
990 struct cmd_ds_802_11d_domain_info domaininforesp;
992 struct cmd_ds_802_11_tpc_cfg tpccfg;
993 struct cmd_ds_802_11_afc afc;
994 struct cmd_ds_802_11_led_ctrl ledgpio;
996 struct cmd_ds_bt_access bt;
997 struct cmd_ds_fwt_access fwt;
998 struct cmd_ds_get_tsf gettsf;
999 struct cmd_ds_802_11_beacon_control bcn_ctrl;
1001 } __attribute__ ((packed));