blob: f8c008f8f4761d4af274e6f8fd4e0d17cdc2e229 [file] [log] [blame]
Bing Zhao5e6e3a92011-03-21 18:00:50 -07001/*
2 * Marvell Wireless LAN device driver: Firmware specific macros & structures
3 *
4 * Copyright (C) 2011, Marvell International Ltd.
5 *
6 * This software file (the "File") is distributed by Marvell International
7 * Ltd. under the terms of the GNU General Public License Version 2, June 1991
8 * (the "License"). You may use, redistribute and/or modify this File in
9 * accordance with the terms and conditions of the License, a copy of which
10 * is available by writing to the Free Software Foundation, Inc.,
11 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
12 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
13 *
14 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
16 * ARE EXPRESSLY DISCLAIMED. The License provides additional details about
17 * this warranty disclaimer.
18 */
19
20#ifndef _MWIFIEX_FW_H_
21#define _MWIFIEX_FW_H_
22
23#include <linux/if_ether.h>
24
25
26#define INTF_HEADER_LEN 4
27
28struct rfc_1042_hdr {
29 u8 llc_dsap;
30 u8 llc_ssap;
31 u8 llc_ctrl;
32 u8 snap_oui[3];
33 u16 snap_type;
34};
35
36struct rx_packet_hdr {
37 struct ethhdr eth803_hdr;
38 struct rfc_1042_hdr rfc1042_hdr;
39};
40
41struct tx_packet_hdr {
42 struct ethhdr eth803_hdr;
43 struct rfc_1042_hdr rfc1042_hdr;
44};
45
46#define B_SUPPORTED_RATES 5
47#define G_SUPPORTED_RATES 9
48#define BG_SUPPORTED_RATES 13
49#define A_SUPPORTED_RATES 9
50#define HOSTCMD_SUPPORTED_RATES 14
51#define N_SUPPORTED_RATES 3
52#define ALL_802_11_BANDS (BAND_A | BAND_B | BAND_G | BAND_GN)
53
54#define FW_MULTI_BANDS_SUPPORT (BIT(8) | BIT(9) | BIT(10) | BIT(11))
55#define IS_SUPPORT_MULTI_BANDS(adapter) \
56 (adapter->fw_cap_info & FW_MULTI_BANDS_SUPPORT)
57#define GET_FW_DEFAULT_BANDS(adapter) \
58 ((adapter->fw_cap_info >> 8) & ALL_802_11_BANDS)
59
Bing Zhao5e6e3a92011-03-21 18:00:50 -070060extern u8 supported_rates_b[B_SUPPORTED_RATES];
61extern u8 supported_rates_g[G_SUPPORTED_RATES];
62extern u8 supported_rates_bg[BG_SUPPORTED_RATES];
63extern u8 supported_rates_a[A_SUPPORTED_RATES];
64extern u8 supported_rates_n[N_SUPPORTED_RATES];
65
66#define HostCmd_WEP_KEY_INDEX_MASK 0x3fff
67
68#define KEY_INFO_ENABLED 0x01
69enum KEY_TYPE_ID {
70 KEY_TYPE_ID_WEP = 0,
71 KEY_TYPE_ID_TKIP,
72 KEY_TYPE_ID_AES,
73 KEY_TYPE_ID_WAPI,
74};
Yogesh Ashok Powar6a35a0a2011-04-06 16:46:56 -070075#define KEY_MCAST BIT(0)
76#define KEY_UNICAST BIT(1)
77#define KEY_ENABLED BIT(2)
Bing Zhao5e6e3a92011-03-21 18:00:50 -070078
79#define WAPI_KEY_LEN 50
80
Bing Zhao5e6e3a92011-03-21 18:00:50 -070081#define MAX_POLL_TRIES 100
82
83#define MAX_MULTI_INTERFACE_POLL_TRIES 1000
84
85#define MAX_FIRMWARE_POLL_TRIES 100
86
87#define FIRMWARE_READY 0xfedc
88
Bing Zhao5e6e3a92011-03-21 18:00:50 -070089enum MWIFIEX_802_11_PRIVACY_FILTER {
90 MWIFIEX_802_11_PRIV_FILTER_ACCEPT_ALL,
91 MWIFIEX_802_11_PRIV_FILTER_8021X_WEP
92};
93
94enum MWIFIEX_802_11_WEP_STATUS {
95 MWIFIEX_802_11_WEP_ENABLED,
96 MWIFIEX_802_11_WEP_DISABLED,
97};
98
99#define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF)))
100
101#define PROPRIETARY_TLV_BASE_ID 0x0100
102#define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0)
103#define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1)
104#define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700105#define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700106#define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16)
107#define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18)
108#define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700109#define TLV_TYPE_AUTH_TYPE (PROPRIETARY_TLV_BASE_ID + 31)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700110#define TLV_TYPE_CHANNELBANDLIST (PROPRIETARY_TLV_BASE_ID + 42)
Marc Yang2b06bdb2011-03-30 18:12:44 -0700111#define TLV_TYPE_RATE_DROP_CONTROL (PROPRIETARY_TLV_BASE_ID + 82)
112#define TLV_TYPE_RATE_SCOPE (PROPRIETARY_TLV_BASE_ID + 83)
113#define TLV_TYPE_POWER_GROUP (PROPRIETARY_TLV_BASE_ID + 84)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700114#define TLV_TYPE_WAPI_IE (PROPRIETARY_TLV_BASE_ID + 94)
Marc Yang2b06bdb2011-03-30 18:12:44 -0700115#define TLV_TYPE_AUTO_DS_PARAM (PROPRIETARY_TLV_BASE_ID + 113)
116#define TLV_TYPE_PS_PARAM (PROPRIETARY_TLV_BASE_ID + 114)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700117
118#define MWIFIEX_TX_DATA_BUF_SIZE_2K 2048
119
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700120#define SSN_MASK 0xfff0
121
122#define BA_RESULT_SUCCESS 0x0
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700123#define BA_RESULT_TIMEOUT 0x2
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700124
125#define IS_BASTREAM_SETUP(ptr) (ptr->ba_status)
126
127#define BA_STREAM_NOT_ALLOWED 0xff
128
129#define IS_11N_ENABLED(priv) ((priv->adapter->config_bands & BAND_GN || \
130 priv->adapter->config_bands & BAND_AN) \
131 && priv->curr_bss_params.bss_descriptor.bcn_ht_cap)
132#define INITIATOR_BIT(DelBAParamSet) (((DelBAParamSet) &\
133 BIT(DELBA_INITIATOR_POS)) >> DELBA_INITIATOR_POS)
134
135#define MWIFIEX_TX_DATA_BUF_SIZE_4K 4096
136#define MWIFIEX_TX_DATA_BUF_SIZE_8K 8192
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700137#define NON_GREENFIELD_STAS 0x04
138
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700139#define ISSUPP_11NENABLED(FwCapInfo) (FwCapInfo & BIT(11))
Marc Yang6d2bd912011-03-25 19:47:02 -0700140
141/* dev_cap bitmap
142 * BIT
143 * 0-16 reserved
144 * 17 IEEE80211_HT_CAP_SUP_WIDTH_20_40
145 * 18-22 reserved
146 * 23 IEEE80211_HT_CAP_SGI_20
147 * 24 IEEE80211_HT_CAP_SGI_40
148 * 25 IEEE80211_HT_CAP_TX_STBC
149 * 26 IEEE80211_HT_CAP_RX_STBC
150 * 27-28 reserved
151 * 29 IEEE80211_HT_CAP_GRN_FLD
152 * 30-31 reserved
153 */
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700154#define ISSUPP_CHANWIDTH40(Dot11nDevCap) (Dot11nDevCap & BIT(17))
Marc Yang6d2bd912011-03-25 19:47:02 -0700155#define ISSUPP_SHORTGI20(Dot11nDevCap) (Dot11nDevCap & BIT(23))
156#define ISSUPP_SHORTGI40(Dot11nDevCap) (Dot11nDevCap & BIT(24))
157#define ISSUPP_TXSTBC(Dot11nDevCap) (Dot11nDevCap & BIT(25))
158#define ISSUPP_RXSTBC(Dot11nDevCap) (Dot11nDevCap & BIT(26))
159#define ISSUPP_GREENFIELD(Dot11nDevCap) (Dot11nDevCap & BIT(29))
160
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700161#define GET_RXMCSSUPP(DevMCSSupported) (DevMCSSupported & 0x0f)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700162#define RESETHT_EXTCAP_RDG(HTExtCap) (HTExtCap &= ~BIT(11))
163#define SETHT_MCS32(x) (x[4] |= 1)
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700164
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700165#define SET_SECONDARYCHAN(RadioType, SECCHAN) (RadioType |= (SECCHAN << 4))
166
167#define LLC_SNAP_LEN 8
168
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700169#define MOD_CLASS_HR_DSSS 0x03
170#define MOD_CLASS_OFDM 0x07
171#define MOD_CLASS_HT 0x08
172#define HT_BW_20 0
173#define HT_BW_40 1
174
175#define HostCmd_CMD_GET_HW_SPEC 0x0003
176#define HostCmd_CMD_802_11_SCAN 0x0006
177#define HostCmd_CMD_802_11_GET_LOG 0x000b
178#define HostCmd_CMD_MAC_MULTICAST_ADR 0x0010
179#define HostCmd_CMD_802_11_EEPROM_ACCESS 0x0059
180#define HostCmd_CMD_802_11_ASSOCIATE 0x0012
181#define HostCmd_CMD_802_11_SNMP_MIB 0x0016
182#define HostCmd_CMD_MAC_REG_ACCESS 0x0019
183#define HostCmd_CMD_BBP_REG_ACCESS 0x001a
184#define HostCmd_CMD_RF_REG_ACCESS 0x001b
185#define HostCmd_CMD_PMIC_REG_ACCESS 0x00ad
186#define HostCmd_CMD_802_11_RF_CHANNEL 0x001d
187#define HostCmd_CMD_802_11_DEAUTHENTICATE 0x0024
188#define HostCmd_CMD_MAC_CONTROL 0x0028
189#define HostCmd_CMD_802_11_AD_HOC_START 0x002b
190#define HostCmd_CMD_802_11_AD_HOC_JOIN 0x002c
191#define HostCmd_CMD_802_11_AD_HOC_STOP 0x0040
192#define HostCmd_CMD_802_11_MAC_ADDRESS 0x004D
193#define HostCmd_CMD_802_11D_DOMAIN_INFO 0x005b
194#define HostCmd_CMD_802_11_KEY_MATERIAL 0x005e
195#define HostCmd_CMD_802_11_BG_SCAN_QUERY 0x006c
196#define HostCmd_CMD_WMM_GET_STATUS 0x0071
197#define HostCmd_CMD_802_11_TX_RATE_QUERY 0x007f
198#define HostCmd_CMD_802_11_IBSS_COALESCING_STATUS 0x0083
199#define HostCmd_CMD_VERSION_EXT 0x0097
200#define HostCmd_CMD_RSSI_INFO 0x00a4
201#define HostCmd_CMD_FUNC_INIT 0x00a9
202#define HostCmd_CMD_FUNC_SHUTDOWN 0x00aa
203#define HostCmd_CMD_11N_CFG 0x00cd
204#define HostCmd_CMD_11N_ADDBA_REQ 0x00ce
205#define HostCmd_CMD_11N_ADDBA_RSP 0x00cf
206#define HostCmd_CMD_11N_DELBA 0x00d0
207#define HostCmd_CMD_RECONFIGURE_TX_BUFF 0x00d9
208#define HostCmd_CMD_AMSDU_AGGR_CTRL 0x00df
209#define HostCmd_CMD_TXPWR_CFG 0x00d1
210#define HostCmd_CMD_TX_RATE_CFG 0x00d6
211#define HostCmd_CMD_802_11_PS_MODE_ENH 0x00e4
212#define HostCmd_CMD_802_11_HS_CFG_ENH 0x00e5
213#define HostCmd_CMD_CAU_REG_ACCESS 0x00ed
214#define HostCmd_CMD_SET_BSS_MODE 0x00f7
215
216
217enum ENH_PS_MODES {
218 EN_PS = 1,
219 DIS_PS = 2,
220 EN_AUTO_DS = 3,
221 DIS_AUTO_DS = 4,
222 SLEEP_CONFIRM = 5,
223 GET_PS = 0,
224 EN_AUTO_PS = 0xff,
225 DIS_AUTO_PS = 0xfe,
226};
227
228#define HostCmd_RET_BIT 0x8000
229#define HostCmd_ACT_GEN_GET 0x0000
230#define HostCmd_ACT_GEN_SET 0x0001
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700231#define HostCmd_RESULT_OK 0x0000
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700232
233#define HostCmd_ACT_MAC_RX_ON 0x0001
234#define HostCmd_ACT_MAC_TX_ON 0x0002
235#define HostCmd_ACT_MAC_WEP_ENABLE 0x0008
236#define HostCmd_ACT_MAC_ETHERNETII_ENABLE 0x0010
237#define HostCmd_ACT_MAC_PROMISCUOUS_ENABLE 0x0080
238#define HostCmd_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700239#define HostCmd_ACT_MAC_ADHOC_G_PROTECTION_ON 0x2000
240
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700241#define HostCmd_BSS_MODE_IBSS 0x0002
242#define HostCmd_BSS_MODE_ANY 0x0003
243
244#define HostCmd_SCAN_RADIO_TYPE_BG 0
245#define HostCmd_SCAN_RADIO_TYPE_A 1
246
247#define HOST_SLEEP_CFG_CANCEL 0xffffffff
248#define HOST_SLEEP_CFG_COND_DEF 0x0000000f
249#define HOST_SLEEP_CFG_GPIO_DEF 0xff
250#define HOST_SLEEP_CFG_GAP_DEF 0
251
252#define CMD_F_HOSTCMD (1 << 0)
253#define CMD_F_CANCELED (1 << 1)
254
255#define HostCmd_CMD_ID_MASK 0x0fff
256
257#define HostCmd_SEQ_NUM_MASK 0x00ff
258
259#define HostCmd_BSS_NUM_MASK 0x0f00
260
261#define HostCmd_BSS_TYPE_MASK 0xf000
262
263#define HostCmd_SET_SEQ_NO_BSS_INFO(seq, num, type) { \
264 (((seq) & 0x00ff) | \
265 (((num) & 0x000f) << 8)) | \
266 (((type) & 0x000f) << 12); }
267
268#define HostCmd_GET_SEQ_NO(seq) \
269 ((seq) & HostCmd_SEQ_NUM_MASK)
270
271#define HostCmd_GET_BSS_NO(seq) \
272 (((seq) & HostCmd_BSS_NUM_MASK) >> 8)
273
274#define HostCmd_GET_BSS_TYPE(seq) \
275 (((seq) & HostCmd_BSS_TYPE_MASK) >> 12)
276
277#define EVENT_DUMMY_HOST_WAKEUP_SIGNAL 0x00000001
278#define EVENT_LINK_LOST 0x00000003
279#define EVENT_LINK_SENSED 0x00000004
280#define EVENT_MIB_CHANGED 0x00000006
281#define EVENT_INIT_DONE 0x00000007
282#define EVENT_DEAUTHENTICATED 0x00000008
283#define EVENT_DISASSOCIATED 0x00000009
284#define EVENT_PS_AWAKE 0x0000000a
285#define EVENT_PS_SLEEP 0x0000000b
286#define EVENT_MIC_ERR_MULTICAST 0x0000000d
287#define EVENT_MIC_ERR_UNICAST 0x0000000e
288#define EVENT_DEEP_SLEEP_AWAKE 0x00000010
289#define EVENT_ADHOC_BCN_LOST 0x00000011
290
291#define EVENT_WMM_STATUS_CHANGE 0x00000017
292#define EVENT_BG_SCAN_REPORT 0x00000018
293#define EVENT_RSSI_LOW 0x00000019
294#define EVENT_SNR_LOW 0x0000001a
295#define EVENT_MAX_FAIL 0x0000001b
296#define EVENT_RSSI_HIGH 0x0000001c
297#define EVENT_SNR_HIGH 0x0000001d
298#define EVENT_IBSS_COALESCED 0x0000001e
299#define EVENT_DATA_RSSI_LOW 0x00000024
300#define EVENT_DATA_SNR_LOW 0x00000025
301#define EVENT_DATA_RSSI_HIGH 0x00000026
302#define EVENT_DATA_SNR_HIGH 0x00000027
303#define EVENT_LINK_QUALITY 0x00000028
304#define EVENT_PORT_RELEASE 0x0000002b
305#define EVENT_PRE_BEACON_LOST 0x00000031
306#define EVENT_ADDBA 0x00000033
307#define EVENT_DELBA 0x00000034
308#define EVENT_BA_STREAM_TIEMOUT 0x00000037
309#define EVENT_AMSDU_AGGR_CTRL 0x00000042
310#define EVENT_WEP_ICV_ERR 0x00000046
311#define EVENT_HS_ACT_REQ 0x00000047
312#define EVENT_BW_CHANGE 0x00000048
313
314#define EVENT_HOSTWAKE_STAIE 0x0000004d
315
316#define EVENT_ID_MASK 0xffff
317#define BSS_NUM_MASK 0xf
318
319#define EVENT_GET_BSS_NUM(event_cause) \
320 (((event_cause) >> 16) & BSS_NUM_MASK)
321
322#define EVENT_GET_BSS_TYPE(event_cause) \
323 (((event_cause) >> 24) & 0x00ff)
324
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700325struct mwifiex_ie_types_header {
326 __le16 type;
327 __le16 len;
328} __packed;
329
330struct mwifiex_ie_types_data {
331 struct mwifiex_ie_types_header header;
332 u8 data[1];
333} __packed;
334
335#define MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET 0x01
336#define MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET 0x08
337
338struct txpd {
339 u8 bss_type;
340 u8 bss_num;
341 __le16 tx_pkt_length;
342 __le16 tx_pkt_offset;
343 __le16 tx_pkt_type;
344 __le32 tx_control;
345 u8 priority;
346 u8 flags;
347 u8 pkt_delay_2ms;
348 u8 reserved1;
349} __packed;
350
351struct rxpd {
352 u8 bss_type;
353 u8 bss_num;
354 u16 rx_pkt_length;
355 u16 rx_pkt_offset;
356 u16 rx_pkt_type;
357 u16 seq_num;
358 u8 priority;
359 u8 rx_rate;
360 s8 snr;
361 s8 nf;
362 /* Ht Info [Bit 0] RxRate format: LG=0, HT=1
363 * [Bit 1] HT Bandwidth: BW20 = 0, BW40 = 1
364 * [Bit 2] HT Guard Interval: LGI = 0, SGI = 1 */
365 u8 ht_info;
366 u8 reserved;
367} __packed;
368
369enum mwifiex_chan_scan_mode_bitmasks {
370 MWIFIEX_PASSIVE_SCAN = BIT(0),
371 MWIFIEX_DISABLE_CHAN_FILT = BIT(1),
372};
373
374#define SECOND_CHANNEL_BELOW 0x30
375#define SECOND_CHANNEL_ABOVE 0x10
376struct mwifiex_chan_scan_param_set {
377 u8 radio_type;
378 u8 chan_number;
379 u8 chan_scan_mode_bitmap;
380 __le16 min_scan_time;
381 __le16 max_scan_time;
382} __packed;
383
384struct mwifiex_ie_types_chan_list_param_set {
385 struct mwifiex_ie_types_header header;
386 struct mwifiex_chan_scan_param_set chan_scan_param[1];
387} __packed;
388
389struct chan_band_param_set {
390 u8 radio_type;
391 u8 chan_number;
392};
393
394struct mwifiex_ie_types_chan_band_list_param_set {
395 struct mwifiex_ie_types_header header;
396 struct chan_band_param_set chan_band_param[1];
397} __packed;
398
399struct mwifiex_ie_types_rates_param_set {
400 struct mwifiex_ie_types_header header;
401 u8 rates[1];
402} __packed;
403
404struct mwifiex_ie_types_ssid_param_set {
405 struct mwifiex_ie_types_header header;
406 u8 ssid[1];
407} __packed;
408
409struct mwifiex_ie_types_num_probes {
410 struct mwifiex_ie_types_header header;
411 __le16 num_probes;
412} __packed;
413
414struct mwifiex_ie_types_wildcard_ssid_params {
415 struct mwifiex_ie_types_header header;
416 u8 max_ssid_length;
417 u8 ssid[1];
418} __packed;
419
420#define TSF_DATA_SIZE 8
421struct mwifiex_ie_types_tsf_timestamp {
422 struct mwifiex_ie_types_header header;
423 u8 tsf_data[1];
424} __packed;
425
426struct mwifiex_cf_param_set {
427 u8 cfp_cnt;
428 u8 cfp_period;
429 u16 cfp_max_duration;
430 u16 cfp_duration_remaining;
431} __packed;
432
433struct mwifiex_ibss_param_set {
434 u16 atim_window;
435} __packed;
436
437struct mwifiex_ie_types_ss_param_set {
438 struct mwifiex_ie_types_header header;
439 union {
440 struct mwifiex_cf_param_set cf_param_set[1];
441 struct mwifiex_ibss_param_set ibss_param_set[1];
442 } cf_ibss;
443} __packed;
444
445struct mwifiex_fh_param_set {
446 u16 dwell_time;
447 u8 hop_set;
448 u8 hop_pattern;
449 u8 hop_index;
450} __packed;
451
452struct mwifiex_ds_param_set {
453 u8 current_chan;
454} __packed;
455
456struct mwifiex_ie_types_phy_param_set {
457 struct mwifiex_ie_types_header header;
458 union {
459 struct mwifiex_fh_param_set fh_param_set[1];
460 struct mwifiex_ds_param_set ds_param_set[1];
461 } fh_ds;
462} __packed;
463
464struct mwifiex_ie_types_auth_type {
465 struct mwifiex_ie_types_header header;
466 __le16 auth_type;
467} __packed;
468
469struct mwifiex_ie_types_vendor_param_set {
470 struct mwifiex_ie_types_header header;
471 u8 ie[MWIFIEX_MAX_VSIE_LEN];
472};
473
474struct mwifiex_ie_types_rsn_param_set {
475 struct mwifiex_ie_types_header header;
476 u8 rsn_ie[1];
477} __packed;
478
479#define KEYPARAMSET_FIXED_LEN 6
480
481struct mwifiex_ie_type_key_param_set {
482 __le16 type;
483 __le16 length;
484 __le16 key_type_id;
485 __le16 key_info;
486 __le16 key_len;
487 u8 key[50];
488} __packed;
489
490struct host_cmd_ds_802_11_key_material {
491 __le16 action;
492 struct mwifiex_ie_type_key_param_set key_param_set;
493} __packed;
494
495struct host_cmd_ds_gen {
496 u16 command;
497 u16 size;
498 u16 seq_num;
499 u16 result;
500};
501
502#define S_DS_GEN sizeof(struct host_cmd_ds_gen)
503
504enum sleep_resp_ctrl {
505 RESP_NOT_NEEDED = 0,
506 RESP_NEEDED,
507};
508
509struct mwifiex_ps_param {
510 __le16 null_pkt_interval;
511 __le16 multiple_dtims;
512 __le16 bcn_miss_timeout;
513 __le16 local_listen_interval;
514 __le16 adhoc_wake_period;
515 __le16 mode;
516 __le16 delay_to_ps;
517};
518
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700519#define BITMAP_AUTO_DS 0x01
520#define BITMAP_STA_PS 0x10
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700521
522struct mwifiex_ie_types_auto_ds_param {
523 struct mwifiex_ie_types_header header;
Marc Yang2b06bdb2011-03-30 18:12:44 -0700524 __le16 deep_sleep_timeout;
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700525} __packed;
526
527struct mwifiex_ie_types_ps_param {
528 struct mwifiex_ie_types_header header;
529 struct mwifiex_ps_param param;
530} __packed;
531
532struct host_cmd_ds_802_11_ps_mode_enh {
533 __le16 action;
534
535 union {
536 struct mwifiex_ps_param opt_ps;
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700537 __le16 ps_bitmap;
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700538 } params;
539} __packed;
540
541struct host_cmd_ds_get_hw_spec {
542 __le16 hw_if_version;
543 __le16 version;
544 __le16 reserved;
545 __le16 num_of_mcast_adr;
546 u8 permanent_addr[ETH_ALEN];
547 __le16 region_code;
548 __le16 number_of_antenna;
549 __le32 fw_release_number;
550 __le32 reserved_1;
551 __le32 reserved_2;
552 __le32 reserved_3;
553 __le32 fw_cap_info;
554 __le32 dot_11n_dev_cap;
555 u8 dev_mcs_support;
556 __le16 mp_end_port; /* SDIO only, reserved for other interfacces */
557 __le16 reserved_4;
558} __packed;
559
560struct host_cmd_ds_802_11_rssi_info {
561 __le16 action;
562 __le16 ndata;
563 __le16 nbcn;
564 __le16 reserved[9];
565 long long reserved_1;
566};
567
568struct host_cmd_ds_802_11_rssi_info_rsp {
569 __le16 action;
570 __le16 ndata;
571 __le16 nbcn;
572 __le16 data_rssi_last;
573 __le16 data_nf_last;
574 __le16 data_rssi_avg;
575 __le16 data_nf_avg;
576 __le16 bcn_rssi_last;
577 __le16 bcn_nf_last;
578 __le16 bcn_rssi_avg;
579 __le16 bcn_nf_avg;
580 long long tsf_bcn;
581};
582
583struct host_cmd_ds_802_11_mac_address {
584 __le16 action;
585 u8 mac_addr[ETH_ALEN];
586};
587
588struct host_cmd_ds_mac_control {
589 __le16 action;
590 __le16 reserved;
591};
592
593struct host_cmd_ds_mac_multicast_adr {
594 __le16 action;
595 __le16 num_of_adrs;
596 u8 mac_list[MWIFIEX_MAX_MULTICAST_LIST_SIZE][ETH_ALEN];
597} __packed;
598
599struct host_cmd_ds_802_11_deauthenticate {
600 u8 mac_addr[ETH_ALEN];
601 __le16 reason_code;
602} __packed;
603
604struct host_cmd_ds_802_11_associate {
605 u8 peer_sta_addr[ETH_ALEN];
606 __le16 cap_info_bitmap;
607 __le16 listen_interval;
608 __le16 beacon_period;
609 u8 dtim_period;
610} __packed;
611
612struct ieee_types_assoc_rsp {
613 __le16 cap_info_bitmap;
614 __le16 status_code;
615 __le16 a_id;
616 u8 ie_buffer[1];
617} __packed;
618
619struct host_cmd_ds_802_11_associate_rsp {
620 struct ieee_types_assoc_rsp assoc_rsp;
621} __packed;
622
623struct ieee_types_cf_param_set {
624 u8 element_id;
625 u8 len;
626 u8 cfp_cnt;
627 u8 cfp_period;
628 u16 cfp_max_duration;
629 u16 cfp_duration_remaining;
630} __packed;
631
632struct ieee_types_ibss_param_set {
633 u8 element_id;
634 u8 len;
635 __le16 atim_window;
636} __packed;
637
638union ieee_types_ss_param_set {
639 struct ieee_types_cf_param_set cf_param_set;
640 struct ieee_types_ibss_param_set ibss_param_set;
641} __packed;
642
643struct ieee_types_fh_param_set {
644 u8 element_id;
645 u8 len;
646 __le16 dwell_time;
647 u8 hop_set;
648 u8 hop_pattern;
649 u8 hop_index;
650} __packed;
651
652struct ieee_types_ds_param_set {
653 u8 element_id;
654 u8 len;
655 u8 current_chan;
656} __packed;
657
658union ieee_types_phy_param_set {
659 struct ieee_types_fh_param_set fh_param_set;
660 struct ieee_types_ds_param_set ds_param_set;
661} __packed;
662
663struct host_cmd_ds_802_11_ad_hoc_start {
664 u8 ssid[IEEE80211_MAX_SSID_LEN];
665 u8 bss_mode;
666 __le16 beacon_period;
667 u8 dtim_period;
668 union ieee_types_ss_param_set ss_param_set;
669 union ieee_types_phy_param_set phy_param_set;
670 u16 reserved1;
671 __le16 cap_info_bitmap;
672 u8 DataRate[HOSTCMD_SUPPORTED_RATES];
673} __packed;
674
675struct host_cmd_ds_802_11_ad_hoc_result {
676 u8 pad[3];
677 u8 bssid[ETH_ALEN];
678} __packed;
679
680struct adhoc_bss_desc {
681 u8 bssid[ETH_ALEN];
682 u8 ssid[IEEE80211_MAX_SSID_LEN];
683 u8 bss_mode;
684 __le16 beacon_period;
685 u8 dtim_period;
686 u8 time_stamp[8];
687 u8 local_time[8];
688 union ieee_types_phy_param_set phy_param_set;
689 union ieee_types_ss_param_set ss_param_set;
690 __le16 cap_info_bitmap;
691 u8 data_rates[HOSTCMD_SUPPORTED_RATES];
692
693 /*
694 * DO NOT ADD ANY FIELDS TO THIS STRUCTURE.
695 * It is used in the Adhoc join command and will cause a
696 * binary layout mismatch with the firmware
697 */
698} __packed;
699
700struct host_cmd_ds_802_11_ad_hoc_join {
701 struct adhoc_bss_desc bss_descriptor;
702 u16 reserved1;
703 u16 reserved2;
704} __packed;
705
706struct host_cmd_ds_802_11_get_log {
707 __le32 mcast_tx_frame;
708 __le32 failed;
709 __le32 retry;
710 __le32 multi_retry;
711 __le32 frame_dup;
712 __le32 rts_success;
713 __le32 rts_failure;
714 __le32 ack_failure;
715 __le32 rx_frag;
716 __le32 mcast_rx_frame;
717 __le32 fcs_error;
718 __le32 tx_frame;
719 __le32 reserved;
720 __le32 wep_icv_err_cnt[4];
721};
722
723struct host_cmd_ds_tx_rate_query {
724 u8 tx_rate;
725 /* Ht Info [Bit 0] RxRate format: LG=0, HT=1
726 * [Bit 1] HT Bandwidth: BW20 = 0, BW40 = 1
727 * [Bit 2] HT Guard Interval: LGI = 0, SGI = 1 */
728 u8 ht_info;
729} __packed;
730
731enum Host_Sleep_Action {
732 HS_CONFIGURE = 0x0001,
733 HS_ACTIVATE = 0x0002,
734};
735
736struct mwifiex_hs_config_param {
737 __le32 conditions;
738 u8 gpio;
739 u8 gap;
740} __packed;
741
742struct hs_activate_param {
743 u16 resp_ctrl;
744} __packed;
745
746struct host_cmd_ds_802_11_hs_cfg_enh {
747 __le16 action;
748
749 union {
750 struct mwifiex_hs_config_param hs_config;
751 struct hs_activate_param hs_activate;
752 } params;
753} __packed;
754
755enum SNMP_MIB_INDEX {
756 OP_RATE_SET_I = 1,
757 DTIM_PERIOD_I = 3,
758 RTS_THRESH_I = 5,
759 SHORT_RETRY_LIM_I = 6,
760 LONG_RETRY_LIM_I = 7,
761 FRAG_THRESH_I = 8,
762 DOT11D_I = 9,
763};
764
765#define MAX_SNMP_BUF_SIZE 128
766
767struct host_cmd_ds_802_11_snmp_mib {
768 __le16 query_type;
769 __le16 oid;
770 __le16 buf_size;
771 u8 value[1];
772} __packed;
773
Bing Zhao5e6e3a92011-03-21 18:00:50 -0700774struct mwifiex_rate_scope {
775 __le16 type;
776 __le16 length;
777 __le16 hr_dsss_rate_bitmap;
778 __le16 ofdm_rate_bitmap;
779 __le16 ht_mcs_rate_bitmap[8];
780} __packed;
781
782struct mwifiex_rate_drop_pattern {
783 __le16 type;
784 __le16 length;
785 __le32 rate_drop_mode;
786} __packed;
787
788struct host_cmd_ds_tx_rate_cfg {
789 __le16 action;
790 __le16 cfg_index;
791} __packed;
792
793struct mwifiex_power_group {
794 u8 modulation_class;
795 u8 first_rate_code;
796 u8 last_rate_code;
797 s8 power_step;
798 s8 power_min;
799 s8 power_max;
800 u8 ht_bandwidth;
801 u8 reserved;
802} __packed;
803
804struct mwifiex_types_power_group {
805 u16 type;
806 u16 length;
807} __packed;
808
809struct host_cmd_ds_txpwr_cfg {
810 __le16 action;
811 __le16 cfg_index;
812 __le32 mode;
813} __packed;
814
815#define MWIFIEX_USER_SCAN_CHAN_MAX 50
816
817#define MWIFIEX_MAX_SSID_LIST_LENGTH 10
818
819struct mwifiex_scan_cmd_config {
820 /*
821 * BSS Type to be sent in the firmware command
822 *
823 * Field can be used to restrict the types of networks returned in the
824 * scan. Valid settings are:
825 *
826 * - MWIFIEX_SCAN_MODE_BSS (infrastructure)
827 * - MWIFIEX_SCAN_MODE_IBSS (adhoc)
828 * - MWIFIEX_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
829 */
830 u8 bss_mode;
831
832 /* Specific BSSID used to filter scan results in the firmware */
833 u8 specific_bssid[ETH_ALEN];
834
835 /* Length of TLVs sent in command starting at tlvBuffer */
836 u32 tlv_buf_len;
837
838 /*
839 * SSID TLV(s) and ChanList TLVs to be sent in the firmware command
840 *
841 * TLV_TYPE_CHANLIST, mwifiex_ie_types_chan_list_param_set
842 * WLAN_EID_SSID, mwifiex_ie_types_ssid_param_set
843 */
844 u8 tlv_buf[1]; /* SSID TLV(s) and ChanList TLVs are stored
845 here */
846} __packed;
847
848struct mwifiex_user_scan_chan {
849 u8 chan_number;
850 u8 radio_type;
851 u8 scan_type;
852 u8 reserved;
853 u32 scan_time;
854} __packed;
855
856struct mwifiex_user_scan_ssid {
857 u8 ssid[IEEE80211_MAX_SSID_LEN + 1];
858 u8 max_len;
859} __packed;
860
861struct mwifiex_user_scan_cfg {
862 /*
863 * Flag set to keep the previous scan table intact
864 *
865 * If set, the scan results will accumulate, replacing any previous
866 * matched entries for a BSS with the new scan data
867 */
868 u8 keep_previous_scan;
869 /*
870 * BSS mode to be sent in the firmware command
871 *
872 * Field can be used to restrict the types of networks returned in the
873 * scan. Valid settings are:
874 *
875 * - MWIFIEX_SCAN_MODE_BSS (infrastructure)
876 * - MWIFIEX_SCAN_MODE_IBSS (adhoc)
877 * - MWIFIEX_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
878 */
879 u8 bss_mode;
880 /* Configure the number of probe requests for active chan scans */
881 u8 num_probes;
882 u8 reserved;
883 /* BSSID filter sent in the firmware command to limit the results */
884 u8 specific_bssid[ETH_ALEN];
885 /* SSID filter list used in the to limit the scan results */
886 struct mwifiex_user_scan_ssid ssid_list[MWIFIEX_MAX_SSID_LIST_LENGTH];
887 /* Variable number (fixed maximum) of channels to scan up */
888 struct mwifiex_user_scan_chan chan_list[MWIFIEX_USER_SCAN_CHAN_MAX];
889} __packed;
890
891struct ie_body {
892 u8 grp_key_oui[4];
893 u8 ptk_cnt[2];
894 u8 ptk_body[4];
895} __packed;
896
897struct host_cmd_ds_802_11_scan {
898 u8 bss_mode;
899 u8 bssid[ETH_ALEN];
900 u8 tlv_buffer[1];
901} __packed;
902
903struct host_cmd_ds_802_11_scan_rsp {
904 __le16 bss_descript_size;
905 u8 number_of_sets;
906 u8 bss_desc_and_tlv_buffer[1];
907} __packed;
908
909struct host_cmd_ds_802_11_bg_scan_query {
910 u8 flush;
911} __packed;
912
913struct host_cmd_ds_802_11_bg_scan_query_rsp {
914 u32 report_condition;
915 struct host_cmd_ds_802_11_scan_rsp scan_resp;
916} __packed;
917
918struct mwifiex_ietypes_domain_param_set {
919 struct mwifiex_ie_types_header header;
920 u8 country_code[IEEE80211_COUNTRY_STRING_LEN];
921 struct ieee80211_country_ie_triplet triplet[1];
922} __packed;
923
924struct host_cmd_ds_802_11d_domain_info {
925 __le16 action;
926 struct mwifiex_ietypes_domain_param_set domain;
927} __packed;
928
929struct host_cmd_ds_802_11d_domain_info_rsp {
930 __le16 action;
931 struct mwifiex_ietypes_domain_param_set domain;
932} __packed;
933
934struct host_cmd_ds_11n_addba_req {
935 u8 add_req_result;
936 u8 peer_mac_addr[ETH_ALEN];
937 u8 dialog_token;
938 __le16 block_ack_param_set;
939 __le16 block_ack_tmo;
940 __le16 ssn;
941} __packed;
942
943struct host_cmd_ds_11n_addba_rsp {
944 u8 add_rsp_result;
945 u8 peer_mac_addr[ETH_ALEN];
946 u8 dialog_token;
947 __le16 status_code;
948 __le16 block_ack_param_set;
949 __le16 block_ack_tmo;
950 __le16 ssn;
951} __packed;
952
953struct host_cmd_ds_11n_delba {
954 u8 del_result;
955 u8 peer_mac_addr[ETH_ALEN];
956 __le16 del_ba_param_set;
957 __le16 reason_code;
958 u8 reserved;
959} __packed;
960
961struct host_cmd_ds_11n_batimeout {
962 u8 tid;
963 u8 peer_mac_addr[ETH_ALEN];
964 u8 origninator;
965} __packed;
966
967struct host_cmd_ds_11n_cfg {
968 __le16 action;
969 __le16 ht_tx_cap;
970 __le16 ht_tx_info;
971} __packed;
972
973struct host_cmd_ds_txbuf_cfg {
974 __le16 action;
975 __le16 buff_size;
976 __le16 mp_end_port; /* SDIO only, reserved for other interfacces */
977 __le16 reserved3;
978} __packed;
979
980struct host_cmd_ds_amsdu_aggr_ctrl {
981 __le16 action;
982 __le16 enable;
983 __le16 curr_buf_size;
984} __packed;
985
986struct mwifiex_ie_types_wmm_param_set {
987 struct mwifiex_ie_types_header header;
988 u8 wmm_ie[1];
989};
990
991struct mwifiex_ie_types_wmm_queue_status {
992 struct mwifiex_ie_types_header header;
993 u8 queue_index;
994 u8 disabled;
995 u16 medium_time;
996 u8 flow_required;
997 u8 flow_created;
998 u32 reserved;
999};
1000
1001struct ieee_types_vendor_header {
1002 u8 element_id;
1003 u8 len;
1004 u8 oui[3];
1005 u8 oui_type;
1006 u8 oui_subtype;
1007 u8 version;
1008} __packed;
1009
1010struct ieee_types_wmm_ac_parameters {
1011 u8 aci_aifsn_bitmap;
1012 u8 ecw_bitmap;
1013 __le16 tx_op_limit;
1014} __packed;
1015
1016struct ieee_types_wmm_parameter {
1017 /*
1018 * WMM Parameter IE - Vendor Specific Header:
1019 * element_id [221/0xdd]
1020 * Len [24]
1021 * Oui [00:50:f2]
1022 * OuiType [2]
1023 * OuiSubType [1]
1024 * Version [1]
1025 */
1026 struct ieee_types_vendor_header vend_hdr;
1027 u8 qos_info_bitmap;
1028 u8 reserved;
1029 struct ieee_types_wmm_ac_parameters ac_params[IEEE80211_MAX_QUEUES];
1030} __packed;
1031
1032struct ieee_types_wmm_info {
1033
1034 /*
1035 * WMM Info IE - Vendor Specific Header:
1036 * element_id [221/0xdd]
1037 * Len [7]
1038 * Oui [00:50:f2]
1039 * OuiType [2]
1040 * OuiSubType [0]
1041 * Version [1]
1042 */
1043 struct ieee_types_vendor_header vend_hdr;
1044
1045 u8 qos_info_bitmap;
1046} __packed;
1047
1048struct host_cmd_ds_wmm_get_status {
1049 u8 queue_status_tlv[sizeof(struct mwifiex_ie_types_wmm_queue_status) *
1050 IEEE80211_MAX_QUEUES];
1051 u8 wmm_param_tlv[sizeof(struct ieee_types_wmm_parameter) + 2];
1052} __packed;
1053
1054struct mwifiex_wmm_ac_status {
1055 u8 disabled;
1056 u8 flow_required;
1057 u8 flow_created;
1058};
1059
1060struct mwifiex_ie_types_htcap {
1061 struct mwifiex_ie_types_header header;
1062 struct ieee80211_ht_cap ht_cap;
1063} __packed;
1064
1065struct mwifiex_ie_types_htinfo {
1066 struct mwifiex_ie_types_header header;
1067 struct ieee80211_ht_info ht_info;
1068} __packed;
1069
1070struct mwifiex_ie_types_2040bssco {
1071 struct mwifiex_ie_types_header header;
1072 u8 bss_co_2040;
1073} __packed;
1074
1075struct mwifiex_ie_types_extcap {
1076 struct mwifiex_ie_types_header header;
1077 u8 ext_cap;
1078} __packed;
1079
1080struct host_cmd_ds_mac_reg_access {
1081 __le16 action;
1082 __le16 offset;
1083 __le32 value;
1084} __packed;
1085
1086struct host_cmd_ds_bbp_reg_access {
1087 __le16 action;
1088 __le16 offset;
1089 u8 value;
1090 u8 reserved[3];
1091} __packed;
1092
1093struct host_cmd_ds_rf_reg_access {
1094 __le16 action;
1095 __le16 offset;
1096 u8 value;
1097 u8 reserved[3];
1098} __packed;
1099
1100struct host_cmd_ds_pmic_reg_access {
1101 __le16 action;
1102 __le16 offset;
1103 u8 value;
1104 u8 reserved[3];
1105} __packed;
1106
1107struct host_cmd_ds_802_11_eeprom_access {
1108 __le16 action;
1109
1110 __le16 offset;
1111 __le16 byte_count;
1112 u8 value;
1113} __packed;
1114
1115struct host_cmd_ds_802_11_rf_channel {
1116 __le16 action;
1117 __le16 current_channel;
1118 __le16 rf_type;
1119 __le16 reserved;
1120 u8 reserved_1[32];
1121} __packed;
1122
1123struct host_cmd_ds_version_ext {
1124 u8 version_str_sel;
1125 char version_str[128];
1126} __packed;
1127
1128struct host_cmd_ds_802_11_ibss_status {
1129 __le16 action;
1130 __le16 enable;
1131 u8 bssid[ETH_ALEN];
1132 __le16 beacon_interval;
1133 __le16 atim_window;
1134 __le16 use_g_rate_protect;
1135} __packed;
1136
1137#define CONNECTION_TYPE_INFRA 0
1138#define CONNECTION_TYPE_ADHOC 1
1139
1140struct host_cmd_ds_set_bss_mode {
1141 u8 con_type;
1142} __packed;
1143
1144struct host_cmd_ds_command {
1145 __le16 command;
1146 __le16 size;
1147 __le16 seq_num;
1148 __le16 result;
1149 union {
1150 struct host_cmd_ds_get_hw_spec hw_spec;
1151 struct host_cmd_ds_mac_control mac_ctrl;
1152 struct host_cmd_ds_802_11_mac_address mac_addr;
1153 struct host_cmd_ds_mac_multicast_adr mc_addr;
1154 struct host_cmd_ds_802_11_get_log get_log;
1155 struct host_cmd_ds_802_11_rssi_info rssi_info;
1156 struct host_cmd_ds_802_11_rssi_info_rsp rssi_info_rsp;
1157 struct host_cmd_ds_802_11_snmp_mib smib;
1158 struct host_cmd_ds_802_11_rf_channel rf_channel;
1159 struct host_cmd_ds_tx_rate_query tx_rate;
1160 struct host_cmd_ds_tx_rate_cfg tx_rate_cfg;
1161 struct host_cmd_ds_txpwr_cfg txp_cfg;
1162 struct host_cmd_ds_802_11_ps_mode_enh psmode_enh;
1163 struct host_cmd_ds_802_11_hs_cfg_enh opt_hs_cfg;
1164 struct host_cmd_ds_802_11_scan scan;
1165 struct host_cmd_ds_802_11_scan_rsp scan_resp;
1166 struct host_cmd_ds_802_11_bg_scan_query bg_scan_query;
1167 struct host_cmd_ds_802_11_bg_scan_query_rsp bg_scan_query_resp;
1168 struct host_cmd_ds_802_11_associate associate;
1169 struct host_cmd_ds_802_11_associate_rsp associate_rsp;
1170 struct host_cmd_ds_802_11_deauthenticate deauth;
1171 struct host_cmd_ds_802_11_ad_hoc_start adhoc_start;
1172 struct host_cmd_ds_802_11_ad_hoc_result adhoc_result;
1173 struct host_cmd_ds_802_11_ad_hoc_join adhoc_join;
1174 struct host_cmd_ds_802_11d_domain_info domain_info;
1175 struct host_cmd_ds_802_11d_domain_info_rsp domain_info_resp;
1176 struct host_cmd_ds_11n_addba_req add_ba_req;
1177 struct host_cmd_ds_11n_addba_rsp add_ba_rsp;
1178 struct host_cmd_ds_11n_delba del_ba;
1179 struct host_cmd_ds_txbuf_cfg tx_buf;
1180 struct host_cmd_ds_amsdu_aggr_ctrl amsdu_aggr_ctrl;
1181 struct host_cmd_ds_11n_cfg htcfg;
1182 struct host_cmd_ds_wmm_get_status get_wmm_status;
1183 struct host_cmd_ds_802_11_key_material key_material;
1184 struct host_cmd_ds_version_ext verext;
1185 struct host_cmd_ds_802_11_ibss_status ibss_coalescing;
1186 struct host_cmd_ds_mac_reg_access mac_reg;
1187 struct host_cmd_ds_bbp_reg_access bbp_reg;
1188 struct host_cmd_ds_rf_reg_access rf_reg;
1189 struct host_cmd_ds_pmic_reg_access pmic_reg;
1190 struct host_cmd_ds_set_bss_mode bss_mode;
1191 struct host_cmd_ds_802_11_eeprom_access eeprom;
1192 } params;
1193} __packed;
1194
1195struct mwifiex_opt_sleep_confirm {
1196 __le16 command;
1197 __le16 size;
1198 __le16 seq_num;
1199 __le16 result;
1200 __le16 action;
Marc Yang2b06bdb2011-03-30 18:12:44 -07001201 __le16 resp_ctrl;
Bing Zhao5e6e3a92011-03-21 18:00:50 -07001202} __packed;
1203
1204struct mwifiex_opt_sleep_confirm_buffer {
1205 u8 hdr[4];
1206 struct mwifiex_opt_sleep_confirm ps_cfm_sleep;
1207} __packed;
1208#endif /* !_MWIFIEX_FW_H_ */