2 * Copyright (c) 2013 Eugene Krasnikov <k.eugene.e@gmail.com>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 /*---------------------------------------------------------------------------
21 API VERSIONING INFORMATION
23 The RIVA API is versioned as MAJOR.MINOR.VERSION.REVISION
24 The MAJOR is incremented for major product/architecture changes
25 (and then MINOR/VERSION/REVISION are zeroed)
26 The MINOR is incremented for minor product/architecture changes
27 (and then VERSION/REVISION are zeroed)
28 The VERSION is incremented if a significant API change occurs
29 (and then REVISION is zeroed)
30 The REVISION is incremented if an insignificant API change occurs
31 or if a new API is added
32 All values are in the range 0..255 (ie they are 8-bit values)
33 ---------------------------------------------------------------------------*/
34 #define WCN36XX_HAL_VER_MAJOR 1
35 #define WCN36XX_HAL_VER_MINOR 4
36 #define WCN36XX_HAL_VER_VERSION 1
37 #define WCN36XX_HAL_VER_REVISION 2
39 /* This is to force compiler to use the maximum of an int ( 4 bytes ) */
40 #define WCN36XX_HAL_MAX_ENUM_SIZE 0x7FFFFFFF
41 #define WCN36XX_HAL_MSG_TYPE_MAX_ENUM_SIZE 0x7FFF
43 /* Max no. of transmit categories */
44 #define STACFG_MAX_TC 8
46 /* The maximum value of access category */
47 #define WCN36XX_HAL_MAX_AC 4
49 #define WCN36XX_HAL_IPV4_ADDR_LEN 4
51 #define WCN36XX_HAL_STA_INVALID_IDX 0xFF
52 #define WCN36XX_HAL_BSS_INVALID_IDX 0xFF
54 /* Default Beacon template size */
55 #define BEACON_TEMPLATE_SIZE 0x180
57 /* Minimum PVM size that the FW expects. See comment in smd.c for details. */
58 #define TIM_MIN_PVM_SIZE 6
60 /* Param Change Bitmap sent to HAL */
61 #define PARAM_BCN_INTERVAL_CHANGED (1 << 0)
62 #define PARAM_SHORT_PREAMBLE_CHANGED (1 << 1)
63 #define PARAM_SHORT_SLOT_TIME_CHANGED (1 << 2)
64 #define PARAM_llACOEXIST_CHANGED (1 << 3)
65 #define PARAM_llBCOEXIST_CHANGED (1 << 4)
66 #define PARAM_llGCOEXIST_CHANGED (1 << 5)
67 #define PARAM_HT20MHZCOEXIST_CHANGED (1<<6)
68 #define PARAM_NON_GF_DEVICES_PRESENT_CHANGED (1<<7)
69 #define PARAM_RIFS_MODE_CHANGED (1<<8)
70 #define PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED (1<<9)
71 #define PARAM_OBSS_MODE_CHANGED (1<<10)
72 #define PARAM_BEACON_UPDATE_MASK \
73 (PARAM_BCN_INTERVAL_CHANGED | \
74 PARAM_SHORT_PREAMBLE_CHANGED | \
75 PARAM_SHORT_SLOT_TIME_CHANGED | \
76 PARAM_llACOEXIST_CHANGED | \
77 PARAM_llBCOEXIST_CHANGED | \
78 PARAM_llGCOEXIST_CHANGED | \
79 PARAM_HT20MHZCOEXIST_CHANGED | \
80 PARAM_NON_GF_DEVICES_PRESENT_CHANGED | \
81 PARAM_RIFS_MODE_CHANGED | \
82 PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED | \
83 PARAM_OBSS_MODE_CHANGED)
85 /* dump command response Buffer size */
86 #define DUMPCMD_RSP_BUFFER 100
88 /* version string max length (including NULL) */
89 #define WCN36XX_HAL_VERSION_LENGTH 64
91 /* message types for messages exchanged between WDI and HAL */
92 enum wcn36xx_hal_host_msg_type
{
94 WCN36XX_HAL_START_REQ
= 0,
95 WCN36XX_HAL_START_RSP
= 1,
96 WCN36XX_HAL_STOP_REQ
= 2,
97 WCN36XX_HAL_STOP_RSP
= 3,
100 WCN36XX_HAL_INIT_SCAN_REQ
= 4,
101 WCN36XX_HAL_INIT_SCAN_RSP
= 5,
102 WCN36XX_HAL_START_SCAN_REQ
= 6,
103 WCN36XX_HAL_START_SCAN_RSP
= 7,
104 WCN36XX_HAL_END_SCAN_REQ
= 8,
105 WCN36XX_HAL_END_SCAN_RSP
= 9,
106 WCN36XX_HAL_FINISH_SCAN_REQ
= 10,
107 WCN36XX_HAL_FINISH_SCAN_RSP
= 11,
109 /* HW STA configuration/deconfiguration */
110 WCN36XX_HAL_CONFIG_STA_REQ
= 12,
111 WCN36XX_HAL_CONFIG_STA_RSP
= 13,
112 WCN36XX_HAL_DELETE_STA_REQ
= 14,
113 WCN36XX_HAL_DELETE_STA_RSP
= 15,
114 WCN36XX_HAL_CONFIG_BSS_REQ
= 16,
115 WCN36XX_HAL_CONFIG_BSS_RSP
= 17,
116 WCN36XX_HAL_DELETE_BSS_REQ
= 18,
117 WCN36XX_HAL_DELETE_BSS_RSP
= 19,
119 /* Infra STA asscoiation */
120 WCN36XX_HAL_JOIN_REQ
= 20,
121 WCN36XX_HAL_JOIN_RSP
= 21,
122 WCN36XX_HAL_POST_ASSOC_REQ
= 22,
123 WCN36XX_HAL_POST_ASSOC_RSP
= 23,
126 WCN36XX_HAL_SET_BSSKEY_REQ
= 24,
127 WCN36XX_HAL_SET_BSSKEY_RSP
= 25,
128 WCN36XX_HAL_SET_STAKEY_REQ
= 26,
129 WCN36XX_HAL_SET_STAKEY_RSP
= 27,
130 WCN36XX_HAL_RMV_BSSKEY_REQ
= 28,
131 WCN36XX_HAL_RMV_BSSKEY_RSP
= 29,
132 WCN36XX_HAL_RMV_STAKEY_REQ
= 30,
133 WCN36XX_HAL_RMV_STAKEY_RSP
= 31,
136 WCN36XX_HAL_ADD_TS_REQ
= 32,
137 WCN36XX_HAL_ADD_TS_RSP
= 33,
138 WCN36XX_HAL_DEL_TS_REQ
= 34,
139 WCN36XX_HAL_DEL_TS_RSP
= 35,
140 WCN36XX_HAL_UPD_EDCA_PARAMS_REQ
= 36,
141 WCN36XX_HAL_UPD_EDCA_PARAMS_RSP
= 37,
142 WCN36XX_HAL_ADD_BA_REQ
= 38,
143 WCN36XX_HAL_ADD_BA_RSP
= 39,
144 WCN36XX_HAL_DEL_BA_REQ
= 40,
145 WCN36XX_HAL_DEL_BA_RSP
= 41,
147 WCN36XX_HAL_CH_SWITCH_REQ
= 42,
148 WCN36XX_HAL_CH_SWITCH_RSP
= 43,
149 WCN36XX_HAL_SET_LINK_ST_REQ
= 44,
150 WCN36XX_HAL_SET_LINK_ST_RSP
= 45,
151 WCN36XX_HAL_GET_STATS_REQ
= 46,
152 WCN36XX_HAL_GET_STATS_RSP
= 47,
153 WCN36XX_HAL_UPDATE_CFG_REQ
= 48,
154 WCN36XX_HAL_UPDATE_CFG_RSP
= 49,
156 WCN36XX_HAL_MISSED_BEACON_IND
= 50,
157 WCN36XX_HAL_UNKNOWN_ADDR2_FRAME_RX_IND
= 51,
158 WCN36XX_HAL_MIC_FAILURE_IND
= 52,
159 WCN36XX_HAL_FATAL_ERROR_IND
= 53,
160 WCN36XX_HAL_SET_KEYDONE_MSG
= 54,
163 WCN36XX_HAL_DOWNLOAD_NV_REQ
= 55,
164 WCN36XX_HAL_DOWNLOAD_NV_RSP
= 56,
166 WCN36XX_HAL_ADD_BA_SESSION_REQ
= 57,
167 WCN36XX_HAL_ADD_BA_SESSION_RSP
= 58,
168 WCN36XX_HAL_TRIGGER_BA_REQ
= 59,
169 WCN36XX_HAL_TRIGGER_BA_RSP
= 60,
170 WCN36XX_HAL_UPDATE_BEACON_REQ
= 61,
171 WCN36XX_HAL_UPDATE_BEACON_RSP
= 62,
172 WCN36XX_HAL_SEND_BEACON_REQ
= 63,
173 WCN36XX_HAL_SEND_BEACON_RSP
= 64,
175 WCN36XX_HAL_SET_BCASTKEY_REQ
= 65,
176 WCN36XX_HAL_SET_BCASTKEY_RSP
= 66,
177 WCN36XX_HAL_DELETE_STA_CONTEXT_IND
= 67,
178 WCN36XX_HAL_UPDATE_PROBE_RSP_TEMPLATE_REQ
= 68,
179 WCN36XX_HAL_UPDATE_PROBE_RSP_TEMPLATE_RSP
= 69,
181 /* PTT interface support */
182 WCN36XX_HAL_PROCESS_PTT_REQ
= 70,
183 WCN36XX_HAL_PROCESS_PTT_RSP
= 71,
185 /* BTAMP related events */
186 WCN36XX_HAL_SIGNAL_BTAMP_EVENT_REQ
= 72,
187 WCN36XX_HAL_SIGNAL_BTAMP_EVENT_RSP
= 73,
188 WCN36XX_HAL_TL_HAL_FLUSH_AC_REQ
= 74,
189 WCN36XX_HAL_TL_HAL_FLUSH_AC_RSP
= 75,
191 WCN36XX_HAL_ENTER_IMPS_REQ
= 76,
192 WCN36XX_HAL_EXIT_IMPS_REQ
= 77,
193 WCN36XX_HAL_ENTER_BMPS_REQ
= 78,
194 WCN36XX_HAL_EXIT_BMPS_REQ
= 79,
195 WCN36XX_HAL_ENTER_UAPSD_REQ
= 80,
196 WCN36XX_HAL_EXIT_UAPSD_REQ
= 81,
197 WCN36XX_HAL_UPDATE_UAPSD_PARAM_REQ
= 82,
198 WCN36XX_HAL_CONFIGURE_RXP_FILTER_REQ
= 83,
199 WCN36XX_HAL_ADD_BCN_FILTER_REQ
= 84,
200 WCN36XX_HAL_REM_BCN_FILTER_REQ
= 85,
201 WCN36XX_HAL_ADD_WOWL_BCAST_PTRN
= 86,
202 WCN36XX_HAL_DEL_WOWL_BCAST_PTRN
= 87,
203 WCN36XX_HAL_ENTER_WOWL_REQ
= 88,
204 WCN36XX_HAL_EXIT_WOWL_REQ
= 89,
205 WCN36XX_HAL_HOST_OFFLOAD_REQ
= 90,
206 WCN36XX_HAL_SET_RSSI_THRESH_REQ
= 91,
207 WCN36XX_HAL_GET_RSSI_REQ
= 92,
208 WCN36XX_HAL_SET_UAPSD_AC_PARAMS_REQ
= 93,
209 WCN36XX_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_REQ
= 94,
211 WCN36XX_HAL_ENTER_IMPS_RSP
= 95,
212 WCN36XX_HAL_EXIT_IMPS_RSP
= 96,
213 WCN36XX_HAL_ENTER_BMPS_RSP
= 97,
214 WCN36XX_HAL_EXIT_BMPS_RSP
= 98,
215 WCN36XX_HAL_ENTER_UAPSD_RSP
= 99,
216 WCN36XX_HAL_EXIT_UAPSD_RSP
= 100,
217 WCN36XX_HAL_SET_UAPSD_AC_PARAMS_RSP
= 101,
218 WCN36XX_HAL_UPDATE_UAPSD_PARAM_RSP
= 102,
219 WCN36XX_HAL_CONFIGURE_RXP_FILTER_RSP
= 103,
220 WCN36XX_HAL_ADD_BCN_FILTER_RSP
= 104,
221 WCN36XX_HAL_REM_BCN_FILTER_RSP
= 105,
222 WCN36XX_HAL_SET_RSSI_THRESH_RSP
= 106,
223 WCN36XX_HAL_HOST_OFFLOAD_RSP
= 107,
224 WCN36XX_HAL_ADD_WOWL_BCAST_PTRN_RSP
= 108,
225 WCN36XX_HAL_DEL_WOWL_BCAST_PTRN_RSP
= 109,
226 WCN36XX_HAL_ENTER_WOWL_RSP
= 110,
227 WCN36XX_HAL_EXIT_WOWL_RSP
= 111,
228 WCN36XX_HAL_RSSI_NOTIFICATION_IND
= 112,
229 WCN36XX_HAL_GET_RSSI_RSP
= 113,
230 WCN36XX_HAL_CONFIGURE_APPS_CPU_WAKEUP_STATE_RSP
= 114,
232 /* 11k related events */
233 WCN36XX_HAL_SET_MAX_TX_POWER_REQ
= 115,
234 WCN36XX_HAL_SET_MAX_TX_POWER_RSP
= 116,
236 /* 11R related msgs */
237 WCN36XX_HAL_AGGR_ADD_TS_REQ
= 117,
238 WCN36XX_HAL_AGGR_ADD_TS_RSP
= 118,
240 /* P2P WLAN_FEATURE_P2P */
241 WCN36XX_HAL_SET_P2P_GONOA_REQ
= 119,
242 WCN36XX_HAL_SET_P2P_GONOA_RSP
= 120,
244 /* WLAN Dump commands */
245 WCN36XX_HAL_DUMP_COMMAND_REQ
= 121,
246 WCN36XX_HAL_DUMP_COMMAND_RSP
= 122,
248 /* OEM_DATA FEATURE SUPPORT */
249 WCN36XX_HAL_START_OEM_DATA_REQ
= 123,
250 WCN36XX_HAL_START_OEM_DATA_RSP
= 124,
252 /* ADD SELF STA REQ and RSP */
253 WCN36XX_HAL_ADD_STA_SELF_REQ
= 125,
254 WCN36XX_HAL_ADD_STA_SELF_RSP
= 126,
256 /* DEL SELF STA SUPPORT */
257 WCN36XX_HAL_DEL_STA_SELF_REQ
= 127,
258 WCN36XX_HAL_DEL_STA_SELF_RSP
= 128,
260 /* Coex Indication */
261 WCN36XX_HAL_COEX_IND
= 129,
263 /* Tx Complete Indication */
264 WCN36XX_HAL_OTA_TX_COMPL_IND
= 130,
266 /* Host Suspend/resume messages */
267 WCN36XX_HAL_HOST_SUSPEND_IND
= 131,
268 WCN36XX_HAL_HOST_RESUME_REQ
= 132,
269 WCN36XX_HAL_HOST_RESUME_RSP
= 133,
271 WCN36XX_HAL_SET_TX_POWER_REQ
= 134,
272 WCN36XX_HAL_SET_TX_POWER_RSP
= 135,
273 WCN36XX_HAL_GET_TX_POWER_REQ
= 136,
274 WCN36XX_HAL_GET_TX_POWER_RSP
= 137,
276 WCN36XX_HAL_P2P_NOA_ATTR_IND
= 138,
278 WCN36XX_HAL_ENABLE_RADAR_DETECT_REQ
= 139,
279 WCN36XX_HAL_ENABLE_RADAR_DETECT_RSP
= 140,
280 WCN36XX_HAL_GET_TPC_REPORT_REQ
= 141,
281 WCN36XX_HAL_GET_TPC_REPORT_RSP
= 142,
282 WCN36XX_HAL_RADAR_DETECT_IND
= 143,
283 WCN36XX_HAL_RADAR_DETECT_INTR_IND
= 144,
284 WCN36XX_HAL_KEEP_ALIVE_REQ
= 145,
285 WCN36XX_HAL_KEEP_ALIVE_RSP
= 146,
288 WCN36XX_HAL_SET_PREF_NETWORK_REQ
= 147,
289 WCN36XX_HAL_SET_PREF_NETWORK_RSP
= 148,
290 WCN36XX_HAL_SET_RSSI_FILTER_REQ
= 149,
291 WCN36XX_HAL_SET_RSSI_FILTER_RSP
= 150,
292 WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ
= 151,
293 WCN36XX_HAL_UPDATE_SCAN_PARAM_RSP
= 152,
294 WCN36XX_HAL_PREF_NETW_FOUND_IND
= 153,
296 WCN36XX_HAL_SET_TX_PER_TRACKING_REQ
= 154,
297 WCN36XX_HAL_SET_TX_PER_TRACKING_RSP
= 155,
298 WCN36XX_HAL_TX_PER_HIT_IND
= 156,
300 WCN36XX_HAL_8023_MULTICAST_LIST_REQ
= 157,
301 WCN36XX_HAL_8023_MULTICAST_LIST_RSP
= 158,
303 WCN36XX_HAL_SET_PACKET_FILTER_REQ
= 159,
304 WCN36XX_HAL_SET_PACKET_FILTER_RSP
= 160,
305 WCN36XX_HAL_PACKET_FILTER_MATCH_COUNT_REQ
= 161,
306 WCN36XX_HAL_PACKET_FILTER_MATCH_COUNT_RSP
= 162,
307 WCN36XX_HAL_CLEAR_PACKET_FILTER_REQ
= 163,
308 WCN36XX_HAL_CLEAR_PACKET_FILTER_RSP
= 164,
311 * This is temp fix. Should be removed once Host and Riva code is
314 WCN36XX_HAL_INIT_SCAN_CON_REQ
= 165,
316 WCN36XX_HAL_SET_POWER_PARAMS_REQ
= 166,
317 WCN36XX_HAL_SET_POWER_PARAMS_RSP
= 167,
319 WCN36XX_HAL_TSM_STATS_REQ
= 168,
320 WCN36XX_HAL_TSM_STATS_RSP
= 169,
322 /* wake reason indication (WOW) */
323 WCN36XX_HAL_WAKE_REASON_IND
= 170,
325 /* GTK offload support */
326 WCN36XX_HAL_GTK_OFFLOAD_REQ
= 171,
327 WCN36XX_HAL_GTK_OFFLOAD_RSP
= 172,
328 WCN36XX_HAL_GTK_OFFLOAD_GETINFO_REQ
= 173,
329 WCN36XX_HAL_GTK_OFFLOAD_GETINFO_RSP
= 174,
331 WCN36XX_HAL_FEATURE_CAPS_EXCHANGE_REQ
= 175,
332 WCN36XX_HAL_FEATURE_CAPS_EXCHANGE_RSP
= 176,
333 WCN36XX_HAL_EXCLUDE_UNENCRYPTED_IND
= 177,
335 WCN36XX_HAL_SET_THERMAL_MITIGATION_REQ
= 178,
336 WCN36XX_HAL_SET_THERMAL_MITIGATION_RSP
= 179,
338 WCN36XX_HAL_UPDATE_VHT_OP_MODE_REQ
= 182,
339 WCN36XX_HAL_UPDATE_VHT_OP_MODE_RSP
= 183,
341 WCN36XX_HAL_P2P_NOA_START_IND
= 184,
343 WCN36XX_HAL_GET_ROAM_RSSI_REQ
= 185,
344 WCN36XX_HAL_GET_ROAM_RSSI_RSP
= 186,
346 WCN36XX_HAL_CLASS_B_STATS_IND
= 187,
347 WCN36XX_HAL_DEL_BA_IND
= 188,
348 WCN36XX_HAL_DHCP_START_IND
= 189,
349 WCN36XX_HAL_DHCP_STOP_IND
= 190,
351 /* Scan Offload(hw) APIs */
352 WCN36XX_HAL_START_SCAN_OFFLOAD_REQ
= 204,
353 WCN36XX_HAL_START_SCAN_OFFLOAD_RSP
= 205,
354 WCN36XX_HAL_STOP_SCAN_OFFLOAD_REQ
= 206,
355 WCN36XX_HAL_STOP_SCAN_OFFLOAD_RSP
= 207,
356 WCN36XX_HAL_SCAN_OFFLOAD_IND
= 210,
358 WCN36XX_HAL_AVOID_FREQ_RANGE_IND
= 233,
360 WCN36XX_HAL_PRINT_REG_INFO_IND
= 259,
362 WCN36XX_HAL_MSG_MAX
= WCN36XX_HAL_MSG_TYPE_MAX_ENUM_SIZE
365 /* Enumeration for Version */
366 enum wcn36xx_hal_host_msg_version
{
367 WCN36XX_HAL_MSG_VERSION0
= 0,
368 WCN36XX_HAL_MSG_VERSION1
= 1,
369 /* define as 2 bytes data */
370 WCN36XX_HAL_MSG_WCNSS_CTRL_VERSION
= 0x7FFF,
371 WCN36XX_HAL_MSG_VERSION_MAX_FIELD
= WCN36XX_HAL_MSG_WCNSS_CTRL_VERSION
375 DRIVER_TYPE_PRODUCTION
= 0,
378 DRIVER_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
381 enum wcn36xx_hal_stop_type
{
382 HAL_STOP_TYPE_SYS_RESET
,
383 HAL_STOP_TYPE_SYS_DEEP_SLEEP
,
384 HAL_STOP_TYPE_RF_KILL
,
385 HAL_STOP_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
388 enum wcn36xx_hal_sys_mode
{
392 HAL_SYS_MODE_PROMISC
,
393 HAL_SYS_MODE_SUSPEND_LINK
,
394 HAL_SYS_MODE_ROAM_SCAN
,
395 HAL_SYS_MODE_ROAM_SUSPEND_LINK
,
396 HAL_SYS_MODE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
399 enum phy_chan_bond_state
{
400 /* 20MHz IF bandwidth centered on IF carrier */
401 PHY_SINGLE_CHANNEL_CENTERED
= 0,
403 /* 40MHz IF bandwidth with lower 20MHz supporting the primary channel */
404 PHY_DOUBLE_CHANNEL_LOW_PRIMARY
= 1,
406 /* 40MHz IF bandwidth centered on IF carrier */
407 PHY_DOUBLE_CHANNEL_CENTERED
= 2,
409 /* 40MHz IF bandwidth with higher 20MHz supporting the primary ch */
410 PHY_DOUBLE_CHANNEL_HIGH_PRIMARY
= 3,
412 /* 20/40MHZ offset LOW 40/80MHZ offset CENTERED */
413 PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED
= 4,
415 /* 20/40MHZ offset CENTERED 40/80MHZ offset CENTERED */
416 PHY_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED
= 5,
418 /* 20/40MHZ offset HIGH 40/80MHZ offset CENTERED */
419 PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED
= 6,
421 /* 20/40MHZ offset LOW 40/80MHZ offset LOW */
422 PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW
= 7,
424 /* 20/40MHZ offset HIGH 40/80MHZ offset LOW */
425 PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW
= 8,
427 /* 20/40MHZ offset LOW 40/80MHZ offset HIGH */
428 PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH
= 9,
430 /* 20/40MHZ offset-HIGH 40/80MHZ offset HIGH */
431 PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH
= 10,
433 PHY_CHANNEL_BONDING_STATE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
436 /* Spatial Multiplexing(SM) Power Save mode */
437 enum wcn36xx_hal_ht_mimo_state
{
438 /* Static SM Power Save mode */
439 WCN36XX_HAL_HT_MIMO_PS_STATIC
= 0,
441 /* Dynamic SM Power Save mode */
442 WCN36XX_HAL_HT_MIMO_PS_DYNAMIC
= 1,
445 WCN36XX_HAL_HT_MIMO_PS_NA
= 2,
447 /* SM Power Save disabled */
448 WCN36XX_HAL_HT_MIMO_PS_NO_LIMIT
= 3,
450 WCN36XX_HAL_HT_MIMO_PS_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
453 /* each station added has a rate mode which specifies the sta attributes */
463 STA_INVALID_RATE_MODE
= WCN36XX_HAL_MAX_ENUM_SIZE
467 #define WCN36XX_HAL_NUM_DSSS_RATES 4
469 /* 6,9,12,18,24,36,48,54 */
470 #define WCN36XX_HAL_NUM_OFDM_RATES 8
473 #define WCN36XX_HAL_NUM_POLARIS_RATES 3
475 #define WCN36XX_HAL_MAC_MAX_SUPPORTED_MCS_SET 16
477 enum wcn36xx_hal_bss_type
{
478 WCN36XX_HAL_INFRASTRUCTURE_MODE
,
480 /* Added for softAP support */
481 WCN36XX_HAL_INFRA_AP_MODE
,
483 WCN36XX_HAL_IBSS_MODE
,
485 /* Added for BT-AMP support */
486 WCN36XX_HAL_BTAMP_STA_MODE
,
488 /* Added for BT-AMP support */
489 WCN36XX_HAL_BTAMP_AP_MODE
,
491 WCN36XX_HAL_AUTO_MODE
,
493 WCN36XX_HAL_DONOT_USE_BSS_TYPE
= WCN36XX_HAL_MAX_ENUM_SIZE
496 enum wcn36xx_hal_nw_type
{
497 WCN36XX_HAL_11A_NW_TYPE
,
498 WCN36XX_HAL_11B_NW_TYPE
,
499 WCN36XX_HAL_11G_NW_TYPE
,
500 WCN36XX_HAL_11N_NW_TYPE
,
501 WCN36XX_HAL_DONOT_USE_NW_TYPE
= WCN36XX_HAL_MAX_ENUM_SIZE
504 #define WCN36XX_HAL_MAC_RATESET_EID_MAX 12
506 enum wcn36xx_hal_ht_operating_mode
{
508 WCN36XX_HAL_HT_OP_MODE_PURE
,
510 /* Overlap Legacy device present, protection is optional */
511 WCN36XX_HAL_HT_OP_MODE_OVERLAP_LEGACY
,
513 /* No legacy device, but 20 MHz HT present */
514 WCN36XX_HAL_HT_OP_MODE_NO_LEGACY_20MHZ_HT
,
516 /* Protection is required */
517 WCN36XX_HAL_HT_OP_MODE_MIXED
,
519 WCN36XX_HAL_HT_OP_MODE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
522 /* Encryption type enum used with peer */
525 WCN36XX_HAL_ED_WEP40
,
526 WCN36XX_HAL_ED_WEP104
,
530 WCN36XX_HAL_ED_AES_128_CMAC
,
531 WCN36XX_HAL_ED_NOT_IMPLEMENTED
= WCN36XX_HAL_MAX_ENUM_SIZE
534 #define WLAN_MAX_KEY_RSC_LEN 16
535 #define WLAN_WAPI_KEY_RSC_LEN 16
537 /* MAX key length when ULA is used */
538 #define WCN36XX_HAL_MAC_MAX_KEY_LENGTH 32
539 #define WCN36XX_HAL_MAC_MAX_NUM_OF_DEFAULT_KEYS 4
542 * Enum to specify whether key is used for TX only, RX only or both.
544 enum ani_key_direction
{
548 WCN36XX_HAL_TX_DEFAULT
,
549 WCN36XX_HAL_DONOT_USE_KEY_DIRECTION
= WCN36XX_HAL_MAX_ENUM_SIZE
553 WCN36XX_HAL_WEP_STATIC
,
554 WCN36XX_HAL_WEP_DYNAMIC
,
555 WCN36XX_HAL_WEP_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
558 enum wcn36xx_hal_link_state
{
560 WCN36XX_HAL_LINK_IDLE_STATE
= 0,
561 WCN36XX_HAL_LINK_PREASSOC_STATE
= 1,
562 WCN36XX_HAL_LINK_POSTASSOC_STATE
= 2,
563 WCN36XX_HAL_LINK_AP_STATE
= 3,
564 WCN36XX_HAL_LINK_IBSS_STATE
= 4,
567 WCN36XX_HAL_LINK_BTAMP_PREASSOC_STATE
= 5,
568 WCN36XX_HAL_LINK_BTAMP_POSTASSOC_STATE
= 6,
569 WCN36XX_HAL_LINK_BTAMP_AP_STATE
= 7,
570 WCN36XX_HAL_LINK_BTAMP_STA_STATE
= 8,
572 /* Reserved for HAL Internal Use */
573 WCN36XX_HAL_LINK_LEARN_STATE
= 9,
574 WCN36XX_HAL_LINK_SCAN_STATE
= 10,
575 WCN36XX_HAL_LINK_FINISH_SCAN_STATE
= 11,
576 WCN36XX_HAL_LINK_INIT_CAL_STATE
= 12,
577 WCN36XX_HAL_LINK_FINISH_CAL_STATE
= 13,
578 WCN36XX_HAL_LINK_LISTEN_STATE
= 14,
580 WCN36XX_HAL_LINK_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
583 enum wcn36xx_hal_stats_mask
{
584 HAL_SUMMARY_STATS_INFO
= 0x00000001,
585 HAL_GLOBAL_CLASS_A_STATS_INFO
= 0x00000002,
586 HAL_GLOBAL_CLASS_B_STATS_INFO
= 0x00000004,
587 HAL_GLOBAL_CLASS_C_STATS_INFO
= 0x00000008,
588 HAL_GLOBAL_CLASS_D_STATS_INFO
= 0x00000010,
589 HAL_PER_STA_STATS_INFO
= 0x00000020
592 /* BT-AMP events type */
593 enum bt_amp_event_type
{
594 BTAMP_EVENT_CONNECTION_START
,
595 BTAMP_EVENT_CONNECTION_STOP
,
596 BTAMP_EVENT_CONNECTION_TERMINATED
,
598 /* This and beyond are invalid values */
599 BTAMP_EVENT_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
,
604 PE_SUMMARY_STATS_INFO
= 0x00000001,
605 PE_GLOBAL_CLASS_A_STATS_INFO
= 0x00000002,
606 PE_GLOBAL_CLASS_B_STATS_INFO
= 0x00000004,
607 PE_GLOBAL_CLASS_C_STATS_INFO
= 0x00000008,
608 PE_GLOBAL_CLASS_D_STATS_INFO
= 0x00000010,
609 PE_PER_STA_STATS_INFO
= 0x00000020,
611 /* This and beyond are invalid values */
612 PE_STATS_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
616 * Configuration Parameter IDs
618 #define WCN36XX_HAL_CFG_STA_ID 0
619 #define WCN36XX_HAL_CFG_CURRENT_TX_ANTENNA 1
620 #define WCN36XX_HAL_CFG_CURRENT_RX_ANTENNA 2
621 #define WCN36XX_HAL_CFG_LOW_GAIN_OVERRIDE 3
622 #define WCN36XX_HAL_CFG_POWER_STATE_PER_CHAIN 4
623 #define WCN36XX_HAL_CFG_CAL_PERIOD 5
624 #define WCN36XX_HAL_CFG_CAL_CONTROL 6
625 #define WCN36XX_HAL_CFG_PROXIMITY 7
626 #define WCN36XX_HAL_CFG_NETWORK_DENSITY 8
627 #define WCN36XX_HAL_CFG_MAX_MEDIUM_TIME 9
628 #define WCN36XX_HAL_CFG_MAX_MPDUS_IN_AMPDU 10
629 #define WCN36XX_HAL_CFG_RTS_THRESHOLD 11
630 #define WCN36XX_HAL_CFG_SHORT_RETRY_LIMIT 12
631 #define WCN36XX_HAL_CFG_LONG_RETRY_LIMIT 13
632 #define WCN36XX_HAL_CFG_FRAGMENTATION_THRESHOLD 14
633 #define WCN36XX_HAL_CFG_DYNAMIC_THRESHOLD_ZERO 15
634 #define WCN36XX_HAL_CFG_DYNAMIC_THRESHOLD_ONE 16
635 #define WCN36XX_HAL_CFG_DYNAMIC_THRESHOLD_TWO 17
636 #define WCN36XX_HAL_CFG_FIXED_RATE 18
637 #define WCN36XX_HAL_CFG_RETRYRATE_POLICY 19
638 #define WCN36XX_HAL_CFG_RETRYRATE_SECONDARY 20
639 #define WCN36XX_HAL_CFG_RETRYRATE_TERTIARY 21
640 #define WCN36XX_HAL_CFG_FORCE_POLICY_PROTECTION 22
641 #define WCN36XX_HAL_CFG_FIXED_RATE_MULTICAST_24GHZ 23
642 #define WCN36XX_HAL_CFG_FIXED_RATE_MULTICAST_5GHZ 24
643 #define WCN36XX_HAL_CFG_DEFAULT_RATE_INDEX_24GHZ 25
644 #define WCN36XX_HAL_CFG_DEFAULT_RATE_INDEX_5GHZ 26
645 #define WCN36XX_HAL_CFG_MAX_BA_SESSIONS 27
646 #define WCN36XX_HAL_CFG_PS_DATA_INACTIVITY_TIMEOUT 28
647 #define WCN36XX_HAL_CFG_PS_ENABLE_BCN_FILTER 29
648 #define WCN36XX_HAL_CFG_PS_ENABLE_RSSI_MONITOR 30
649 #define WCN36XX_HAL_CFG_NUM_BEACON_PER_RSSI_AVERAGE 31
650 #define WCN36XX_HAL_CFG_STATS_PERIOD 32
651 #define WCN36XX_HAL_CFG_CFP_MAX_DURATION 33
652 #define WCN36XX_HAL_CFG_FRAME_TRANS_ENABLED 34
653 #define WCN36XX_HAL_CFG_DTIM_PERIOD 35
654 #define WCN36XX_HAL_CFG_EDCA_WMM_ACBK 36
655 #define WCN36XX_HAL_CFG_EDCA_WMM_ACBE 37
656 #define WCN36XX_HAL_CFG_EDCA_WMM_ACVO 38
657 #define WCN36XX_HAL_CFG_EDCA_WMM_ACVI 39
658 #define WCN36XX_HAL_CFG_BA_THRESHOLD_HIGH 40
659 #define WCN36XX_HAL_CFG_MAX_BA_BUFFERS 41
660 #define WCN36XX_HAL_CFG_RPE_POLLING_THRESHOLD 42
661 #define WCN36XX_HAL_CFG_RPE_AGING_THRESHOLD_FOR_AC0_REG 43
662 #define WCN36XX_HAL_CFG_RPE_AGING_THRESHOLD_FOR_AC1_REG 44
663 #define WCN36XX_HAL_CFG_RPE_AGING_THRESHOLD_FOR_AC2_REG 45
664 #define WCN36XX_HAL_CFG_RPE_AGING_THRESHOLD_FOR_AC3_REG 46
665 #define WCN36XX_HAL_CFG_NO_OF_ONCHIP_REORDER_SESSIONS 47
666 #define WCN36XX_HAL_CFG_PS_LISTEN_INTERVAL 48
667 #define WCN36XX_HAL_CFG_PS_HEART_BEAT_THRESHOLD 49
668 #define WCN36XX_HAL_CFG_PS_NTH_BEACON_FILTER 50
669 #define WCN36XX_HAL_CFG_PS_MAX_PS_POLL 51
670 #define WCN36XX_HAL_CFG_PS_MIN_RSSI_THRESHOLD 52
671 #define WCN36XX_HAL_CFG_PS_RSSI_FILTER_PERIOD 53
672 #define WCN36XX_HAL_CFG_PS_BROADCAST_FRAME_FILTER_ENABLE 54
673 #define WCN36XX_HAL_CFG_PS_IGNORE_DTIM 55
674 #define WCN36XX_HAL_CFG_PS_ENABLE_BCN_EARLY_TERM 56
675 #define WCN36XX_HAL_CFG_DYNAMIC_PS_POLL_VALUE 57
676 #define WCN36XX_HAL_CFG_PS_NULLDATA_AP_RESP_TIMEOUT 58
677 #define WCN36XX_HAL_CFG_TELE_BCN_WAKEUP_EN 59
678 #define WCN36XX_HAL_CFG_TELE_BCN_TRANS_LI 60
679 #define WCN36XX_HAL_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS 61
680 #define WCN36XX_HAL_CFG_TELE_BCN_MAX_LI 62
681 #define WCN36XX_HAL_CFG_TELE_BCN_MAX_LI_IDLE_BCNS 63
682 #define WCN36XX_HAL_CFG_TX_PWR_CTRL_ENABLE 64
683 #define WCN36XX_HAL_CFG_VALID_RADAR_CHANNEL_LIST 65
684 #define WCN36XX_HAL_CFG_TX_POWER_24_20 66
685 #define WCN36XX_HAL_CFG_TX_POWER_24_40 67
686 #define WCN36XX_HAL_CFG_TX_POWER_50_20 68
687 #define WCN36XX_HAL_CFG_TX_POWER_50_40 69
688 #define WCN36XX_HAL_CFG_MCAST_BCAST_FILTER_SETTING 70
689 #define WCN36XX_HAL_CFG_BCN_EARLY_TERM_WAKEUP_INTERVAL 71
690 #define WCN36XX_HAL_CFG_MAX_TX_POWER_2_4 72
691 #define WCN36XX_HAL_CFG_MAX_TX_POWER_5 73
692 #define WCN36XX_HAL_CFG_INFRA_STA_KEEP_ALIVE_PERIOD 74
693 #define WCN36XX_HAL_CFG_ENABLE_CLOSE_LOOP 75
694 #define WCN36XX_HAL_CFG_BTC_EXECUTION_MODE 76
695 #define WCN36XX_HAL_CFG_BTC_DHCP_BT_SLOTS_TO_BLOCK 77
696 #define WCN36XX_HAL_CFG_BTC_A2DP_DHCP_BT_SUB_INTERVALS 78
697 #define WCN36XX_HAL_CFG_PS_TX_INACTIVITY_TIMEOUT 79
698 #define WCN36XX_HAL_CFG_WCNSS_API_VERSION 80
699 #define WCN36XX_HAL_CFG_AP_KEEPALIVE_TIMEOUT 81
700 #define WCN36XX_HAL_CFG_GO_KEEPALIVE_TIMEOUT 82
701 #define WCN36XX_HAL_CFG_ENABLE_MC_ADDR_LIST 83
702 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_INQ_BT 84
703 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_PAGE_BT 85
704 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_CONN_BT 86
705 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_LE_BT 87
706 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_INQ_WLAN 88
707 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_PAGE_WLAN 89
708 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_CONN_WLAN 90
709 #define WCN36XX_HAL_CFG_BTC_STATIC_LEN_LE_WLAN 91
710 #define WCN36XX_HAL_CFG_BTC_DYN_MAX_LEN_BT 92
711 #define WCN36XX_HAL_CFG_BTC_DYN_MAX_LEN_WLAN 93
712 #define WCN36XX_HAL_CFG_BTC_MAX_SCO_BLOCK_PERC 94
713 #define WCN36XX_HAL_CFG_BTC_DHCP_PROT_ON_A2DP 95
714 #define WCN36XX_HAL_CFG_BTC_DHCP_PROT_ON_SCO 96
715 #define WCN36XX_HAL_CFG_ENABLE_UNICAST_FILTER 97
716 #define WCN36XX_HAL_CFG_MAX_ASSOC_LIMIT 98
717 #define WCN36XX_HAL_CFG_ENABLE_LPWR_IMG_TRANSITION 99
718 #define WCN36XX_HAL_CFG_ENABLE_MCC_ADAPTIVE_SCHEDULER 100
719 #define WCN36XX_HAL_CFG_ENABLE_DETECT_PS_SUPPORT 101
720 #define WCN36XX_HAL_CFG_AP_LINK_MONITOR_TIMEOUT 102
721 #define WCN36XX_HAL_CFG_BTC_DWELL_TIME_MULTIPLIER 103
722 #define WCN36XX_HAL_CFG_ENABLE_TDLS_OXYGEN_MODE 104
723 #define WCN36XX_HAL_CFG_MAX_PARAMS 105
725 /* Message definitons - All the messages below need to be packed */
727 /* Definition for HAL API Version. */
728 struct wcnss_wlan_version
{
735 /* Definition for Encryption Keys */
736 struct wcn36xx_hal_keys
{
739 /* 0 for multicast */
742 enum ani_key_direction direction
;
744 /* Usage is unknown */
745 u8 rsc
[WLAN_MAX_KEY_RSC_LEN
];
747 /* =1 for authenticator,=0 for supplicant */
751 u8 key
[WCN36XX_HAL_MAC_MAX_KEY_LENGTH
];
755 * set_sta_key_params Moving here since it is shared by
756 * configbss/setstakey msgs
758 struct wcn36xx_hal_set_sta_key_params
{
762 /* Encryption Type used with peer */
763 enum ani_ed_type enc_type
;
765 /* STATIC/DYNAMIC - valid only for WEP */
766 enum ani_wep_type wep_type
;
768 /* Default WEP key, valid only for static WEP, must between 0 and 3. */
771 /* valid only for non-static WEP encyrptions */
772 struct wcn36xx_hal_keys key
[WCN36XX_HAL_MAC_MAX_NUM_OF_DEFAULT_KEYS
];
775 * Control for Replay Count, 1= Single TID based replay count on Tx
776 * 0 = Per TID based replay count on TX
782 /* 4-byte control message header used by HAL*/
783 struct wcn36xx_hal_msg_header
{
784 enum wcn36xx_hal_host_msg_type msg_type
:16;
785 enum wcn36xx_hal_host_msg_version msg_version
:16;
789 /* Config format required by HAL for each CFG item*/
790 struct wcn36xx_hal_cfg
{
791 /* Cfg Id. The Id required by HAL is exported by HAL
792 * in shared header file between UMAC and HAL.*/
795 /* Length of the Cfg. This parameter is used to go to next cfg
796 * in the TLV format.*/
799 /* Padding bytes for unaligned address's */
802 /* Reserve bytes for making cfgVal to align address */
805 /* Following the uCfgLen field there should be a 'uCfgLen' bytes
806 * containing the uCfgValue ; u8 uCfgValue[uCfgLen] */
809 struct wcn36xx_hal_mac_start_parameters
{
810 /* Drive Type - Production or FTM etc */
811 enum driver_type type
;
813 /* Length of the config buffer */
816 /* Following this there is a TLV formatted buffer of length
817 * "len" bytes containing all config values.
818 * The TLV is expected to be formatted like this:
819 * 0 15 31 31+CFG_LEN-1 length-1
820 * | CFG_ID | CFG_LEN | CFG_BODY | CFG_ID |......|
824 struct wcn36xx_hal_mac_start_req_msg
{
825 /* config buffer must start in TLV format just here */
826 struct wcn36xx_hal_msg_header header
;
827 struct wcn36xx_hal_mac_start_parameters params
;
830 struct wcn36xx_hal_mac_start_rsp_params
{
831 /* success or failure */
834 /* Max number of STA supported by the device */
837 /* Max number of BSS supported by the device */
841 struct wcnss_wlan_version version
;
843 /* CRM build information */
844 u8 crm_version
[WCN36XX_HAL_VERSION_LENGTH
];
846 /* hardware/chipset/misc version information */
847 u8 wlan_version
[WCN36XX_HAL_VERSION_LENGTH
];
851 struct wcn36xx_hal_mac_start_rsp_msg
{
852 struct wcn36xx_hal_msg_header header
;
853 struct wcn36xx_hal_mac_start_rsp_params start_rsp_params
;
856 struct wcn36xx_hal_mac_stop_req_params
{
857 /* The reason for which the device is being stopped */
858 enum wcn36xx_hal_stop_type reason
;
862 struct wcn36xx_hal_mac_stop_req_msg
{
863 struct wcn36xx_hal_msg_header header
;
864 struct wcn36xx_hal_mac_stop_req_params stop_req_params
;
867 struct wcn36xx_hal_mac_stop_rsp_msg
{
868 struct wcn36xx_hal_msg_header header
;
870 /* success or failure */
874 struct wcn36xx_hal_update_cfg_req_msg
{
876 * Note: The length specified in tHalUpdateCfgReqMsg messages should be
877 * header.msgLen = sizeof(tHalUpdateCfgReqMsg) + uConfigBufferLen
879 struct wcn36xx_hal_msg_header header
;
881 /* Length of the config buffer. Allows UMAC to update multiple CFGs */
885 * Following this there is a TLV formatted buffer of length
886 * "uConfigBufferLen" bytes containing all config values.
887 * The TLV is expected to be formatted like this:
888 * 0 15 31 31+CFG_LEN-1 length-1
889 * | CFG_ID | CFG_LEN | CFG_BODY | CFG_ID |......|
894 struct wcn36xx_hal_update_cfg_rsp_msg
{
895 struct wcn36xx_hal_msg_header header
;
897 /* success or failure */
902 /* Frame control field format (2 bytes) */
903 struct wcn36xx_hal_mac_frame_ctl
{
905 #ifndef ANI_LITTLE_BIT_ENDIAN
939 /* Sequence control field */
940 struct wcn36xx_hal_mac_seq_ctl
{
946 /* Management header format */
947 struct wcn36xx_hal_mac_mgmt_hdr
{
948 struct wcn36xx_hal_mac_frame_ctl fc
;
954 struct wcn36xx_hal_mac_seq_ctl seqControl
;
957 /* FIXME: pronto v1 apparently has 4 */
958 #define WCN36XX_HAL_NUM_BSSID 2
960 /* Scan Entry to hold active BSS idx's */
961 struct wcn36xx_hal_scan_entry
{
962 u8 bss_index
[WCN36XX_HAL_NUM_BSSID
];
966 struct wcn36xx_hal_init_scan_req_msg
{
967 struct wcn36xx_hal_msg_header header
;
971 enum wcn36xx_hal_sys_mode mode
;
973 /* BSSID of the BSS */
976 /* Whether BSS needs to be notified */
979 /* Kind of frame to be used for notifying the BSS (Data Null, QoS
980 * Null, or CTS to Self). Must always be a valid frame type. */
983 /* UMAC has the option of passing the MAC frame to be used for
984 * notifying the BSS. If non-zero, HAL will use the MAC frame
985 * buffer pointed to by macMgmtHdr. If zero, HAL will generate the
986 * appropriate MAC frame based on frameType. */
989 /* Following the framelength there is a MAC frame buffer if
990 * frameLength is non-zero. */
991 struct wcn36xx_hal_mac_mgmt_hdr mac_mgmt_hdr
;
993 /* Entry to hold number of active BSS idx's */
994 struct wcn36xx_hal_scan_entry scan_entry
;
997 struct wcn36xx_hal_init_scan_con_req_msg
{
998 struct wcn36xx_hal_msg_header header
;
1002 enum wcn36xx_hal_sys_mode mode
;
1004 /* BSSID of the BSS */
1007 /* Whether BSS needs to be notified */
1010 /* Kind of frame to be used for notifying the BSS (Data Null, QoS
1011 * Null, or CTS to Self). Must always be a valid frame type. */
1014 /* UMAC has the option of passing the MAC frame to be used for
1015 * notifying the BSS. If non-zero, HAL will use the MAC frame
1016 * buffer pointed to by macMgmtHdr. If zero, HAL will generate the
1017 * appropriate MAC frame based on frameType. */
1020 /* Following the framelength there is a MAC frame buffer if
1021 * frameLength is non-zero. */
1022 struct wcn36xx_hal_mac_mgmt_hdr mac_mgmt_hdr
;
1024 /* Entry to hold number of active BSS idx's */
1025 struct wcn36xx_hal_scan_entry scan_entry
;
1027 /* Single NoA usage in Scanning */
1030 /* Indicates the scan duration (in ms) */
1035 struct wcn36xx_hal_init_scan_rsp_msg
{
1036 struct wcn36xx_hal_msg_header header
;
1038 /* success or failure */
1043 struct wcn36xx_hal_start_scan_req_msg
{
1044 struct wcn36xx_hal_msg_header header
;
1046 /* Indicates the channel to scan */
1050 struct wcn36xx_hal_start_rsp_msg
{
1051 struct wcn36xx_hal_msg_header header
;
1053 /* success or failure */
1061 struct wcn36xx_hal_end_scan_req_msg
{
1062 struct wcn36xx_hal_msg_header header
;
1064 /* Indicates the channel to stop scanning. Not used really. But
1065 * retained for symmetry with "start Scan" message. It can also
1066 * help in error check if needed. */
1070 struct wcn36xx_hal_end_scan_rsp_msg
{
1071 struct wcn36xx_hal_msg_header header
;
1073 /* success or failure */
1077 struct wcn36xx_hal_finish_scan_req_msg
{
1078 struct wcn36xx_hal_msg_header header
;
1080 /* Identifies the operational state of the AP/STA
1081 * LEARN - AP Role SCAN - STA Role */
1082 enum wcn36xx_hal_sys_mode mode
;
1084 /* Operating channel to tune to. */
1087 /* Channel Bonding state If 20/40 MHz is operational, this will
1088 * indicate the 40 MHz extension channel in combination with the
1089 * control channel */
1090 enum phy_chan_bond_state cb_state
;
1092 /* BSSID of the BSS */
1095 /* Whether BSS needs to be notified */
1098 /* Kind of frame to be used for notifying the BSS (Data Null, QoS
1099 * Null, or CTS to Self). Must always be a valid frame type. */
1102 /* UMAC has the option of passing the MAC frame to be used for
1103 * notifying the BSS. If non-zero, HAL will use the MAC frame
1104 * buffer pointed to by macMgmtHdr. If zero, HAL will generate the
1105 * appropriate MAC frame based on frameType. */
1108 /* Following the framelength there is a MAC frame buffer if
1109 * frameLength is non-zero. */
1110 struct wcn36xx_hal_mac_mgmt_hdr mac_mgmt_hdr
;
1112 /* Entry to hold number of active BSS idx's */
1113 struct wcn36xx_hal_scan_entry scan_entry
;
1117 struct wcn36xx_hal_finish_scan_rsp_msg
{
1118 struct wcn36xx_hal_msg_header header
;
1120 /* success or failure */
1125 enum wcn36xx_hal_scan_type
{
1126 WCN36XX_HAL_SCAN_TYPE_PASSIVE
= 0x00,
1127 WCN36XX_HAL_SCAN_TYPE_ACTIVE
= WCN36XX_HAL_MAX_ENUM_SIZE
1130 struct wcn36xx_hal_mac_ssid
{
1135 struct wcn36xx_hal_start_scan_offload_req_msg
{
1136 struct wcn36xx_hal_msg_header header
;
1138 /* BSSIDs hot list */
1140 u8 bssids
[4][ETH_ALEN
];
1142 /* Directed probe-requests will be sent for listed SSIDs (max 10)*/
1144 struct wcn36xx_hal_mac_ssid ssids
[10];
1146 /* Report AP with hidden ssid */
1149 /* Self MAC address */
1153 enum wcn36xx_hal_bss_type bss_type
;
1156 enum wcn36xx_hal_scan_type scan_type
;
1158 /* Minimum scanning time on each channel (ms) */
1161 /* Maximum scanning time on each channel */
1164 /* Is a p2p search */
1167 /* Channels to scan */
1176 struct wcn36xx_hal_start_scan_offload_rsp_msg
{
1177 struct wcn36xx_hal_msg_header header
;
1179 /* success or failure */
1183 enum wcn36xx_hal_scan_offload_ind_type
{
1184 /* Scan has been started */
1185 WCN36XX_HAL_SCAN_IND_STARTED
= 0x01,
1186 /* Scan has been completed */
1187 WCN36XX_HAL_SCAN_IND_COMPLETED
= 0x02,
1188 /* Moved to foreign channel */
1189 WCN36XX_HAL_SCAN_IND_FOREIGN_CHANNEL
= 0x08,
1190 /* scan request has been dequeued */
1191 WCN36XX_HAL_SCAN_IND_DEQUEUED
= 0x10,
1192 /* preempted by other high priority scan */
1193 WCN36XX_HAL_SCAN_IND_PREEMPTED
= 0x20,
1194 /* scan start failed */
1195 WCN36XX_HAL_SCAN_IND_FAILED
= 0x40,
1197 WCN36XX_HAL_SCAN_IND_RESTARTED
= 0x80,
1198 WCN36XX_HAL_SCAN_IND_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
1201 struct wcn36xx_hal_scan_offload_ind
{
1202 struct wcn36xx_hal_msg_header header
;
1209 struct wcn36xx_hal_stop_scan_offload_req_msg
{
1210 struct wcn36xx_hal_msg_header header
;
1213 struct wcn36xx_hal_stop_scan_offload_rsp_msg
{
1214 struct wcn36xx_hal_msg_header header
;
1216 /* success or failure */
1220 enum wcn36xx_hal_rate_index
{
1221 HW_RATE_INDEX_1MBPS
= 0x82,
1222 HW_RATE_INDEX_2MBPS
= 0x84,
1223 HW_RATE_INDEX_5_5MBPS
= 0x8B,
1224 HW_RATE_INDEX_6MBPS
= 0x0C,
1225 HW_RATE_INDEX_9MBPS
= 0x12,
1226 HW_RATE_INDEX_11MBPS
= 0x96,
1227 HW_RATE_INDEX_12MBPS
= 0x18,
1228 HW_RATE_INDEX_18MBPS
= 0x24,
1229 HW_RATE_INDEX_24MBPS
= 0x30,
1230 HW_RATE_INDEX_36MBPS
= 0x48,
1231 HW_RATE_INDEX_48MBPS
= 0x60,
1232 HW_RATE_INDEX_54MBPS
= 0x6C
1235 struct wcn36xx_hal_supported_rates
{
1237 * For Self STA Entry: this represents Self Mode.
1238 * For Peer Stations, this represents the mode of the peer.
1241 * --this mode is updated when PE adds the Self Entry.
1243 * -- OR when PE sends 'ADD_BSS' message and station context in BSS
1244 * is used to indicate the mode of the AP.
1248 * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry
1249 * for that BSS is used to indicate the self mode of the AP.
1251 * -- OR when a station is associated, PE sends 'ADD_STA' message
1252 * with this mode updated.
1255 enum sta_rate_mode op_rate_mode
;
1257 /* 11b, 11a and aniLegacyRates are IE rates which gives rate in
1258 * unit of 500Kbps */
1259 u16 dsss_rates
[WCN36XX_HAL_NUM_DSSS_RATES
];
1260 u16 ofdm_rates
[WCN36XX_HAL_NUM_OFDM_RATES
];
1261 u16 legacy_rates
[WCN36XX_HAL_NUM_POLARIS_RATES
];
1264 /* Taurus only supports 26 Titan Rates(no ESF/concat Rates will be
1265 * supported) First 26 bits are reserved for those Titan rates and
1266 * the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are
1268 /* Titan and Taurus Rates */
1269 u32 enhanced_rate_bitmap
;
1272 * 0-76 bits used, remaining reserved
1273 * bits 0-15 and 32 should be set.
1275 u8 supported_mcs_set
[WCN36XX_HAL_MAC_MAX_SUPPORTED_MCS_SET
];
1278 * RX Highest Supported Data Rate defines the highest data
1279 * rate that the STA is able to receive, in unites of 1Mbps.
1280 * This value is derived from "Supported MCS Set field" inside
1281 * the HT capability element.
1283 u16 rx_highest_data_rate
;
1287 struct wcn36xx_hal_config_sta_params
{
1291 /* ASSOC ID, as assigned by UMAC */
1294 /* STA entry Type: 0 - Self, 1 - Other/Peer, 2 - BSSID, 3 - BCAST */
1297 /* Short Preamble Supported. */
1298 u8 short_preamble_supported
;
1300 /* MAC Address of STA */
1303 /* Listen interval of the STA */
1304 u16 listen_interval
;
1306 /* Support for 11e/WMM */
1309 /* 11n HT capable STA */
1312 /* TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz */
1313 u8 tx_channel_width_set
;
1315 /* RIFS mode 0 - NA, 1 - Allowed */
1318 /* L-SIG TXOP Protection mechanism
1319 0 - No Support, 1 - Supported
1320 SG - there is global field */
1321 u8 lsig_txop_protection
;
1323 /* Max Ampdu Size supported by STA. TPE programming.
1324 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */
1327 /* Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4) */
1328 u8 max_ampdu_density
;
1330 /* Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes */
1333 /* Short GI support for 40Mhz packets */
1336 /* Short GI support for 20Mhz packets */
1339 /* TODO move this parameter to the end for 3680 */
1340 /* These rates are the intersection of peer and self capabilities. */
1341 struct wcn36xx_hal_supported_rates supported_rates
;
1343 /* Robust Management Frame (RMF) enabled/disabled */
1346 /* The unicast encryption type in the association */
1349 /* HAL should update the existing STA entry, if this flag is set. UMAC
1350 will set this flag in case of RE-ASSOC, where we want to reuse the
1351 old STA ID. 0 = Add, 1 = Update */
1354 /* U-APSD Flags: 1b per AC. Encoded as follows:
1355 b7 b6 b5 b4 b3 b2 b1 b0 =
1356 X X X X BE BK VI VO */
1362 /* 11n Green Field preamble support
1363 0 - Not supported, 1 - Supported */
1364 u8 green_field_capable
;
1366 /* MIMO Power Save mode */
1367 enum wcn36xx_hal_ht_mimo_state mimo_ps
;
1369 /* Delayed BA Support */
1370 u8 delayed_ba_support
;
1372 /* Max AMPDU duration in 32us */
1373 u8 max_ampdu_duration
;
1375 /* HT STA should set it to 1 if it is enabled in BSS. HT STA should
1376 * set it to 0 if AP does not support it. This indication is sent
1377 * to HAL and HAL uses this flag to pickup up appropriate 40Mhz
1379 u8 dsss_cck_mode_40mhz
;
1381 /* Valid STA Idx when action=Update. Set to 0xFF when invalid!
1382 * Retained for backward compalibity with existing HAL code */
1385 /* BSSID of BSS to which station is associated. Set to 0xFF when
1386 * invalid. Retained for backward compalibity with existing HAL
1392 /* TODO add this parameter for 3680. */
1393 /* Reserved to align next field on a dword boundary */
1397 struct wcn36xx_hal_config_sta_req_msg
{
1398 struct wcn36xx_hal_msg_header header
;
1399 struct wcn36xx_hal_config_sta_params sta_params
;
1402 struct wcn36xx_hal_config_sta_params_v1
{
1406 /* ASSOC ID, as assigned by UMAC */
1409 /* STA entry Type: 0 - Self, 1 - Other/Peer, 2 - BSSID, 3 - BCAST */
1412 /* Short Preamble Supported. */
1413 u8 short_preamble_supported
;
1415 /* MAC Address of STA */
1418 /* Listen interval of the STA */
1419 u16 listen_interval
;
1421 /* Support for 11e/WMM */
1424 /* 11n HT capable STA */
1427 /* TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz */
1428 u8 tx_channel_width_set
;
1430 /* RIFS mode 0 - NA, 1 - Allowed */
1433 /* L-SIG TXOP Protection mechanism
1434 0 - No Support, 1 - Supported
1435 SG - there is global field */
1436 u8 lsig_txop_protection
;
1438 /* Max Ampdu Size supported by STA. TPE programming.
1439 0 : 8k , 1 : 16k, 2 : 32k, 3 : 64k */
1442 /* Max Ampdu density. Used by RA. 3 : 0~7 : 2^(11nAMPDUdensity -4) */
1443 u8 max_ampdu_density
;
1445 /* Max AMSDU size 1 : 3839 bytes, 0 : 7935 bytes */
1448 /* Short GI support for 40Mhz packets */
1451 /* Short GI support for 20Mhz packets */
1454 /* Robust Management Frame (RMF) enabled/disabled */
1457 /* The unicast encryption type in the association */
1460 /* HAL should update the existing STA entry, if this flag is set. UMAC
1461 will set this flag in case of RE-ASSOC, where we want to reuse the
1462 old STA ID. 0 = Add, 1 = Update */
1465 /* U-APSD Flags: 1b per AC. Encoded as follows:
1466 b7 b6 b5 b4 b3 b2 b1 b0 =
1467 X X X X BE BK VI VO */
1473 /* 11n Green Field preamble support
1474 0 - Not supported, 1 - Supported */
1475 u8 green_field_capable
;
1477 /* MIMO Power Save mode */
1478 enum wcn36xx_hal_ht_mimo_state mimo_ps
;
1480 /* Delayed BA Support */
1481 u8 delayed_ba_support
;
1483 /* Max AMPDU duration in 32us */
1484 u8 max_ampdu_duration
;
1486 /* HT STA should set it to 1 if it is enabled in BSS. HT STA should
1487 * set it to 0 if AP does not support it. This indication is sent
1488 * to HAL and HAL uses this flag to pickup up appropriate 40Mhz
1490 u8 dsss_cck_mode_40mhz
;
1492 /* Valid STA Idx when action=Update. Set to 0xFF when invalid!
1493 * Retained for backward compalibity with existing HAL code */
1496 /* BSSID of BSS to which station is associated. Set to 0xFF when
1497 * invalid. Retained for backward compalibity with existing HAL
1503 /* Reserved to align next field on a dword boundary */
1506 /* These rates are the intersection of peer and self capabilities. */
1507 struct wcn36xx_hal_supported_rates supported_rates
;
1510 struct wcn36xx_hal_config_sta_req_msg_v1
{
1511 struct wcn36xx_hal_msg_header header
;
1512 struct wcn36xx_hal_config_sta_params_v1 sta_params
;
1515 struct config_sta_rsp_params
{
1516 /* success or failure */
1519 /* Station index; valid only when 'status' field value SUCCESS */
1522 /* BSSID Index of BSS to which the station is associated */
1525 /* DPU Index for PTK */
1528 /* DPU Index for GTK */
1531 /* DPU Index for IGTK */
1532 u8 bcast_mgmt_dpu_idx
;
1534 /* PTK DPU signature */
1537 /* GTK DPU isignature */
1540 /* IGTK DPU signature */
1547 struct wcn36xx_hal_config_sta_rsp_msg
{
1548 struct wcn36xx_hal_msg_header header
;
1550 struct config_sta_rsp_params params
;
1553 /* Delete STA Request message */
1554 struct wcn36xx_hal_delete_sta_req_msg
{
1555 struct wcn36xx_hal_msg_header header
;
1557 /* Index of STA to delete */
1562 /* Delete STA Response message */
1563 struct wcn36xx_hal_delete_sta_rsp_msg
{
1564 struct wcn36xx_hal_msg_header header
;
1566 /* success or failure */
1569 /* Index of STA deleted */
1573 /* 12 Bytes long because this structure can be used to represent rate and
1574 * extended rate set IEs. The parser assume this to be at least 12 */
1575 struct wcn36xx_hal_rate_set
{
1577 u8 rate
[WCN36XX_HAL_MAC_RATESET_EID_MAX
];
1580 /* access category record */
1581 struct wcn36xx_hal_aci_aifsn
{
1582 #ifndef ANI_LITTLE_BIT_ENDIAN
1595 /* contention window size */
1596 struct wcn36xx_hal_mac_cw
{
1597 #ifndef ANI_LITTLE_BIT_ENDIAN
1606 struct wcn36xx_hal_edca_param_record
{
1607 struct wcn36xx_hal_aci_aifsn aci
;
1608 struct wcn36xx_hal_mac_cw cw
;
1612 /* Concurrency role. These are generic IDs that identify the various roles
1613 * in the software system. */
1614 enum wcn36xx_hal_con_mode
{
1615 WCN36XX_HAL_STA_MODE
= 0,
1617 /* to support softAp mode . This is misleading.
1618 It means AP MODE only. */
1619 WCN36XX_HAL_STA_SAP_MODE
= 1,
1621 WCN36XX_HAL_P2P_CLIENT_MODE
,
1622 WCN36XX_HAL_P2P_GO_MODE
,
1623 WCN36XX_HAL_MONITOR_MODE
,
1626 /* This is a bit pattern to be set for each mode
1629 * bit 2 - p2p client mode
1630 * bit 3 - p2p go mode */
1631 enum wcn36xx_hal_concurrency_mode
{
1635 /* to support sta, softAp mode . This means STA+AP mode */
1640 HAL_MAX_CONCURRENCY_PERSONA
= 4
1643 struct wcn36xx_hal_config_bss_params
{
1647 /* Self Mac Address */
1648 u8 self_mac_addr
[ETH_ALEN
];
1651 enum wcn36xx_hal_bss_type bss_type
;
1653 /* Operational Mode: AP =0, STA = 1 */
1657 enum wcn36xx_hal_nw_type nw_type
;
1659 /* Used to classify PURE_11G/11G_MIXED to program MTU */
1660 u8 short_slot_time_supported
;
1662 /* Co-exist with 11a STA */
1665 /* Co-exist with 11b STA */
1668 /* Co-exist with 11g STA */
1671 /* Coexistence with 11n STA */
1674 /* Non GF coexist flag */
1675 u8 lln_non_gf_coexist
;
1677 /* TXOP protection support */
1678 u8 lsig_tx_op_protection_full_support
;
1683 /* Beacon Interval in TU */
1684 u16 beacon_interval
;
1689 /* TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz */
1690 u8 tx_channel_width_set
;
1692 /* Operating channel */
1695 /* Extension channel for channel bonding */
1698 /* Reserved to align next field on a dword boundary */
1701 /* TODO move sta to the end for 3680 */
1702 /* Context of the station being added in HW
1703 * Add a STA entry for "itself" -
1705 * On AP - Add the AP itself in an "STA context"
1707 * On STA - Add the AP to which this STA is joining in an
1710 struct wcn36xx_hal_config_sta_params sta
;
1711 /* SSID of the BSS */
1712 struct wcn36xx_hal_mac_ssid ssid
;
1714 /* HAL should update the existing BSS entry, if this flag is set.
1715 * UMAC will set this flag in case of reassoc, where we want to
1716 * resue the the old BSSID and still return success 0 = Add, 1 =
1721 struct wcn36xx_hal_rate_set rateset
;
1723 /* Enable/Disable HT capabilities of the BSS */
1726 /* Enable/Disable OBSS protection */
1727 u8 obss_prot_enabled
;
1729 /* RMF enabled/disabled */
1732 /* HT Operating Mode operating mode of the 802.11n STA */
1733 enum wcn36xx_hal_ht_operating_mode ht_oper_mode
;
1735 /* Dual CTS Protection: 0 - Unused, 1 - Used */
1736 u8 dual_cts_protection
;
1738 /* Probe Response Max retries */
1739 u8 max_probe_resp_retry_limit
;
1741 /* To Enable Hidden ssid */
1744 /* To Enable Disable FW Proxy Probe Resp */
1745 u8 proxy_probe_resp
;
1747 /* Boolean to indicate if EDCA params are valid. UMAC might not
1748 * have valid EDCA params or might not desire to apply EDCA params
1749 * during config BSS. 0 implies Not Valid ; Non-Zero implies
1751 u8 edca_params_valid
;
1753 /* EDCA Parameters for Best Effort Access Category */
1754 struct wcn36xx_hal_edca_param_record acbe
;
1756 /* EDCA Parameters forBackground Access Category */
1757 struct wcn36xx_hal_edca_param_record acbk
;
1759 /* EDCA Parameters for Video Access Category */
1760 struct wcn36xx_hal_edca_param_record acvi
;
1762 /* EDCA Parameters for Voice Access Category */
1763 struct wcn36xx_hal_edca_param_record acvo
;
1765 /* Ext Bss Config Msg if set */
1766 u8 ext_set_sta_key_param_valid
;
1768 /* SetStaKeyParams for ext bss msg */
1769 struct wcn36xx_hal_set_sta_key_params ext_set_sta_key_param
;
1771 /* Persona for the BSS can be STA,AP,GO,CLIENT value same as enum
1772 * wcn36xx_hal_con_mode */
1773 u8 wcn36xx_hal_persona
;
1775 u8 spectrum_mgt_enable
;
1777 /* HAL fills in the tx power used for mgmt frames in txMgmtPower */
1780 /* maxTxPower has max power to be used after applying the power
1781 * constraint if any */
1785 struct wcn36xx_hal_config_bss_req_msg
{
1786 struct wcn36xx_hal_msg_header header
;
1787 struct wcn36xx_hal_config_bss_params bss_params
;
1790 struct wcn36xx_hal_config_bss_params_v1
{
1794 /* Self Mac Address */
1795 u8 self_mac_addr
[ETH_ALEN
];
1798 enum wcn36xx_hal_bss_type bss_type
;
1800 /* Operational Mode: AP =0, STA = 1 */
1804 enum wcn36xx_hal_nw_type nw_type
;
1806 /* Used to classify PURE_11G/11G_MIXED to program MTU */
1807 u8 short_slot_time_supported
;
1809 /* Co-exist with 11a STA */
1812 /* Co-exist with 11b STA */
1815 /* Co-exist with 11g STA */
1818 /* Coexistence with 11n STA */
1821 /* Non GF coexist flag */
1822 u8 lln_non_gf_coexist
;
1824 /* TXOP protection support */
1825 u8 lsig_tx_op_protection_full_support
;
1830 /* Beacon Interval in TU */
1831 u16 beacon_interval
;
1836 /* TX Width Set: 0 - 20 MHz only, 1 - 20/40 MHz */
1837 u8 tx_channel_width_set
;
1839 /* Operating channel */
1842 /* Extension channel for channel bonding */
1845 /* Reserved to align next field on a dword boundary */
1848 /* SSID of the BSS */
1849 struct wcn36xx_hal_mac_ssid ssid
;
1851 /* HAL should update the existing BSS entry, if this flag is set.
1852 * UMAC will set this flag in case of reassoc, where we want to
1853 * resue the the old BSSID and still return success 0 = Add, 1 =
1858 struct wcn36xx_hal_rate_set rateset
;
1860 /* Enable/Disable HT capabilities of the BSS */
1863 /* Enable/Disable OBSS protection */
1864 u8 obss_prot_enabled
;
1866 /* RMF enabled/disabled */
1869 /* HT Operating Mode operating mode of the 802.11n STA */
1870 enum wcn36xx_hal_ht_operating_mode ht_oper_mode
;
1872 /* Dual CTS Protection: 0 - Unused, 1 - Used */
1873 u8 dual_cts_protection
;
1875 /* Probe Response Max retries */
1876 u8 max_probe_resp_retry_limit
;
1878 /* To Enable Hidden ssid */
1881 /* To Enable Disable FW Proxy Probe Resp */
1882 u8 proxy_probe_resp
;
1884 /* Boolean to indicate if EDCA params are valid. UMAC might not
1885 * have valid EDCA params or might not desire to apply EDCA params
1886 * during config BSS. 0 implies Not Valid ; Non-Zero implies
1888 u8 edca_params_valid
;
1890 /* EDCA Parameters for Best Effort Access Category */
1891 struct wcn36xx_hal_edca_param_record acbe
;
1893 /* EDCA Parameters forBackground Access Category */
1894 struct wcn36xx_hal_edca_param_record acbk
;
1896 /* EDCA Parameters for Video Access Category */
1897 struct wcn36xx_hal_edca_param_record acvi
;
1899 /* EDCA Parameters for Voice Access Category */
1900 struct wcn36xx_hal_edca_param_record acvo
;
1902 /* Ext Bss Config Msg if set */
1903 u8 ext_set_sta_key_param_valid
;
1905 /* SetStaKeyParams for ext bss msg */
1906 struct wcn36xx_hal_set_sta_key_params ext_set_sta_key_param
;
1908 /* Persona for the BSS can be STA,AP,GO,CLIENT value same as enum
1909 * wcn36xx_hal_con_mode */
1910 u8 wcn36xx_hal_persona
;
1912 u8 spectrum_mgt_enable
;
1914 /* HAL fills in the tx power used for mgmt frames in txMgmtPower */
1917 /* maxTxPower has max power to be used after applying the power
1918 * constraint if any */
1921 /* Context of the station being added in HW
1922 * Add a STA entry for "itself" -
1924 * On AP - Add the AP itself in an "STA context"
1926 * On STA - Add the AP to which this STA is joining in an
1929 struct wcn36xx_hal_config_sta_params_v1 sta
;
1932 struct wcn36xx_hal_config_bss_req_msg_v1
{
1933 struct wcn36xx_hal_msg_header header
;
1934 struct wcn36xx_hal_config_bss_params_v1 bss_params
;
1937 struct wcn36xx_hal_config_bss_rsp_params
{
1938 /* Success or Failure */
1941 /* BSS index allocated by HAL */
1944 /* DPU descriptor index for PTK */
1947 /* PTK DPU signature */
1948 u8 ucast_dpu_signature
;
1950 /* DPU descriptor index for GTK */
1951 u8 bcast_dpu_desc_indx
;
1953 /* GTK DPU signature */
1954 u8 bcast_dpu_signature
;
1956 /* DPU descriptor for IGTK */
1957 u8 mgmt_dpu_desc_index
;
1959 /* IGTK DPU signature */
1960 u8 mgmt_dpu_signature
;
1962 /* Station Index for BSS entry */
1965 /* Self station index for this BSS */
1966 u8 bss_self_sta_index
;
1968 /* Bcast station for buffering bcast frames in AP role */
1969 u8 bss_bcast_sta_idx
;
1971 /* MAC Address of STA(PEER/SELF) in staContext of configBSSReq */
1974 /* HAL fills in the tx power used for mgmt frames in this field. */
1979 struct wcn36xx_hal_config_bss_rsp_msg
{
1980 struct wcn36xx_hal_msg_header header
;
1981 struct wcn36xx_hal_config_bss_rsp_params bss_rsp_params
;
1984 struct wcn36xx_hal_delete_bss_req_msg
{
1985 struct wcn36xx_hal_msg_header header
;
1987 /* BSS index to be deleted */
1992 struct wcn36xx_hal_delete_bss_rsp_msg
{
1993 struct wcn36xx_hal_msg_header header
;
1995 /* Success or Failure */
1998 /* BSS index that has been deleted */
2003 struct wcn36xx_hal_join_req_msg
{
2004 struct wcn36xx_hal_msg_header header
;
2006 /* Indicates the BSSID to which STA is going to associate */
2009 /* Indicates the channel to switch to. */
2013 u8 self_sta_mac_addr
[ETH_ALEN
];
2015 /* Local power constraint */
2016 u8 local_power_constraint
;
2018 /* Secondary channel offset */
2019 enum phy_chan_bond_state secondary_channel_offset
;
2022 enum wcn36xx_hal_link_state link_state
;
2028 struct wcn36xx_hal_join_rsp_msg
{
2029 struct wcn36xx_hal_msg_header header
;
2031 /* success or failure */
2034 /* HAL fills in the tx power used for mgmt frames in this field */
2038 struct post_assoc_req_msg
{
2039 struct wcn36xx_hal_msg_header header
;
2041 struct wcn36xx_hal_config_sta_params sta_params
;
2042 struct wcn36xx_hal_config_bss_params bss_params
;
2045 struct post_assoc_rsp_msg
{
2046 struct wcn36xx_hal_msg_header header
;
2047 struct config_sta_rsp_params sta_rsp_params
;
2048 struct wcn36xx_hal_config_bss_rsp_params bss_rsp_params
;
2051 /* This is used to create a set of WEP keys for a given BSS. */
2052 struct wcn36xx_hal_set_bss_key_req_msg
{
2053 struct wcn36xx_hal_msg_header header
;
2055 /* BSS Index of the BSS */
2058 /* Encryption Type used with peer */
2059 enum ani_ed_type enc_type
;
2061 /* Number of keys */
2064 /* Array of keys. */
2065 struct wcn36xx_hal_keys keys
[WCN36XX_HAL_MAC_MAX_NUM_OF_DEFAULT_KEYS
];
2067 /* Control for Replay Count, 1= Single TID based replay count on Tx
2068 * 0 = Per TID based replay count on TX */
2072 /* tagged version of set bss key */
2073 struct wcn36xx_hal_set_bss_key_req_msg_tagged
{
2074 struct wcn36xx_hal_set_bss_key_req_msg Msg
;
2078 struct wcn36xx_hal_set_bss_key_rsp_msg
{
2079 struct wcn36xx_hal_msg_header header
;
2081 /* success or failure */
2086 * This is used configure the key information on a given station.
2087 * When the sec_type is WEP40 or WEP104, the def_wep_idx is used to locate
2088 * a preconfigured key from a BSS the station assoicated with; otherwise
2089 * a new key descriptor is created based on the key field.
2091 struct wcn36xx_hal_set_sta_key_req_msg
{
2092 struct wcn36xx_hal_msg_header header
;
2093 struct wcn36xx_hal_set_sta_key_params set_sta_key_params
;
2096 struct wcn36xx_hal_set_sta_key_rsp_msg
{
2097 struct wcn36xx_hal_msg_header header
;
2099 /* success or failure */
2103 struct wcn36xx_hal_remove_bss_key_req_msg
{
2104 struct wcn36xx_hal_msg_header header
;
2106 /* BSS Index of the BSS */
2109 /* Encryption Type used with peer */
2110 enum ani_ed_type enc_type
;
2115 /* STATIC/DYNAMIC. Used in Nullifying in Key Descriptors for
2116 * Static/Dynamic keys */
2117 enum ani_wep_type wep_type
;
2120 struct wcn36xx_hal_remove_bss_key_rsp_msg
{
2121 struct wcn36xx_hal_msg_header header
;
2123 /* success or failure */
2128 * This is used by PE to Remove the key information on a given station.
2130 struct wcn36xx_hal_remove_sta_key_req_msg
{
2131 struct wcn36xx_hal_msg_header header
;
2136 /* Encryption Type used with peer */
2137 enum ani_ed_type enc_type
;
2142 /* Whether to invalidate the Broadcast key or Unicast key. In case
2143 * of WEP, the same key is used for both broadcast and unicast. */
2148 struct wcn36xx_hal_remove_sta_key_rsp_msg
{
2149 struct wcn36xx_hal_msg_header header
;
2151 /*success or failure */
2156 #ifdef FEATURE_OEM_DATA_SUPPORT
2158 #ifndef OEM_DATA_REQ_SIZE
2159 #define OEM_DATA_REQ_SIZE 134
2162 #ifndef OEM_DATA_RSP_SIZE
2163 #define OEM_DATA_RSP_SIZE 1968
2166 struct start_oem_data_req_msg
{
2167 struct wcn36xx_hal_msg_header header
;
2170 tSirMacAddr self_mac_addr
;
2171 u8 oem_data_req
[OEM_DATA_REQ_SIZE
];
2175 struct start_oem_data_rsp_msg
{
2176 struct wcn36xx_hal_msg_header header
;
2178 u8 oem_data_rsp
[OEM_DATA_RSP_SIZE
];
2183 struct wcn36xx_hal_switch_channel_req_msg
{
2184 struct wcn36xx_hal_msg_header header
;
2186 /* Channel number */
2189 /* Local power constraint */
2190 u8 local_power_constraint
;
2192 /* Secondary channel offset */
2193 enum phy_chan_bond_state secondary_channel_offset
;
2195 /* HAL fills in the tx power used for mgmt frames in this field. */
2202 u8 self_sta_mac_addr
[ETH_ALEN
];
2204 /* VO WIFI comment: BSSID needed to identify session. As the
2205 * request has power constraints, this should be applied only to
2206 * that session Since MTU timing and EDCA are sessionized, this
2207 * struct needs to be sessionized and bssid needs to be out of the
2208 * VOWifi feature flag V IMP: Keep bssId field at the end of this
2209 * msg. It is used to mantain backward compatbility by way of
2210 * ignoring if using new host/old FW or old host/new FW since it is
2211 * at the end of this struct
2216 struct wcn36xx_hal_switch_channel_rsp_msg
{
2217 struct wcn36xx_hal_msg_header header
;
2222 /* Channel number - same as in request */
2225 /* HAL fills in the tx power used for mgmt frames in this field */
2228 /* BSSID needed to identify session - same as in request */
2233 struct update_edca_params_req_msg
{
2234 struct wcn36xx_hal_msg_header header
;
2240 struct wcn36xx_hal_edca_param_record acbe
;
2243 struct wcn36xx_hal_edca_param_record acbk
;
2246 struct wcn36xx_hal_edca_param_record acvi
;
2249 struct wcn36xx_hal_edca_param_record acvo
;
2252 struct update_edca_params_rsp_msg
{
2253 struct wcn36xx_hal_msg_header header
;
2255 /* success or failure */
2259 struct dpu_stats_params
{
2260 /* Index of STA to which the statistics */
2263 /* Encryption mode */
2276 u16 un_decryptable_cnt
;
2277 u32 decrypt_err_cnt
;
2281 struct wcn36xx_hal_stats_req_msg
{
2282 struct wcn36xx_hal_msg_header header
;
2284 /* Valid STA Idx for per STA stats request */
2287 /* Categories of stats requested as specified in eHalStatsMask */
2291 struct ani_summary_stats_info
{
2292 /* Total number of packets(per AC) that were successfully
2293 * transmitted with retries */
2296 /* The number of MSDU packets and MMPDU frames per AC that the
2297 * 802.11 station successfully transmitted after more than one
2298 * retransmission attempt */
2299 u32 multiple_retry_cnt
[4];
2301 /* Total number of packets(per AC) that were successfully
2302 * transmitted (with and without retries, including multi-cast,
2306 /* Total number of packets that were successfully received (after
2307 * appropriate filter rules including multi-cast, broadcast) */
2310 /* Total number of duplicate frames received successfully */
2313 /* Total number packets(per AC) failed to transmit */
2316 /* Total number of RTS/CTS sequence failures for transmission of a
2320 /* Total number packets failed transmit because of no ACK from the
2324 /* Total number of RTS/CTS sequence success for transmission of a
2328 /* The sum of the receive error count and dropped-receive-buffer
2329 * error count. HAL will provide this as a sum of (FCS error) +
2330 * (Fail get BD/PDU in HW) */
2334 * The receive error count. HAL will provide the RxP FCS error
2335 * global counter. */
2338 /* The sum of the transmit-directed byte count, transmit-multicast
2339 * byte count and transmit-broadcast byte count. HAL will sum TPE
2340 * UC/MC/BCAST global counters to provide this. */
2344 /* defines tx_rate_flags */
2347 HAL_TX_RATE_LEGACY
= 0x1,
2350 HAL_TX_RATE_HT20
= 0x2,
2353 HAL_TX_RATE_HT40
= 0x4,
2355 /* Rate with Short guard interval */
2356 HAL_TX_RATE_SGI
= 0x8,
2358 /* Rate with Long guard interval */
2359 HAL_TX_RATE_LGI
= 0x10
2362 struct ani_global_class_a_stats_info
{
2363 /* The number of MPDU frames received by the 802.11 station for
2364 * MSDU packets or MMPDU frames */
2367 /* The number of MPDU frames received by the 802.11 station for
2368 * MSDU packets or MMPDU frames when a promiscuous packet filter
2370 u32 promiscuous_rx_frag_cnt
;
2372 /* The receiver input sensitivity referenced to a FER of 8% at an
2373 * MPDU length of 1024 bytes at the antenna connector. Each element
2374 * of the array shall correspond to a supported rate and the order
2375 * shall be the same as the supporteRates parameter. */
2376 u32 rx_input_sensitivity
;
2378 /* The maximum transmit power in dBm upto one decimal. for eg: if
2379 * it is 10.5dBm, the value would be 105 */
2382 /* Number of times the receiver failed to synchronize with the
2383 * incoming signal after detecting the sync in the preamble of the
2384 * transmitted PLCP protocol data unit. */
2387 /* Legacy transmit rate, in units of 500 kbit/sec, for the most
2388 * recently transmitted frame */
2391 /* mcs index for HT20 and HT40 rates */
2394 /* to differentiate between HT20 and HT40 rates; short and long
2399 struct ani_global_security_stats
{
2400 /* The number of unencrypted received MPDU frames that the MAC
2401 * layer discarded when the IEEE 802.11 dot11ExcludeUnencrypted
2402 * management information base (MIB) object is enabled */
2403 u32 rx_wep_unencrypted_frm_cnt
;
2405 /* The number of received MSDU packets that that the 802.11 station
2406 * discarded because of MIC failures */
2407 u32 rx_mic_fail_cnt
;
2409 /* The number of encrypted MPDU frames that the 802.11 station
2410 * failed to decrypt because of a TKIP ICV error */
2413 /* The number of received MPDU frames that the 802.11 discarded
2414 * because of an invalid AES-CCMP format */
2415 u32 aes_ccmp_format_err
;
2417 /* The number of received MPDU frames that the 802.11 station
2418 * discarded because of the AES-CCMP replay protection procedure */
2419 u32 aes_ccmp_replay_cnt
;
2421 /* The number of received MPDU frames that the 802.11 station
2422 * discarded because of errors detected by the AES-CCMP decryption
2424 u32 aes_ccmp_decrpt_err
;
2426 /* The number of encrypted MPDU frames received for which a WEP
2427 * decryption key was not available on the 802.11 station */
2428 u32 wep_undecryptable_cnt
;
2430 /* The number of encrypted MPDU frames that the 802.11 station
2431 * failed to decrypt because of a WEP ICV error */
2434 /* The number of received encrypted packets that the 802.11 station
2435 * successfully decrypted */
2436 u32 rx_decrypt_succ_cnt
;
2438 /* The number of encrypted packets that the 802.11 station failed
2440 u32 rx_decrypt_fail_cnt
;
2443 struct ani_global_class_b_stats_info
{
2444 struct ani_global_security_stats uc_stats
;
2445 struct ani_global_security_stats mc_bc_stats
;
2448 struct ani_global_class_c_stats_info
{
2449 /* This counter shall be incremented for a received A-MSDU frame
2450 * with the stations MAC address in the address 1 field or an
2451 * A-MSDU frame with a group address in the address 1 field */
2454 /* This counter shall be incremented when the MAC receives an AMPDU
2458 /* This counter shall be incremented when a Frame is transmitted
2459 * only on the primary channel */
2462 /* This counter shall be incremented when a Frame is received only
2463 * on the primary channel */
2466 /* This counter shall be incremented by the number of MPDUs
2467 * received in the A-MPDU when an A-MPDU is received */
2468 u32 rx_mpdu_in_ampdu_cnt
;
2470 /* This counter shall be incremented when an MPDU delimiter has a
2471 * CRC error when this is the first CRC error in the received AMPDU
2472 * or when the previous delimiter has been decoded correctly */
2473 u32 ampdu_delimiter_crc_err
;
2476 struct ani_per_sta_stats_info
{
2477 /* The number of MPDU frames that the 802.11 station transmitted
2478 * and acknowledged through a received 802.11 ACK frame */
2481 /* This counter shall be incremented when an A-MPDU is transmitted */
2484 /* This counter shall increment by the number of MPDUs in the AMPDU
2485 * when an A-MPDU is transmitted */
2486 u32 tx_mpdu_in_ampdu_cnt
;
2489 struct wcn36xx_hal_stats_rsp_msg
{
2490 struct wcn36xx_hal_msg_header header
;
2492 /* Success or Failure */
2498 /* Categories of STATS being returned as per eHalStatsMask */
2501 /* message type is same as the request type */
2504 /* length of the entire request, includes the pStatsBuf length too */
2508 struct wcn36xx_hal_set_link_state_req_msg
{
2509 struct wcn36xx_hal_msg_header header
;
2512 enum wcn36xx_hal_link_state state
;
2513 u8 self_mac_addr
[ETH_ALEN
];
2517 struct set_link_state_rsp_msg
{
2518 struct wcn36xx_hal_msg_header header
;
2520 /* success or failure */
2525 struct wcn36xx_hal_ts_info_tfc
{
2526 #ifndef ANI_LITTLE_BIT_ENDIAN
2547 /* Flag to schedule the traffic type */
2548 struct wcn36xx_hal_ts_info_sch
{
2549 #ifndef ANI_LITTLE_BIT_ENDIAN
2558 /* Traffic and scheduling info */
2559 struct wcn36xx_hal_ts_info
{
2560 struct wcn36xx_hal_ts_info_tfc traffic
;
2561 struct wcn36xx_hal_ts_info_sch schedule
;
2564 /* Information elements */
2565 struct wcn36xx_hal_tspec_ie
{
2568 struct wcn36xx_hal_ts_info ts_info
;
2571 u32 min_svc_interval
;
2572 u32 max_svc_interval
;
2574 u32 suspend_interval
;
2586 struct add_ts_req_msg
{
2587 struct wcn36xx_hal_msg_header header
;
2592 /* TSPEC handler uniquely identifying a TSPEC for a STA in a BSS */
2595 /* To program TPE with required parameters */
2596 struct wcn36xx_hal_tspec_ie tspec
;
2598 /* U-APSD Flags: 1b per AC. Encoded as follows:
2599 b7 b6 b5 b4 b3 b2 b1 b0 =
2600 X X X X BE BK VI VO */
2603 /* These parameters are for all the access categories */
2605 /* Service Interval */
2606 u32 service_interval
[WCN36XX_HAL_MAX_AC
];
2608 /* Suspend Interval */
2609 u32 suspend_interval
[WCN36XX_HAL_MAX_AC
];
2611 /* Delay Interval */
2612 u32 delay_interval
[WCN36XX_HAL_MAX_AC
];
2615 struct add_rs_rsp_msg
{
2616 struct wcn36xx_hal_msg_header header
;
2618 /* success or failure */
2622 struct del_ts_req_msg
{
2623 struct wcn36xx_hal_msg_header header
;
2628 /* TSPEC identifier uniquely identifying a TSPEC for a STA in a BSS */
2631 /* To lookup station id using the mac address */
2635 struct del_ts_rsp_msg
{
2636 struct wcn36xx_hal_msg_header header
;
2638 /* success or failure */
2642 /* End of TSpec Parameters */
2644 /* Start of BLOCK ACK related Parameters */
2646 struct wcn36xx_hal_add_ba_session_req_msg
{
2647 struct wcn36xx_hal_msg_header header
;
2652 /* Peer MAC Address */
2653 u8 mac_addr
[ETH_ALEN
];
2655 /* ADDBA Action Frame dialog token
2656 HAL will not interpret this object */
2659 /* TID for which the BA is being setup
2660 This identifies the TC or TS of interest */
2663 /* 0 - Delayed BA (Not supported)
2667 /* Indicates the number of buffers for this TID (baTID)
2668 NOTE - This is the requested buffer size. When this
2669 is processed by HAL and subsequently by HDD, it is
2670 possible that HDD may change this buffer size. Any
2671 change in the buffer size should be noted by PE and
2672 advertized appropriately in the ADDBA response */
2675 /* BA timeout in TU's 0 means no timeout will occur */
2678 /* b0..b3 - Fragment Number - Always set to 0
2679 b4..b15 - Starting Sequence Number of first MSDU
2680 for which this BA is setup */
2689 struct wcn36xx_hal_add_ba_session_rsp_msg
{
2690 struct wcn36xx_hal_msg_header header
;
2692 /* success or failure */
2698 /* TID for which the BA session has been setup */
2701 /* BA Buffer Size allocated for the current BA session */
2706 /* Reordering Window buffer */
2709 /* Station Index to id the sta */
2712 /* Starting Sequence Number */
2716 struct wcn36xx_hal_add_ba_req_msg
{
2717 struct wcn36xx_hal_msg_header header
;
2722 /* Reorder Window Size */
2724 /* Old FW 1.2.2.4 does not support this*/
2725 #ifdef FEATURE_ON_CHIP_REORDERING
2726 u8 reordering_done_on_chip
;
2730 struct wcn36xx_hal_add_ba_rsp_msg
{
2731 struct wcn36xx_hal_msg_header header
;
2733 /* success or failure */
2740 struct add_ba_info
{
2742 u16 starting_seq_num
:12;
2746 struct wcn36xx_hal_trigger_ba_rsp_candidate
{
2747 u8 sta_addr
[ETH_ALEN
];
2748 struct add_ba_info ba_info
[STACFG_MAX_TC
];
2751 struct wcn36xx_hal_trigger_ba_req_candidate
{
2756 struct wcn36xx_hal_trigger_ba_req_msg
{
2757 struct wcn36xx_hal_msg_header header
;
2762 /* baCandidateCnt is followed by trigger BA
2763 * Candidate List(tTriggerBaCandidate)
2769 struct wcn36xx_hal_trigger_ba_rsp_msg
{
2770 struct wcn36xx_hal_msg_header header
;
2772 /* TO SUPPORT BT-AMP */
2775 /* success or failure */
2778 /* baCandidateCnt is followed by trigger BA
2779 * Rsp Candidate List(tTriggerRspBaCandidate)
2784 struct wcn36xx_hal_del_ba_req_msg
{
2785 struct wcn36xx_hal_msg_header header
;
2790 /* TID for which the BA session is being deleted */
2799 struct wcn36xx_hal_del_ba_rsp_msg
{
2800 struct wcn36xx_hal_msg_header header
;
2802 /* success or failure */
2806 struct tsm_stats_req_msg
{
2807 struct wcn36xx_hal_msg_header header
;
2815 struct tsm_stats_rsp_msg
{
2816 struct wcn36xx_hal_msg_header header
;
2818 /*success or failure */
2821 /* Uplink Packet Queue delay */
2822 u16 uplink_pkt_queue_delay
;
2824 /* Uplink Packet Queue delay histogram */
2825 u16 uplink_pkt_queue_delay_hist
[4];
2827 /* Uplink Packet Transmit delay */
2828 u32 uplink_pkt_tx_delay
;
2830 /* Uplink Packet loss */
2831 u16 uplink_pkt_loss
;
2833 /* Uplink Packet count */
2834 u16 uplink_pkt_count
;
2843 struct set_key_done_msg
{
2844 struct wcn36xx_hal_msg_header header
;
2846 /*bssid of the keys */
2851 struct wcn36xx_hal_nv_img_download_req_msg
{
2852 /* Note: The length specified in wcn36xx_hal_nv_img_download_req_msg
2853 * messages should be
2854 * header.len = sizeof(wcn36xx_hal_nv_img_download_req_msg) +
2855 * nv_img_buffer_size */
2856 struct wcn36xx_hal_msg_header header
;
2858 /* Fragment sequence number of the NV Image. Note that NV Image
2859 * might not fit into one message due to size limitation of the SMD
2860 * channel FIFO. UMAC can hence choose to chop the NV blob into
2861 * multiple fragments starting with seqeunce number 0, 1, 2 etc.
2862 * The last fragment MUST be indicated by marking the
2863 * isLastFragment field to 1. Note that all the NV blobs would be
2864 * concatenated together by HAL without any padding bytes in
2868 /* Is this the last fragment? When set to 1 it indicates that no
2869 * more fragments will be sent by UMAC and HAL can concatenate all
2870 * the NV blobs rcvd & proceed with the parsing. HAL would generate
2871 * a WCN36XX_HAL_DOWNLOAD_NV_RSP to the WCN36XX_HAL_DOWNLOAD_NV_REQ
2872 * after it receives each fragment */
2875 /* NV Image size (number of bytes) */
2876 u32 nv_img_buffer_size
;
2878 /* Following the 'nv_img_buffer_size', there should be
2879 * nv_img_buffer_size bytes of NV Image i.e.
2880 * u8[nv_img_buffer_size] */
2883 struct wcn36xx_hal_nv_img_download_rsp_msg
{
2884 struct wcn36xx_hal_msg_header header
;
2886 /* Success or Failure. HAL would generate a
2887 * WCN36XX_HAL_DOWNLOAD_NV_RSP after each fragment */
2891 struct wcn36xx_hal_nv_store_ind
{
2892 /* Note: The length specified in tHalNvStoreInd messages should be
2893 * header.msgLen = sizeof(tHalNvStoreInd) + nvBlobSize */
2894 struct wcn36xx_hal_msg_header header
;
2899 /* Size of NV Blob */
2902 /* Following the 'nvBlobSize', there should be nvBlobSize bytes of
2903 * NV blob i.e. u8[nvBlobSize] */
2906 /* End of Block Ack Related Parameters */
2908 #define WCN36XX_HAL_CIPHER_SEQ_CTR_SIZE 6
2910 /* Definition for MIC failure indication MAC reports this each time a MIC
2911 * failure occures on Rx TKIP packet
2913 struct mic_failure_ind_msg
{
2914 struct wcn36xx_hal_msg_header header
;
2918 /* address used to compute MIC */
2919 u8 src_addr
[ETH_ALEN
];
2921 /* transmitter address */
2922 u8 ta_addr
[ETH_ALEN
];
2924 u8 dst_addr
[ETH_ALEN
];
2928 /* first byte of IV */
2931 /* second byte of IV */
2934 /* sequence number */
2935 u8 tsc
[WCN36XX_HAL_CIPHER_SEQ_CTR_SIZE
];
2937 /* receive address */
2938 u8 rx_addr
[ETH_ALEN
];
2941 struct update_vht_op_mode_req_msg
{
2942 struct wcn36xx_hal_msg_header header
;
2948 struct update_vht_op_mode_params_rsp_msg
{
2949 struct wcn36xx_hal_msg_header header
;
2954 struct update_beacon_req_msg
{
2955 struct wcn36xx_hal_msg_header header
;
2959 /* shortPreamble mode. HAL should update all the STA rates when it
2960 * receives this message */
2963 /* short Slot time. */
2966 /* Beacon Interval */
2967 u16 beacon_interval
;
2969 /* Protection related */
2974 u8 lln_non_gf_coexist
;
2975 u8 lsig_tx_op_protection_full_support
;
2978 u16 param_change_bitmap
;
2981 struct update_beacon_rsp_msg
{
2982 struct wcn36xx_hal_msg_header header
;
2986 struct wcn36xx_hal_send_beacon_req_msg
{
2987 struct wcn36xx_hal_msg_header header
;
2989 /* length of the template + 6. Only qcom knows why */
2992 /* length of the template. */
2996 u8 beacon
[BEACON_TEMPLATE_SIZE
- sizeof(u32
)];
3000 /* TIM IE offset from the beginning of the template. */
3003 /* P2P IE offset from the begining of the template */
3007 struct send_beacon_rsp_msg
{
3008 struct wcn36xx_hal_msg_header header
;
3012 struct enable_radar_req_msg
{
3013 struct wcn36xx_hal_msg_header header
;
3019 struct enable_radar_rsp_msg
{
3020 struct wcn36xx_hal_msg_header header
;
3022 /* Link Parameters */
3025 /* success or failure */
3029 struct radar_detect_intr_ind_msg
{
3030 struct wcn36xx_hal_msg_header header
;
3032 u8 radar_det_channel
;
3035 struct radar_detect_ind_msg
{
3036 struct wcn36xx_hal_msg_header header
;
3038 /* channel number in which the RADAR detected */
3041 /* RADAR pulse width in usecond */
3042 u16 radar_pulse_width
;
3044 /* Number of RADAR pulses */
3045 u16 num_radar_pulse
;
3048 struct wcn36xx_hal_get_tpc_report_req_msg
{
3049 struct wcn36xx_hal_msg_header header
;
3056 struct wcn36xx_hal_get_tpc_report_rsp_msg
{
3057 struct wcn36xx_hal_msg_header header
;
3059 /* success or failure */
3063 struct wcn36xx_hal_send_probe_resp_req_msg
{
3064 struct wcn36xx_hal_msg_header header
;
3066 u8 probe_resp_template
[BEACON_TEMPLATE_SIZE
];
3067 u32 probe_resp_template_len
;
3068 u32 proxy_probe_req_valid_ie_bmap
[8];
3072 struct send_probe_resp_rsp_msg
{
3073 struct wcn36xx_hal_msg_header header
;
3075 /* success or failure */
3079 struct send_unknown_frame_rx_ind_msg
{
3080 struct wcn36xx_hal_msg_header header
;
3082 /* success or failure */
3086 struct wcn36xx_hal_delete_sta_context_ind_msg
{
3087 struct wcn36xx_hal_msg_header header
;
3092 /* TO SUPPORT BT-AMP */
3095 /* HAL copies bssid from the sta table. */
3098 /* To unify the keepalive / unknown A2 / tim-based disa */
3102 struct indicate_del_sta
{
3103 struct wcn36xx_hal_msg_header header
;
3111 struct bt_amp_event_msg
{
3112 struct wcn36xx_hal_msg_header header
;
3114 enum bt_amp_event_type btAmpEventType
;
3117 struct bt_amp_event_rsp
{
3118 struct wcn36xx_hal_msg_header header
;
3120 /* success or failure */
3124 struct tl_hal_flush_ac_req_msg
{
3125 struct wcn36xx_hal_msg_header header
;
3127 /* Station Index. originates from HAL */
3130 /* TID for which the transmit queue is being flushed */
3134 struct tl_hal_flush_ac_rsp_msg
{
3135 struct wcn36xx_hal_msg_header header
;
3137 /* Station Index. originates from HAL */
3140 /* TID for which the transmit queue is being flushed */
3143 /* success or failure */
3147 struct wcn36xx_hal_enter_imps_req_msg
{
3148 struct wcn36xx_hal_msg_header header
;
3151 struct wcn36xx_hal_exit_imps_req
{
3152 struct wcn36xx_hal_msg_header header
;
3155 struct wcn36xx_hal_enter_bmps_req_msg
{
3156 struct wcn36xx_hal_msg_header header
;
3160 /* TBTT value derived from the last beacon */
3161 #ifndef BUILD_QWPTTSTATIC
3166 /* DTIM period given to HAL during association may not be valid, if
3167 * association is based on ProbeRsp instead of beacon. */
3170 /* For CCX and 11R Roaming */
3171 u32 rssi_filter_period
;
3173 u32 num_beacon_per_rssi_average
;
3174 u8 rssi_filter_enable
;
3177 struct wcn36xx_hal_exit_bmps_req_msg
{
3178 struct wcn36xx_hal_msg_header header
;
3184 struct wcn36xx_hal_missed_beacon_ind_msg
{
3185 struct wcn36xx_hal_msg_header header
;
3190 /* Beacon Filtering data structures */
3192 /* The above structure would be followed by multiple of below mentioned
3195 struct beacon_filter_ie
{
3197 u8 check_ie_presence
;
3204 struct wcn36xx_hal_add_bcn_filter_req_msg
{
3205 struct wcn36xx_hal_msg_header header
;
3207 u16 capability_info
;
3208 u16 capability_mask
;
3209 u16 beacon_interval
;
3215 struct wcn36xx_hal_rem_bcn_filter_req
{
3216 struct wcn36xx_hal_msg_header header
;
3222 #define WCN36XX_HAL_IPV4_ARP_REPLY_OFFLOAD 0
3223 #define WCN36XX_HAL_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1
3224 #define WCN36XX_HAL_IPV6_NS_OFFLOAD 2
3225 #define WCN36XX_HAL_IPV6_ADDR_LEN 16
3226 #define WCN36XX_HAL_OFFLOAD_DISABLE 0
3227 #define WCN36XX_HAL_OFFLOAD_ENABLE 1
3228 #define WCN36XX_HAL_OFFLOAD_BCAST_FILTER_ENABLE 0x2
3229 #define WCN36XX_HAL_OFFLOAD_ARP_AND_BCAST_FILTER_ENABLE \
3230 (HAL_OFFLOAD_ENABLE|HAL_OFFLOAD_BCAST_FILTER_ENABLE)
3232 struct wcn36xx_hal_ns_offload_params
{
3233 u8 src_ipv6_addr
[WCN36XX_HAL_IPV6_ADDR_LEN
];
3234 u8 self_ipv6_addr
[WCN36XX_HAL_IPV6_ADDR_LEN
];
3236 /* Only support 2 possible Network Advertisement IPv6 address */
3237 u8 target_ipv6_addr1
[WCN36XX_HAL_IPV6_ADDR_LEN
];
3238 u8 target_ipv6_addr2
[WCN36XX_HAL_IPV6_ADDR_LEN
];
3240 u8 self_addr
[ETH_ALEN
];
3241 u8 src_ipv6_addr_valid
:1;
3242 u8 target_ipv6_addr1_valid
:1;
3243 u8 target_ipv6_addr2_valid
:1;
3246 /* make it DWORD aligned */
3249 /* slot index for this offload */
3254 struct wcn36xx_hal_host_offload_req
{
3257 /* enable or disable */
3261 u8 host_ipv4_addr
[4];
3262 u8 host_ipv6_addr
[WCN36XX_HAL_IPV6_ADDR_LEN
];
3266 struct wcn36xx_hal_host_offload_req_msg
{
3267 struct wcn36xx_hal_msg_header header
;
3268 struct wcn36xx_hal_host_offload_req host_offload_params
;
3269 struct wcn36xx_hal_ns_offload_params ns_offload_params
;
3273 #define WCN36XX_HAL_KEEP_ALIVE_NULL_PKT 1
3274 #define WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2
3276 /* Enable or disable keep alive */
3277 #define WCN36XX_HAL_KEEP_ALIVE_DISABLE 0
3278 #define WCN36XX_HAL_KEEP_ALIVE_ENABLE 1
3279 #define WCN36XX_KEEP_ALIVE_TIME_PERIOD 30 /* unit: s */
3281 /* Keep Alive request. */
3282 struct wcn36xx_hal_keep_alive_req_msg
{
3283 struct wcn36xx_hal_msg_header header
;
3287 u8 host_ipv4_addr
[WCN36XX_HAL_IPV4_ADDR_LEN
];
3288 u8 dest_ipv4_addr
[WCN36XX_HAL_IPV4_ADDR_LEN
];
3289 u8 dest_addr
[ETH_ALEN
];
3293 struct wcn36xx_hal_rssi_threshold_req_msg
{
3294 struct wcn36xx_hal_msg_header header
;
3299 u8 thres1_pos_notify
:1;
3300 u8 thres1_neg_notify
:1;
3301 u8 thres2_pos_notify
:1;
3302 u8 thres2_neg_notify
:1;
3303 u8 thres3_pos_notify
:1;
3304 u8 thres3_neg_notify
:1;
3308 struct wcn36xx_hal_enter_uapsd_req_msg
{
3309 struct wcn36xx_hal_msg_header header
;
3322 struct wcn36xx_hal_exit_uapsd_req_msg
{
3323 struct wcn36xx_hal_msg_header header
;
3327 #define WCN36XX_HAL_WOWL_BCAST_PATTERN_MAX_SIZE 128
3328 #define WCN36XX_HAL_WOWL_BCAST_MAX_NUM_PATTERNS 16
3330 struct wcn36xx_hal_wowl_add_bcast_ptrn_req_msg
{
3331 struct wcn36xx_hal_msg_header header
;
3336 /* Pattern byte offset from beginning of the 802.11 packet to start
3337 * of the wake-up pattern */
3340 /* Non-Zero Pattern size */
3344 u8 pattern
[WCN36XX_HAL_WOWL_BCAST_PATTERN_MAX_SIZE
];
3346 /* Non-zero pattern mask size */
3350 u8 mask
[WCN36XX_HAL_WOWL_BCAST_PATTERN_MAX_SIZE
];
3353 u8 extra
[WCN36XX_HAL_WOWL_BCAST_PATTERN_MAX_SIZE
];
3355 /* Extra pattern mask */
3356 u8 mask_extra
[WCN36XX_HAL_WOWL_BCAST_PATTERN_MAX_SIZE
];
3361 struct wcn36xx_hal_wow_del_bcast_ptrn_req_msg
{
3362 struct wcn36xx_hal_msg_header header
;
3364 /* Pattern ID of the wakeup pattern to be deleted */
3369 struct wcn36xx_hal_wowl_enter_req_msg
{
3370 struct wcn36xx_hal_msg_header header
;
3372 /* Enables/disables magic packet filtering */
3373 u8 magic_packet_enable
;
3376 u8 magic_pattern
[ETH_ALEN
];
3378 /* Enables/disables packet pattern filtering in firmware. Enabling
3379 * this flag enables broadcast pattern matching in Firmware. If
3380 * unicast pattern matching is also desired,
3381 * ucUcastPatternFilteringEnable flag must be set tot true as well
3383 u8 pattern_filtering_enable
;
3385 /* Enables/disables unicast packet pattern filtering. This flag
3386 * specifies whether we want to do pattern match on unicast packets
3387 * as well and not just broadcast packets. This flag has no effect
3388 * if the ucPatternFilteringEnable (main controlling flag) is set
3391 u8 ucast_pattern_filtering_enable
;
3393 /* This configuration is valid only when magicPktEnable=1. It
3394 * requests hardware to wake up when it receives the Channel Switch
3397 u8 wow_channel_switch_receive
;
3399 /* This configuration is valid only when magicPktEnable=1. It
3400 * requests hardware to wake up when it receives the
3401 * Deauthentication Frame.
3403 u8 wow_deauth_receive
;
3405 /* This configuration is valid only when magicPktEnable=1. It
3406 * requests hardware to wake up when it receives the Disassociation
3409 u8 wow_disassoc_receive
;
3411 /* This configuration is valid only when magicPktEnable=1. It
3412 * requests hardware to wake up when it has missed consecutive
3413 * beacons. This is a hardware register configuration (NOT a
3414 * firmware configuration).
3416 u8 wow_max_missed_beacons
;
3418 /* This configuration is valid only when magicPktEnable=1. This is
3419 * a timeout value in units of microsec. It requests hardware to
3420 * unconditionally wake up after it has stayed in WoWLAN mode for
3421 * some time. Set 0 to disable this feature.
3425 /* This configuration directs the WoW packet filtering to look for
3426 * EAP-ID requests embedded in EAPOL frames and use this as a wake
3429 u8 wow_eap_id_request_enable
;
3431 /* This configuration directs the WoW packet filtering to look for
3432 * EAPOL-4WAY requests and use this as a wake source.
3434 u8 wow_eapol_4way_enable
;
3436 /* This configuration allows a host wakeup on an network scan
3439 u8 wow_net_scan_offload_match
;
3441 /* This configuration allows a host wakeup on any GTK rekeying
3444 u8 wow_gtk_rekey_error
;
3446 /* This configuration allows a host wakeup on BSS connection loss.
3448 u8 wow_bss_connection_loss
;
3453 struct wcn36xx_hal_wowl_exit_req_msg
{
3454 struct wcn36xx_hal_msg_header header
;
3459 struct wcn36xx_hal_get_rssi_req_msg
{
3460 struct wcn36xx_hal_msg_header header
;
3463 struct wcn36xx_hal_get_roam_rssi_req_msg
{
3464 struct wcn36xx_hal_msg_header header
;
3466 /* Valid STA Idx for per STA stats request */
3470 struct wcn36xx_hal_set_uapsd_ac_params_req_msg
{
3471 struct wcn36xx_hal_msg_header header
;
3476 /* Access Category */
3482 /* Service Interval */
3483 u32 service_interval
;
3485 /* Suspend Interval */
3486 u32 suspend_interval
;
3488 /* Delay Interval */
3492 struct wcn36xx_hal_configure_rxp_filter_req_msg
{
3493 struct wcn36xx_hal_msg_header header
;
3495 u8 set_mcst_bcst_filter_setting
;
3496 u8 set_mcst_bcst_filter
;
3499 struct wcn36xx_hal_enter_imps_rsp_msg
{
3500 struct wcn36xx_hal_msg_header header
;
3502 /* success or failure */
3506 struct wcn36xx_hal_exit_imps_rsp_msg
{
3507 struct wcn36xx_hal_msg_header header
;
3509 /* success or failure */
3513 struct wcn36xx_hal_enter_bmps_rsp_msg
{
3514 struct wcn36xx_hal_msg_header header
;
3516 /* success or failure */
3522 struct wcn36xx_hal_exit_bmps_rsp_msg
{
3523 struct wcn36xx_hal_msg_header header
;
3525 /* success or failure */
3531 struct wcn36xx_hal_enter_uapsd_rsp_msg
{
3532 struct wcn36xx_hal_msg_header header
;
3534 /* success or failure */
3540 struct wcn36xx_hal_exit_uapsd_rsp_msg
{
3541 struct wcn36xx_hal_msg_header header
;
3543 /* success or failure */
3549 struct wcn36xx_hal_rssi_notification_ind_msg
{
3550 struct wcn36xx_hal_msg_header header
;
3552 u32 rssi_thres1_pos_cross
:1;
3553 u32 rssi_thres1_neg_cross
:1;
3554 u32 rssi_thres2_pos_cross
:1;
3555 u32 rssi_thres2_neg_cross
:1;
3556 u32 rssi_thres3_pos_cross
:1;
3557 u32 rssi_thres3_neg_cross
:1;
3563 struct wcn36xx_hal_get_rssio_rsp_msg
{
3564 struct wcn36xx_hal_msg_header header
;
3566 /* success or failure */
3572 struct wcn36xx_hal_get_roam_rssi_rsp_msg
{
3573 struct wcn36xx_hal_msg_header header
;
3575 /* success or failure */
3582 struct wcn36xx_hal_wowl_enter_rsp_msg
{
3583 struct wcn36xx_hal_msg_header header
;
3585 /* success or failure */
3590 struct wcn36xx_hal_wowl_exit_rsp_msg
{
3591 struct wcn36xx_hal_msg_header header
;
3593 /* success or failure */
3598 struct wcn36xx_hal_add_bcn_filter_rsp_msg
{
3599 struct wcn36xx_hal_msg_header header
;
3601 /* success or failure */
3605 struct wcn36xx_hal_rem_bcn_filter_rsp_msg
{
3606 struct wcn36xx_hal_msg_header header
;
3608 /* success or failure */
3612 struct wcn36xx_hal_add_wowl_bcast_ptrn_rsp_msg
{
3613 struct wcn36xx_hal_msg_header header
;
3615 /* success or failure */
3620 struct wcn36xx_hal_del_wowl_bcast_ptrn_rsp_msg
{
3621 struct wcn36xx_hal_msg_header header
;
3623 /* success or failure */
3628 struct wcn36xx_hal_host_offload_rsp_msg
{
3629 struct wcn36xx_hal_msg_header header
;
3631 /* success or failure */
3635 struct wcn36xx_hal_keep_alive_rsp_msg
{
3636 struct wcn36xx_hal_msg_header header
;
3638 /* success or failure */
3642 struct wcn36xx_hal_set_rssi_thresh_rsp_msg
{
3643 struct wcn36xx_hal_msg_header header
;
3645 /* success or failure */
3649 struct wcn36xx_hal_set_uapsd_ac_params_rsp_msg
{
3650 struct wcn36xx_hal_msg_header header
;
3652 /* success or failure */
3656 struct wcn36xx_hal_configure_rxp_filter_rsp_msg
{
3657 struct wcn36xx_hal_msg_header header
;
3659 /* success or failure */
3663 struct set_max_tx_pwr_req
{
3664 struct wcn36xx_hal_msg_header header
;
3666 /* BSSID is needed to identify which session issued this request.
3667 * As the request has power constraints, this should be applied
3668 * only to that session */
3671 u8 self_addr
[ETH_ALEN
];
3673 /* In request, power == MaxTx power to be used. */
3677 struct set_max_tx_pwr_rsp_msg
{
3678 struct wcn36xx_hal_msg_header header
;
3680 /* power == tx power used for management frames */
3683 /* success or failure */
3687 struct set_tx_pwr_req_msg
{
3688 struct wcn36xx_hal_msg_header header
;
3690 /* TX Power in milli watts */
3696 struct set_tx_pwr_rsp_msg
{
3697 struct wcn36xx_hal_msg_header header
;
3699 /* success or failure */
3703 struct get_tx_pwr_req_msg
{
3704 struct wcn36xx_hal_msg_header header
;
3709 struct get_tx_pwr_rsp_msg
{
3710 struct wcn36xx_hal_msg_header header
;
3712 /* success or failure */
3715 /* TX Power in milli watts */
3719 struct set_p2p_gonoa_req_msg
{
3720 struct wcn36xx_hal_msg_header header
;
3727 u32 single_noa_duration
;
3731 struct set_p2p_gonoa_rsp_msg
{
3732 struct wcn36xx_hal_msg_header header
;
3734 /* success or failure */
3738 struct wcn36xx_hal_add_sta_self_req
{
3739 struct wcn36xx_hal_msg_header header
;
3741 u8 self_addr
[ETH_ALEN
];
3745 struct wcn36xx_hal_add_sta_self_rsp_msg
{
3746 struct wcn36xx_hal_msg_header header
;
3748 /* success or failure */
3751 /* Self STA Index */
3754 /* DPU Index (IGTK, PTK, GTK all same) */
3761 struct wcn36xx_hal_del_sta_self_req_msg
{
3762 struct wcn36xx_hal_msg_header header
;
3764 u8 self_addr
[ETH_ALEN
];
3767 struct wcn36xx_hal_del_sta_self_rsp_msg
{
3768 struct wcn36xx_hal_msg_header header
;
3770 /*success or failure */
3773 u8 self_addr
[ETH_ALEN
];
3776 struct aggr_add_ts_req
{
3777 struct wcn36xx_hal_msg_header header
;
3782 /* TSPEC handler uniquely identifying a TSPEC for a STA in a BSS.
3783 * This will carry the bitmap with the bit positions representing
3787 /* Tspec info per AC To program TPE with required parameters */
3788 struct wcn36xx_hal_tspec_ie tspec
[WCN36XX_HAL_MAX_AC
];
3790 /* U-APSD Flags: 1b per AC. Encoded as follows:
3791 b7 b6 b5 b4 b3 b2 b1 b0 =
3792 X X X X BE BK VI VO */
3795 /* These parameters are for all the access categories */
3797 /* Service Interval */
3798 u32 service_interval
[WCN36XX_HAL_MAX_AC
];
3800 /* Suspend Interval */
3801 u32 suspend_interval
[WCN36XX_HAL_MAX_AC
];
3803 /* Delay Interval */
3804 u32 delay_interval
[WCN36XX_HAL_MAX_AC
];
3807 struct aggr_add_ts_rsp_msg
{
3808 struct wcn36xx_hal_msg_header header
;
3810 /* success or failure */
3813 /* FIXME PRIMA for future use for 11R */
3817 struct wcn36xx_hal_configure_apps_cpu_wakeup_state_req_msg
{
3818 struct wcn36xx_hal_msg_header header
;
3820 u8 is_apps_cpu_awake
;
3823 struct wcn36xx_hal_configure_apps_cpu_wakeup_state_rsp_msg
{
3824 struct wcn36xx_hal_msg_header header
;
3826 /* success or failure */
3830 struct wcn36xx_hal_dump_cmd_req_msg
{
3831 struct wcn36xx_hal_msg_header header
;
3840 struct wcn36xx_hal_dump_cmd_rsp_msg
{
3841 struct wcn36xx_hal_msg_header header
;
3843 /* success or failure */
3846 /* Length of the responce message */
3849 /* FIXME: Currently considering the the responce will be less than
3851 u8 rsp_buffer
[DUMPCMD_RSP_BUFFER
];
3854 #define WLAN_COEX_IND_DATA_SIZE (4)
3855 #define WLAN_COEX_IND_TYPE_DISABLE_HB_MONITOR (0)
3856 #define WLAN_COEX_IND_TYPE_ENABLE_HB_MONITOR (1)
3858 struct coex_ind_msg
{
3859 struct wcn36xx_hal_msg_header header
;
3861 /* Coex Indication Type */
3864 /* Coex Indication Data */
3865 u32 data
[WLAN_COEX_IND_DATA_SIZE
];
3868 struct wcn36xx_hal_tx_compl_ind_msg
{
3869 struct wcn36xx_hal_msg_header header
;
3871 /* Tx Complete Indication Success or Failure */
3875 struct wcn36xx_hal_wlan_host_suspend_ind_msg
{
3876 struct wcn36xx_hal_msg_header header
;
3878 u32 configured_mcst_bcst_filter_setting
;
3879 u32 active_session_count
;
3882 struct wcn36xx_hal_wlan_exclude_unencrpted_ind_msg
{
3883 struct wcn36xx_hal_msg_header header
;
3885 u8 dot11_exclude_unencrypted
;
3889 struct noa_attr_ind_msg
{
3890 struct wcn36xx_hal_msg_header header
;
3896 u16 noa1_interval_count
;
3902 u16 noa2_interval_count
;
3906 u32 noa2_start_time
;
3911 struct noa_start_ind_msg
{
3912 struct wcn36xx_hal_msg_header header
;
3918 struct wcn36xx_hal_wlan_host_resume_req_msg
{
3919 struct wcn36xx_hal_msg_header header
;
3921 u8 configured_mcst_bcst_filter_setting
;
3924 struct wcn36xx_hal_host_resume_rsp_msg
{
3925 struct wcn36xx_hal_msg_header header
;
3927 /* success or failure */
3931 struct wcn36xx_hal_del_ba_ind_msg
{
3932 struct wcn36xx_hal_msg_header header
;
3936 /* Peer MAC Address, whose BA session has timed out */
3937 u8 peer_addr
[ETH_ALEN
];
3939 /* TID for which a BA session timeout is being triggered */
3950 /* TO SUPPORT BT-AMP */
3956 /* Max number of channels that a network can be found on */
3957 #define WCN36XX_HAL_PNO_MAX_NETW_CHANNELS 26
3959 /* Max number of channels that a network can be found on */
3960 #define WCN36XX_HAL_PNO_MAX_NETW_CHANNELS_EX 60
3962 /* Maximum numbers of networks supported by PNO */
3963 #define WCN36XX_HAL_PNO_MAX_SUPP_NETWORKS 16
3965 /* The number of scan time intervals that can be programmed into PNO */
3966 #define WCN36XX_HAL_PNO_MAX_SCAN_TIMERS 10
3968 /* Maximum size of the probe template */
3969 #define WCN36XX_HAL_PNO_MAX_PROBE_SIZE 450
3971 /* Type of PNO enabling:
3973 * Immediate - scanning will start immediately and PNO procedure will be
3974 * repeated based on timer
3976 * Suspend - scanning will start at suspend
3978 * Resume - scanning will start on system resume
3982 PNO_MODE_ON_SUSPEND
,
3984 PNO_MODE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
3987 /* Authentication type */
3990 AUTH_TYPE_OPEN_SYSTEM
= 1,
3992 /* Upper layer authentication types */
3994 AUTH_TYPE_WPA_PSK
= 3,
3997 AUTH_TYPE_RSN_PSK
= 5,
3998 AUTH_TYPE_FT_RSN
= 6,
3999 AUTH_TYPE_FT_RSN_PSK
= 7,
4000 AUTH_TYPE_WAPI_WAI_CERTIFICATE
= 8,
4001 AUTH_TYPE_WAPI_WAI_PSK
= 9,
4003 AUTH_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
4006 /* Encryption type */
4015 ED_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
4018 /* SSID broadcast type */
4019 enum ssid_bcast_type
{
4024 BCAST_TYPE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
4027 /* The network description for which PNO will have to look for */
4028 struct network_type
{
4029 /* SSID of the BSS */
4030 struct wcn36xx_hal_mac_ssid ssid
;
4032 /* Authentication type for the network */
4033 enum auth_type authentication
;
4035 /* Encryption type for the network */
4036 enum ed_type encryption
;
4038 /* Indicate the channel on which the Network can be found 0 - if
4041 u8 channels
[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS
];
4043 /* Indicates the RSSI threshold for the network to be considered */
4048 /* How much it should wait */
4051 /* How many times it should repeat that wait value 0 - keep using
4052 * this timer until PNO is disabled */
4055 /* e.g: 2 3 4 0 - it will wait 2s between consecutive scans for 3
4056 * times - after that it will wait 4s between consecutive scans
4060 /* The network parameters to be sent to the PNO algorithm */
4061 struct scan_timers_type
{
4062 /* set to 0 if you wish for PNO to use its default telescopic timer */
4065 /* A set value represents the amount of time that PNO will wait
4066 * between two consecutive scan procedures If the desired is for a
4067 * uniform timer that fires always at the exact same interval - one
4068 * single value is to be set If there is a desire for a more
4069 * complex - telescopic like timer multiple values can be set -
4070 * once PNO reaches the end of the array it will continue scanning
4071 * at intervals presented by the last value */
4072 struct scan_timer values
[WCN36XX_HAL_PNO_MAX_SCAN_TIMERS
];
4075 /* Preferred network list request */
4076 struct set_pref_netw_list_req
{
4077 struct wcn36xx_hal_msg_header header
;
4082 /* Immediate, On Suspend, On Resume */
4085 /* Number of networks sent for PNO */
4088 /* The networks that PNO needs to look for */
4089 struct network_type networks
[WCN36XX_HAL_PNO_MAX_SUPP_NETWORKS
];
4091 /* The scan timers required for PNO */
4092 struct scan_timers_type scan_timers
;
4094 /* Probe template for 2.4GHz band */
4095 u16 band_24g_probe_size
;
4096 u8 band_24g_probe_template
[WCN36XX_HAL_PNO_MAX_PROBE_SIZE
];
4098 /* Probe template for 5GHz band */
4099 u16 band_5g_probe_size
;
4100 u8 band_5g_probe_template
[WCN36XX_HAL_PNO_MAX_PROBE_SIZE
];
4103 /* The network description for which PNO will have to look for */
4104 struct network_type_new
{
4105 /* SSID of the BSS */
4106 struct wcn36xx_hal_mac_ssid ssid
;
4108 /* Authentication type for the network */
4109 enum auth_type authentication
;
4111 /* Encryption type for the network */
4112 enum ed_type encryption
;
4114 /* SSID broadcast type, normal, hidden or unknown */
4115 enum ssid_bcast_type bcast_network_type
;
4117 /* Indicate the channel on which the Network can be found 0 - if
4120 u8 channels
[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS
];
4122 /* Indicates the RSSI threshold for the network to be considered */
4126 /* Preferred network list request new */
4127 struct set_pref_netw_list_req_new
{
4128 struct wcn36xx_hal_msg_header header
;
4133 /* Immediate, On Suspend, On Resume */
4136 /* Number of networks sent for PNO */
4139 /* The networks that PNO needs to look for */
4140 struct network_type_new networks
[WCN36XX_HAL_PNO_MAX_SUPP_NETWORKS
];
4142 /* The scan timers required for PNO */
4143 struct scan_timers_type scan_timers
;
4145 /* Probe template for 2.4GHz band */
4146 u16 band_24g_probe_size
;
4147 u8 band_24g_probe_template
[WCN36XX_HAL_PNO_MAX_PROBE_SIZE
];
4149 /* Probe template for 5GHz band */
4150 u16 band_5g_probe_size
;
4151 u8 band_5g_probe_template
[WCN36XX_HAL_PNO_MAX_PROBE_SIZE
];
4154 /* Preferred network list response */
4155 struct set_pref_netw_list_resp
{
4156 struct wcn36xx_hal_msg_header header
;
4158 /* status of the request - just to indicate that PNO has
4159 * acknowledged the request and will start scanning */
4163 /* Preferred network found indication */
4164 struct pref_netw_found_ind
{
4166 struct wcn36xx_hal_msg_header header
;
4168 /* Network that was found with the highest RSSI */
4169 struct wcn36xx_hal_mac_ssid ssid
;
4171 /* Indicates the RSSI */
4175 /* RSSI Filter request */
4176 struct set_rssi_filter_req
{
4177 struct wcn36xx_hal_msg_header header
;
4179 /* RSSI Threshold */
4183 /* Set RSSI filter resp */
4184 struct set_rssi_filter_resp
{
4185 struct wcn36xx_hal_msg_header header
;
4187 /* status of the request */
4191 /* Update scan params - sent from host to PNO to be used during PNO
4193 struct wcn36xx_hal_update_scan_params_req
{
4195 struct wcn36xx_hal_msg_header header
;
4197 /* Host setting for 11d */
4200 /* Lets PNO know that host has determined the regulatory domain */
4203 /* Channels on which PNO is allowed to scan */
4205 u8 channels
[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS
];
4207 /* Minimum channel time */
4208 u16 active_min_ch_time
;
4210 /* Maximum channel time */
4211 u16 active_max_ch_time
;
4213 /* Minimum channel time */
4214 u16 passive_min_ch_time
;
4216 /* Maximum channel time */
4217 u16 passive_max_ch_time
;
4220 enum phy_chan_bond_state state
;
4223 /* Update scan params - sent from host to PNO to be used during PNO
4225 struct wcn36xx_hal_update_scan_params_req_ex
{
4227 struct wcn36xx_hal_msg_header header
;
4229 /* Host setting for 11d */
4232 /* Lets PNO know that host has determined the regulatory domain */
4235 /* Channels on which PNO is allowed to scan */
4237 u8 channels
[WCN36XX_HAL_PNO_MAX_NETW_CHANNELS_EX
];
4239 /* Minimum channel time */
4240 u16 active_min_ch_time
;
4242 /* Maximum channel time */
4243 u16 active_max_ch_time
;
4245 /* Minimum channel time */
4246 u16 passive_min_ch_time
;
4248 /* Maximum channel time */
4249 u16 passive_max_ch_time
;
4252 enum phy_chan_bond_state state
;
4255 /* Update scan params - sent from host to PNO to be used during PNO
4257 struct wcn36xx_hal_update_scan_params_resp
{
4259 struct wcn36xx_hal_msg_header header
;
4261 /* status of the request */
4265 struct wcn36xx_hal_set_tx_per_tracking_req_msg
{
4266 struct wcn36xx_hal_msg_header header
;
4268 /* 0: disable, 1:enable */
4269 u8 tx_per_tracking_enable
;
4271 /* Check period, unit is sec. */
4272 u8 tx_per_tracking_period
;
4274 /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. */
4275 u8 tx_per_tracking_ratio
;
4277 /* A watermark of check number, once the tx packet exceed this
4278 * number, we do the check, default is 5 */
4279 u32 tx_per_tracking_watermark
;
4282 struct wcn36xx_hal_set_tx_per_tracking_rsp_msg
{
4283 struct wcn36xx_hal_msg_header header
;
4285 /* success or failure */
4290 struct tx_per_hit_ind_msg
{
4291 struct wcn36xx_hal_msg_header header
;
4294 /* Packet Filtering Definitions Begin */
4295 #define WCN36XX_HAL_PROTOCOL_DATA_LEN 8
4296 #define WCN36XX_HAL_MAX_NUM_MULTICAST_ADDRESS 240
4297 #define WCN36XX_HAL_MAX_NUM_FILTERS 20
4298 #define WCN36XX_HAL_MAX_CMP_PER_FILTER 10
4300 enum wcn36xx_hal_receive_packet_filter_type
{
4301 HAL_RCV_FILTER_TYPE_INVALID
,
4302 HAL_RCV_FILTER_TYPE_FILTER_PKT
,
4303 HAL_RCV_FILTER_TYPE_BUFFER_PKT
,
4304 HAL_RCV_FILTER_TYPE_MAX_ENUM_SIZE
4307 enum wcn36xx_hal_rcv_pkt_flt_protocol_type
{
4308 HAL_FILTER_PROTO_TYPE_INVALID
,
4309 HAL_FILTER_PROTO_TYPE_MAC
,
4310 HAL_FILTER_PROTO_TYPE_ARP
,
4311 HAL_FILTER_PROTO_TYPE_IPV4
,
4312 HAL_FILTER_PROTO_TYPE_IPV6
,
4313 HAL_FILTER_PROTO_TYPE_UDP
,
4314 HAL_FILTER_PROTO_TYPE_MAX
4317 enum wcn36xx_hal_rcv_pkt_flt_cmp_flag_type
{
4318 HAL_FILTER_CMP_TYPE_INVALID
,
4319 HAL_FILTER_CMP_TYPE_EQUAL
,
4320 HAL_FILTER_CMP_TYPE_MASK_EQUAL
,
4321 HAL_FILTER_CMP_TYPE_NOT_EQUAL
,
4322 HAL_FILTER_CMP_TYPE_MAX
4325 struct wcn36xx_hal_rcv_pkt_filter_params
{
4329 /* Length of the data to compare */
4332 /* from start of the respective frame header */
4335 /* Reserved field */
4338 /* Data to compare */
4339 u8 compare_data
[WCN36XX_HAL_PROTOCOL_DATA_LEN
];
4341 /* Mask to be applied on the received packet data before compare */
4342 u8 data_mask
[WCN36XX_HAL_PROTOCOL_DATA_LEN
];
4345 struct wcn36xx_hal_sessionized_rcv_pkt_filter_cfg_type
{
4351 struct wcn36xx_hal_rcv_pkt_filter_params params
[1];
4354 struct wcn36xx_hal_set_rcv_pkt_filter_req_msg
{
4355 struct wcn36xx_hal_msg_header header
;
4361 struct wcn36xx_hal_rcv_pkt_filter_params params
[1];
4364 struct wcn36xx_hal_rcv_flt_mc_addr_list_type
{
4365 /* from start of the respective frame header */
4369 u8 mc_addr
[WCN36XX_HAL_MAX_NUM_MULTICAST_ADDRESS
][ETH_ALEN
];
4373 struct wcn36xx_hal_set_pkt_filter_rsp_msg
{
4374 struct wcn36xx_hal_msg_header header
;
4376 /* success or failure */
4382 struct wcn36xx_hal_rcv_flt_pkt_match_cnt_req_msg
{
4383 struct wcn36xx_hal_msg_header header
;
4388 struct wcn36xx_hal_rcv_flt_pkt_match_cnt
{
4393 struct wcn36xx_hal_rcv_flt_pkt_match_cnt_rsp_msg
{
4394 struct wcn36xx_hal_msg_header header
;
4396 /* Success or Failure */
4400 struct wcn36xx_hal_rcv_flt_pkt_match_cnt
4401 matches
[WCN36XX_HAL_MAX_NUM_FILTERS
];
4405 struct wcn36xx_hal_rcv_flt_pkt_clear_param
{
4406 /* only valid for response message */
4412 struct wcn36xx_hal_rcv_flt_pkt_clear_req_msg
{
4413 struct wcn36xx_hal_msg_header header
;
4414 struct wcn36xx_hal_rcv_flt_pkt_clear_param param
;
4417 struct wcn36xx_hal_rcv_flt_pkt_clear_rsp_msg
{
4418 struct wcn36xx_hal_msg_header header
;
4419 struct wcn36xx_hal_rcv_flt_pkt_clear_param param
;
4422 struct wcn36xx_hal_rcv_flt_pkt_set_mc_list_req_msg
{
4423 struct wcn36xx_hal_msg_header header
;
4424 struct wcn36xx_hal_rcv_flt_mc_addr_list_type mc_addr_list
;
4427 struct wcn36xx_hal_rcv_flt_pkt_set_mc_list_rsp_msg
{
4428 struct wcn36xx_hal_msg_header header
;
4433 /* Packet Filtering Definitions End */
4435 struct wcn36xx_hal_set_power_params_req_msg
{
4436 struct wcn36xx_hal_msg_header header
;
4444 /* Listen Interval */
4445 u32 listen_interval
;
4447 /* Broadcast Multicast Filter */
4448 u32 bcast_mcast_filter
;
4450 /* Beacon Early Termination */
4453 /* Beacon Early Termination Interval */
4457 struct wcn36xx_hal_set_power_params_resp
{
4459 struct wcn36xx_hal_msg_header header
;
4461 /* status of the request */
4465 /* Capability bitmap exchange definitions and macros starts */
4467 enum place_holder_in_cap_bitmap
{
4471 SLM_SESSIONIZATION
= 3,
4475 P2P_GO_NOA_DECOUPLE_INIT_SCAN
= 7,
4476 WLANACTIVE_OFFLOAD
= 8,
4480 BCN_MISS_OFFLOAD
= 12,
4482 STA_ADVANCED_PWRSAVE
= 14,
4491 WLAN_ROAM_SCAN_OFFLOAD
= 23,
4492 SPECULATIVE_PS_POLL
= 24,
4494 IBSS_HEARTBEAT_OFFLOAD
= 26,
4495 WLAN_SCAN_OFFLOAD
= 27,
4496 WLAN_PERIODIC_TX_PTRN
= 28,
4500 EXTENDED_NSOFFLOAD_SLOT
= 32,
4502 HT40_OBSS_SCAN
= 34,
4503 UPDATE_CHANNEL_LIST
= 35,
4504 WLAN_MCADDR_FLT
= 36,
4507 TDLS_SCAN_COEXISTENCE
= 39,
4508 LINK_LAYER_STATS_MEAS
= 40,
4511 DYNAMIC_WMM_PS
= 43,
4512 MAC_SPOOFED_SCAN
= 44,
4513 BMU_ERROR_GENERIC_RECOVERY
= 45,
4516 WPS_PRBRSP_TMPL
= 48,
4517 BCN_IE_FLT_DELTA
= 49,
4518 TDLS_OFF_CHANNEL
= 51,
4520 MGMT_FRAME_LOGGING
= 53,
4521 ENHANCED_TXBD_COMPLETION
= 54,
4522 LOGGING_ENHANCEMENT
= 55,
4523 EXT_SCAN_ENHANCED
= 56,
4524 MEMORY_DUMP_SUPPORTED
= 57,
4525 PER_PKT_STATS_SUPPORTED
= 58,
4528 ANTENNA_DIVERSITY_SELECTION
= 62,
4530 MAX_FEATURE_SUPPORTED
= 128,
4533 #define WCN36XX_HAL_CAPS_SIZE 4
4535 struct wcn36xx_hal_feat_caps_msg
{
4537 struct wcn36xx_hal_msg_header header
;
4539 u32 feat_caps
[WCN36XX_HAL_CAPS_SIZE
];
4542 /* status codes to help debug rekey failures */
4543 enum gtk_rekey_status
{
4544 WCN36XX_HAL_GTK_REKEY_STATUS_SUCCESS
= 0,
4546 /* rekey detected, but not handled */
4547 WCN36XX_HAL_GTK_REKEY_STATUS_NOT_HANDLED
= 1,
4549 /* MIC check error on M1 */
4550 WCN36XX_HAL_GTK_REKEY_STATUS_MIC_ERROR
= 2,
4552 /* decryption error on M1 */
4553 WCN36XX_HAL_GTK_REKEY_STATUS_DECRYPT_ERROR
= 3,
4555 /* M1 replay detected */
4556 WCN36XX_HAL_GTK_REKEY_STATUS_REPLAY_ERROR
= 4,
4558 /* missing GTK key descriptor in M1 */
4559 WCN36XX_HAL_GTK_REKEY_STATUS_MISSING_KDE
= 5,
4561 /* missing iGTK key descriptor in M1 */
4562 WCN36XX_HAL_GTK_REKEY_STATUS_MISSING_IGTK_KDE
= 6,
4564 /* key installation error */
4565 WCN36XX_HAL_GTK_REKEY_STATUS_INSTALL_ERROR
= 7,
4567 /* iGTK key installation error */
4568 WCN36XX_HAL_GTK_REKEY_STATUS_IGTK_INSTALL_ERROR
= 8,
4570 /* GTK rekey M2 response TX error */
4571 WCN36XX_HAL_GTK_REKEY_STATUS_RESP_TX_ERROR
= 9,
4573 /* non-specific general error */
4574 WCN36XX_HAL_GTK_REKEY_STATUS_GEN_ERROR
= 255
4577 /* wake reason types */
4578 enum wake_reason_type
{
4579 WCN36XX_HAL_WAKE_REASON_NONE
= 0,
4581 /* magic packet match */
4582 WCN36XX_HAL_WAKE_REASON_MAGIC_PACKET
= 1,
4584 /* host defined pattern match */
4585 WCN36XX_HAL_WAKE_REASON_PATTERN_MATCH
= 2,
4587 /* EAP-ID frame detected */
4588 WCN36XX_HAL_WAKE_REASON_EAPID_PACKET
= 3,
4590 /* start of EAPOL 4-way handshake detected */
4591 WCN36XX_HAL_WAKE_REASON_EAPOL4WAY_PACKET
= 4,
4593 /* network scan offload match */
4594 WCN36XX_HAL_WAKE_REASON_NETSCAN_OFFL_MATCH
= 5,
4596 /* GTK rekey status wakeup (see status) */
4597 WCN36XX_HAL_WAKE_REASON_GTK_REKEY_STATUS
= 6,
4599 /* BSS connection lost */
4600 WCN36XX_HAL_WAKE_REASON_BSS_CONN_LOST
= 7,
4604 Wake Packet which is saved at tWakeReasonParams.DataStart
4605 This data is sent for any wake reasons that involve a packet-based wakeup :
4607 WCN36XX_HAL_WAKE_REASON_TYPE_MAGIC_PACKET
4608 WCN36XX_HAL_WAKE_REASON_TYPE_PATTERN_MATCH
4609 WCN36XX_HAL_WAKE_REASON_TYPE_EAPID_PACKET
4610 WCN36XX_HAL_WAKE_REASON_TYPE_EAPOL4WAY_PACKET
4611 WCN36XX_HAL_WAKE_REASON_TYPE_GTK_REKEY_STATUS
4613 The information is provided to the host for auditing and debug purposes
4617 /* Wake reason indication */
4618 struct wcn36xx_hal_wake_reason_ind
{
4619 struct wcn36xx_hal_msg_header header
;
4621 /* see tWakeReasonType */
4624 /* argument specific to the reason type */
4627 /* length of optional data stored in this message, in case HAL
4628 * truncates the data (i.e. data packets) this length will be less
4629 * than the actual length */
4630 u32 stored_data_len
;
4632 /* actual length of data */
4633 u32 actual_data_len
;
4635 /* variable length start of data (length == storedDataLen) see
4636 * specific wake type */
4643 #define WCN36XX_HAL_GTK_KEK_BYTES 16
4644 #define WCN36XX_HAL_GTK_KCK_BYTES 16
4646 #define WCN36XX_HAL_GTK_OFFLOAD_FLAGS_DISABLE (1 << 0)
4648 #define GTK_SET_BSS_KEY_TAG 0x1234AA55
4650 struct wcn36xx_hal_gtk_offload_req_msg
{
4651 struct wcn36xx_hal_msg_header header
;
4653 /* optional flags */
4656 /* Key confirmation key */
4657 u8 kck
[WCN36XX_HAL_GTK_KCK_BYTES
];
4659 /* key encryption key */
4660 u8 kek
[WCN36XX_HAL_GTK_KEK_BYTES
];
4662 /* replay counter */
4663 u64 key_replay_counter
;
4668 struct wcn36xx_hal_gtk_offload_rsp_msg
{
4669 struct wcn36xx_hal_msg_header header
;
4671 /* success or failure */
4677 struct wcn36xx_hal_gtk_offload_get_info_req_msg
{
4678 struct wcn36xx_hal_msg_header header
;
4682 struct wcn36xx_hal_gtk_offload_get_info_rsp_msg
{
4683 struct wcn36xx_hal_msg_header header
;
4685 /* success or failure */
4688 /* last rekey status when the rekey was offloaded */
4689 u32 last_rekey_status
;
4691 /* current replay counter value */
4692 u64 key_replay_counter
;
4694 /* total rekey attempts */
4695 u32 total_rekey_count
;
4697 /* successful GTK rekeys */
4698 u32 gtk_rekey_count
;
4700 /* successful iGTK rekeys */
4701 u32 igtk_rekey_count
;
4707 /* Indicates the device mode which indicates about the DHCP activity */
4713 struct dhcp_ind_status
{
4714 struct wcn36xx_hal_msg_header header
;
4716 /* success or failure */
4721 * Thermal Mitigation mode of operation.
4723 * WCN36XX_HAL_THERMAL_MITIGATION_MODE_0 - Based on AMPDU disabling aggregation
4725 * WCN36XX_HAL_THERMAL_MITIGATION_MODE_1 - Based on AMPDU disabling aggregation
4726 * and reducing transmit power
4728 * WCN36XX_HAL_THERMAL_MITIGATION_MODE_2 - Not supported */
4729 enum wcn36xx_hal_thermal_mitigation_mode_type
{
4730 HAL_THERMAL_MITIGATION_MODE_INVALID
= -1,
4731 HAL_THERMAL_MITIGATION_MODE_0
,
4732 HAL_THERMAL_MITIGATION_MODE_1
,
4733 HAL_THERMAL_MITIGATION_MODE_2
,
4734 HAL_THERMAL_MITIGATION_MODE_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
,
4739 * Thermal Mitigation level.
4740 * Note the levels are incremental i.e WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_2 =
4741 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_0 +
4742 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_1
4744 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_0 - lowest level of thermal mitigation.
4745 * This level indicates normal mode of operation
4747 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_1 - 1st level of thermal mitigation
4749 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_2 - 2nd level of thermal mitigation
4751 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_3 - 3rd level of thermal mitigation
4753 * WCN36XX_HAL_THERMAL_MITIGATION_LEVEL_4 - 4th level of thermal mitigation
4755 enum wcn36xx_hal_thermal_mitigation_level_type
{
4756 HAL_THERMAL_MITIGATION_LEVEL_INVALID
= -1,
4757 HAL_THERMAL_MITIGATION_LEVEL_0
,
4758 HAL_THERMAL_MITIGATION_LEVEL_1
,
4759 HAL_THERMAL_MITIGATION_LEVEL_2
,
4760 HAL_THERMAL_MITIGATION_LEVEL_3
,
4761 HAL_THERMAL_MITIGATION_LEVEL_4
,
4762 HAL_THERMAL_MITIGATION_LEVEL_MAX
= WCN36XX_HAL_MAX_ENUM_SIZE
,
4766 /* WCN36XX_HAL_SET_THERMAL_MITIGATION_REQ */
4767 struct set_thermal_mitigation_req_msg
{
4768 struct wcn36xx_hal_msg_header header
;
4770 /* Thermal Mitigation Operation Mode */
4771 enum wcn36xx_hal_thermal_mitigation_mode_type mode
;
4773 /* Thermal Mitigation Level */
4774 enum wcn36xx_hal_thermal_mitigation_level_type level
;
4777 struct set_thermal_mitigation_resp
{
4779 struct wcn36xx_hal_msg_header header
;
4781 /* status of the request */
4785 /* Per STA Class B Statistics. Class B statistics are STA TX/RX stats
4786 * provided to FW from Host via periodic messages */
4787 struct stats_class_b_ind
{
4788 struct wcn36xx_hal_msg_header header
;
4790 /* Duration over which this stats was collected */
4796 u32 tx_bytes_pushed
;
4797 u32 tx_packets_pushed
;
4801 u32 rx_packets_rcvd
;
4805 /* WCN36XX_HAL_PRINT_REG_INFO_IND */
4806 struct wcn36xx_hal_print_reg_info_ind
{
4807 struct wcn36xx_hal_msg_header header
;
4819 #endif /* _HAL_H_ */