fw.h 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208
  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 NON_GREENFIELD_STAS 0x04
  110. #define ISSUPP_11NENABLED(FwCapInfo) (FwCapInfo & BIT(11))
  111. /* dev_cap bitmap
  112. * BIT
  113. * 0-16 reserved
  114. * 17 IEEE80211_HT_CAP_SUP_WIDTH_20_40
  115. * 18-22 reserved
  116. * 23 IEEE80211_HT_CAP_SGI_20
  117. * 24 IEEE80211_HT_CAP_SGI_40
  118. * 25 IEEE80211_HT_CAP_TX_STBC
  119. * 26 IEEE80211_HT_CAP_RX_STBC
  120. * 27-28 reserved
  121. * 29 IEEE80211_HT_CAP_GRN_FLD
  122. * 30-31 reserved
  123. */
  124. #define ISSUPP_CHANWIDTH40(Dot11nDevCap) (Dot11nDevCap & BIT(17))
  125. #define ISSUPP_SHORTGI20(Dot11nDevCap) (Dot11nDevCap & BIT(23))
  126. #define ISSUPP_SHORTGI40(Dot11nDevCap) (Dot11nDevCap & BIT(24))
  127. #define ISSUPP_TXSTBC(Dot11nDevCap) (Dot11nDevCap & BIT(25))
  128. #define ISSUPP_RXSTBC(Dot11nDevCap) (Dot11nDevCap & BIT(26))
  129. #define ISSUPP_GREENFIELD(Dot11nDevCap) (Dot11nDevCap & BIT(29))
  130. #define GET_RXMCSSUPP(DevMCSSupported) (DevMCSSupported & 0x0f)
  131. #define RESETHT_EXTCAP_RDG(HTExtCap) (HTExtCap &= ~BIT(11))
  132. #define SETHT_MCS32(x) (x[4] |= 1)
  133. #define SET_SECONDARYCHAN(RadioType, SECCHAN) (RadioType |= (SECCHAN << 4))
  134. #define LLC_SNAP_LEN 8
  135. #define MOD_CLASS_HR_DSSS 0x03
  136. #define MOD_CLASS_OFDM 0x07
  137. #define MOD_CLASS_HT 0x08
  138. #define HT_BW_20 0
  139. #define HT_BW_40 1
  140. #define HostCmd_CMD_GET_HW_SPEC 0x0003
  141. #define HostCmd_CMD_802_11_SCAN 0x0006
  142. #define HostCmd_CMD_802_11_GET_LOG 0x000b
  143. #define HostCmd_CMD_MAC_MULTICAST_ADR 0x0010
  144. #define HostCmd_CMD_802_11_EEPROM_ACCESS 0x0059
  145. #define HostCmd_CMD_802_11_ASSOCIATE 0x0012
  146. #define HostCmd_CMD_802_11_SNMP_MIB 0x0016
  147. #define HostCmd_CMD_MAC_REG_ACCESS 0x0019
  148. #define HostCmd_CMD_BBP_REG_ACCESS 0x001a
  149. #define HostCmd_CMD_RF_REG_ACCESS 0x001b
  150. #define HostCmd_CMD_PMIC_REG_ACCESS 0x00ad
  151. #define HostCmd_CMD_802_11_RF_CHANNEL 0x001d
  152. #define HostCmd_CMD_802_11_DEAUTHENTICATE 0x0024
  153. #define HostCmd_CMD_MAC_CONTROL 0x0028
  154. #define HostCmd_CMD_802_11_AD_HOC_START 0x002b
  155. #define HostCmd_CMD_802_11_AD_HOC_JOIN 0x002c
  156. #define HostCmd_CMD_802_11_AD_HOC_STOP 0x0040
  157. #define HostCmd_CMD_802_11_MAC_ADDRESS 0x004D
  158. #define HostCmd_CMD_802_11D_DOMAIN_INFO 0x005b
  159. #define HostCmd_CMD_802_11_KEY_MATERIAL 0x005e
  160. #define HostCmd_CMD_802_11_BG_SCAN_QUERY 0x006c
  161. #define HostCmd_CMD_WMM_GET_STATUS 0x0071
  162. #define HostCmd_CMD_802_11_TX_RATE_QUERY 0x007f
  163. #define HostCmd_CMD_802_11_IBSS_COALESCING_STATUS 0x0083
  164. #define HostCmd_CMD_VERSION_EXT 0x0097
  165. #define HostCmd_CMD_RSSI_INFO 0x00a4
  166. #define HostCmd_CMD_FUNC_INIT 0x00a9
  167. #define HostCmd_CMD_FUNC_SHUTDOWN 0x00aa
  168. #define HostCmd_CMD_11N_CFG 0x00cd
  169. #define HostCmd_CMD_11N_ADDBA_REQ 0x00ce
  170. #define HostCmd_CMD_11N_ADDBA_RSP 0x00cf
  171. #define HostCmd_CMD_11N_DELBA 0x00d0
  172. #define HostCmd_CMD_RECONFIGURE_TX_BUFF 0x00d9
  173. #define HostCmd_CMD_AMSDU_AGGR_CTRL 0x00df
  174. #define HostCmd_CMD_TXPWR_CFG 0x00d1
  175. #define HostCmd_CMD_TX_RATE_CFG 0x00d6
  176. #define HostCmd_CMD_802_11_PS_MODE_ENH 0x00e4
  177. #define HostCmd_CMD_802_11_HS_CFG_ENH 0x00e5
  178. #define HostCmd_CMD_CAU_REG_ACCESS 0x00ed
  179. #define HostCmd_CMD_SET_BSS_MODE 0x00f7
  180. enum ENH_PS_MODES {
  181. EN_PS = 1,
  182. DIS_PS = 2,
  183. EN_AUTO_DS = 3,
  184. DIS_AUTO_DS = 4,
  185. SLEEP_CONFIRM = 5,
  186. GET_PS = 0,
  187. EN_AUTO_PS = 0xff,
  188. DIS_AUTO_PS = 0xfe,
  189. };
  190. #define HostCmd_RET_BIT 0x8000
  191. #define HostCmd_ACT_GEN_GET 0x0000
  192. #define HostCmd_ACT_GEN_SET 0x0001
  193. #define HostCmd_RESULT_OK 0x0000
  194. #define HostCmd_ACT_MAC_RX_ON 0x0001
  195. #define HostCmd_ACT_MAC_TX_ON 0x0002
  196. #define HostCmd_ACT_MAC_WEP_ENABLE 0x0008
  197. #define HostCmd_ACT_MAC_ETHERNETII_ENABLE 0x0010
  198. #define HostCmd_ACT_MAC_PROMISCUOUS_ENABLE 0x0080
  199. #define HostCmd_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100
  200. #define HostCmd_ACT_MAC_ADHOC_G_PROTECTION_ON 0x2000
  201. #define HostCmd_BSS_MODE_IBSS 0x0002
  202. #define HostCmd_BSS_MODE_ANY 0x0003
  203. #define HostCmd_SCAN_RADIO_TYPE_BG 0
  204. #define HostCmd_SCAN_RADIO_TYPE_A 1
  205. #define HOST_SLEEP_CFG_CANCEL 0xffffffff
  206. #define HOST_SLEEP_CFG_COND_DEF 0x0000000f
  207. #define HOST_SLEEP_CFG_GPIO_DEF 0xff
  208. #define HOST_SLEEP_CFG_GAP_DEF 0
  209. #define CMD_F_HOSTCMD (1 << 0)
  210. #define CMD_F_CANCELED (1 << 1)
  211. #define HostCmd_CMD_ID_MASK 0x0fff
  212. #define HostCmd_SEQ_NUM_MASK 0x00ff
  213. #define HostCmd_BSS_NUM_MASK 0x0f00
  214. #define HostCmd_BSS_TYPE_MASK 0xf000
  215. #define HostCmd_SET_SEQ_NO_BSS_INFO(seq, num, type) { \
  216. (((seq) & 0x00ff) | \
  217. (((num) & 0x000f) << 8)) | \
  218. (((type) & 0x000f) << 12); }
  219. #define HostCmd_GET_SEQ_NO(seq) \
  220. ((seq) & HostCmd_SEQ_NUM_MASK)
  221. #define HostCmd_GET_BSS_NO(seq) \
  222. (((seq) & HostCmd_BSS_NUM_MASK) >> 8)
  223. #define HostCmd_GET_BSS_TYPE(seq) \
  224. (((seq) & HostCmd_BSS_TYPE_MASK) >> 12)
  225. #define EVENT_DUMMY_HOST_WAKEUP_SIGNAL 0x00000001
  226. #define EVENT_LINK_LOST 0x00000003
  227. #define EVENT_LINK_SENSED 0x00000004
  228. #define EVENT_MIB_CHANGED 0x00000006
  229. #define EVENT_INIT_DONE 0x00000007
  230. #define EVENT_DEAUTHENTICATED 0x00000008
  231. #define EVENT_DISASSOCIATED 0x00000009
  232. #define EVENT_PS_AWAKE 0x0000000a
  233. #define EVENT_PS_SLEEP 0x0000000b
  234. #define EVENT_MIC_ERR_MULTICAST 0x0000000d
  235. #define EVENT_MIC_ERR_UNICAST 0x0000000e
  236. #define EVENT_DEEP_SLEEP_AWAKE 0x00000010
  237. #define EVENT_ADHOC_BCN_LOST 0x00000011
  238. #define EVENT_WMM_STATUS_CHANGE 0x00000017
  239. #define EVENT_BG_SCAN_REPORT 0x00000018
  240. #define EVENT_RSSI_LOW 0x00000019
  241. #define EVENT_SNR_LOW 0x0000001a
  242. #define EVENT_MAX_FAIL 0x0000001b
  243. #define EVENT_RSSI_HIGH 0x0000001c
  244. #define EVENT_SNR_HIGH 0x0000001d
  245. #define EVENT_IBSS_COALESCED 0x0000001e
  246. #define EVENT_DATA_RSSI_LOW 0x00000024
  247. #define EVENT_DATA_SNR_LOW 0x00000025
  248. #define EVENT_DATA_RSSI_HIGH 0x00000026
  249. #define EVENT_DATA_SNR_HIGH 0x00000027
  250. #define EVENT_LINK_QUALITY 0x00000028
  251. #define EVENT_PORT_RELEASE 0x0000002b
  252. #define EVENT_PRE_BEACON_LOST 0x00000031
  253. #define EVENT_ADDBA 0x00000033
  254. #define EVENT_DELBA 0x00000034
  255. #define EVENT_BA_STREAM_TIEMOUT 0x00000037
  256. #define EVENT_AMSDU_AGGR_CTRL 0x00000042
  257. #define EVENT_WEP_ICV_ERR 0x00000046
  258. #define EVENT_HS_ACT_REQ 0x00000047
  259. #define EVENT_BW_CHANGE 0x00000048
  260. #define EVENT_HOSTWAKE_STAIE 0x0000004d
  261. #define EVENT_ID_MASK 0xffff
  262. #define BSS_NUM_MASK 0xf
  263. #define EVENT_GET_BSS_NUM(event_cause) \
  264. (((event_cause) >> 16) & BSS_NUM_MASK)
  265. #define EVENT_GET_BSS_TYPE(event_cause) \
  266. (((event_cause) >> 24) & 0x00ff)
  267. struct mwifiex_ie_types_header {
  268. __le16 type;
  269. __le16 len;
  270. } __packed;
  271. struct mwifiex_ie_types_data {
  272. struct mwifiex_ie_types_header header;
  273. u8 data[1];
  274. } __packed;
  275. #define MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET 0x01
  276. #define MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET 0x08
  277. struct txpd {
  278. u8 bss_type;
  279. u8 bss_num;
  280. __le16 tx_pkt_length;
  281. __le16 tx_pkt_offset;
  282. __le16 tx_pkt_type;
  283. __le32 tx_control;
  284. u8 priority;
  285. u8 flags;
  286. u8 pkt_delay_2ms;
  287. u8 reserved1;
  288. } __packed;
  289. struct rxpd {
  290. u8 bss_type;
  291. u8 bss_num;
  292. u16 rx_pkt_length;
  293. u16 rx_pkt_offset;
  294. u16 rx_pkt_type;
  295. u16 seq_num;
  296. u8 priority;
  297. u8 rx_rate;
  298. s8 snr;
  299. s8 nf;
  300. /* Ht Info [Bit 0] RxRate format: LG=0, HT=1
  301. * [Bit 1] HT Bandwidth: BW20 = 0, BW40 = 1
  302. * [Bit 2] HT Guard Interval: LGI = 0, SGI = 1 */
  303. u8 ht_info;
  304. u8 reserved;
  305. } __packed;
  306. enum mwifiex_chan_scan_mode_bitmasks {
  307. MWIFIEX_PASSIVE_SCAN = BIT(0),
  308. MWIFIEX_DISABLE_CHAN_FILT = BIT(1),
  309. };
  310. #define SECOND_CHANNEL_BELOW 0x30
  311. #define SECOND_CHANNEL_ABOVE 0x10
  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 DataRate[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. #define MWIFIEX_USER_SCAN_CHAN_MAX 50
  685. #define MWIFIEX_MAX_SSID_LIST_LENGTH 10
  686. struct mwifiex_scan_cmd_config {
  687. /*
  688. * BSS Type to be sent in the firmware command
  689. *
  690. * Field can be used to restrict the types of networks returned in the
  691. * scan. Valid settings are:
  692. *
  693. * - MWIFIEX_SCAN_MODE_BSS (infrastructure)
  694. * - MWIFIEX_SCAN_MODE_IBSS (adhoc)
  695. * - MWIFIEX_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
  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_ssid {
  719. u8 ssid[IEEE80211_MAX_SSID_LEN + 1];
  720. u8 max_len;
  721. } __packed;
  722. struct mwifiex_user_scan_cfg {
  723. /*
  724. * Flag set to keep the previous scan table intact
  725. *
  726. * If set, the scan results will accumulate, replacing any previous
  727. * matched entries for a BSS with the new scan data
  728. */
  729. u8 keep_previous_scan;
  730. /*
  731. * BSS mode to be sent in the firmware command
  732. *
  733. * Field can be used to restrict the types of networks returned in the
  734. * scan. Valid settings are:
  735. *
  736. * - MWIFIEX_SCAN_MODE_BSS (infrastructure)
  737. * - MWIFIEX_SCAN_MODE_IBSS (adhoc)
  738. * - MWIFIEX_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
  739. */
  740. u8 bss_mode;
  741. /* Configure the number of probe requests for active chan scans */
  742. u8 num_probes;
  743. u8 reserved;
  744. /* BSSID filter sent in the firmware command to limit the results */
  745. u8 specific_bssid[ETH_ALEN];
  746. /* SSID filter list used in the to limit the scan results */
  747. struct mwifiex_user_scan_ssid ssid_list[MWIFIEX_MAX_SSID_LIST_LENGTH];
  748. /* Variable number (fixed maximum) of channels to scan up */
  749. struct mwifiex_user_scan_chan chan_list[MWIFIEX_USER_SCAN_CHAN_MAX];
  750. } __packed;
  751. struct ie_body {
  752. u8 grp_key_oui[4];
  753. u8 ptk_cnt[2];
  754. u8 ptk_body[4];
  755. } __packed;
  756. struct host_cmd_ds_802_11_scan {
  757. u8 bss_mode;
  758. u8 bssid[ETH_ALEN];
  759. u8 tlv_buffer[1];
  760. } __packed;
  761. struct host_cmd_ds_802_11_scan_rsp {
  762. __le16 bss_descript_size;
  763. u8 number_of_sets;
  764. u8 bss_desc_and_tlv_buffer[1];
  765. } __packed;
  766. struct host_cmd_ds_802_11_bg_scan_query {
  767. u8 flush;
  768. } __packed;
  769. struct host_cmd_ds_802_11_bg_scan_query_rsp {
  770. u32 report_condition;
  771. struct host_cmd_ds_802_11_scan_rsp scan_resp;
  772. } __packed;
  773. struct mwifiex_ietypes_domain_param_set {
  774. struct mwifiex_ie_types_header header;
  775. u8 country_code[IEEE80211_COUNTRY_STRING_LEN];
  776. struct ieee80211_country_ie_triplet triplet[1];
  777. } __packed;
  778. struct host_cmd_ds_802_11d_domain_info {
  779. __le16 action;
  780. struct mwifiex_ietypes_domain_param_set domain;
  781. } __packed;
  782. struct host_cmd_ds_802_11d_domain_info_rsp {
  783. __le16 action;
  784. struct mwifiex_ietypes_domain_param_set domain;
  785. } __packed;
  786. struct host_cmd_ds_11n_addba_req {
  787. u8 add_req_result;
  788. u8 peer_mac_addr[ETH_ALEN];
  789. u8 dialog_token;
  790. __le16 block_ack_param_set;
  791. __le16 block_ack_tmo;
  792. __le16 ssn;
  793. } __packed;
  794. struct host_cmd_ds_11n_addba_rsp {
  795. u8 add_rsp_result;
  796. u8 peer_mac_addr[ETH_ALEN];
  797. u8 dialog_token;
  798. __le16 status_code;
  799. __le16 block_ack_param_set;
  800. __le16 block_ack_tmo;
  801. __le16 ssn;
  802. } __packed;
  803. struct host_cmd_ds_11n_delba {
  804. u8 del_result;
  805. u8 peer_mac_addr[ETH_ALEN];
  806. __le16 del_ba_param_set;
  807. __le16 reason_code;
  808. u8 reserved;
  809. } __packed;
  810. struct host_cmd_ds_11n_batimeout {
  811. u8 tid;
  812. u8 peer_mac_addr[ETH_ALEN];
  813. u8 origninator;
  814. } __packed;
  815. struct host_cmd_ds_11n_cfg {
  816. __le16 action;
  817. __le16 ht_tx_cap;
  818. __le16 ht_tx_info;
  819. } __packed;
  820. struct host_cmd_ds_txbuf_cfg {
  821. __le16 action;
  822. __le16 buff_size;
  823. __le16 mp_end_port; /* SDIO only, reserved for other interfacces */
  824. __le16 reserved3;
  825. } __packed;
  826. struct host_cmd_ds_amsdu_aggr_ctrl {
  827. __le16 action;
  828. __le16 enable;
  829. __le16 curr_buf_size;
  830. } __packed;
  831. struct mwifiex_ie_types_wmm_param_set {
  832. struct mwifiex_ie_types_header header;
  833. u8 wmm_ie[1];
  834. };
  835. struct mwifiex_ie_types_wmm_queue_status {
  836. struct mwifiex_ie_types_header header;
  837. u8 queue_index;
  838. u8 disabled;
  839. u16 medium_time;
  840. u8 flow_required;
  841. u8 flow_created;
  842. u32 reserved;
  843. };
  844. struct ieee_types_vendor_header {
  845. u8 element_id;
  846. u8 len;
  847. u8 oui[3];
  848. u8 oui_type;
  849. u8 oui_subtype;
  850. u8 version;
  851. } __packed;
  852. struct ieee_types_wmm_ac_parameters {
  853. u8 aci_aifsn_bitmap;
  854. u8 ecw_bitmap;
  855. __le16 tx_op_limit;
  856. } __packed;
  857. struct ieee_types_wmm_parameter {
  858. /*
  859. * WMM Parameter IE - Vendor Specific Header:
  860. * element_id [221/0xdd]
  861. * Len [24]
  862. * Oui [00:50:f2]
  863. * OuiType [2]
  864. * OuiSubType [1]
  865. * Version [1]
  866. */
  867. struct ieee_types_vendor_header vend_hdr;
  868. u8 qos_info_bitmap;
  869. u8 reserved;
  870. struct ieee_types_wmm_ac_parameters ac_params[IEEE80211_MAX_QUEUES];
  871. } __packed;
  872. struct ieee_types_wmm_info {
  873. /*
  874. * WMM Info IE - Vendor Specific Header:
  875. * element_id [221/0xdd]
  876. * Len [7]
  877. * Oui [00:50:f2]
  878. * OuiType [2]
  879. * OuiSubType [0]
  880. * Version [1]
  881. */
  882. struct ieee_types_vendor_header vend_hdr;
  883. u8 qos_info_bitmap;
  884. } __packed;
  885. struct host_cmd_ds_wmm_get_status {
  886. u8 queue_status_tlv[sizeof(struct mwifiex_ie_types_wmm_queue_status) *
  887. IEEE80211_MAX_QUEUES];
  888. u8 wmm_param_tlv[sizeof(struct ieee_types_wmm_parameter) + 2];
  889. } __packed;
  890. struct mwifiex_wmm_ac_status {
  891. u8 disabled;
  892. u8 flow_required;
  893. u8 flow_created;
  894. };
  895. struct mwifiex_ie_types_htcap {
  896. struct mwifiex_ie_types_header header;
  897. struct ieee80211_ht_cap ht_cap;
  898. } __packed;
  899. struct mwifiex_ie_types_htinfo {
  900. struct mwifiex_ie_types_header header;
  901. struct ieee80211_ht_info ht_info;
  902. } __packed;
  903. struct mwifiex_ie_types_2040bssco {
  904. struct mwifiex_ie_types_header header;
  905. u8 bss_co_2040;
  906. } __packed;
  907. struct mwifiex_ie_types_extcap {
  908. struct mwifiex_ie_types_header header;
  909. u8 ext_cap;
  910. } __packed;
  911. struct host_cmd_ds_mac_reg_access {
  912. __le16 action;
  913. __le16 offset;
  914. __le32 value;
  915. } __packed;
  916. struct host_cmd_ds_bbp_reg_access {
  917. __le16 action;
  918. __le16 offset;
  919. u8 value;
  920. u8 reserved[3];
  921. } __packed;
  922. struct host_cmd_ds_rf_reg_access {
  923. __le16 action;
  924. __le16 offset;
  925. u8 value;
  926. u8 reserved[3];
  927. } __packed;
  928. struct host_cmd_ds_pmic_reg_access {
  929. __le16 action;
  930. __le16 offset;
  931. u8 value;
  932. u8 reserved[3];
  933. } __packed;
  934. struct host_cmd_ds_802_11_eeprom_access {
  935. __le16 action;
  936. __le16 offset;
  937. __le16 byte_count;
  938. u8 value;
  939. } __packed;
  940. struct host_cmd_ds_802_11_rf_channel {
  941. __le16 action;
  942. __le16 current_channel;
  943. __le16 rf_type;
  944. __le16 reserved;
  945. u8 reserved_1[32];
  946. } __packed;
  947. struct host_cmd_ds_version_ext {
  948. u8 version_str_sel;
  949. char version_str[128];
  950. } __packed;
  951. struct host_cmd_ds_802_11_ibss_status {
  952. __le16 action;
  953. __le16 enable;
  954. u8 bssid[ETH_ALEN];
  955. __le16 beacon_interval;
  956. __le16 atim_window;
  957. __le16 use_g_rate_protect;
  958. } __packed;
  959. #define CONNECTION_TYPE_INFRA 0
  960. #define CONNECTION_TYPE_ADHOC 1
  961. struct host_cmd_ds_set_bss_mode {
  962. u8 con_type;
  963. } __packed;
  964. struct host_cmd_ds_command {
  965. __le16 command;
  966. __le16 size;
  967. __le16 seq_num;
  968. __le16 result;
  969. union {
  970. struct host_cmd_ds_get_hw_spec hw_spec;
  971. struct host_cmd_ds_mac_control mac_ctrl;
  972. struct host_cmd_ds_802_11_mac_address mac_addr;
  973. struct host_cmd_ds_mac_multicast_adr mc_addr;
  974. struct host_cmd_ds_802_11_get_log get_log;
  975. struct host_cmd_ds_802_11_rssi_info rssi_info;
  976. struct host_cmd_ds_802_11_rssi_info_rsp rssi_info_rsp;
  977. struct host_cmd_ds_802_11_snmp_mib smib;
  978. struct host_cmd_ds_802_11_rf_channel rf_channel;
  979. struct host_cmd_ds_tx_rate_query tx_rate;
  980. struct host_cmd_ds_tx_rate_cfg tx_rate_cfg;
  981. struct host_cmd_ds_txpwr_cfg txp_cfg;
  982. struct host_cmd_ds_802_11_ps_mode_enh psmode_enh;
  983. struct host_cmd_ds_802_11_hs_cfg_enh opt_hs_cfg;
  984. struct host_cmd_ds_802_11_scan scan;
  985. struct host_cmd_ds_802_11_scan_rsp scan_resp;
  986. struct host_cmd_ds_802_11_bg_scan_query bg_scan_query;
  987. struct host_cmd_ds_802_11_bg_scan_query_rsp bg_scan_query_resp;
  988. struct host_cmd_ds_802_11_associate associate;
  989. struct host_cmd_ds_802_11_associate_rsp associate_rsp;
  990. struct host_cmd_ds_802_11_deauthenticate deauth;
  991. struct host_cmd_ds_802_11_ad_hoc_start adhoc_start;
  992. struct host_cmd_ds_802_11_ad_hoc_result adhoc_result;
  993. struct host_cmd_ds_802_11_ad_hoc_join adhoc_join;
  994. struct host_cmd_ds_802_11d_domain_info domain_info;
  995. struct host_cmd_ds_802_11d_domain_info_rsp domain_info_resp;
  996. struct host_cmd_ds_11n_addba_req add_ba_req;
  997. struct host_cmd_ds_11n_addba_rsp add_ba_rsp;
  998. struct host_cmd_ds_11n_delba del_ba;
  999. struct host_cmd_ds_txbuf_cfg tx_buf;
  1000. struct host_cmd_ds_amsdu_aggr_ctrl amsdu_aggr_ctrl;
  1001. struct host_cmd_ds_11n_cfg htcfg;
  1002. struct host_cmd_ds_wmm_get_status get_wmm_status;
  1003. struct host_cmd_ds_802_11_key_material key_material;
  1004. struct host_cmd_ds_version_ext verext;
  1005. struct host_cmd_ds_802_11_ibss_status ibss_coalescing;
  1006. struct host_cmd_ds_mac_reg_access mac_reg;
  1007. struct host_cmd_ds_bbp_reg_access bbp_reg;
  1008. struct host_cmd_ds_rf_reg_access rf_reg;
  1009. struct host_cmd_ds_pmic_reg_access pmic_reg;
  1010. struct host_cmd_ds_set_bss_mode bss_mode;
  1011. struct host_cmd_ds_802_11_eeprom_access eeprom;
  1012. } params;
  1013. } __packed;
  1014. struct mwifiex_opt_sleep_confirm {
  1015. __le16 command;
  1016. __le16 size;
  1017. __le16 seq_num;
  1018. __le16 result;
  1019. __le16 action;
  1020. __le16 resp_ctrl;
  1021. } __packed;
  1022. struct mwifiex_opt_sleep_confirm_buffer {
  1023. u8 hdr[4];
  1024. struct mwifiex_opt_sleep_confirm ps_cfm_sleep;
  1025. } __packed;
  1026. #endif /* !_MWIFIEX_FW_H_ */