fw.h 31 KB

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