fw.h 31 KB

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