fw.h 31 KB

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