2 * This file function prototypes, data structure
3 * and definitions for all the host/station commands
12 #define DEFAULT_AD_HOC_CHANNEL 6
14 #define CMD_OPTION_WAITFORRSP 0x0002
16 /** Host command IDs */
18 /* Return command are almost always the same as the host command, but with
19 * bit 15 set high. There are a few exceptions, though...
21 #define CMD_RET(cmd) (0x8000 | cmd)
23 /* Return command convention exceptions: */
24 #define CMD_RET_802_11_ASSOCIATE 0x8012
27 #define CMD_GET_HW_SPEC 0x0003
28 #define CMD_EEPROM_UPDATE 0x0004
29 #define CMD_802_11_RESET 0x0005
30 #define CMD_802_11_SCAN 0x0006
31 #define CMD_802_11_GET_LOG 0x000b
32 #define CMD_MAC_MULTICAST_ADR 0x0010
33 #define CMD_802_11_AUTHENTICATE 0x0011
34 #define CMD_802_11_EEPROM_ACCESS 0x0059
35 #define CMD_802_11_ASSOCIATE 0x0050
36 #define CMD_802_11_SET_WEP 0x0013
37 #define CMD_802_11_GET_STAT 0x0014
38 #define CMD_802_3_GET_STAT 0x0015
39 #define CMD_802_11_SNMP_MIB 0x0016
40 #define CMD_MAC_REG_MAP 0x0017
41 #define CMD_BBP_REG_MAP 0x0018
42 #define CMD_MAC_REG_ACCESS 0x0019
43 #define CMD_BBP_REG_ACCESS 0x001a
44 #define CMD_RF_REG_ACCESS 0x001b
45 #define CMD_802_11_RADIO_CONTROL 0x001c
46 #define CMD_802_11_RF_CHANNEL 0x001d
47 #define CMD_802_11_RF_TX_POWER 0x001e
48 #define CMD_802_11_RSSI 0x001f
49 #define CMD_802_11_RF_ANTENNA 0x0020
50 #define CMD_802_11_PS_MODE 0x0021
51 #define CMD_802_11_DATA_RATE 0x0022
52 #define CMD_RF_REG_MAP 0x0023
53 #define CMD_802_11_DEAUTHENTICATE 0x0024
54 #define CMD_802_11_REASSOCIATE 0x0025
55 #define CMD_MAC_CONTROL 0x0028
56 #define CMD_802_11_AD_HOC_START 0x002b
57 #define CMD_802_11_AD_HOC_JOIN 0x002c
58 #define CMD_802_11_QUERY_TKIP_REPLY_CNTRS 0x002e
59 #define CMD_802_11_ENABLE_RSN 0x002f
60 #define CMD_802_11_SET_AFC 0x003c
61 #define CMD_802_11_GET_AFC 0x003d
62 #define CMD_802_11_DEEP_SLEEP 0x003e
63 #define CMD_802_11_AD_HOC_STOP 0x0040
64 #define CMD_802_11_HOST_SLEEP_CFG 0x0043
65 #define CMD_802_11_WAKEUP_CONFIRM 0x0044
66 #define CMD_802_11_HOST_SLEEP_ACTIVATE 0x0045
67 #define CMD_802_11_BEACON_STOP 0x0049
68 #define CMD_802_11_MAC_ADDRESS 0x004d
69 #define CMD_802_11_LED_GPIO_CTRL 0x004e
70 #define CMD_802_11_EEPROM_ACCESS 0x0059
71 #define CMD_802_11_BAND_CONFIG 0x0058
72 #define CMD_GSPI_BUS_CONFIG 0x005a
73 #define CMD_802_11D_DOMAIN_INFO 0x005b
74 #define CMD_802_11_KEY_MATERIAL 0x005e
75 #define CMD_802_11_SLEEP_PARAMS 0x0066
76 #define CMD_802_11_INACTIVITY_TIMEOUT 0x0067
77 #define CMD_802_11_SLEEP_PERIOD 0x0068
78 #define CMD_802_11_TPC_CFG 0x0072
79 #define CMD_802_11_PA_CFG 0x0073
80 #define CMD_802_11_FW_WAKE_METHOD 0x0074
81 #define CMD_802_11_SUBSCRIBE_EVENT 0x0075
82 #define CMD_802_11_RATE_ADAPT_RATESET 0x0076
83 #define CMD_802_11_TX_RATE_QUERY 0x007f
84 #define CMD_GET_TSF 0x0080
85 #define CMD_BT_ACCESS 0x0087
86 #define CMD_FWT_ACCESS 0x0095
87 #define CMD_802_11_MONITOR_MODE 0x0098
88 #define CMD_MESH_ACCESS 0x009b
89 #define CMD_MESH_CONFIG_OLD 0x00a3
90 #define CMD_MESH_CONFIG 0x00ac
91 #define CMD_SET_BOOT2_VER 0x00a5
92 #define CMD_FUNC_INIT 0x00a9
93 #define CMD_FUNC_SHUTDOWN 0x00aa
94 #define CMD_802_11_BEACON_CTRL 0x00b0
96 /* For the IEEE Power Save */
97 #define CMD_SUBCMD_ENTER_PS 0x0030
98 #define CMD_SUBCMD_EXIT_PS 0x0031
99 #define CMD_SUBCMD_SLEEP_CONFIRMED 0x0034
100 #define CMD_SUBCMD_FULL_POWERDOWN 0x0035
101 #define CMD_SUBCMD_FULL_POWERUP 0x0036
103 #define CMD_ENABLE_RSN 0x0001
104 #define CMD_DISABLE_RSN 0x0000
106 #define CMD_ACT_GET 0x0000
107 #define CMD_ACT_SET 0x0001
109 /* Define action or option for CMD_802_11_SET_WEP */
110 #define CMD_ACT_ADD 0x0002
111 #define CMD_ACT_REMOVE 0x0004
113 #define CMD_TYPE_WEP_40_BIT 0x01
114 #define CMD_TYPE_WEP_104_BIT 0x02
116 #define CMD_NUM_OF_WEP_KEYS 4
118 #define CMD_WEP_KEY_INDEX_MASK 0x3fff
120 /* Define action or option for CMD_802_11_SCAN */
121 #define CMD_BSS_TYPE_BSS 0x0001
122 #define CMD_BSS_TYPE_IBSS 0x0002
123 #define CMD_BSS_TYPE_ANY 0x0003
125 /* Define action or option for CMD_802_11_SCAN */
126 #define CMD_SCAN_TYPE_ACTIVE 0x0000
127 #define CMD_SCAN_TYPE_PASSIVE 0x0001
129 #define CMD_SCAN_RADIO_TYPE_BG 0
131 #define CMD_SCAN_PROBE_DELAY_TIME 0
133 /* Define action or option for CMD_MAC_CONTROL */
134 #define CMD_ACT_MAC_RX_ON 0x0001
135 #define CMD_ACT_MAC_TX_ON 0x0002
136 #define CMD_ACT_MAC_LOOPBACK_ON 0x0004
137 #define CMD_ACT_MAC_WEP_ENABLE 0x0008
138 #define CMD_ACT_MAC_INT_ENABLE 0x0010
139 #define CMD_ACT_MAC_MULTICAST_ENABLE 0x0020
140 #define CMD_ACT_MAC_BROADCAST_ENABLE 0x0040
141 #define CMD_ACT_MAC_PROMISCUOUS_ENABLE 0x0080
142 #define CMD_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100
143 #define CMD_ACT_MAC_STRICT_PROTECTION_ENABLE 0x0400
145 /* Event flags for CMD_802_11_SUBSCRIBE_EVENT */
146 #define CMD_SUBSCRIBE_RSSI_LOW 0x0001
147 #define CMD_SUBSCRIBE_SNR_LOW 0x0002
148 #define CMD_SUBSCRIBE_FAILCOUNT 0x0004
149 #define CMD_SUBSCRIBE_BCNMISS 0x0008
150 #define CMD_SUBSCRIBE_RSSI_HIGH 0x0010
151 #define CMD_SUBSCRIBE_SNR_HIGH 0x0020
153 #define RADIO_PREAMBLE_LONG 0x00
154 #define RADIO_PREAMBLE_SHORT 0x02
155 #define RADIO_PREAMBLE_AUTO 0x04
157 /* Define action or option for CMD_802_11_RF_CHANNEL */
158 #define CMD_OPT_802_11_RF_CHANNEL_GET 0x00
159 #define CMD_OPT_802_11_RF_CHANNEL_SET 0x01
161 /* Define action or option for CMD_802_11_DATA_RATE */
162 #define CMD_ACT_SET_TX_AUTO 0x0000
163 #define CMD_ACT_SET_TX_FIX_RATE 0x0001
164 #define CMD_ACT_GET_TX_RATE 0x0002
166 /* Define action or option for CMD_802_11_PS_MODE */
167 #define CMD_TYPE_CAM 0x0000
168 #define CMD_TYPE_MAX_PSP 0x0001
169 #define CMD_TYPE_FAST_PSP 0x0002
171 /* Options for CMD_802_11_FW_WAKE_METHOD */
172 #define CMD_WAKE_METHOD_UNCHANGED 0x0000
173 #define CMD_WAKE_METHOD_COMMAND_INT 0x0001
174 #define CMD_WAKE_METHOD_GPIO 0x0002
176 /* Object IDs for CMD_802_11_SNMP_MIB */
177 #define SNMP_MIB_OID_BSS_TYPE 0x0000
178 #define SNMP_MIB_OID_OP_RATE_SET 0x0001
179 #define SNMP_MIB_OID_BEACON_PERIOD 0x0002 /* Reserved on v9+ */
180 #define SNMP_MIB_OID_DTIM_PERIOD 0x0003 /* Reserved on v9+ */
181 #define SNMP_MIB_OID_ASSOC_TIMEOUT 0x0004 /* Reserved on v9+ */
182 #define SNMP_MIB_OID_RTS_THRESHOLD 0x0005
183 #define SNMP_MIB_OID_SHORT_RETRY_LIMIT 0x0006
184 #define SNMP_MIB_OID_LONG_RETRY_LIMIT 0x0007
185 #define SNMP_MIB_OID_FRAG_THRESHOLD 0x0008
186 #define SNMP_MIB_OID_11D_ENABLE 0x0009
187 #define SNMP_MIB_OID_11H_ENABLE 0x000A
189 /* Define action or option for CMD_BT_ACCESS */
190 enum cmd_bt_access_opts
{
191 /* The bt commands start at 5 instead of 1 because the old dft commands
192 * are mapped to 1-4. These old commands are no longer maintained and
193 * should not be called.
195 CMD_ACT_BT_ACCESS_ADD
= 5,
196 CMD_ACT_BT_ACCESS_DEL
,
197 CMD_ACT_BT_ACCESS_LIST
,
198 CMD_ACT_BT_ACCESS_RESET
,
199 CMD_ACT_BT_ACCESS_SET_INVERT
,
200 CMD_ACT_BT_ACCESS_GET_INVERT
203 /* Define action or option for CMD_FWT_ACCESS */
204 enum cmd_fwt_access_opts
{
205 CMD_ACT_FWT_ACCESS_ADD
= 1,
206 CMD_ACT_FWT_ACCESS_DEL
,
207 CMD_ACT_FWT_ACCESS_LOOKUP
,
208 CMD_ACT_FWT_ACCESS_LIST
,
209 CMD_ACT_FWT_ACCESS_LIST_ROUTE
,
210 CMD_ACT_FWT_ACCESS_LIST_NEIGHBOR
,
211 CMD_ACT_FWT_ACCESS_RESET
,
212 CMD_ACT_FWT_ACCESS_CLEANUP
,
213 CMD_ACT_FWT_ACCESS_TIME
,
216 /* Define action or option for CMD_802_11_HOST_SLEEP_CFG */
217 enum cmd_wol_cfg_opts
{
218 CMD_ACT_ACTION_NONE
= 0,
219 CMD_ACT_SET_WOL_RULE
,
220 CMD_ACT_GET_WOL_RULE
,
221 CMD_ACT_RESET_WOL_RULE
,
224 /* Define action or option for CMD_MESH_ACCESS */
225 enum cmd_mesh_access_opts
{
226 CMD_ACT_MESH_GET_TTL
= 1,
227 CMD_ACT_MESH_SET_TTL
,
228 CMD_ACT_MESH_GET_STATS
,
229 CMD_ACT_MESH_GET_ANYCAST
,
230 CMD_ACT_MESH_SET_ANYCAST
,
231 CMD_ACT_MESH_SET_LINK_COSTS
,
232 CMD_ACT_MESH_GET_LINK_COSTS
,
233 CMD_ACT_MESH_SET_BCAST_RATE
,
234 CMD_ACT_MESH_GET_BCAST_RATE
,
235 CMD_ACT_MESH_SET_RREQ_DELAY
,
236 CMD_ACT_MESH_GET_RREQ_DELAY
,
237 CMD_ACT_MESH_SET_ROUTE_EXP
,
238 CMD_ACT_MESH_GET_ROUTE_EXP
,
239 CMD_ACT_MESH_SET_AUTOSTART_ENABLED
,
240 CMD_ACT_MESH_GET_AUTOSTART_ENABLED
,
241 CMD_ACT_MESH_SET_GET_PRB_RSP_LIMIT
= 17,
244 /* Define actions and types for CMD_MESH_CONFIG */
245 enum cmd_mesh_config_actions
{
246 CMD_ACT_MESH_CONFIG_STOP
= 0,
247 CMD_ACT_MESH_CONFIG_START
,
248 CMD_ACT_MESH_CONFIG_SET
,
249 CMD_ACT_MESH_CONFIG_GET
,
252 enum cmd_mesh_config_types
{
253 CMD_TYPE_MESH_SET_BOOTFLAG
= 1,
254 CMD_TYPE_MESH_SET_BOOTTIME
,
255 CMD_TYPE_MESH_SET_DEF_CHANNEL
,
256 CMD_TYPE_MESH_SET_MESH_IE
,
257 CMD_TYPE_MESH_GET_DEFAULTS
,
258 CMD_TYPE_MESH_GET_MESH_IE
, /* GET_DEFAULTS is superset of GET_MESHIE */
261 /** Card Event definition */
262 #define MACREG_INT_CODE_TX_PPA_FREE 0
263 #define MACREG_INT_CODE_TX_DMA_DONE 1
264 #define MACREG_INT_CODE_LINK_LOST_W_SCAN 2
265 #define MACREG_INT_CODE_LINK_LOST_NO_SCAN 3
266 #define MACREG_INT_CODE_LINK_SENSED 4
267 #define MACREG_INT_CODE_CMD_FINISHED 5
268 #define MACREG_INT_CODE_MIB_CHANGED 6
269 #define MACREG_INT_CODE_INIT_DONE 7
270 #define MACREG_INT_CODE_DEAUTHENTICATED 8
271 #define MACREG_INT_CODE_DISASSOCIATED 9
272 #define MACREG_INT_CODE_PS_AWAKE 10
273 #define MACREG_INT_CODE_PS_SLEEP 11
274 #define MACREG_INT_CODE_MIC_ERR_MULTICAST 13
275 #define MACREG_INT_CODE_MIC_ERR_UNICAST 14
276 #define MACREG_INT_CODE_WM_AWAKE 15
277 #define MACREG_INT_CODE_DEEP_SLEEP_AWAKE 16
278 #define MACREG_INT_CODE_ADHOC_BCN_LOST 17
279 #define MACREG_INT_CODE_HOST_AWAKE 18
280 #define MACREG_INT_CODE_STOP_TX 19
281 #define MACREG_INT_CODE_START_TX 20
282 #define MACREG_INT_CODE_CHANNEL_SWITCH 21
283 #define MACREG_INT_CODE_MEASUREMENT_RDY 22
284 #define MACREG_INT_CODE_WMM_CHANGE 23
285 #define MACREG_INT_CODE_BG_SCAN_REPORT 24
286 #define MACREG_INT_CODE_RSSI_LOW 25
287 #define MACREG_INT_CODE_SNR_LOW 26
288 #define MACREG_INT_CODE_MAX_FAIL 27
289 #define MACREG_INT_CODE_RSSI_HIGH 28
290 #define MACREG_INT_CODE_SNR_HIGH 29
291 #define MACREG_INT_CODE_MESH_AUTO_STARTED 35
292 #define MACREG_INT_CODE_FIRMWARE_READY 48
295 /* 802.11-related definitions */
297 /* TxPD descriptor */
299 /* union to cope up with later FW revisions */
301 /* Current Tx packet status */
304 /* BSS type: client, AP, etc. */
314 __le32 tx_packet_location
;
315 /* Tx packet length */
316 __le16 tx_packet_length
;
317 /* First 2 byte of destination MAC address */
318 u8 tx_dest_addr_high
[2];
319 /* Last 4 byte of destination MAC address */
320 u8 tx_dest_addr_low
[4];
323 /* Pkt Trasnit Power control */
325 /* Amount of time the packet has been queued (units = 2ms) */
329 } __attribute__ ((packed
));
331 /* RxPD Descriptor */
333 /* union to cope up with later FW revisions */
335 /* Current Rx packet status */
338 /* BSS type: client, AP, etc. */
342 } __attribute__ ((packed
)) bss
;
343 } __attribute__ ((packed
)) u
;
363 /* Next Rx RxPD addr */
364 __le32 next_rxpd_ptr
;
369 } __attribute__ ((packed
));
376 } __attribute__ ((packed
));
378 /* Generic structure to hold all key types. */
381 u16 flags
; /* KEY_INFO_* from defs.h */
382 u16 type
; /* KEY_TYPE_* from defs.h */
386 /* lbs_offset_value */
387 struct lbs_offset_value
{
390 } __attribute__ ((packed
));
393 * Define data structure for CMD_GET_HW_SPEC
394 * This structure defines the response for the GET_HW_SPEC command
396 struct cmd_ds_get_hw_spec
{
397 struct cmd_header hdr
;
399 /* HW Interface version number */
401 /* HW version number */
403 /* Max number of TxPD FW can handle */
405 /* Max no of Multicast address */
413 /* Number of antenna used */
416 /* FW release number, example 0x01030304 = 2.3.4p1 */
419 /* Base Address of TxPD queue */
421 /* Read Pointer of RxPd queue */
424 /* Write Pointer of RxPd queue */
427 /*FW/HW capability */
429 } __attribute__ ((packed
));
431 struct cmd_ds_802_11_subscribe_event
{
432 struct cmd_header hdr
;
437 /* A TLV to the CMD_802_11_SUBSCRIBE_EVENT command can contain a
438 * number of TLVs. From the v5.1 manual, those TLVs would add up to
439 * 40 bytes. However, future firmware might add additional TLVs, so I
440 * bump this up a bit.
443 } __attribute__ ((packed
));
446 * This scan handle Country Information IE(802.11d compliant)
447 * Define data structure for CMD_802_11_SCAN
449 struct cmd_ds_802_11_scan
{
450 struct cmd_header hdr
;
453 uint8_t bssid
[ETH_ALEN
];
454 uint8_t tlvbuffer
[0];
455 } __attribute__ ((packed
));
457 struct cmd_ds_802_11_scan_rsp
{
458 struct cmd_header hdr
;
460 __le16 bssdescriptsize
;
462 uint8_t bssdesc_and_tlvbuffer
[0];
463 } __attribute__ ((packed
));
465 struct cmd_ds_802_11_get_log
{
466 struct cmd_header hdr
;
480 __le32 wepundecryptable
;
481 } __attribute__ ((packed
));
483 struct cmd_ds_mac_control
{
484 struct cmd_header hdr
;
487 } __attribute__ ((packed
));
489 struct cmd_ds_mac_multicast_adr
{
490 struct cmd_header hdr
;
493 u8 maclist
[ETH_ALEN
* MRVDRV_MAX_MULTICAST_LIST_SIZE
];
494 } __attribute__ ((packed
));
496 struct cmd_ds_802_11_authenticate
{
497 struct cmd_header hdr
;
502 } __attribute__ ((packed
));
504 struct cmd_ds_802_11_deauthenticate
{
505 struct cmd_header hdr
;
507 u8 macaddr
[ETH_ALEN
];
509 } __attribute__ ((packed
));
511 struct cmd_ds_802_11_associate
{
512 struct cmd_header hdr
;
516 __le16 listeninterval
;
519 u8 iebuf
[512]; /* Enough for required and most optional IEs */
520 } __attribute__ ((packed
));
522 struct cmd_ds_802_11_associate_response
{
523 struct cmd_header hdr
;
529 } __attribute__ ((packed
));
531 struct cmd_ds_802_11_set_wep
{
532 struct cmd_header hdr
;
534 /* ACT_ADD, ACT_REMOVE or ACT_ENABLE */
537 /* key Index selected for Tx */
540 /* 40, 128bit or TXWEP */
542 uint8_t keymaterial
[4][16];
543 } __attribute__ ((packed
));
545 struct cmd_ds_802_11_snmp_mib
{
546 struct cmd_header hdr
;
552 } __attribute__ ((packed
));
554 struct cmd_ds_mac_reg_access
{
558 } __attribute__ ((packed
));
560 struct cmd_ds_bbp_reg_access
{
565 } __attribute__ ((packed
));
567 struct cmd_ds_rf_reg_access
{
572 } __attribute__ ((packed
));
574 struct cmd_ds_802_11_radio_control
{
575 struct cmd_header hdr
;
579 } __attribute__ ((packed
));
581 struct cmd_ds_802_11_beacon_control
{
583 __le16 beacon_enable
;
584 __le16 beacon_period
;
585 } __attribute__ ((packed
));
587 struct cmd_ds_802_11_sleep_params
{
588 struct cmd_header hdr
;
590 /* ACT_GET/ACT_SET */
593 /* Sleep clock error in ppm */
596 /* Wakeup offset in usec */
599 /* Clock stabilization time in usec */
602 /* control periodic calibration */
605 /* control the use of external sleep clock */
606 uint8_t externalsleepclk
;
608 /* reserved field, should be set to zero */
610 } __attribute__ ((packed
));
612 struct cmd_ds_802_11_rf_channel
{
613 struct cmd_header hdr
;
617 __le16 rftype
; /* unused */
618 __le16 reserved
; /* unused */
619 u8 channellist
[32]; /* unused */
620 } __attribute__ ((packed
));
622 struct cmd_ds_802_11_rssi
{
623 /* weighting factor */
629 } __attribute__ ((packed
));
631 struct cmd_ds_802_11_rssi_rsp
{
635 __le16 avgnoisefloor
;
636 } __attribute__ ((packed
));
638 struct cmd_ds_802_11_mac_address
{
639 struct cmd_header hdr
;
643 } __attribute__ ((packed
));
645 struct cmd_ds_802_11_rf_tx_power
{
646 struct cmd_header hdr
;
652 } __attribute__ ((packed
));
654 struct cmd_ds_802_11_monitor_mode
{
657 } __attribute__ ((packed
));
659 struct cmd_ds_set_boot2_ver
{
660 struct cmd_header hdr
;
664 } __attribute__ ((packed
));
666 struct cmd_ds_802_11_fw_wake_method
{
667 struct cmd_header hdr
;
671 } __attribute__ ((packed
));
673 struct cmd_ds_802_11_ps_mode
{
675 __le16 nullpktinterval
;
678 __le16 locallisteninterval
;
679 } __attribute__ ((packed
));
681 struct cmd_confirm_sleep
{
682 struct cmd_header hdr
;
685 __le16 nullpktinterval
;
688 __le16 locallisteninterval
;
689 } __attribute__ ((packed
));
691 struct cmd_ds_802_11_data_rate
{
692 struct cmd_header hdr
;
697 } __attribute__ ((packed
));
699 struct cmd_ds_802_11_rate_adapt_rateset
{
700 struct cmd_header hdr
;
704 } __attribute__ ((packed
));
706 struct cmd_ds_802_11_ad_hoc_start
{
707 struct cmd_header hdr
;
709 u8 ssid
[IEEE80211_MAX_SSID_LEN
];
712 u8 dtimperiod
; /* Reserved on v9 and later */
713 struct ieee_ie_ibss_param_set ibss
;
715 struct ieee_ie_ds_param_set ds
;
717 __le16 probedelay
; /* Reserved on v9 and later */
720 u8 tlv_memory_size_pad
[100];
721 } __attribute__ ((packed
));
723 struct cmd_ds_802_11_ad_hoc_result
{
724 struct cmd_header hdr
;
728 } __attribute__ ((packed
));
730 struct adhoc_bssdesc
{
732 u8 ssid
[IEEE80211_MAX_SSID_LEN
];
738 struct ieee_ie_ds_param_set ds
;
740 struct ieee_ie_ibss_param_set ibss
;
745 /* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the
746 * Adhoc join command and will cause a binary layout mismatch with
749 } __attribute__ ((packed
));
751 struct cmd_ds_802_11_ad_hoc_join
{
752 struct cmd_header hdr
;
754 struct adhoc_bssdesc bss
;
755 __le16 failtimeout
; /* Reserved on v9 and later */
756 __le16 probedelay
; /* Reserved on v9 and later */
757 } __attribute__ ((packed
));
759 struct cmd_ds_802_11_ad_hoc_stop
{
760 struct cmd_header hdr
;
761 } __attribute__ ((packed
));
763 struct cmd_ds_802_11_enable_rsn
{
764 struct cmd_header hdr
;
768 } __attribute__ ((packed
));
770 struct MrvlIEtype_keyParamSet
{
774 /* length of Payload */
777 /* type of key: WEP=0, TKIP=1, AES=2 */
780 /* key control Info specific to a keytypeid */
786 /* key material of size keylen */
788 } __attribute__ ((packed
));
790 #define MAX_WOL_RULES 16
792 struct host_wol_rule
{
800 } __attribute__ ((packed
));
805 uint8_t no_rules_in_cmd
;
807 struct host_wol_rule rule
[MAX_WOL_RULES
];
808 } __attribute__ ((packed
));
810 struct cmd_ds_host_sleep
{
811 struct cmd_header hdr
;
815 struct wol_config wol_conf
;
816 } __attribute__ ((packed
));
820 struct cmd_ds_802_11_key_material
{
821 struct cmd_header hdr
;
824 struct MrvlIEtype_keyParamSet keyParamSet
[2];
825 } __attribute__ ((packed
));
827 struct cmd_ds_802_11_eeprom_access
{
828 struct cmd_header hdr
;
832 /* firmware says it returns a maximum of 20 bytes */
833 #define LBS_EEPROM_READ_LEN 20
834 u8 value
[LBS_EEPROM_READ_LEN
];
835 } __attribute__ ((packed
));
837 struct cmd_ds_802_11_tpc_cfg
{
838 struct cmd_header hdr
;
846 } __attribute__ ((packed
));
849 struct cmd_ds_802_11_pa_cfg
{
850 struct cmd_header hdr
;
857 } __attribute__ ((packed
));
860 struct cmd_ds_802_11_led_ctrl
{
864 } __attribute__ ((packed
));
866 struct cmd_ds_802_11_afc
{
874 __le16 timing_offset
; /* signed */
875 __le16 carrier_offset
; /* signed */
878 } __attribute__ ((packed
));
880 struct cmd_tx_rate_query
{
882 } __attribute__ ((packed
));
884 struct cmd_ds_get_tsf
{
886 } __attribute__ ((packed
));
888 struct cmd_ds_bt_access
{
893 } __attribute__ ((packed
));
895 struct cmd_ds_fwt_access
{
913 } __attribute__ ((packed
));
915 struct cmd_ds_mesh_config
{
916 struct cmd_header hdr
;
922 u8 data
[128]; /* last position reserved */
923 } __attribute__ ((packed
));
925 struct cmd_ds_mesh_access
{
926 struct cmd_header hdr
;
929 __le32 data
[32]; /* last position reserved */
930 } __attribute__ ((packed
));
932 /* Number of stats counters returned by the firmware */
933 #define MESH_STATS_NUM 8
935 struct cmd_ds_command
{
944 struct cmd_ds_802_11_ps_mode psmode
;
945 struct cmd_ds_802_11_monitor_mode monitor
;
946 struct cmd_ds_802_11_rssi rssi
;
947 struct cmd_ds_802_11_rssi_rsp rssirsp
;
948 struct cmd_ds_mac_reg_access macreg
;
949 struct cmd_ds_bbp_reg_access bbpreg
;
950 struct cmd_ds_rf_reg_access rfreg
;
952 struct cmd_ds_802_11_tpc_cfg tpccfg
;
953 struct cmd_ds_802_11_afc afc
;
954 struct cmd_ds_802_11_led_ctrl ledgpio
;
956 struct cmd_ds_bt_access bt
;
957 struct cmd_ds_fwt_access fwt
;
958 struct cmd_ds_802_11_beacon_control bcn_ctrl
;
960 } __attribute__ ((packed
));