fw.h 30 KB

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