fw.h 30 KB

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