2 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
4 * Copyright (c) 2006-2012 Wilocity
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 * This file contains the definitions of the WMI protocol specified in the
21 * Wireless Module Interface (WMI) for the Qualcomm
22 * 60 GHz wireless solution.
23 * It includes definitions of all the commands and events.
24 * Commands are messages from the host to the WM.
25 * Events are messages from the WM to the host.
27 * This is an automatically generated file.
30 #ifndef __WILOCITY_WMI_H__
31 #define __WILOCITY_WMI_H__
33 #define WMI_DEFAULT_ASSOC_STA (1)
34 #define WMI_MAC_LEN (6)
35 #define WMI_PROX_RANGE_NUM (3)
36 #define WMI_MAX_LOSS_DMG_BEACONS (20)
37 #define MAX_NUM_OF_SECTORS (128)
38 #define WMI_SCHED_MAX_ALLOCS_PER_CMD (4)
39 #define WMI_RF_DTYPE_LENGTH (3)
40 #define WMI_RF_ETYPE_LENGTH (3)
41 #define WMI_RF_RX2TX_LENGTH (3)
42 #define WMI_RF_ETYPE_VAL_PER_RANGE (5)
43 /* DTYPE configuration array size
44 * must always be kept equal to (WMI_RF_DTYPE_LENGTH+1)
46 #define WMI_RF_DTYPE_CONF_LENGTH (4)
47 /* ETYPE configuration array size
48 * must always be kept equal to
49 * (WMI_RF_ETYPE_LENGTH+WMI_RF_ETYPE_VAL_PER_RANGE)
51 #define WMI_RF_ETYPE_CONF_LENGTH (8)
52 /* RX2TX configuration array size
53 * must always be kept equal to (WMI_RF_RX2TX_LENGTH+1)
55 #define WMI_RF_RX2TX_CONF_LENGTH (4)
56 /* Qos configuration */
57 #define WMI_QOS_NUM_OF_PRIORITY (4)
58 #define WMI_QOS_MIN_DEFAULT_WEIGHT (10)
59 #define WMI_QOS_VRING_SLOT_MIN_MS (2)
60 #define WMI_QOS_VRING_SLOT_MAX_MS (10)
61 /* (WMI_QOS_MIN_DEFAULT_WEIGHT * WMI_QOS_VRING_SLOT_MAX_MS /
62 * WMI_QOS_VRING_SLOT_MIN_MS)
64 #define WMI_QOS_MAX_WEIGHT 50
65 #define WMI_QOS_SET_VIF_PRIORITY (0xFF)
66 #define WMI_QOS_DEFAULT_PRIORITY (WMI_QOS_NUM_OF_PRIORITY)
69 * used for commands and events
73 FIRST_DBG_MID_ID
= 0x10,
74 LAST_DBG_MID_ID
= 0xFE,
79 * Each ID maps to a bit in a 32-bit bitmask value provided by the FW to
82 enum wmi_fw_capability
{
83 WMI_FW_CAPABILITY_FTM
= 0,
84 WMI_FW_CAPABILITY_PS_CONFIG
= 1,
85 WMI_FW_CAPABILITY_RF_SECTORS
= 2,
86 WMI_FW_CAPABILITY_MGMT_RETRY_LIMIT
= 3,
87 WMI_FW_CAPABILITY_AP_SME_OFFLOAD_PARTIAL
= 4,
88 WMI_FW_CAPABILITY_WMI_ONLY
= 5,
89 WMI_FW_CAPABILITY_THERMAL_THROTTLING
= 7,
90 WMI_FW_CAPABILITY_D3_SUSPEND
= 8,
91 WMI_FW_CAPABILITY_LONG_RANGE
= 9,
92 WMI_FW_CAPABILITY_FIXED_SCHEDULING
= 10,
93 WMI_FW_CAPABILITY_MULTI_DIRECTED_OMNIS
= 11,
94 WMI_FW_CAPABILITY_RSSI_REPORTING
= 12,
95 WMI_FW_CAPABILITY_SET_SILENT_RSSI_TABLE
= 13,
96 WMI_FW_CAPABILITY_LO_POWER_CALIB_FROM_OTP
= 14,
97 WMI_FW_CAPABILITY_PNO
= 15,
98 WMI_FW_CAPABILITY_REF_CLOCK_CONTROL
= 18,
99 WMI_FW_CAPABILITY_AP_SME_OFFLOAD_NONE
= 19,
100 WMI_FW_CAPABILITY_MULTI_VIFS
= 20,
101 WMI_FW_CAPABILITY_FT_ROAMING
= 21,
102 WMI_FW_CAPABILITY_BACK_WIN_SIZE_64
= 22,
103 WMI_FW_CAPABILITY_AMSDU
= 23,
104 WMI_FW_CAPABILITY_RAW_MODE
= 24,
105 WMI_FW_CAPABILITY_TX_REQ_EXT
= 25,
106 WMI_FW_CAPABILITY_CHANNEL_4
= 26,
107 WMI_FW_CAPABILITY_MAX
,
118 /* List of Commands */
119 enum wmi_command_id
{
120 WMI_CONNECT_CMDID
= 0x01,
121 WMI_DISCONNECT_CMDID
= 0x03,
122 WMI_DISCONNECT_STA_CMDID
= 0x04,
123 WMI_START_SCHED_SCAN_CMDID
= 0x05,
124 WMI_STOP_SCHED_SCAN_CMDID
= 0x06,
125 WMI_START_SCAN_CMDID
= 0x07,
126 WMI_SET_BSS_FILTER_CMDID
= 0x09,
127 WMI_SET_PROBED_SSID_CMDID
= 0x0A,
129 WMI_SET_LISTEN_INT_CMDID
= 0x0B,
130 WMI_FT_AUTH_CMDID
= 0x0C,
131 WMI_FT_REASSOC_CMDID
= 0x0D,
132 WMI_UPDATE_FT_IES_CMDID
= 0x0E,
133 WMI_BCON_CTRL_CMDID
= 0x0F,
134 WMI_ADD_CIPHER_KEY_CMDID
= 0x16,
135 WMI_DELETE_CIPHER_KEY_CMDID
= 0x17,
136 WMI_PCP_CONF_CMDID
= 0x18,
137 WMI_SET_APPIE_CMDID
= 0x3F,
138 WMI_SET_WSC_STATUS_CMDID
= 0x41,
139 WMI_PXMT_RANGE_CFG_CMDID
= 0x42,
140 WMI_PXMT_SNR2_RANGE_CFG_CMDID
= 0x43,
141 WMI_RADAR_GENERAL_CONFIG_CMDID
= 0x100,
142 WMI_RADAR_CONFIG_SELECT_CMDID
= 0x101,
143 WMI_RADAR_PARAMS_CONFIG_CMDID
= 0x102,
144 WMI_RADAR_SET_MODE_CMDID
= 0x103,
145 WMI_RADAR_CONTROL_CMDID
= 0x104,
146 WMI_RADAR_PCI_CONTROL_CMDID
= 0x105,
147 WMI_MEM_READ_CMDID
= 0x800,
148 WMI_MEM_WR_CMDID
= 0x801,
149 WMI_ECHO_CMDID
= 0x803,
150 WMI_DEEP_ECHO_CMDID
= 0x804,
151 WMI_CONFIG_MAC_CMDID
= 0x805,
153 WMI_CONFIG_PHY_DEBUG_CMDID
= 0x806,
154 WMI_ADD_DEBUG_TX_PCKT_CMDID
= 0x808,
155 WMI_PHY_GET_STATISTICS_CMDID
= 0x809,
157 WMI_FS_TUNE_CMDID
= 0x80A,
159 WMI_CORR_MEASURE_CMDID
= 0x80B,
160 WMI_READ_RSSI_CMDID
= 0x80C,
161 WMI_TEMP_SENSE_CMDID
= 0x80E,
162 WMI_DC_CALIB_CMDID
= 0x80F,
164 WMI_SEND_TONE_CMDID
= 0x810,
166 WMI_IQ_TX_CALIB_CMDID
= 0x811,
168 WMI_IQ_RX_CALIB_CMDID
= 0x812,
169 WMI_SET_WORK_MODE_CMDID
= 0x815,
170 WMI_LO_LEAKAGE_CALIB_CMDID
= 0x816,
171 WMI_LO_POWER_CALIB_FROM_OTP_CMDID
= 0x817,
172 WMI_SILENT_RSSI_CALIB_CMDID
= 0x81D,
174 WMI_RF_RX_TEST_CMDID
= 0x81E,
175 WMI_CFG_RX_CHAIN_CMDID
= 0x820,
176 WMI_VRING_CFG_CMDID
= 0x821,
177 WMI_BCAST_VRING_CFG_CMDID
= 0x822,
178 WMI_RING_BA_EN_CMDID
= 0x823,
179 WMI_RING_BA_DIS_CMDID
= 0x824,
180 WMI_RCP_ADDBA_RESP_CMDID
= 0x825,
181 WMI_RCP_DELBA_CMDID
= 0x826,
182 WMI_SET_SSID_CMDID
= 0x827,
183 WMI_GET_SSID_CMDID
= 0x828,
184 WMI_SET_PCP_CHANNEL_CMDID
= 0x829,
185 WMI_GET_PCP_CHANNEL_CMDID
= 0x82A,
186 WMI_SW_TX_REQ_CMDID
= 0x82B,
187 /* Event is shared between WMI_SW_TX_REQ_CMDID and
188 * WMI_SW_TX_REQ_EXT_CMDID
190 WMI_SW_TX_REQ_EXT_CMDID
= 0x82C,
191 WMI_MLME_PUSH_CMDID
= 0x835,
192 WMI_BEAMFORMING_MGMT_CMDID
= 0x836,
193 WMI_BF_TXSS_MGMT_CMDID
= 0x837,
194 WMI_BF_SM_MGMT_CMDID
= 0x838,
195 WMI_BF_RXSS_MGMT_CMDID
= 0x839,
196 WMI_BF_TRIG_CMDID
= 0x83A,
197 WMI_RCP_ADDBA_RESP_EDMA_CMDID
= 0x83B,
198 WMI_LINK_MAINTAIN_CFG_WRITE_CMDID
= 0x842,
199 WMI_LINK_MAINTAIN_CFG_READ_CMDID
= 0x843,
200 WMI_SET_SECTORS_CMDID
= 0x849,
201 WMI_MAINTAIN_PAUSE_CMDID
= 0x850,
202 WMI_MAINTAIN_RESUME_CMDID
= 0x851,
203 WMI_RS_MGMT_CMDID
= 0x852,
204 WMI_RF_MGMT_CMDID
= 0x853,
205 WMI_RF_XPM_READ_CMDID
= 0x856,
206 WMI_RF_XPM_WRITE_CMDID
= 0x857,
207 WMI_LED_CFG_CMDID
= 0x858,
208 WMI_SET_CONNECT_SNR_THR_CMDID
= 0x85B,
209 WMI_SET_ACTIVE_SILENT_RSSI_TABLE_CMDID
= 0x85C,
210 WMI_RF_PWR_ON_DELAY_CMDID
= 0x85D,
211 WMI_SET_HIGH_POWER_TABLE_PARAMS_CMDID
= 0x85E,
212 WMI_FIXED_SCHEDULING_UL_CONFIG_CMDID
= 0x85F,
213 /* Performance monitoring commands */
214 WMI_BF_CTRL_CMDID
= 0x862,
215 WMI_NOTIFY_REQ_CMDID
= 0x863,
216 WMI_GET_STATUS_CMDID
= 0x864,
217 WMI_GET_RF_STATUS_CMDID
= 0x866,
218 WMI_GET_BASEBAND_TYPE_CMDID
= 0x867,
219 WMI_VRING_SWITCH_TIMING_CONFIG_CMDID
= 0x868,
220 WMI_UNIT_TEST_CMDID
= 0x900,
221 WMI_FLASH_READ_CMDID
= 0x902,
222 WMI_FLASH_WRITE_CMDID
= 0x903,
223 /* Power management */
224 WMI_TRAFFIC_SUSPEND_CMDID
= 0x904,
225 WMI_TRAFFIC_RESUME_CMDID
= 0x905,
227 WMI_P2P_CFG_CMDID
= 0x910,
228 WMI_PORT_ALLOCATE_CMDID
= 0x911,
229 WMI_PORT_DELETE_CMDID
= 0x912,
230 WMI_POWER_MGMT_CFG_CMDID
= 0x913,
231 WMI_START_LISTEN_CMDID
= 0x914,
232 WMI_START_SEARCH_CMDID
= 0x915,
233 WMI_DISCOVERY_START_CMDID
= 0x916,
234 WMI_DISCOVERY_STOP_CMDID
= 0x917,
235 WMI_PCP_START_CMDID
= 0x918,
236 WMI_PCP_STOP_CMDID
= 0x919,
237 WMI_GET_PCP_FACTOR_CMDID
= 0x91B,
238 /* Power Save Configuration Commands */
239 WMI_PS_DEV_PROFILE_CFG_CMDID
= 0x91C,
240 WMI_RS_ENABLE_CMDID
= 0x91E,
241 WMI_RS_CFG_EX_CMDID
= 0x91F,
242 WMI_GET_DETAILED_RS_RES_EX_CMDID
= 0x920,
244 WMI_RS_CFG_CMDID
= 0x921,
246 WMI_GET_DETAILED_RS_RES_CMDID
= 0x922,
247 WMI_AOA_MEAS_CMDID
= 0x923,
248 WMI_BRP_SET_ANT_LIMIT_CMDID
= 0x924,
249 WMI_SET_MGMT_RETRY_LIMIT_CMDID
= 0x930,
250 WMI_GET_MGMT_RETRY_LIMIT_CMDID
= 0x931,
251 WMI_NEW_STA_CMDID
= 0x935,
252 WMI_DEL_STA_CMDID
= 0x936,
253 WMI_SET_THERMAL_THROTTLING_CFG_CMDID
= 0x940,
254 WMI_GET_THERMAL_THROTTLING_CFG_CMDID
= 0x941,
255 /* Read Power Save profile type */
256 WMI_PS_DEV_PROFILE_CFG_READ_CMDID
= 0x942,
257 WMI_TSF_SYNC_CMDID
= 0x973,
258 WMI_TOF_SESSION_START_CMDID
= 0x991,
259 WMI_TOF_GET_CAPABILITIES_CMDID
= 0x992,
260 WMI_TOF_SET_LCR_CMDID
= 0x993,
261 WMI_TOF_SET_LCI_CMDID
= 0x994,
262 WMI_TOF_CFG_RESPONDER_CMDID
= 0x996,
263 WMI_TOF_SET_TX_RX_OFFSET_CMDID
= 0x997,
264 WMI_TOF_GET_TX_RX_OFFSET_CMDID
= 0x998,
265 WMI_TOF_CHANNEL_INFO_CMDID
= 0x999,
266 WMI_GET_RF_SECTOR_PARAMS_CMDID
= 0x9A0,
267 WMI_SET_RF_SECTOR_PARAMS_CMDID
= 0x9A1,
268 WMI_GET_SELECTED_RF_SECTOR_INDEX_CMDID
= 0x9A2,
269 WMI_SET_SELECTED_RF_SECTOR_INDEX_CMDID
= 0x9A3,
270 WMI_SET_RF_SECTOR_ON_CMDID
= 0x9A4,
271 WMI_PRIO_TX_SECTORS_ORDER_CMDID
= 0x9A5,
272 WMI_PRIO_TX_SECTORS_NUMBER_CMDID
= 0x9A6,
273 WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_CMDID
= 0x9A7,
275 WMI_BF_CONTROL_CMDID
= 0x9AA,
276 WMI_BF_CONTROL_EX_CMDID
= 0x9AB,
277 WMI_TX_STATUS_RING_ADD_CMDID
= 0x9C0,
278 WMI_RX_STATUS_RING_ADD_CMDID
= 0x9C1,
279 WMI_TX_DESC_RING_ADD_CMDID
= 0x9C2,
280 WMI_RX_DESC_RING_ADD_CMDID
= 0x9C3,
281 WMI_BCAST_DESC_RING_ADD_CMDID
= 0x9C4,
282 WMI_CFG_DEF_RX_OFFLOAD_CMDID
= 0x9C5,
283 WMI_SCHEDULING_SCHEME_CMDID
= 0xA01,
284 WMI_FIXED_SCHEDULING_CONFIG_CMDID
= 0xA02,
285 WMI_ENABLE_FIXED_SCHEDULING_CMDID
= 0xA03,
286 WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_CMDID
= 0xA04,
287 WMI_SET_LONG_RANGE_CONFIG_CMDID
= 0xA05,
288 WMI_GET_ASSOC_LIST_CMDID
= 0xA06,
289 WMI_GET_CCA_INDICATIONS_CMDID
= 0xA07,
290 WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_CMDID
= 0xA08,
291 WMI_INTERNAL_FW_IOCTL_CMDID
= 0xA0B,
292 WMI_LINK_STATS_CMDID
= 0xA0C,
293 WMI_SET_GRANT_MCS_CMDID
= 0xA0E,
294 WMI_SET_AP_SLOT_SIZE_CMDID
= 0xA0F,
295 WMI_SET_VRING_PRIORITY_WEIGHT_CMDID
= 0xA10,
296 WMI_SET_VRING_PRIORITY_CMDID
= 0xA11,
297 WMI_SET_MAC_ADDRESS_CMDID
= 0xF003,
298 WMI_ABORT_SCAN_CMDID
= 0xF007,
299 WMI_SET_PROMISCUOUS_MODE_CMDID
= 0xF041,
301 WMI_GET_PMK_CMDID
= 0xF048,
302 WMI_SET_PASSPHRASE_CMDID
= 0xF049,
304 WMI_SEND_ASSOC_RES_CMDID
= 0xF04A,
306 WMI_SET_ASSOC_REQ_RELAY_CMDID
= 0xF04B,
307 WMI_MAC_ADDR_REQ_CMDID
= 0xF04D,
308 WMI_FW_VER_CMDID
= 0xF04E,
309 WMI_PMC_CMDID
= 0xF04F,
312 /* WMI_CONNECT_CMDID */
313 enum wmi_network_type
{
314 WMI_NETTYPE_INFRA
= 0x01,
315 WMI_NETTYPE_ADHOC
= 0x02,
316 WMI_NETTYPE_ADHOC_CREATOR
= 0x04,
317 WMI_NETTYPE_AP
= 0x10,
318 WMI_NETTYPE_P2P
= 0x20,
320 WMI_NETTYPE_WBE
= 0x40,
323 enum wmi_dot11_auth_mode
{
324 WMI_AUTH11_OPEN
= 0x01,
325 WMI_AUTH11_SHARED
= 0x02,
326 WMI_AUTH11_LEAP
= 0x04,
327 WMI_AUTH11_WSC
= 0x08,
331 WMI_AUTH_NONE
= 0x01,
333 WMI_AUTH_WPA2
= 0x04,
334 WMI_AUTH_WPA_PSK
= 0x08,
335 WMI_AUTH_WPA2_PSK
= 0x10,
336 WMI_AUTH_WPA_CCKM
= 0x20,
337 WMI_AUTH_WPA2_CCKM
= 0x40,
340 enum wmi_crypto_type
{
341 WMI_CRYPT_NONE
= 0x01,
342 WMI_CRYPT_AES_GCMP
= 0x20,
345 enum wmi_connect_ctrl_flag_bits
{
346 WMI_CONNECT_ASSOC_POLICY_USER
= 0x01,
347 WMI_CONNECT_SEND_REASSOC
= 0x02,
348 WMI_CONNECT_IGNORE_WPA_GROUP_CIPHER
= 0x04,
349 WMI_CONNECT_PROFILE_MATCH_DONE
= 0x08,
350 WMI_CONNECT_IGNORE_AAC_BEACON
= 0x10,
351 WMI_CONNECT_CSA_FOLLOW_BSS
= 0x20,
352 WMI_CONNECT_DO_WPA_OFFLOAD
= 0x40,
353 WMI_CONNECT_DO_NOT_DEAUTH
= 0x80,
356 #define WMI_MAX_SSID_LEN (32)
358 /* WMI_CONNECT_CMDID */
359 struct wmi_connect_cmd
{
363 u8 pairwise_crypto_type
;
364 u8 pairwise_crypto_len
;
365 u8 group_crypto_type
;
368 u8 ssid
[WMI_MAX_SSID_LEN
];
371 u8 bssid
[WMI_MAC_LEN
];
373 u8 dst_mac
[WMI_MAC_LEN
];
377 /* WMI_DISCONNECT_STA_CMDID */
378 struct wmi_disconnect_sta_cmd
{
379 u8 dst_mac
[WMI_MAC_LEN
];
380 __le16 disconnect_reason
;
383 #define WMI_MAX_KEY_INDEX (3)
384 #define WMI_MAX_KEY_LEN (32)
385 #define WMI_PASSPHRASE_LEN (64)
387 /* WMI_SET_PASSPHRASE_CMDID */
388 struct wmi_set_passphrase_cmd
{
389 u8 ssid
[WMI_MAX_SSID_LEN
];
390 u8 passphrase
[WMI_PASSPHRASE_LEN
];
395 /* WMI_ADD_CIPHER_KEY_CMDID */
397 WMI_KEY_USE_PAIRWISE
= 0x00,
398 WMI_KEY_USE_RX_GROUP
= 0x01,
399 WMI_KEY_USE_TX_GROUP
= 0x02,
402 struct wmi_add_cipher_key_cmd
{
405 /* enum wmi_key_usage */
408 /* key replay sequence counter */
410 u8 key
[WMI_MAX_KEY_LEN
];
411 /* Additional Key Control information */
416 /* WMI_DELETE_CIPHER_KEY_CMDID */
417 struct wmi_delete_cipher_key_cmd
{
422 /* WMI_START_SCAN_CMDID
424 * Start L1 scan operation
427 * - WMI_RX_MGMT_PACKET_EVENTID - for every probe resp.
428 * - WMI_SCAN_COMPLETE_EVENTID
431 WMI_ACTIVE_SCAN
= 0x00,
432 WMI_SHORT_SCAN
= 0x01,
433 WMI_PASSIVE_SCAN
= 0x02,
434 WMI_DIRECT_SCAN
= 0x03,
435 WMI_LONG_SCAN
= 0x04,
438 /* WMI_START_SCAN_CMDID */
439 struct wmi_start_scan_cmd
{
440 u8 direct_scan_mac_addr
[WMI_MAC_LEN
];
441 /* run scan with discovery beacon. Relevant for ACTIVE scan only. */
444 /* Max duration in the home channel(ms) */
446 /* Time interval between scans (ms) */
447 __le32 force_scan_interval
;
448 /* enum wmi_scan_type */
450 /* how many channels follow */
463 #define WMI_MAX_PNO_SSID_NUM (16)
464 #define WMI_MAX_CHANNEL_NUM (6)
465 #define WMI_MAX_PLANS_NUM (2)
467 /* WMI_START_SCHED_SCAN_CMDID */
468 struct wmi_sched_scan_ssid_match
{
470 u8 ssid
[WMI_MAX_SSID_LEN
];
473 u8 add_ssid_to_probe
;
477 /* WMI_START_SCHED_SCAN_CMDID */
478 struct wmi_sched_scan_plan
{
480 __le16 num_of_iterations
;
483 /* WMI_START_SCHED_SCAN_CMDID */
484 struct wmi_start_sched_scan_cmd
{
485 struct wmi_sched_scan_ssid_match ssid_for_match
[WMI_MAX_PNO_SSID_NUM
];
487 s8 min_rssi_threshold
;
488 u8 channel_list
[WMI_MAX_CHANNEL_NUM
];
491 __le16 initial_delay_sec
;
492 struct wmi_sched_scan_plan scan_plans
[WMI_MAX_PLANS_NUM
];
495 /* WMI_FT_AUTH_CMDID */
496 struct wmi_ft_auth_cmd
{
497 u8 bssid
[WMI_MAC_LEN
];
498 /* enum wmi_channel */
500 /* enum wmi_channel */
505 /* WMI_FT_REASSOC_CMDID */
506 struct wmi_ft_reassoc_cmd
{
507 u8 bssid
[WMI_MAC_LEN
];
511 /* WMI_UPDATE_FT_IES_CMDID */
512 struct wmi_update_ft_ies_cmd
{
513 /* Length of the FT IEs */
519 /* WMI_SET_PROBED_SSID_CMDID */
520 #define MAX_PROBED_SSID_INDEX (3)
524 WMI_SSID_FLAG_DISABLE
= 0x00,
525 /* probes specified ssid */
526 WMI_SSID_FLAG_SPECIFIC
= 0x01,
527 /* probes for any ssid */
528 WMI_SSID_FLAG_ANY
= 0x02,
531 struct wmi_probed_ssid_cmd
{
532 /* 0 to MAX_PROBED_SSID_INDEX */
534 /* enum wmi_ssid_flag */
537 u8 ssid
[WMI_MAX_SSID_LEN
];
540 /* WMI_SET_APPIE_CMDID
541 * Add Application specified IE to a management frame
543 #define WMI_MAX_IE_LEN (1024)
546 enum wmi_mgmt_frame_type
{
547 WMI_FRAME_BEACON
= 0x00,
548 WMI_FRAME_PROBE_REQ
= 0x01,
549 WMI_FRAME_PROBE_RESP
= 0x02,
550 WMI_FRAME_ASSOC_REQ
= 0x03,
551 WMI_FRAME_ASSOC_RESP
= 0x04,
552 WMI_NUM_MGMT_FRAME
= 0x05,
555 struct wmi_set_appie_cmd
{
556 /* enum wmi_mgmt_frame_type */
559 /* Length of the IE to be added to MGMT frame */
564 /* WMI_PXMT_RANGE_CFG_CMDID */
565 struct wmi_pxmt_range_cfg_cmd
{
566 u8 dst_mac
[WMI_MAC_LEN
];
570 /* WMI_PXMT_SNR2_RANGE_CFG_CMDID */
571 struct wmi_pxmt_snr2_range_cfg_cmd
{
575 /* WMI_RADAR_GENERAL_CONFIG_CMDID */
576 struct wmi_radar_general_config_cmd
{
577 /* Number of pulses (CIRs) in FW FIFO to initiate pulses transfer
580 __le32 fifo_watermark
;
581 /* In unit of us, in the range [100, 1000000] */
583 /* Valid in the range [1, 32768], 0xFFFF means infinite */
585 /* In unit of 330Mhz clk, in the range [4, 2000]*330 */
587 /* In the range of [1,4096] */
589 /* Number of taps after cTap per CIR */
591 /* Offset from the main tap (0 = zero-distance). In the range of [0,
594 u8 first_sample_offset
;
595 /* Number of Pulses to average, 1, 2, 4, 8 */
597 /* Number of adjacent taps to average, 1, 2, 4, 8 */
599 /* The index to config general params */
604 /* WMI_RADAR_CONFIG_SELECT_CMDID */
605 struct wmi_radar_config_select_cmd
{
606 /* Select the general params index to use */
609 /* 0 means don't update burst_active_vector */
610 __le32 burst_active_vector
;
611 /* 0 means don't update pulse_active_vector */
612 __le32 pulse_active_vector
;
615 /* WMI_RADAR_PARAMS_CONFIG_CMDID */
616 struct wmi_radar_params_config_cmd
{
617 /* The burst index selected to config */
619 /* 0-not active, 1-active */
621 /* The pulse index selected to config */
623 /* 0-not active, 1-active */
625 /* TX RF to use on current pulse */
628 /* Offset from calibrated value.(expected to be 0)(value is row in
632 /* expected to be 0 */
634 /* RX RF to use on current pulse */
637 /* Offset from calibrated value.(expected to be 0)(value is row in
641 /* Value in dB.(expected to be 0) */
643 /* Offset from calibrated value.(expected to be 0) */
648 /* WMI_RADAR_SET_MODE_CMDID */
649 struct wmi_radar_set_mode_cmd
{
650 /* 0-disable/1-enable */
652 /* enum wmi_channel */
654 /* In the range of [0,7], 0xff means use default */
656 /* In the range of [0,7], 0xff means use default */
660 /* WMI_RADAR_CONTROL_CMDID */
661 struct wmi_radar_control_cmd
{
667 /* WMI_RADAR_PCI_CONTROL_CMDID */
668 struct wmi_radar_pci_control_cmd
{
669 /* pcie host buffer start address */
671 /* pcie host control block address */
672 __le64 control_block_addr
;
673 /* pcie host buffer size */
678 /* WMI_RF_MGMT_CMDID */
679 enum wmi_rf_mgmt_type
{
680 WMI_RF_MGMT_W_DISABLE
= 0x00,
681 WMI_RF_MGMT_W_ENABLE
= 0x01,
682 WMI_RF_MGMT_GET_STATUS
= 0x02,
685 /* WMI_BF_CONTROL_CMDID */
686 enum wmi_bf_triggers
{
687 WMI_BF_TRIGGER_RS_MCS1_TH_FAILURE
= 0x01,
688 WMI_BF_TRIGGER_RS_MCS1_NO_BACK_FAILURE
= 0x02,
689 WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP
= 0x04,
690 WMI_BF_TRIGGER_MAX_BACK_FAILURE
= 0x08,
691 WMI_BF_TRIGGER_FW
= 0x10,
692 WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_KEEP_ALIVE
= 0x20,
693 WMI_BF_TRIGGER_AOA
= 0x40,
694 WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_UPM
= 0x80,
697 /* WMI_RF_MGMT_CMDID */
698 struct wmi_rf_mgmt_cmd
{
702 /* WMI_CORR_MEASURE_CMDID */
703 struct wmi_corr_measure_cmd
{
705 __le32 length_samples
;
709 /* WMI_SET_SSID_CMDID */
710 struct wmi_set_ssid_cmd
{
712 u8 ssid
[WMI_MAX_SSID_LEN
];
715 /* WMI_SET_PCP_CHANNEL_CMDID */
716 struct wmi_set_pcp_channel_cmd
{
721 /* WMI_BCON_CTRL_CMDID */
722 struct wmi_bcon_ctrl_cmd
{
723 __le16 bcon_interval
;
727 u8 pcp_max_assoc_sta
;
728 u8 disable_sec_offload
;
732 /* A-BFT length override if non-0 */
737 /* WMI_PORT_ALLOCATE_CMDID */
742 WMI_PORT_P2P_DEV
= 0x03,
743 WMI_PORT_P2P_CLIENT
= 0x04,
744 WMI_PORT_P2P_GO
= 0x05,
747 /* WMI_PORT_ALLOCATE_CMDID */
748 struct wmi_port_allocate_cmd
{
754 /* WMI_PORT_DELETE_CMDID */
755 struct wmi_port_delete_cmd
{
760 /* WMI_TRAFFIC_SUSPEND_CMD wakeup trigger bit mask values */
761 enum wmi_wakeup_trigger
{
762 WMI_WAKEUP_TRIGGER_UCAST
= 0x01,
763 WMI_WAKEUP_TRIGGER_BCAST
= 0x02,
766 /* WMI_TRAFFIC_SUSPEND_CMDID */
767 struct wmi_traffic_suspend_cmd
{
768 /* Bit vector: bit[0] - wake on Unicast, bit[1] - wake on Broadcast */
772 /* WMI_P2P_CFG_CMDID */
773 enum wmi_discovery_mode
{
774 WMI_DISCOVERY_MODE_NON_OFFLOAD
= 0x00,
775 WMI_DISCOVERY_MODE_OFFLOAD
= 0x01,
776 WMI_DISCOVERY_MODE_PEER2PEER
= 0x02,
779 struct wmi_p2p_cfg_cmd
{
780 /* enum wmi_discovery_mode */
783 /* base to listen/search duration calculation */
784 __le16 bcon_interval
;
787 /* WMI_POWER_MGMT_CFG_CMDID */
788 enum wmi_power_source_type
{
789 WMI_POWER_SOURCE_BATTERY
= 0x00,
790 WMI_POWER_SOURCE_OTHER
= 0x01,
793 struct wmi_power_mgmt_cfg_cmd
{
794 /* enum wmi_power_source_type */
799 /* WMI_PCP_START_CMDID */
800 enum wmi_ap_sme_offload_mode
{
801 /* Full AP SME in FW */
802 WMI_AP_SME_OFFLOAD_FULL
= 0x00,
803 /* Probe AP SME in FW */
804 WMI_AP_SME_OFFLOAD_PARTIAL
= 0x01,
806 WMI_AP_SME_OFFLOAD_NONE
= 0x02,
809 /* WMI_PCP_START_CMDID */
810 struct wmi_pcp_start_cmd
{
811 __le16 bcon_interval
;
812 u8 pcp_max_assoc_sta
;
815 /* enum wmi_channel WMI_CHANNEL_9..WMI_CHANNEL_12 */
819 /* A-BFT length override if non-0 */
821 /* enum wmi_ap_sme_offload_mode_e */
822 u8 ap_sme_offload_mode
;
824 /* enum wmi_channel WMI_CHANNEL_1..WMI_CHANNEL_6; for EDMG this is
825 * the primary channel number
828 u8 disable_sec_offload
;
832 /* WMI_SW_TX_REQ_CMDID */
833 struct wmi_sw_tx_req_cmd
{
834 u8 dst_mac
[WMI_MAC_LEN
];
839 /* WMI_SW_TX_REQ_EXT_CMDID */
840 struct wmi_sw_tx_req_ext_cmd
{
841 u8 dst_mac
[WMI_MAC_LEN
];
844 /* Channel to use, 0xFF for currently active channel */
850 /* WMI_VRING_SWITCH_TIMING_CONFIG_CMDID */
851 struct wmi_vring_switch_timing_config_cmd
{
852 /* Set vring timing configuration:
854 * defined interval for vring switch
856 __le32 interval_usec
;
857 /* vring inactivity threshold */
861 struct wmi_sw_ring_cfg
{
862 __le64 ring_mem_base
;
864 __le16 max_mpdu_size
;
867 /* wmi_vring_cfg_schd */
868 struct wmi_vring_cfg_schd
{
873 enum wmi_vring_cfg_encap_trans_type
{
874 WMI_VRING_ENC_TYPE_802_3
= 0x00,
875 WMI_VRING_ENC_TYPE_NATIVE_WIFI
= 0x01,
876 WMI_VRING_ENC_TYPE_NONE
= 0x02,
879 enum wmi_vring_cfg_ds_cfg
{
880 WMI_VRING_DS_PBSS
= 0x00,
881 WMI_VRING_DS_STATION
= 0x01,
882 WMI_VRING_DS_AP
= 0x02,
883 WMI_VRING_DS_ADDR4
= 0x03,
886 enum wmi_vring_cfg_nwifi_ds_trans_type
{
887 WMI_NWIFI_TX_TRANS_MODE_NO
= 0x00,
888 WMI_NWIFI_TX_TRANS_MODE_AP2PBSS
= 0x01,
889 WMI_NWIFI_TX_TRANS_MODE_STA2PBSS
= 0x02,
892 enum wmi_vring_cfg_schd_params_priority
{
893 WMI_SCH_PRIO_REGULAR
= 0x00,
894 WMI_SCH_PRIO_HIGH
= 0x01,
897 #define CIDXTID_EXTENDED_CID_TID (0xFF)
898 #define CIDXTID_CID_POS (0)
899 #define CIDXTID_CID_LEN (4)
900 #define CIDXTID_CID_MSK (0xF)
901 #define CIDXTID_TID_POS (4)
902 #define CIDXTID_TID_LEN (4)
903 #define CIDXTID_TID_MSK (0xF0)
904 #define VRING_CFG_MAC_CTRL_LIFETIME_EN_POS (0)
905 #define VRING_CFG_MAC_CTRL_LIFETIME_EN_LEN (1)
906 #define VRING_CFG_MAC_CTRL_LIFETIME_EN_MSK (0x1)
907 #define VRING_CFG_MAC_CTRL_AGGR_EN_POS (1)
908 #define VRING_CFG_MAC_CTRL_AGGR_EN_LEN (1)
909 #define VRING_CFG_MAC_CTRL_AGGR_EN_MSK (0x2)
910 #define VRING_CFG_TO_RESOLUTION_VALUE_POS (0)
911 #define VRING_CFG_TO_RESOLUTION_VALUE_LEN (6)
912 #define VRING_CFG_TO_RESOLUTION_VALUE_MSK (0x3F)
914 struct wmi_vring_cfg
{
915 struct wmi_sw_ring_cfg tx_sw_ring
;
918 /* Used for cid less than 8. For higher cid set
919 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
925 u8 nwifi_ds_trans_type
;
929 struct wmi_vring_cfg_schd schd_params
;
930 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
932 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
934 /* Update the vring's priority for Qos purpose. Set to
935 * WMI_QOS_DEFAULT_PRIORITY to use MID's QoS priority
941 enum wmi_vring_cfg_cmd_action
{
942 WMI_VRING_CMD_ADD
= 0x00,
943 WMI_VRING_CMD_MODIFY
= 0x01,
944 WMI_VRING_CMD_DELETE
= 0x02,
947 /* WMI_VRING_CFG_CMDID */
948 struct wmi_vring_cfg_cmd
{
950 struct wmi_vring_cfg vring_cfg
;
953 struct wmi_bcast_vring_cfg
{
954 struct wmi_sw_ring_cfg tx_sw_ring
;
960 u8 nwifi_ds_trans_type
;
963 /* WMI_BCAST_VRING_CFG_CMDID */
964 struct wmi_bcast_vring_cfg_cmd
{
966 struct wmi_bcast_vring_cfg vring_cfg
;
969 struct wmi_edma_ring_cfg
{
970 __le64 ring_mem_base
;
971 /* size in number of items */
977 enum wmi_rx_msg_type
{
978 WMI_RX_MSG_TYPE_COMPRESSED
= 0x00,
979 WMI_RX_MSG_TYPE_EXTENDED
= 0x01,
982 struct wmi_tx_status_ring_add_cmd
{
983 struct wmi_edma_ring_cfg ring_cfg
;
988 struct wmi_rx_status_ring_add_cmd
{
989 struct wmi_edma_ring_cfg ring_cfg
;
991 /* wmi_rx_msg_type */
996 struct wmi_cfg_def_rx_offload_cmd
{
997 __le16 max_msdu_size
;
998 __le16 max_rx_pl_per_desc
;
1000 u8 l2_802_3_offload_ctrl
;
1001 u8 l2_nwifi_offload_ctrl
;
1003 u8 nwifi_ds_trans_type
;
1008 struct wmi_tx_desc_ring_add_cmd
{
1009 struct wmi_edma_ring_cfg ring_cfg
;
1010 __le16 max_msdu_size
;
1011 /* Correlated status ring (0-63) */
1015 u8 encap_trans_type
;
1020 struct wmi_vring_cfg_schd schd_params
;
1023 struct wmi_rx_desc_ring_add_cmd
{
1024 struct wmi_edma_ring_cfg ring_cfg
;
1026 /* 0-63 status rings */
1029 __le64 sw_tail_host_addr
;
1032 struct wmi_bcast_desc_ring_add_cmd
{
1033 struct wmi_edma_ring_cfg ring_cfg
;
1034 __le16 max_msdu_size
;
1035 /* Correlated status ring (0-63) */
1037 u8 encap_trans_type
;
1041 /* WMI_LO_POWER_CALIB_FROM_OTP_CMDID */
1042 struct wmi_lo_power_calib_from_otp_cmd
{
1043 /* index to read from OTP. zero based */
1048 /* WMI_LO_POWER_CALIB_FROM_OTP_EVENTID */
1049 struct wmi_lo_power_calib_from_otp_event
{
1055 /* WMI_RING_BA_EN_CMDID */
1056 struct wmi_ring_ba_en_cmd
{
1064 /* WMI_RING_BA_DIS_CMDID */
1065 struct wmi_ring_ba_dis_cmd
{
1071 /* WMI_NOTIFY_REQ_CMDID */
1072 struct wmi_notify_req_cmd
{
1077 __le32 interval_usec
;
1084 /* WMI_CFG_RX_CHAIN_CMDID */
1085 enum wmi_sniffer_cfg_mode
{
1086 WMI_SNIFFER_OFF
= 0x00,
1087 WMI_SNIFFER_ON
= 0x01,
1090 /* WMI_SILENT_RSSI_TABLE */
1091 enum wmi_silent_rssi_table
{
1092 RF_TEMPERATURE_CALIB_DEFAULT_DB
= 0x00,
1093 RF_TEMPERATURE_CALIB_HIGH_POWER_DB
= 0x01,
1096 /* WMI_SILENT_RSSI_STATUS */
1097 enum wmi_silent_rssi_status
{
1098 SILENT_RSSI_SUCCESS
= 0x00,
1099 SILENT_RSSI_FAILURE
= 0x01,
1102 /* WMI_SET_ACTIVE_SILENT_RSSI_TABLE_CMDID */
1103 struct wmi_set_active_silent_rssi_table_cmd
{
1104 /* enum wmi_silent_rssi_table */
1108 enum wmi_sniffer_cfg_phy_info_mode
{
1109 WMI_SNIFFER_PHY_INFO_DISABLED
= 0x00,
1110 WMI_SNIFFER_PHY_INFO_ENABLED
= 0x01,
1113 enum wmi_sniffer_cfg_phy_support
{
1114 WMI_SNIFFER_CP
= 0x00,
1115 WMI_SNIFFER_DP
= 0x01,
1116 WMI_SNIFFER_BOTH_PHYS
= 0x02,
1119 /* wmi_sniffer_cfg */
1120 struct wmi_sniffer_cfg
{
1121 /* enum wmi_sniffer_cfg_mode */
1123 /* enum wmi_sniffer_cfg_phy_info_mode */
1124 __le32 phy_info_mode
;
1125 /* enum wmi_sniffer_cfg_phy_support */
1131 enum wmi_cfg_rx_chain_cmd_action
{
1132 WMI_RX_CHAIN_ADD
= 0x00,
1133 WMI_RX_CHAIN_DEL
= 0x01,
1136 enum wmi_cfg_rx_chain_cmd_decap_trans_type
{
1137 WMI_DECAP_TYPE_802_3
= 0x00,
1138 WMI_DECAP_TYPE_NATIVE_WIFI
= 0x01,
1139 WMI_DECAP_TYPE_NONE
= 0x02,
1142 enum wmi_cfg_rx_chain_cmd_nwifi_ds_trans_type
{
1143 WMI_NWIFI_RX_TRANS_MODE_NO
= 0x00,
1144 WMI_NWIFI_RX_TRANS_MODE_PBSS2AP
= 0x01,
1145 WMI_NWIFI_RX_TRANS_MODE_PBSS2STA
= 0x02,
1148 enum wmi_cfg_rx_chain_cmd_reorder_type
{
1149 WMI_RX_HW_REORDER
= 0x00,
1150 WMI_RX_SW_REORDER
= 0x01,
1153 #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_POS (0)
1154 #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_LEN (1)
1155 #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_MSK (0x1)
1156 #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_POS (1)
1157 #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_LEN (1)
1158 #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_MSK (0x2)
1159 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_POS (0)
1160 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_LEN (1)
1161 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_MSK (0x1)
1162 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_POS (1)
1163 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_LEN (1)
1164 #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_MSK (0x2)
1165 #define L3_L4_CTRL_IPV4_CHECKSUM_EN_POS (0)
1166 #define L3_L4_CTRL_IPV4_CHECKSUM_EN_LEN (1)
1167 #define L3_L4_CTRL_IPV4_CHECKSUM_EN_MSK (0x1)
1168 #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_POS (1)
1169 #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_LEN (1)
1170 #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_MSK (0x2)
1171 #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_POS (0)
1172 #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_LEN (1)
1173 #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_MSK (0x1)
1174 #define RING_CTRL_OVERRIDE_WB_THRSH_POS (1)
1175 #define RING_CTRL_OVERRIDE_WB_THRSH_LEN (1)
1176 #define RING_CTRL_OVERRIDE_WB_THRSH_MSK (0x2)
1177 #define RING_CTRL_OVERRIDE_ITR_THRSH_POS (2)
1178 #define RING_CTRL_OVERRIDE_ITR_THRSH_LEN (1)
1179 #define RING_CTRL_OVERRIDE_ITR_THRSH_MSK (0x4)
1180 #define RING_CTRL_OVERRIDE_HOST_THRSH_POS (3)
1181 #define RING_CTRL_OVERRIDE_HOST_THRSH_LEN (1)
1182 #define RING_CTRL_OVERRIDE_HOST_THRSH_MSK (0x8)
1184 /* WMI_CFG_RX_CHAIN_CMDID */
1185 struct wmi_cfg_rx_chain_cmd
{
1187 struct wmi_sw_ring_cfg rx_sw_ring
;
1189 u8 decap_trans_type
;
1190 u8 l2_802_3_offload_ctrl
;
1191 u8 l2_nwifi_offload_ctrl
;
1193 u8 nwifi_ds_trans_type
;
1196 __le16 prefetch_thrsh
;
1202 struct wmi_sniffer_cfg sniffer_cfg
;
1203 __le16 max_rx_pl_per_desc
;
1206 /* WMI_RCP_ADDBA_RESP_CMDID */
1207 struct wmi_rcp_addba_resp_cmd
{
1208 /* Used for cid less than 8. For higher cid set
1209 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
1214 /* ieee80211_ba_parameterset field to send */
1215 __le16 ba_param_set
;
1217 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1219 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1224 /* WMI_RCP_ADDBA_RESP_EDMA_CMDID */
1225 struct wmi_rcp_addba_resp_edma_cmd
{
1231 /* ieee80211_ba_parameterset field to send */
1232 __le16 ba_param_set
;
1235 /* wmi_cfg_rx_chain_cmd_reorder_type */
1239 /* WMI_RCP_DELBA_CMDID */
1240 struct wmi_rcp_delba_cmd
{
1241 /* Used for cid less than 8. For higher cid set
1242 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
1247 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1249 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1254 /* WMI_RCP_ADDBA_REQ_CMDID */
1255 struct wmi_rcp_addba_req_cmd
{
1256 /* Used for cid less than 8. For higher cid set
1257 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
1261 /* ieee80211_ba_parameterset field as it received */
1262 __le16 ba_param_set
;
1264 /* ieee80211_ba_seqstrl field as it received */
1266 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1268 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
1273 /* WMI_SET_MAC_ADDRESS_CMDID */
1274 struct wmi_set_mac_address_cmd
{
1275 u8 mac
[WMI_MAC_LEN
];
1281 * Returned event: WMI_ECHO_RSP_EVENTID
1283 struct wmi_echo_cmd
{
1287 /* WMI_DEEP_ECHO_CMDID
1288 * Check FW and uCode is alive
1289 * Returned event: WMI_DEEP_ECHO_RSP_EVENTID
1291 struct wmi_deep_echo_cmd
{
1295 /* WMI_RF_PWR_ON_DELAY_CMDID
1296 * set FW time parameters used through RF resetting
1297 * RF reset consists of bringing its power down for a period of time, then
1298 * bringing the power up
1299 * Returned event: WMI_RF_PWR_ON_DELAY_RSP_EVENTID
1301 struct wmi_rf_pwr_on_delay_cmd
{
1302 /* time in usec the FW waits after bringing the RF PWR down,
1305 __le16 down_delay_usec
;
1306 /* time in usec the FW waits after bringing the RF PWR up,
1309 __le16 up_delay_usec
;
1312 /* WMI_SET_HIGH_POWER_TABLE_PARAMS_CMDID
1313 * This API controls the Tx and Rx gain over temperature.
1314 * It controls the Tx D-type, Rx D-type and Rx E-type amplifiers.
1315 * It also controls the Tx gain index, by controlling the Rx to Tx gain index
1317 * The control is divided by 3 temperature values to 4 temperature ranges.
1318 * Each parameter uses its own temperature values.
1319 * Returned event: WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID
1321 struct wmi_set_high_power_table_params_cmd
{
1322 /* Temperature range for Tx D-type parameters */
1323 u8 tx_dtype_temp
[WMI_RF_DTYPE_LENGTH
];
1325 /* Tx D-type values to be used for each temperature range */
1326 __le32 tx_dtype_conf
[WMI_RF_DTYPE_CONF_LENGTH
];
1327 /* Temperature range for Tx E-type parameters */
1328 u8 tx_etype_temp
[WMI_RF_ETYPE_LENGTH
];
1330 /* Tx E-type values to be used for each temperature range.
1331 * The last 4 values of any range are the first 4 values of the next
1334 __le32 tx_etype_conf
[WMI_RF_ETYPE_CONF_LENGTH
];
1335 /* Temperature range for Rx D-type parameters */
1336 u8 rx_dtype_temp
[WMI_RF_DTYPE_LENGTH
];
1338 /* Rx D-type values to be used for each temperature range */
1339 __le32 rx_dtype_conf
[WMI_RF_DTYPE_CONF_LENGTH
];
1340 /* Temperature range for Rx E-type parameters */
1341 u8 rx_etype_temp
[WMI_RF_ETYPE_LENGTH
];
1343 /* Rx E-type values to be used for each temperature range.
1344 * The last 4 values of any range are the first 4 values of the next
1347 __le32 rx_etype_conf
[WMI_RF_ETYPE_CONF_LENGTH
];
1348 /* Temperature range for rx_2_tx_offs parameters */
1349 u8 rx_2_tx_temp
[WMI_RF_RX2TX_LENGTH
];
1351 /* Rx to Tx gain index offset */
1352 s8 rx_2_tx_offs
[WMI_RF_RX2TX_CONF_LENGTH
];
1355 /* WMI_FIXED_SCHEDULING_UL_CONFIG_CMDID
1356 * This API sets rd parameter per mcs.
1357 * Relevant only in Fixed Scheduling mode.
1358 * Returned event: WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID
1360 struct wmi_fixed_scheduling_ul_config_cmd
{
1361 /* Use mcs -1 to set for every mcs */
1363 /* Number of frames with rd bit set in a single virtual slot */
1364 u8 rd_count_per_slot
;
1368 /* CMD: WMI_RF_XPM_READ_CMDID */
1369 struct wmi_rf_xpm_read_cmd
{
1372 /* XPM bit start address in range [0,8191]bits - rounded by FW to
1375 __le32 xpm_bit_address
;
1379 /* CMD: WMI_RF_XPM_WRITE_CMDID */
1380 struct wmi_rf_xpm_write_cmd
{
1383 /* XPM bit start address in range [0,8191]bits - rounded by FW to
1386 __le32 xpm_bit_address
;
1388 /* boolean flag indicating whether FW should verify the write
1393 /* actual size=num_bytes */
1397 /* WMI_TEMP_SENSE_CMDID
1399 * Measure MAC and radio temperatures
1401 * Possible modes for temperature measurement
1403 enum wmi_temperature_measure_mode
{
1404 TEMPERATURE_USE_OLD_VALUE
= 0x01,
1405 TEMPERATURE_MEASURE_NOW
= 0x02,
1408 /* WMI_TEMP_SENSE_CMDID */
1409 struct wmi_temp_sense_cmd
{
1410 __le32 measure_baseband_en
;
1411 __le32 measure_rf_en
;
1412 __le32 measure_mode
;
1416 WMI_PMC_ALLOCATE
= 0x00,
1417 WMI_PMC_RELEASE
= 0x01,
1421 struct wmi_pmc_cmd
{
1422 /* enum wmi_pmc_cmd_op_type */
1429 enum wmi_aoa_meas_type
{
1430 WMI_AOA_PHASE_MEAS
= 0x00,
1431 WMI_AOA_PHASE_AMP_MEAS
= 0x01,
1434 /* WMI_AOA_MEAS_CMDID */
1435 struct wmi_aoa_meas_cmd
{
1436 u8 mac_addr
[WMI_MAC_LEN
];
1443 /* enum wmi_aoa_meas_type */
1445 __le32 meas_rf_mask
;
1448 /* WMI_SET_MGMT_RETRY_LIMIT_CMDID */
1449 struct wmi_set_mgmt_retry_limit_cmd
{
1450 /* MAC retransmit limit for mgmt frames */
1451 u8 mgmt_retry_limit
;
1452 /* alignment to 32b */
1456 /* Zones: HIGH, MAX, CRITICAL */
1457 #define WMI_NUM_OF_TT_ZONES (3)
1459 struct wmi_tt_zone_limits
{
1460 /* Above this temperature this zone is active */
1461 u8 temperature_high
;
1462 /* Below this temperature the adjacent lower zone is active */
1467 /* Struct used for both configuration and status commands of thermal
1470 struct wmi_tt_data
{
1471 /* Enable/Disable TT algorithm for baseband */
1474 /* Define zones for baseband */
1475 struct wmi_tt_zone_limits bb_zones
[WMI_NUM_OF_TT_ZONES
];
1476 /* Enable/Disable TT algorithm for radio */
1479 /* Define zones for all radio chips */
1480 struct wmi_tt_zone_limits rf_zones
[WMI_NUM_OF_TT_ZONES
];
1483 /* WMI_SET_THERMAL_THROTTLING_CFG_CMDID */
1484 struct wmi_set_thermal_throttling_cfg_cmd
{
1486 struct wmi_tt_data tt_data
;
1489 /* WMI_NEW_STA_CMDID */
1490 struct wmi_new_sta_cmd
{
1491 u8 dst_mac
[WMI_MAC_LEN
];
1495 /* WMI_DEL_STA_CMDID */
1496 struct wmi_del_sta_cmd
{
1497 u8 dst_mac
[WMI_MAC_LEN
];
1498 __le16 disconnect_reason
;
1501 enum wmi_tof_burst_duration
{
1502 WMI_TOF_BURST_DURATION_250_USEC
= 2,
1503 WMI_TOF_BURST_DURATION_500_USEC
= 3,
1504 WMI_TOF_BURST_DURATION_1_MSEC
= 4,
1505 WMI_TOF_BURST_DURATION_2_MSEC
= 5,
1506 WMI_TOF_BURST_DURATION_4_MSEC
= 6,
1507 WMI_TOF_BURST_DURATION_8_MSEC
= 7,
1508 WMI_TOF_BURST_DURATION_16_MSEC
= 8,
1509 WMI_TOF_BURST_DURATION_32_MSEC
= 9,
1510 WMI_TOF_BURST_DURATION_64_MSEC
= 10,
1511 WMI_TOF_BURST_DURATION_128_MSEC
= 11,
1512 WMI_TOF_BURST_DURATION_NO_PREFERENCES
= 15,
1515 enum wmi_tof_session_start_flags
{
1516 WMI_TOF_SESSION_START_FLAG_SECURED
= 0x1,
1517 WMI_TOF_SESSION_START_FLAG_ASAP
= 0x2,
1518 WMI_TOF_SESSION_START_FLAG_LCI_REQ
= 0x4,
1519 WMI_TOF_SESSION_START_FLAG_LCR_REQ
= 0x8,
1522 /* WMI_TOF_SESSION_START_CMDID */
1523 struct wmi_ftm_dest_info
{
1525 /* wmi_tof_session_start_flags_e */
1528 u8 num_of_ftm_per_burst
;
1529 u8 num_of_bursts_exp
;
1530 /* wmi_tof_burst_duration_e */
1532 /* Burst Period indicate interval between two consecutive burst
1533 * instances, in units of 100 ms
1535 __le16 burst_period
;
1536 u8 dst_mac
[WMI_MAC_LEN
];
1538 u8 num_burst_per_aoa_meas
;
1541 /* WMI_TOF_SESSION_START_CMDID */
1542 struct wmi_tof_session_start_cmd
{
1548 struct wmi_ftm_dest_info ftm_dest_info
[0];
1551 /* WMI_TOF_CFG_RESPONDER_CMDID */
1552 struct wmi_tof_cfg_responder_cmd
{
1557 enum wmi_tof_channel_info_report_type
{
1558 WMI_TOF_CHANNEL_INFO_TYPE_CIR
= 0x1,
1559 WMI_TOF_CHANNEL_INFO_TYPE_RSSI
= 0x2,
1560 WMI_TOF_CHANNEL_INFO_TYPE_SNR
= 0x4,
1561 WMI_TOF_CHANNEL_INFO_TYPE_DEBUG_DATA
= 0x8,
1562 WMI_TOF_CHANNEL_INFO_TYPE_VENDOR_SPECIFIC
= 0x10,
1565 /* WMI_TOF_CHANNEL_INFO_CMDID */
1566 struct wmi_tof_channel_info_cmd
{
1567 /* wmi_tof_channel_info_report_type_e */
1568 __le32 channel_info_report_request
;
1571 /* WMI_TOF_SET_TX_RX_OFFSET_CMDID */
1572 struct wmi_tof_set_tx_rx_offset_cmd
{
1573 /* TX delay offset */
1575 /* RX delay offset */
1577 /* Mask to define which RFs to configure. 0 means all RFs */
1579 /* Offset to strongest tap of CIR */
1583 /* WMI_TOF_GET_TX_RX_OFFSET_CMDID */
1584 struct wmi_tof_get_tx_rx_offset_cmd
{
1585 /* rf index to read offsets from */
1590 /* WMI_FIXED_SCHEDULING_CONFIG_CMDID */
1591 struct wmi_map_mcs_to_schd_params
{
1593 /* time in usec from start slot to start tx flow - default 15 */
1594 u8 time_in_usec_before_initiate_tx
;
1595 /* RD enable - if yes consider RD according to STA mcs */
1598 /* time in usec from start slot to stop vring */
1599 __le16 time_in_usec_to_stop_vring
;
1600 /* timeout to force flush from start of slot */
1601 __le16 flush_to_in_usec
;
1602 /* per mcs the mac buffer limit size in bytes */
1603 __le32 mac_buff_size_in_bytes
;
1606 /* WMI_FIXED_SCHEDULING_CONFIG_COMPLETE_EVENTID */
1607 struct wmi_fixed_scheduling_config_complete_event
{
1613 /* This value exists for backwards compatibility only.
1614 * Do not use it in new commands.
1615 * Use dynamic arrays where possible.
1617 #define WMI_NUM_MCS (13)
1619 /* WMI_FIXED_SCHEDULING_CONFIG_CMDID */
1620 struct wmi_fixed_scheduling_config_cmd
{
1621 /* defaults in the SAS table */
1622 struct wmi_map_mcs_to_schd_params mcs_to_schd_params_map
[WMI_NUM_MCS
];
1623 /* default 150 uSec */
1624 __le16 max_sta_rd_ppdu_duration_in_usec
;
1625 /* default 300 uSec */
1626 __le16 max_sta_grant_ppdu_duration_in_usec
;
1627 /* default 1000 uSec */
1628 __le16 assoc_slot_duration_in_usec
;
1629 /* default 360 uSec */
1630 __le16 virtual_slot_duration_in_usec
;
1631 /* each this field value slots start with grant frame to the station
1634 u8 number_of_ap_slots_for_initiate_grant
;
1638 /* WMI_ENABLE_FIXED_SCHEDULING_CMDID */
1639 struct wmi_enable_fixed_scheduling_cmd
{
1643 /* WMI_ENABLE_FIXED_SCHEDULING_COMPLETE_EVENTID */
1644 struct wmi_enable_fixed_scheduling_complete_event
{
1650 /* WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_CMDID */
1651 struct wmi_set_multi_directed_omnis_config_cmd
{
1652 /* number of directed omnis at destination AP */
1653 u8 dest_ap_num_directed_omnis
;
1657 /* WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_EVENTID */
1658 struct wmi_set_multi_directed_omnis_config_event
{
1664 /* WMI_RADAR_GENERAL_CONFIG_EVENTID */
1665 struct wmi_radar_general_config_event
{
1671 /* WMI_RADAR_CONFIG_SELECT_EVENTID */
1672 struct wmi_radar_config_select_event
{
1676 /* In unit of bytes */
1678 /* In unit of bytes */
1682 /* WMI_RADAR_PARAMS_CONFIG_EVENTID */
1683 struct wmi_radar_params_config_event
{
1689 /* WMI_RADAR_SET_MODE_EVENTID */
1690 struct wmi_radar_set_mode_event
{
1696 /* WMI_RADAR_CONTROL_EVENTID */
1697 struct wmi_radar_control_event
{
1703 /* WMI_RADAR_PCI_CONTROL_EVENTID */
1704 struct wmi_radar_pci_control_event
{
1710 /* WMI_SET_LONG_RANGE_CONFIG_CMDID */
1711 struct wmi_set_long_range_config_cmd
{
1715 /* WMI_SET_LONG_RANGE_CONFIG_COMPLETE_EVENTID */
1716 struct wmi_set_long_range_config_complete_event
{
1722 /* payload max size is 1024 bytes: max event buffer size (1044) - WMI headers
1723 * (16) - prev struct field size (4)
1725 #define WMI_MAX_IOCTL_PAYLOAD_SIZE (1024)
1726 #define WMI_MAX_IOCTL_REPLY_PAYLOAD_SIZE (1024)
1727 #define WMI_MAX_INTERNAL_EVENT_PAYLOAD_SIZE (1024)
1729 enum wmi_internal_fw_ioctl_code
{
1730 WMI_INTERNAL_FW_CODE_NONE
= 0x0,
1731 WMI_INTERNAL_FW_CODE_QCOM
= 0x1,
1734 /* WMI_INTERNAL_FW_IOCTL_CMDID */
1735 struct wmi_internal_fw_ioctl_cmd
{
1736 /* enum wmi_internal_fw_ioctl_code */
1739 /* payload max size is WMI_MAX_IOCTL_PAYLOAD_SIZE
1740 * Must be the last member of the struct
1745 /* WMI_INTERNAL_FW_IOCTL_EVENTID */
1746 struct wmi_internal_fw_ioctl_event
{
1751 /* payload max size is WMI_MAX_IOCTL_REPLY_PAYLOAD_SIZE
1752 * Must be the last member of the struct
1757 /* WMI_INTERNAL_FW_EVENT_EVENTID */
1758 struct wmi_internal_fw_event_event
{
1761 /* payload max size is WMI_MAX_INTERNAL_EVENT_PAYLOAD_SIZE
1762 * Must be the last member of the struct
1767 /* WMI_SET_VRING_PRIORITY_WEIGHT_CMDID */
1768 struct wmi_set_vring_priority_weight_cmd
{
1769 /* Array of weights. Valid values are
1770 * WMI_QOS_MIN_DEFAULT_WEIGHT...WMI_QOS_MAX_WEIGHT. Weight #0 is
1771 * hard-coded WMI_QOS_MIN_WEIGHT. This array provide the weights
1778 /* WMI_SET_VRING_PRIORITY_CMDID */
1779 struct wmi_vring_priority
{
1781 /* Weight index. Valid value is 0-3 */
1786 /* WMI_SET_VRING_PRIORITY_CMDID */
1787 struct wmi_set_vring_priority_cmd
{
1788 /* number of entries in vring_priority. Set to
1789 * WMI_QOS_SET_VIF_PRIORITY to update the VIF's priority, and there
1790 * will be only one entry in vring_priority
1794 struct wmi_vring_priority vring_priority
[0];
1797 /* WMI_BF_CONTROL_CMDID - deprecated */
1798 struct wmi_bf_control_cmd
{
1799 /* wmi_bf_triggers */
1802 /* DISABLED = 0, ENABLED = 1 , DRY_RUN = 2 */
1804 /* DISABLED = 0, ENABLED = 1, DRY_RUN = 2 */
1806 /* Max cts threshold (correspond to
1807 * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP)
1809 u8 bf_trigger_max_cts_failure_thr
;
1810 /* Max cts threshold in dense (correspond to
1811 * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP)
1813 u8 bf_trigger_max_cts_failure_dense_thr
;
1814 /* Max b-ack threshold (correspond to
1815 * WMI_BF_TRIGGER_MAX_BACK_FAILURE)
1817 u8 bf_trigger_max_back_failure_thr
;
1818 /* Max b-ack threshold in dense (correspond to
1819 * WMI_BF_TRIGGER_MAX_BACK_FAILURE)
1821 u8 bf_trigger_max_back_failure_dense_thr
;
1823 /* Wrong sectors threshold */
1824 __le32 wrong_sector_bis_thr
;
1825 /* BOOL to enable/disable long term trigger */
1826 u8 long_term_enable
;
1827 /* 1 = Update long term thresholds from the long_term_mbps_th_tbl and
1828 * long_term_trig_timeout_per_mcs arrays, 0 = Ignore
1830 u8 long_term_update_thr
;
1831 /* Long term throughput threshold [Mbps] */
1832 u8 long_term_mbps_th_tbl
[WMI_NUM_MCS
];
1834 /* Long term timeout threshold table [msec] */
1835 __le16 long_term_trig_timeout_per_mcs
[WMI_NUM_MCS
];
1839 /* BF configuration for each MCS */
1840 struct wmi_bf_control_ex_mcs
{
1841 /* Long term throughput threshold [Mbps] */
1842 u8 long_term_mbps_th_tbl
;
1844 /* Long term timeout threshold table [msec] */
1845 __le16 long_term_trig_timeout_per_mcs
;
1848 /* WMI_BF_CONTROL_EX_CMDID */
1849 struct wmi_bf_control_ex_cmd
{
1850 /* wmi_bf_triggers */
1852 /* enum wmi_edmg_tx_mode */
1854 /* DISABLED = 0, ENABLED = 1 , DRY_RUN = 2 */
1856 /* DISABLED = 0, ENABLED = 1, DRY_RUN = 2 */
1858 /* Max cts threshold (correspond to
1859 * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP)
1861 u8 bf_trigger_max_cts_failure_thr
;
1862 /* Max cts threshold in dense (correspond to
1863 * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP)
1865 u8 bf_trigger_max_cts_failure_dense_thr
;
1866 /* Max b-ack threshold (correspond to
1867 * WMI_BF_TRIGGER_MAX_BACK_FAILURE)
1869 u8 bf_trigger_max_back_failure_thr
;
1870 /* Max b-ack threshold in dense (correspond to
1871 * WMI_BF_TRIGGER_MAX_BACK_FAILURE)
1873 u8 bf_trigger_max_back_failure_dense_thr
;
1875 /* Wrong sectors threshold */
1876 __le32 wrong_sector_bis_thr
;
1877 /* BOOL to enable/disable long term trigger */
1878 u8 long_term_enable
;
1879 /* 1 = Update long term thresholds from the long_term_mbps_th_tbl and
1880 * long_term_trig_timeout_per_mcs arrays, 0 = Ignore
1882 u8 long_term_update_thr
;
1883 u8 each_mcs_cfg_size
;
1885 /* Configuration for each MCS */
1886 struct wmi_bf_control_ex_mcs each_mcs_cfg
[0];
1889 /* WMI_LINK_STATS_CMD */
1890 enum wmi_link_stats_action
{
1891 WMI_LINK_STATS_SNAPSHOT
= 0x00,
1892 WMI_LINK_STATS_PERIODIC
= 0x01,
1893 WMI_LINK_STATS_STOP_PERIODIC
= 0x02,
1896 /* WMI_LINK_STATS_EVENT record identifiers */
1897 enum wmi_link_stats_record_type
{
1898 WMI_LINK_STATS_TYPE_BASIC
= 0x01,
1899 WMI_LINK_STATS_TYPE_GLOBAL
= 0x02,
1902 /* WMI_LINK_STATS_CMDID */
1903 struct wmi_link_stats_cmd
{
1904 /* bitmask of required record types
1905 * (wmi_link_stats_record_type_e)
1907 __le32 record_type_mask
;
1908 /* 0xff for all cids */
1910 /* wmi_link_stats_action_e */
1913 /* range = 100 - 10000 */
1914 __le32 interval_msec
;
1917 /* WMI_SET_GRANT_MCS_CMDID */
1918 struct wmi_set_grant_mcs_cmd
{
1923 /* WMI_SET_AP_SLOT_SIZE_CMDID */
1924 struct wmi_set_ap_slot_size_cmd
{
1929 * List of Events (target to host)
1932 WMI_READY_EVENTID
= 0x1001,
1933 WMI_CONNECT_EVENTID
= 0x1002,
1934 WMI_DISCONNECT_EVENTID
= 0x1003,
1935 WMI_START_SCHED_SCAN_EVENTID
= 0x1005,
1936 WMI_STOP_SCHED_SCAN_EVENTID
= 0x1006,
1937 WMI_SCHED_SCAN_RESULT_EVENTID
= 0x1007,
1938 WMI_SCAN_COMPLETE_EVENTID
= 0x100A,
1939 WMI_REPORT_STATISTICS_EVENTID
= 0x100B,
1940 WMI_FT_AUTH_STATUS_EVENTID
= 0x100C,
1941 WMI_FT_REASSOC_STATUS_EVENTID
= 0x100D,
1942 WMI_RADAR_GENERAL_CONFIG_EVENTID
= 0x1100,
1943 WMI_RADAR_CONFIG_SELECT_EVENTID
= 0x1101,
1944 WMI_RADAR_PARAMS_CONFIG_EVENTID
= 0x1102,
1945 WMI_RADAR_SET_MODE_EVENTID
= 0x1103,
1946 WMI_RADAR_CONTROL_EVENTID
= 0x1104,
1947 WMI_RADAR_PCI_CONTROL_EVENTID
= 0x1105,
1948 WMI_RD_MEM_RSP_EVENTID
= 0x1800,
1949 WMI_FW_READY_EVENTID
= 0x1801,
1950 WMI_EXIT_FAST_MEM_ACC_MODE_EVENTID
= 0x200,
1951 WMI_ECHO_RSP_EVENTID
= 0x1803,
1952 WMI_DEEP_ECHO_RSP_EVENTID
= 0x1804,
1954 WMI_FS_TUNE_DONE_EVENTID
= 0x180A,
1956 WMI_CORR_MEASURE_EVENTID
= 0x180B,
1957 WMI_READ_RSSI_EVENTID
= 0x180C,
1958 WMI_TEMP_SENSE_DONE_EVENTID
= 0x180E,
1959 WMI_DC_CALIB_DONE_EVENTID
= 0x180F,
1961 WMI_IQ_TX_CALIB_DONE_EVENTID
= 0x1811,
1963 WMI_IQ_RX_CALIB_DONE_EVENTID
= 0x1812,
1964 WMI_SET_WORK_MODE_DONE_EVENTID
= 0x1815,
1965 WMI_LO_LEAKAGE_CALIB_DONE_EVENTID
= 0x1816,
1966 WMI_LO_POWER_CALIB_FROM_OTP_EVENTID
= 0x1817,
1967 WMI_SILENT_RSSI_CALIB_DONE_EVENTID
= 0x181D,
1969 WMI_RF_RX_TEST_DONE_EVENTID
= 0x181E,
1970 WMI_CFG_RX_CHAIN_DONE_EVENTID
= 0x1820,
1971 WMI_VRING_CFG_DONE_EVENTID
= 0x1821,
1972 WMI_BA_STATUS_EVENTID
= 0x1823,
1973 WMI_RCP_ADDBA_REQ_EVENTID
= 0x1824,
1974 WMI_RCP_ADDBA_RESP_SENT_EVENTID
= 0x1825,
1975 WMI_DELBA_EVENTID
= 0x1826,
1976 WMI_GET_SSID_EVENTID
= 0x1828,
1977 WMI_GET_PCP_CHANNEL_EVENTID
= 0x182A,
1978 /* Event is shared between WMI_SW_TX_REQ_CMDID and
1979 * WMI_SW_TX_REQ_EXT_CMDID
1981 WMI_SW_TX_COMPLETE_EVENTID
= 0x182B,
1982 WMI_BEAMFORMING_MGMT_DONE_EVENTID
= 0x1836,
1983 WMI_BF_TXSS_MGMT_DONE_EVENTID
= 0x1837,
1984 WMI_BF_RXSS_MGMT_DONE_EVENTID
= 0x1839,
1985 WMI_RS_MGMT_DONE_EVENTID
= 0x1852,
1986 WMI_RF_MGMT_STATUS_EVENTID
= 0x1853,
1987 WMI_BF_SM_MGMT_DONE_EVENTID
= 0x1838,
1988 WMI_RX_MGMT_PACKET_EVENTID
= 0x1840,
1989 WMI_TX_MGMT_PACKET_EVENTID
= 0x1841,
1990 WMI_LINK_MAINTAIN_CFG_WRITE_DONE_EVENTID
= 0x1842,
1991 WMI_LINK_MAINTAIN_CFG_READ_DONE_EVENTID
= 0x1843,
1992 WMI_RF_XPM_READ_RESULT_EVENTID
= 0x1856,
1993 WMI_RF_XPM_WRITE_RESULT_EVENTID
= 0x1857,
1994 WMI_LED_CFG_DONE_EVENTID
= 0x1858,
1995 WMI_SET_SILENT_RSSI_TABLE_DONE_EVENTID
= 0x185C,
1996 WMI_RF_PWR_ON_DELAY_RSP_EVENTID
= 0x185D,
1997 WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID
= 0x185E,
1998 WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID
= 0x185F,
1999 /* Performance monitoring events */
2000 WMI_DATA_PORT_OPEN_EVENTID
= 0x1860,
2001 WMI_WBE_LINK_DOWN_EVENTID
= 0x1861,
2002 WMI_BF_CTRL_DONE_EVENTID
= 0x1862,
2003 WMI_NOTIFY_REQ_DONE_EVENTID
= 0x1863,
2004 WMI_GET_STATUS_DONE_EVENTID
= 0x1864,
2005 WMI_RING_EN_EVENTID
= 0x1865,
2006 WMI_GET_RF_STATUS_EVENTID
= 0x1866,
2007 WMI_GET_BASEBAND_TYPE_EVENTID
= 0x1867,
2008 WMI_VRING_SWITCH_TIMING_CONFIG_EVENTID
= 0x1868,
2009 WMI_UNIT_TEST_EVENTID
= 0x1900,
2010 WMI_FLASH_READ_DONE_EVENTID
= 0x1902,
2011 WMI_FLASH_WRITE_DONE_EVENTID
= 0x1903,
2012 /* Power management */
2013 WMI_TRAFFIC_SUSPEND_EVENTID
= 0x1904,
2014 WMI_TRAFFIC_RESUME_EVENTID
= 0x1905,
2016 WMI_P2P_CFG_DONE_EVENTID
= 0x1910,
2017 WMI_PORT_ALLOCATED_EVENTID
= 0x1911,
2018 WMI_PORT_DELETED_EVENTID
= 0x1912,
2019 WMI_LISTEN_STARTED_EVENTID
= 0x1914,
2020 WMI_SEARCH_STARTED_EVENTID
= 0x1915,
2021 WMI_DISCOVERY_STARTED_EVENTID
= 0x1916,
2022 WMI_DISCOVERY_STOPPED_EVENTID
= 0x1917,
2023 WMI_PCP_STARTED_EVENTID
= 0x1918,
2024 WMI_PCP_STOPPED_EVENTID
= 0x1919,
2025 WMI_PCP_FACTOR_EVENTID
= 0x191A,
2026 /* Power Save Configuration Events */
2027 WMI_PS_DEV_PROFILE_CFG_EVENTID
= 0x191C,
2028 WMI_RS_ENABLE_EVENTID
= 0x191E,
2029 WMI_RS_CFG_EX_EVENTID
= 0x191F,
2030 WMI_GET_DETAILED_RS_RES_EX_EVENTID
= 0x1920,
2032 WMI_RS_CFG_DONE_EVENTID
= 0x1921,
2034 WMI_GET_DETAILED_RS_RES_EVENTID
= 0x1922,
2035 WMI_AOA_MEAS_EVENTID
= 0x1923,
2036 WMI_BRP_SET_ANT_LIMIT_EVENTID
= 0x1924,
2037 WMI_SET_MGMT_RETRY_LIMIT_EVENTID
= 0x1930,
2038 WMI_GET_MGMT_RETRY_LIMIT_EVENTID
= 0x1931,
2039 WMI_SET_THERMAL_THROTTLING_CFG_EVENTID
= 0x1940,
2040 WMI_GET_THERMAL_THROTTLING_CFG_EVENTID
= 0x1941,
2041 /* return the Power Save profile */
2042 WMI_PS_DEV_PROFILE_CFG_READ_EVENTID
= 0x1942,
2043 WMI_TSF_SYNC_STATUS_EVENTID
= 0x1973,
2044 WMI_TOF_SESSION_END_EVENTID
= 0x1991,
2045 WMI_TOF_GET_CAPABILITIES_EVENTID
= 0x1992,
2046 WMI_TOF_SET_LCR_EVENTID
= 0x1993,
2047 WMI_TOF_SET_LCI_EVENTID
= 0x1994,
2048 WMI_TOF_FTM_PER_DEST_RES_EVENTID
= 0x1995,
2049 WMI_TOF_CFG_RESPONDER_EVENTID
= 0x1996,
2050 WMI_TOF_SET_TX_RX_OFFSET_EVENTID
= 0x1997,
2051 WMI_TOF_GET_TX_RX_OFFSET_EVENTID
= 0x1998,
2052 WMI_TOF_CHANNEL_INFO_EVENTID
= 0x1999,
2053 WMI_GET_RF_SECTOR_PARAMS_DONE_EVENTID
= 0x19A0,
2054 WMI_SET_RF_SECTOR_PARAMS_DONE_EVENTID
= 0x19A1,
2055 WMI_GET_SELECTED_RF_SECTOR_INDEX_DONE_EVENTID
= 0x19A2,
2056 WMI_SET_SELECTED_RF_SECTOR_INDEX_DONE_EVENTID
= 0x19A3,
2057 WMI_SET_RF_SECTOR_ON_DONE_EVENTID
= 0x19A4,
2058 WMI_PRIO_TX_SECTORS_ORDER_EVENTID
= 0x19A5,
2059 WMI_PRIO_TX_SECTORS_NUMBER_EVENTID
= 0x19A6,
2060 WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID
= 0x19A7,
2062 WMI_BF_CONTROL_EVENTID
= 0x19AA,
2063 WMI_BF_CONTROL_EX_EVENTID
= 0x19AB,
2064 WMI_TX_STATUS_RING_CFG_DONE_EVENTID
= 0x19C0,
2065 WMI_RX_STATUS_RING_CFG_DONE_EVENTID
= 0x19C1,
2066 WMI_TX_DESC_RING_CFG_DONE_EVENTID
= 0x19C2,
2067 WMI_RX_DESC_RING_CFG_DONE_EVENTID
= 0x19C3,
2068 WMI_CFG_DEF_RX_OFFLOAD_DONE_EVENTID
= 0x19C5,
2069 WMI_SCHEDULING_SCHEME_EVENTID
= 0x1A01,
2070 WMI_FIXED_SCHEDULING_CONFIG_COMPLETE_EVENTID
= 0x1A02,
2071 WMI_ENABLE_FIXED_SCHEDULING_COMPLETE_EVENTID
= 0x1A03,
2072 WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_EVENTID
= 0x1A04,
2073 WMI_SET_LONG_RANGE_CONFIG_COMPLETE_EVENTID
= 0x1A05,
2074 WMI_GET_ASSOC_LIST_RES_EVENTID
= 0x1A06,
2075 WMI_GET_CCA_INDICATIONS_EVENTID
= 0x1A07,
2076 WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_EVENTID
= 0x1A08,
2077 WMI_INTERNAL_FW_EVENT_EVENTID
= 0x1A0A,
2078 WMI_INTERNAL_FW_IOCTL_EVENTID
= 0x1A0B,
2079 WMI_LINK_STATS_CONFIG_DONE_EVENTID
= 0x1A0C,
2080 WMI_LINK_STATS_EVENTID
= 0x1A0D,
2081 WMI_SET_GRANT_MCS_EVENTID
= 0x1A0E,
2082 WMI_SET_AP_SLOT_SIZE_EVENTID
= 0x1A0F,
2083 WMI_SET_VRING_PRIORITY_WEIGHT_EVENTID
= 0x1A10,
2084 WMI_SET_VRING_PRIORITY_EVENTID
= 0x1A11,
2085 WMI_SET_CHANNEL_EVENTID
= 0x9000,
2086 WMI_ASSOC_REQ_EVENTID
= 0x9001,
2087 WMI_EAPOL_RX_EVENTID
= 0x9002,
2088 WMI_MAC_ADDR_RESP_EVENTID
= 0x9003,
2089 WMI_FW_VER_EVENTID
= 0x9004,
2090 WMI_ACS_PASSIVE_SCAN_COMPLETE_EVENTID
= 0x9005,
2091 WMI_INTERNAL_FW_SET_CHANNEL
= 0x9006,
2092 WMI_COMMAND_NOT_SUPPORTED_EVENTID
= 0xFFFF,
2095 /* Events data structures */
2096 enum wmi_fw_status
{
2097 WMI_FW_STATUS_SUCCESS
= 0x00,
2098 WMI_FW_STATUS_FAILURE
= 0x01,
2101 /* WMI_RF_MGMT_STATUS_EVENTID */
2102 enum wmi_rf_status
{
2103 WMI_RF_ENABLED
= 0x00,
2104 WMI_RF_DISABLED_HW
= 0x01,
2105 WMI_RF_DISABLED_SW
= 0x02,
2106 WMI_RF_DISABLED_HW_SW
= 0x03,
2109 /* WMI_RF_MGMT_STATUS_EVENTID */
2110 struct wmi_rf_mgmt_status_event
{
2114 /* WMI_GET_STATUS_DONE_EVENTID */
2115 struct wmi_get_status_done_event
{
2116 __le32 is_associated
;
2119 u8 bssid
[WMI_MAC_LEN
];
2125 u8 ssid
[WMI_MAX_SSID_LEN
];
2130 /* WMI_FW_VER_EVENTID */
2131 struct wmi_fw_ver_event
{
2132 /* FW image version */
2137 /* FW image build time stamp */
2144 /* Boot Loader image version */
2149 /* The number of entries in the FW capabilities array */
2150 u8 fw_capabilities_len
;
2152 /* FW capabilities info
2153 * Must be the last member of the struct
2155 __le32 fw_capabilities
[0];
2158 /* WMI_GET_RF_STATUS_EVENTID */
2167 /* WMI_GET_RF_STATUS_EVENTID */
2168 enum board_file_rf_type
{
2169 BF_RF_MARLON
= 0x00,
2170 BF_RF_SPARROW
= 0x01,
2171 BF_RF_TALYNA1
= 0x02,
2172 BF_RF_TALYNA2
= 0x03,
2175 /* WMI_GET_RF_STATUS_EVENTID */
2179 RF_WRONG_BOARD_FILE
= 0x02,
2182 /* WMI_GET_RF_STATUS_EVENTID */
2183 struct wmi_get_rf_status_event
{
2186 /* attached RFs bit vector */
2187 __le32 attached_rf_vector
;
2188 /* enabled RFs bit vector */
2189 __le32 enabled_rf_vector
;
2190 /* enum rf_status, refers to enabled RFs */
2192 /* enum board file RF type */
2193 __le32 board_file_rf_type
;
2194 /* board file platform type */
2195 __le32 board_file_platform_type
;
2196 /* board file version */
2197 __le32 board_file_version
;
2198 /* enabled XIFs bit vector */
2199 __le32 enabled_xif_vector
;
2203 /* WMI_GET_BASEBAND_TYPE_EVENTID */
2204 enum baseband_type
{
2205 BASEBAND_UNKNOWN
= 0x00,
2206 BASEBAND_SPARROW_M_A0
= 0x03,
2207 BASEBAND_SPARROW_M_A1
= 0x04,
2208 BASEBAND_SPARROW_M_B0
= 0x05,
2209 BASEBAND_SPARROW_M_C0
= 0x06,
2210 BASEBAND_SPARROW_M_D0
= 0x07,
2211 BASEBAND_TALYN_M_A0
= 0x08,
2212 BASEBAND_TALYN_M_B0
= 0x09,
2215 /* WMI_GET_BASEBAND_TYPE_EVENTID */
2216 struct wmi_get_baseband_type_event
{
2217 /* enum baseband_type */
2218 __le32 baseband_type
;
2221 /* WMI_MAC_ADDR_RESP_EVENTID */
2222 struct wmi_mac_addr_resp_event
{
2223 u8 mac
[WMI_MAC_LEN
];
2226 __le32 offload_mode
;
2229 /* WMI_EAPOL_RX_EVENTID */
2230 struct wmi_eapol_rx_event
{
2231 u8 src_mac
[WMI_MAC_LEN
];
2236 /* WMI_READY_EVENTID */
2237 enum wmi_phy_capability
{
2238 WMI_11A_CAPABILITY
= 0x01,
2239 WMI_11G_CAPABILITY
= 0x02,
2240 WMI_11AG_CAPABILITY
= 0x03,
2241 WMI_11NA_CAPABILITY
= 0x04,
2242 WMI_11NG_CAPABILITY
= 0x05,
2243 WMI_11NAG_CAPABILITY
= 0x06,
2244 WMI_11AD_CAPABILITY
= 0x07,
2245 WMI_11N_CAPABILITY_OFFSET
= 0x03,
2248 struct wmi_ready_event
{
2251 u8 mac
[WMI_MAC_LEN
];
2252 /* enum wmi_phy_capability */
2254 u8 numof_additional_mids
;
2255 /* rfc read calibration result. 5..15 */
2256 u8 rfc_read_calib_result
;
2257 /* Max associated STAs supported by FW in AP mode (default 0 means 8
2264 /* WMI_NOTIFY_REQ_DONE_EVENTID */
2265 struct wmi_notify_req_done_event
{
2266 /* beamforming status, 0: fail; 1: OK; 2: retrying */
2275 __le16 my_rx_sector
;
2276 __le16 my_tx_sector
;
2277 __le16 other_rx_sector
;
2278 __le16 other_tx_sector
;
2284 /* WMI_CONNECT_EVENTID */
2285 struct wmi_connect_event
{
2288 u8 bssid
[WMI_MAC_LEN
];
2289 __le16 listen_interval
;
2290 __le16 beacon_interval
;
2303 /* disconnect_reason */
2304 enum wmi_disconnect_reason
{
2305 WMI_DIS_REASON_NO_NETWORK_AVAIL
= 0x01,
2307 WMI_DIS_REASON_LOST_LINK
= 0x02,
2308 WMI_DIS_REASON_DISCONNECT_CMD
= 0x03,
2309 WMI_DIS_REASON_BSS_DISCONNECTED
= 0x04,
2310 WMI_DIS_REASON_AUTH_FAILED
= 0x05,
2311 WMI_DIS_REASON_ASSOC_FAILED
= 0x06,
2312 WMI_DIS_REASON_NO_RESOURCES_AVAIL
= 0x07,
2313 WMI_DIS_REASON_CSERV_DISCONNECT
= 0x08,
2314 WMI_DIS_REASON_INVALID_PROFILE
= 0x0A,
2315 WMI_DIS_REASON_DOT11H_CHANNEL_SWITCH
= 0x0B,
2316 WMI_DIS_REASON_PROFILE_MISMATCH
= 0x0C,
2317 WMI_DIS_REASON_CONNECTION_EVICTED
= 0x0D,
2318 WMI_DIS_REASON_IBSS_MERGE
= 0x0E,
2321 /* WMI_DISCONNECT_EVENTID */
2322 struct wmi_disconnect_event
{
2323 /* reason code, see 802.11 spec. */
2324 __le16 protocol_reason_status
;
2326 u8 bssid
[WMI_MAC_LEN
];
2327 /* see enum wmi_disconnect_reason */
2328 u8 disconnect_reason
;
2329 /* last assoc req may passed to host - not in used */
2331 /* last assoc req may passed to host - not in used */
2335 /* WMI_SCAN_COMPLETE_EVENTID */
2337 WMI_SCAN_SUCCESS
= 0x00,
2338 WMI_SCAN_FAILED
= 0x01,
2339 WMI_SCAN_ABORTED
= 0x02,
2340 WMI_SCAN_REJECTED
= 0x03,
2341 WMI_SCAN_ABORT_REJECTED
= 0x04,
2344 struct wmi_scan_complete_event
{
2345 /* enum scan_status */
2349 /* WMI_FT_AUTH_STATUS_EVENTID */
2350 struct wmi_ft_auth_status_event
{
2351 /* enum wmi_fw_status */
2354 u8 mac_addr
[WMI_MAC_LEN
];
2359 /* WMI_FT_REASSOC_STATUS_EVENTID */
2360 struct wmi_ft_reassoc_status_event
{
2361 /* enum wmi_fw_status */
2363 /* association id received from new AP */
2365 /* enum wmi_channel */
2367 /* enum wmi_channel */
2369 u8 mac_addr
[WMI_MAC_LEN
];
2370 __le16 beacon_ie_len
;
2371 __le16 reassoc_req_ie_len
;
2372 __le16 reassoc_resp_ie_len
;
2376 /* wmi_rx_mgmt_info */
2377 struct wmi_rx_mgmt_info
{
2385 /* Not resolved when == 0xFFFFFFFF == > Broadcast to all MIDS */
2387 /* Not resolved when == 0xFFFFFFFF == > Broadcast to all MIDS */
2390 /* From Radio MNGR */
2394 /* WMI_START_SCHED_SCAN_EVENTID */
2395 enum wmi_pno_result
{
2396 WMI_PNO_SUCCESS
= 0x00,
2397 WMI_PNO_REJECT
= 0x01,
2398 WMI_PNO_INVALID_PARAMETERS
= 0x02,
2399 WMI_PNO_NOT_ENABLED
= 0x03,
2402 struct wmi_start_sched_scan_event
{
2403 /* wmi_pno_result */
2408 struct wmi_stop_sched_scan_event
{
2409 /* wmi_pno_result */
2414 struct wmi_sched_scan_result_event
{
2415 struct wmi_rx_mgmt_info info
;
2419 /* WMI_ACS_PASSIVE_SCAN_COMPLETE_EVENT */
2420 enum wmi_acs_info_bitmask
{
2421 WMI_ACS_INFO_BITMASK_BEACON_FOUND
= 0x01,
2422 WMI_ACS_INFO_BITMASK_BUSY_TIME
= 0x02,
2423 WMI_ACS_INFO_BITMASK_TX_TIME
= 0x04,
2424 WMI_ACS_INFO_BITMASK_RX_TIME
= 0x08,
2425 WMI_ACS_INFO_BITMASK_NOISE
= 0x10,
2428 struct scan_acs_info
{
2439 struct wmi_acs_passive_scan_complete_event
{
2441 /* valid fields within channel info according to
2442 * their appearance in struct order
2445 u8 num_scanned_channels
;
2447 struct scan_acs_info scan_info_list
[0];
2450 /* WMI_BA_STATUS_EVENTID */
2451 enum wmi_vring_ba_status
{
2452 WMI_BA_AGREED
= 0x00,
2453 WMI_BA_NON_AGREED
= 0x01,
2454 /* BA_EN in middle of teardown flow */
2455 WMI_BA_TD_WIP
= 0x02,
2456 /* BA_DIS or BA_EN in middle of BA SETUP flow */
2457 WMI_BA_SETUP_WIP
= 0x03,
2458 /* BA_EN when the BA session is already active */
2459 WMI_BA_SESSION_ACTIVE
= 0x04,
2460 /* BA_DIS when the BA session is not active */
2461 WMI_BA_SESSION_NOT_ACTIVE
= 0x05,
2464 struct wmi_ba_status_event
{
2465 /* enum wmi_vring_ba_status */
2474 /* WMI_DELBA_EVENTID */
2475 struct wmi_delba_event
{
2476 /* Used for cid less than 8. For higher cid set
2477 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
2482 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2484 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2489 /* WMI_VRING_CFG_DONE_EVENTID */
2490 struct wmi_vring_cfg_done_event
{
2494 __le32 tx_vring_tail_ptr
;
2497 /* WMI_RCP_ADDBA_RESP_SENT_EVENTID */
2498 struct wmi_rcp_addba_resp_sent_event
{
2499 /* Used for cid less than 8. For higher cid set
2500 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
2505 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2507 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2512 /* WMI_TX_STATUS_RING_CFG_DONE_EVENTID */
2513 struct wmi_tx_status_ring_cfg_done_event
{
2518 __le32 ring_tail_ptr
;
2521 /* WMI_RX_STATUS_RING_CFG_DONE_EVENTID */
2522 struct wmi_rx_status_ring_cfg_done_event
{
2527 __le32 ring_tail_ptr
;
2530 /* WMI_CFG_DEF_RX_OFFLOAD_DONE_EVENTID */
2531 struct wmi_cfg_def_rx_offload_done_event
{
2537 /* WMI_TX_DESC_RING_CFG_DONE_EVENTID */
2538 struct wmi_tx_desc_ring_cfg_done_event
{
2543 __le32 ring_tail_ptr
;
2546 /* WMI_RX_DESC_RING_CFG_DONE_EVENTID */
2547 struct wmi_rx_desc_ring_cfg_done_event
{
2552 __le32 ring_tail_ptr
;
2555 /* WMI_RCP_ADDBA_REQ_EVENTID */
2556 struct wmi_rcp_addba_req_event
{
2557 /* Used for cid less than 8. For higher cid set
2558 * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead
2562 /* ieee80211_ba_parameterset as it received */
2563 __le16 ba_param_set
;
2565 /* ieee80211_ba_seqstrl field as it received */
2567 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2569 /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */
2574 /* WMI_CFG_RX_CHAIN_DONE_EVENTID */
2575 enum wmi_cfg_rx_chain_done_event_status
{
2576 WMI_CFG_RX_CHAIN_SUCCESS
= 0x01,
2579 struct wmi_cfg_rx_chain_done_event
{
2580 /* V-Ring Tail pointer */
2581 __le32 rx_ring_tail_ptr
;
2585 /* WMI_WBE_LINK_DOWN_EVENTID */
2586 enum wmi_wbe_link_down_event_reason
{
2587 WMI_WBE_REASON_USER_REQUEST
= 0x00,
2588 WMI_WBE_REASON_RX_DISASSOC
= 0x01,
2589 WMI_WBE_REASON_BAD_PHY_LINK
= 0x02,
2592 /* WMI_WBE_LINK_DOWN_EVENTID */
2593 struct wmi_wbe_link_down_event
{
2599 /* WMI_DATA_PORT_OPEN_EVENTID */
2600 struct wmi_data_port_open_event
{
2605 /* WMI_RING_EN_EVENTID */
2606 struct wmi_ring_en_event
{
2611 /* WMI_GET_PCP_CHANNEL_EVENTID */
2612 struct wmi_get_pcp_channel_event
{
2617 /* WMI_P2P_CFG_DONE_EVENTID */
2618 struct wmi_p2p_cfg_done_event
{
2624 /* WMI_PORT_ALLOCATED_EVENTID */
2625 struct wmi_port_allocated_event
{
2631 /* WMI_PORT_DELETED_EVENTID */
2632 struct wmi_port_deleted_event
{
2638 /* WMI_LISTEN_STARTED_EVENTID */
2639 struct wmi_listen_started_event
{
2645 /* WMI_SEARCH_STARTED_EVENTID */
2646 struct wmi_search_started_event
{
2652 /* WMI_PCP_STARTED_EVENTID */
2653 struct wmi_pcp_started_event
{
2659 /* WMI_PCP_FACTOR_EVENTID */
2660 struct wmi_pcp_factor_event
{
2664 enum wmi_sw_tx_status
{
2665 WMI_TX_SW_STATUS_SUCCESS
= 0x00,
2666 WMI_TX_SW_STATUS_FAILED_NO_RESOURCES
= 0x01,
2667 WMI_TX_SW_STATUS_FAILED_TX
= 0x02,
2670 /* WMI_SW_TX_COMPLETE_EVENTID */
2671 struct wmi_sw_tx_complete_event
{
2672 /* enum wmi_sw_tx_status */
2677 /* WMI_CORR_MEASURE_EVENTID - deprecated */
2678 struct wmi_corr_measure_event
{
2689 /* WMI_READ_RSSI_EVENTID */
2690 struct wmi_read_rssi_event
{
2691 __le32 ina_rssi_adc_dbm
;
2694 /* WMI_GET_SSID_EVENTID */
2695 struct wmi_get_ssid_event
{
2697 u8 ssid
[WMI_MAX_SSID_LEN
];
2700 /* EVENT: WMI_RF_XPM_READ_RESULT_EVENTID */
2701 struct wmi_rf_xpm_read_result_event
{
2702 /* enum wmi_fw_status_e - success=0 or fail=1 */
2705 /* requested num_bytes of data */
2709 /* EVENT: WMI_RF_XPM_WRITE_RESULT_EVENTID */
2710 struct wmi_rf_xpm_write_result_event
{
2711 /* enum wmi_fw_status_e - success=0 or fail=1 */
2716 /* WMI_TX_MGMT_PACKET_EVENTID */
2717 struct wmi_tx_mgmt_packet_event
{
2721 /* WMI_RX_MGMT_PACKET_EVENTID */
2722 struct wmi_rx_mgmt_packet_event
{
2723 struct wmi_rx_mgmt_info info
;
2727 /* WMI_ECHO_RSP_EVENTID */
2728 struct wmi_echo_rsp_event
{
2729 __le32 echoed_value
;
2732 /* WMI_DEEP_ECHO_RSP_EVENTID */
2733 struct wmi_deep_echo_rsp_event
{
2734 __le32 echoed_value
;
2737 /* WMI_RF_PWR_ON_DELAY_RSP_EVENTID */
2738 struct wmi_rf_pwr_on_delay_rsp_event
{
2744 /* WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID */
2745 struct wmi_set_high_power_table_params_event
{
2751 /* WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID */
2752 struct wmi_fixed_scheduling_ul_config_event
{
2758 /* WMI_TEMP_SENSE_DONE_EVENTID
2760 * Measure MAC and radio temperatures
2762 struct wmi_temp_sense_done_event
{
2763 /* Temperature times 1000 (actual temperature will be achieved by
2764 * dividing the value by 1000)
2766 __le32 baseband_t1000
;
2767 /* Temperature times 1000 (actual temperature will be achieved by
2768 * dividing the value by 1000)
2773 #define WMI_SCAN_DWELL_TIME_MS (100)
2774 #define WMI_SURVEY_TIMEOUT_MS (10000)
2776 enum wmi_hidden_ssid
{
2777 WMI_HIDDEN_SSID_DISABLED
= 0x00,
2778 WMI_HIDDEN_SSID_SEND_EMPTY
= 0x10,
2779 WMI_HIDDEN_SSID_CLEAR
= 0xFE,
2782 /* WMI_LED_CFG_CMDID
2784 * Configure LED On\Off\Blinking operation
2787 * - WMI_LED_CFG_DONE_EVENTID
2794 /* The names of the led as
2795 * described on HW schemes.
2798 WMI_LED_WLAN
= 0x00,
2799 WMI_LED_WPAN
= 0x01,
2800 WMI_LED_WWAN
= 0x02,
2803 /* Led polarity mode. */
2804 enum wmi_led_polarity
{
2805 LED_POLARITY_HIGH_ACTIVE
= 0x00,
2806 LED_POLARITY_LOW_ACTIVE
= 0x01,
2809 /* Combination of on and off
2810 * creates the blinking period
2812 struct wmi_led_blink_mode
{
2817 /* WMI_LED_CFG_CMDID */
2818 struct wmi_led_cfg_cmd
{
2819 /* enum led_mode_e */
2821 /* enum wmi_led_id_e */
2823 /* slow speed blinking combination */
2824 struct wmi_led_blink_mode slow_blink_cfg
;
2825 /* medium speed blinking combination */
2826 struct wmi_led_blink_mode medium_blink_cfg
;
2827 /* high speed blinking combination */
2828 struct wmi_led_blink_mode fast_blink_cfg
;
2829 /* polarity of the led */
2835 /* \WMI_SET_CONNECT_SNR_THR_CMDID */
2836 struct wmi_set_connect_snr_thr_cmd
{
2840 __le16 omni_snr_thr
;
2842 __le16 direct_snr_thr
;
2845 /* WMI_LED_CFG_DONE_EVENTID */
2846 struct wmi_led_cfg_done_event
{
2847 /* led config status */
2851 /* Rate search parameters configuration per connection */
2853 /* The maximal allowed PER for each MCS
2854 * MCS will be considered as failed if PER during RS is higher
2856 u8 per_threshold
[WMI_NUM_MCS
];
2857 /* Number of MPDUs for each MCS
2858 * this is the minimal statistic required to make an educated
2861 u8 min_frame_cnt
[WMI_NUM_MCS
];
2862 /* stop threshold [0-100] */
2864 /* MCS1 stop threshold [0-100] */
2866 u8 max_back_failure_th
;
2867 /* Debug feature for disabling internal RS trigger (which is
2868 * currently triggered by BF Done)
2870 u8 dbg_disable_internal_trigger
;
2871 __le32 back_failure_mask
;
2875 enum wmi_edmg_tx_mode
{
2876 WMI_TX_MODE_DMG
= 0x0,
2877 WMI_TX_MODE_EDMG_CB1
= 0x1,
2878 WMI_TX_MODE_EDMG_CB2
= 0x2,
2879 WMI_TX_MODE_EDMG_CB1_LONG_LDPC
= 0x3,
2880 WMI_TX_MODE_EDMG_CB2_LONG_LDPC
= 0x4,
2884 /* Rate search parameters common configuration */
2885 struct wmi_rs_cfg_ex_common
{
2886 /* enum wmi_edmg_tx_mode */
2888 /* stop threshold [0-100] */
2890 /* MCS1 stop threshold [0-100] */
2892 u8 max_back_failure_th
;
2893 /* Debug feature for disabling internal RS trigger (which is
2894 * currently triggered by BF Done)
2896 u8 dbg_disable_internal_trigger
;
2898 __le32 back_failure_mask
;
2901 /* Rate search parameters configuration per MCS */
2902 struct wmi_rs_cfg_ex_mcs
{
2903 /* The maximal allowed PER for each MCS
2904 * MCS will be considered as failed if PER during RS is higher
2907 /* Number of MPDUs for each MCS
2908 * this is the minimal statistic required to make an educated
2915 /* WMI_RS_CFG_EX_CMDID */
2916 struct wmi_rs_cfg_ex_cmd
{
2917 /* Configuration for all MCSs */
2918 struct wmi_rs_cfg_ex_common common_cfg
;
2919 u8 each_mcs_cfg_size
;
2921 /* Configuration for each MCS */
2922 struct wmi_rs_cfg_ex_mcs each_mcs_cfg
[0];
2925 /* WMI_RS_CFG_EX_EVENTID */
2926 struct wmi_rs_cfg_ex_event
{
2927 /* enum wmi_edmg_tx_mode */
2929 /* enum wmi_fw_status */
2934 /* WMI_RS_ENABLE_CMDID */
2935 struct wmi_rs_enable_cmd
{
2937 /* enable or disable rate search */
2943 /* WMI_RS_ENABLE_EVENTID */
2944 struct wmi_rs_enable_event
{
2945 /* enum wmi_fw_status */
2951 enum wmi_sched_scheme_slot_type
{
2952 WMI_SCHED_SLOT_SP
= 0x0,
2953 WMI_SCHED_SLOT_CBAP
= 0x1,
2954 WMI_SCHED_SLOT_IDLE
= 0x2,
2955 WMI_SCHED_SLOT_ANNOUNCE_NO_ACK
= 0x3,
2956 WMI_SCHED_SLOT_DISCOVERY
= 0x4,
2959 enum wmi_sched_scheme_slot_flags
{
2960 WMI_SCHED_SCHEME_SLOT_PERIODIC
= 0x1,
2963 struct wmi_sched_scheme_slot
{
2964 /* in microsecond */
2966 /* wmi_sched_scheme_slot_flags */
2968 /* wmi_sched_scheme_slot_type */
2970 /* in microsecond */
2972 /* frame_exchange_sequence_duration */
2974 /* time in microseconds between two consecutive slots
2975 * relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set
2978 /* relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set
2979 * number of times to repeat allocation
2982 /* relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set
2983 * every idle_period allocation will be idle
2991 enum wmi_sched_scheme_flags
{
2992 /* should not be set when clearing scheduling scheme */
2993 WMI_SCHED_SCHEME_ENABLE
= 0x01,
2994 WMI_SCHED_PROTECTED_SP
= 0x02,
2995 /* should be set only on first WMI fragment of scheme */
2996 WMI_SCHED_FIRST
= 0x04,
2997 /* should be set only on last WMI fragment of scheme */
2998 WMI_SCHED_LAST
= 0x08,
2999 WMI_SCHED_IMMEDIATE_START
= 0x10,
3002 enum wmi_sched_scheme_advertisment
{
3003 /* ESE is not advertised at all, STA has to be configured with WMI
3006 WMI_ADVERTISE_ESE_DISABLED
= 0x0,
3007 WMI_ADVERTISE_ESE_IN_BEACON
= 0x1,
3008 WMI_ADVERTISE_ESE_IN_ANNOUNCE_FRAME
= 0x2,
3011 /* WMI_SCHEDULING_SCHEME_CMD */
3012 struct wmi_scheduling_scheme_cmd
{
3014 /* wmi_sched_scheme_advertisment */
3015 u8 ese_advertisment
;
3016 /* wmi_sched_scheme_flags */
3021 /* allocations list */
3022 struct wmi_sched_scheme_slot allocs
[WMI_SCHED_MAX_ALLOCS_PER_CMD
];
3025 enum wmi_sched_scheme_failure_type
{
3026 WMI_SCHED_SCHEME_FAILURE_NO_ERROR
= 0x00,
3027 WMI_SCHED_SCHEME_FAILURE_OLD_START_TSF_ERR
= 0x01,
3030 /* WMI_SCHEDULING_SCHEME_EVENTID */
3031 struct wmi_scheduling_scheme_event
{
3032 /* wmi_fw_status_e */
3034 /* serial number given in command */
3036 /* wmi_sched_scheme_failure_type */
3038 /* alignment to 32b */
3042 /* WMI_RS_CFG_CMDID - deprecated */
3043 struct wmi_rs_cfg_cmd
{
3046 /* enable or disable rate search */
3048 /* rate search configuration */
3049 struct wmi_rs_cfg rs_cfg
;
3052 /* WMI_RS_CFG_DONE_EVENTID - deprecated */
3053 struct wmi_rs_cfg_done_event
{
3055 /* enum wmi_fw_status */
3060 /* WMI_GET_DETAILED_RS_RES_CMDID - deprecated */
3061 struct wmi_get_detailed_rs_res_cmd
{
3067 /* RS results status */
3068 enum wmi_rs_results_status
{
3069 WMI_RS_RES_VALID
= 0x00,
3070 WMI_RS_RES_INVALID
= 0x01,
3073 /* Rate search results */
3074 struct wmi_rs_results
{
3075 /* number of sent MPDUs */
3076 u8 num_of_tx_pkt
[WMI_NUM_MCS
];
3077 /* number of non-acked MPDUs */
3078 u8 num_of_non_acked_pkt
[WMI_NUM_MCS
];
3081 /* RS selected MCS */
3085 /* WMI_GET_DETAILED_RS_RES_EVENTID - deprecated */
3086 struct wmi_get_detailed_rs_res_event
{
3088 /* enum wmi_rs_results_status */
3090 /* detailed rs results */
3091 struct wmi_rs_results rs_results
;
3095 /* WMI_GET_DETAILED_RS_RES_EX_CMDID */
3096 struct wmi_get_detailed_rs_res_ex_cmd
{
3101 /* Rate search results */
3102 struct wmi_rs_results_ex_common
{
3105 /* RS selected MCS */
3107 /* enum wmi_edmg_tx_mode */
3112 /* Rate search results */
3113 struct wmi_rs_results_ex_mcs
{
3114 /* number of sent MPDUs */
3116 /* number of non-acked MPDUs */
3117 u8 num_of_non_acked_pkt
;
3121 /* WMI_GET_DETAILED_RS_RES_EX_EVENTID */
3122 struct wmi_get_detailed_rs_res_ex_event
{
3124 /* enum wmi_rs_results_status */
3127 struct wmi_rs_results_ex_common common_rs_results
;
3128 u8 each_mcs_results_size
;
3130 /* Results for each MCS */
3131 struct wmi_rs_results_ex_mcs each_mcs_results
[0];
3134 /* BRP antenna limit mode */
3135 enum wmi_brp_ant_limit_mode
{
3136 /* Disable BRP force antenna limit */
3137 WMI_BRP_ANT_LIMIT_MODE_DISABLE
= 0x00,
3138 /* Define maximal antennas limit. Only effective antennas will be
3141 WMI_BRP_ANT_LIMIT_MODE_EFFECTIVE
= 0x01,
3142 /* Force a specific number of antennas */
3143 WMI_BRP_ANT_LIMIT_MODE_FORCE
= 0x02,
3144 /* number of BRP antenna limit modes */
3145 WMI_BRP_ANT_LIMIT_MODES_NUM
= 0x03,
3148 /* WMI_BRP_SET_ANT_LIMIT_CMDID */
3149 struct wmi_brp_set_ant_limit_cmd
{
3152 /* enum wmi_brp_ant_limit_mode */
3154 /* antenna limit count, 1-27
3155 * disable_mode - ignored
3156 * effective_mode - upper limit to number of antennas to be used
3157 * force_mode - exact number of antennas to be used
3163 /* WMI_BRP_SET_ANT_LIMIT_EVENTID */
3164 struct wmi_brp_set_ant_limit_event
{
3170 /* broadcast connection ID */
3171 #define WMI_LINK_MAINTAIN_CFG_CID_BROADCAST (0xFFFFFFFF)
3173 /* Types wmi_link_maintain_cfg presets for WMI_LINK_MAINTAIN_CFG_WRITE_CMD */
3174 enum wmi_link_maintain_cfg_type
{
3175 /* AP/PCP default normal (non-FST) configuration settings */
3176 WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_NORMAL_AP
= 0x00,
3177 /* AP/PCP default FST configuration settings */
3178 WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_FST_AP
= 0x01,
3179 /* STA default normal (non-FST) configuration settings */
3180 WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_NORMAL_STA
= 0x02,
3181 /* STA default FST configuration settings */
3182 WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_FST_STA
= 0x03,
3183 /* custom configuration settings */
3184 WMI_LINK_MAINTAIN_CFG_TYPE_CUSTOM
= 0x04,
3185 /* number of defined configuration types */
3186 WMI_LINK_MAINTAIN_CFG_TYPES_NUM
= 0x05,
3189 /* Response status codes for WMI_LINK_MAINTAIN_CFG_WRITE/READ commands */
3190 enum wmi_link_maintain_cfg_response_status
{
3191 /* WMI_LINK_MAINTAIN_CFG_WRITE/READ command successfully accomplished
3193 WMI_LINK_MAINTAIN_CFG_RESPONSE_STATUS_OK
= 0x00,
3194 /* ERROR due to bad argument in WMI_LINK_MAINTAIN_CFG_WRITE/READ
3197 WMI_LINK_MAINTAIN_CFG_RESPONSE_STATUS_BAD_ARGUMENT
= 0x01,
3200 /* Link Loss and Keep Alive configuration */
3201 struct wmi_link_maintain_cfg
{
3202 /* link_loss_enable_detectors_vec */
3203 __le32 link_loss_enable_detectors_vec
;
3204 /* detectors check period usec */
3205 __le32 check_link_loss_period_usec
;
3206 /* max allowed tx ageing */
3207 __le32 tx_ageing_threshold_usec
;
3208 /* keep alive period for high SNR */
3209 __le32 keep_alive_period_usec_high_snr
;
3210 /* keep alive period for low SNR */
3211 __le32 keep_alive_period_usec_low_snr
;
3212 /* lower snr limit for keep alive period update */
3213 __le32 keep_alive_snr_threshold_low_db
;
3214 /* upper snr limit for keep alive period update */
3215 __le32 keep_alive_snr_threshold_high_db
;
3216 /* num of successive bad bcons causing link-loss */
3217 __le32 bad_beacons_num_threshold
;
3218 /* SNR limit for bad_beacons_detector */
3219 __le32 bad_beacons_snr_threshold_db
;
3220 /* timeout for disassoc response frame in uSec */
3221 __le32 disconnect_timeout
;
3224 /* WMI_LINK_MAINTAIN_CFG_WRITE_CMDID */
3225 struct wmi_link_maintain_cfg_write_cmd
{
3226 /* enum wmi_link_maintain_cfg_type_e - type of requested default
3227 * configuration to be applied
3230 /* requested connection ID or WMI_LINK_MAINTAIN_CFG_CID_BROADCAST */
3232 /* custom configuration settings to be applied (relevant only if
3233 * cfg_type==WMI_LINK_MAINTAIN_CFG_TYPE_CUSTOM)
3235 struct wmi_link_maintain_cfg lm_cfg
;
3238 /* WMI_LINK_MAINTAIN_CFG_READ_CMDID */
3239 struct wmi_link_maintain_cfg_read_cmd
{
3240 /* connection ID which configuration settings are requested */
3244 /* WMI_LINK_MAINTAIN_CFG_WRITE_DONE_EVENTID */
3245 struct wmi_link_maintain_cfg_write_done_event
{
3246 /* requested connection ID */
3248 /* wmi_link_maintain_cfg_response_status_e - write status */
3252 /* \WMI_LINK_MAINTAIN_CFG_READ_DONE_EVENT */
3253 struct wmi_link_maintain_cfg_read_done_event
{
3254 /* requested connection ID */
3256 /* wmi_link_maintain_cfg_response_status_e - read status */
3258 /* Retrieved configuration settings */
3259 struct wmi_link_maintain_cfg lm_cfg
;
3262 enum wmi_traffic_suspend_status
{
3263 WMI_TRAFFIC_SUSPEND_APPROVED
= 0x0,
3264 WMI_TRAFFIC_SUSPEND_REJECTED_LINK_NOT_IDLE
= 0x1,
3267 /* WMI_TRAFFIC_SUSPEND_EVENTID */
3268 struct wmi_traffic_suspend_event
{
3269 /* enum wmi_traffic_suspend_status_e */
3273 enum wmi_traffic_resume_status
{
3274 WMI_TRAFFIC_RESUME_SUCCESS
= 0x0,
3275 WMI_TRAFFIC_RESUME_FAILED
= 0x1,
3278 enum wmi_resume_trigger
{
3279 WMI_RESUME_TRIGGER_UNKNOWN
= 0x0,
3280 WMI_RESUME_TRIGGER_HOST
= 0x1,
3281 WMI_RESUME_TRIGGER_UCAST_RX
= 0x2,
3282 WMI_RESUME_TRIGGER_BCAST_RX
= 0x4,
3283 WMI_RESUME_TRIGGER_WMI_EVT
= 0x8,
3286 /* WMI_TRAFFIC_RESUME_EVENTID */
3287 struct wmi_traffic_resume_event
{
3288 /* enum wmi_traffic_resume_status */
3291 /* enum wmi_resume_trigger bitmap */
3292 __le32 resume_triggers
;
3295 /* Power Save command completion status codes */
3296 enum wmi_ps_cfg_cmd_status
{
3297 WMI_PS_CFG_CMD_STATUS_SUCCESS
= 0x00,
3298 WMI_PS_CFG_CMD_STATUS_BAD_PARAM
= 0x01,
3300 WMI_PS_CFG_CMD_STATUS_ERROR
= 0x02,
3303 /* Device Power Save Profiles */
3304 enum wmi_ps_profile_type
{
3305 WMI_PS_PROFILE_TYPE_DEFAULT
= 0x00,
3306 WMI_PS_PROFILE_TYPE_PS_DISABLED
= 0x01,
3307 WMI_PS_PROFILE_TYPE_MAX_PS
= 0x02,
3308 WMI_PS_PROFILE_TYPE_LOW_LATENCY_PS
= 0x03,
3311 /* WMI_PS_DEV_PROFILE_CFG_READ_CMDID */
3312 struct wmi_ps_dev_profile_cfg_read_cmd
{
3317 /* WMI_PS_DEV_PROFILE_CFG_READ_EVENTID */
3318 struct wmi_ps_dev_profile_cfg_read_event
{
3319 /* wmi_ps_profile_type_e */
3324 /* WMI_PS_DEV_PROFILE_CFG_CMDID
3326 * Power save profile to be used by the device
3329 * - WMI_PS_DEV_PROFILE_CFG_EVENTID
3331 struct wmi_ps_dev_profile_cfg_cmd
{
3332 /* wmi_ps_profile_type_e */
3337 /* WMI_PS_DEV_PROFILE_CFG_EVENTID */
3338 struct wmi_ps_dev_profile_cfg_event
{
3339 /* wmi_ps_cfg_cmd_status_e */
3344 WMI_PS_LEVEL_DEEP_SLEEP
= 0x00,
3345 WMI_PS_LEVEL_SHALLOW_SLEEP
= 0x01,
3346 /* awake = all PS mechanisms are disabled */
3347 WMI_PS_LEVEL_AWAKE
= 0x02,
3350 enum wmi_ps_deep_sleep_clk_level
{
3352 WMI_PS_DEEP_SLEEP_CLK_LEVEL_RTC
= 0x00,
3354 WMI_PS_DEEP_SLEEP_CLK_LEVEL_OSC
= 0x01,
3355 /* @RTC Low latency */
3356 WMI_PS_DEEP_SLEEP_CLK_LEVEL_RTC_LT
= 0x02,
3357 WMI_PS_DEEP_SLEEP_CLK_LEVEL_XTAL
= 0x03,
3358 WMI_PS_DEEP_SLEEP_CLK_LEVEL_SYSCLK
= 0x04,
3359 /* Not Applicable */
3360 WMI_PS_DEEP_SLEEP_CLK_LEVEL_N_A
= 0xFF,
3363 /* Response by the FW to a D3 entry request */
3364 enum wmi_ps_d3_resp_policy
{
3365 WMI_PS_D3_RESP_POLICY_DEFAULT
= 0x00,
3366 /* debug -D3 req is always denied */
3367 WMI_PS_D3_RESP_POLICY_DENIED
= 0x01,
3368 /* debug -D3 req is always approved */
3369 WMI_PS_D3_RESP_POLICY_APPROVED
= 0x02,
3372 #define WMI_AOA_MAX_DATA_SIZE (128)
3374 enum wmi_aoa_meas_status
{
3375 WMI_AOA_MEAS_SUCCESS
= 0x00,
3376 WMI_AOA_MEAS_PEER_INCAPABLE
= 0x01,
3377 WMI_AOA_MEAS_FAILURE
= 0x02,
3380 /* WMI_AOA_MEAS_EVENTID */
3381 struct wmi_aoa_meas_event
{
3382 u8 mac_addr
[WMI_MAC_LEN
];
3389 /* enum wmi_aoa_meas_type */
3391 /* Measurments are from RFs, defined by the mask */
3392 __le32 meas_rf_mask
;
3393 /* enum wmi_aoa_meas_status */
3396 /* Length of meas_data in bytes */
3398 u8 meas_data
[WMI_AOA_MAX_DATA_SIZE
];
3401 /* WMI_SET_MGMT_RETRY_LIMIT_EVENTID */
3402 struct wmi_set_mgmt_retry_limit_event
{
3403 /* enum wmi_fw_status */
3405 /* alignment to 32b */
3409 /* WMI_GET_MGMT_RETRY_LIMIT_EVENTID */
3410 struct wmi_get_mgmt_retry_limit_event
{
3411 /* MAC retransmit limit for mgmt frames */
3412 u8 mgmt_retry_limit
;
3413 /* alignment to 32b */
3417 /* WMI_TOF_GET_CAPABILITIES_EVENTID */
3418 struct wmi_tof_get_capabilities_event
{
3420 /* maximum supported number of destination to start TOF */
3422 /* maximum supported number of measurements per burst */
3423 u8 max_num_of_meas_per_burst
;
3425 /* maximum supported multi bursts */
3426 __le16 max_multi_bursts_sessions
;
3427 /* maximum supported FTM burst duration , wmi_tof_burst_duration_e */
3428 __le16 max_ftm_burst_duration
;
3429 /* AOA supported types */
3430 __le32 aoa_supported_types
;
3433 /* WMI_SET_THERMAL_THROTTLING_CFG_EVENTID */
3434 struct wmi_set_thermal_throttling_cfg_event
{
3440 /* WMI_GET_THERMAL_THROTTLING_CFG_EVENTID */
3441 struct wmi_get_thermal_throttling_cfg_event
{
3443 struct wmi_tt_data tt_data
;
3446 enum wmi_tof_session_end_status
{
3447 WMI_TOF_SESSION_END_NO_ERROR
= 0x00,
3448 WMI_TOF_SESSION_END_FAIL
= 0x01,
3449 WMI_TOF_SESSION_END_PARAMS_ERROR
= 0x02,
3450 WMI_TOF_SESSION_END_ABORTED
= 0x03,
3451 WMI_TOF_SESSION_END_BUSY
= 0x04,
3454 /* WMI_TOF_SESSION_END_EVENTID */
3455 struct wmi_tof_session_end_event
{
3456 /* FTM session ID */
3458 /* wmi_tof_session_end_status_e */
3463 /* WMI_TOF_SET_LCI_EVENTID */
3464 struct wmi_tof_set_lci_event
{
3465 /* enum wmi_fw_status */
3470 /* WMI_TOF_SET_LCR_EVENTID */
3471 struct wmi_tof_set_lcr_event
{
3472 /* enum wmi_fw_status */
3477 /* Responder FTM Results */
3478 struct wmi_responder_ftm_res
{
3485 __le16 tod_err_initiator
;
3486 __le16 toa_err_initiator
;
3489 enum wmi_tof_ftm_per_dest_res_status
{
3490 WMI_PER_DEST_RES_NO_ERROR
= 0x00,
3491 WMI_PER_DEST_RES_TX_RX_FAIL
= 0x01,
3492 WMI_PER_DEST_RES_PARAM_DONT_MATCH
= 0x02,
3495 enum wmi_tof_ftm_per_dest_res_flags
{
3496 WMI_PER_DEST_RES_REQ_START
= 0x01,
3497 WMI_PER_DEST_RES_BURST_REPORT_END
= 0x02,
3498 WMI_PER_DEST_RES_REQ_END
= 0x04,
3499 WMI_PER_DEST_RES_PARAM_UPDATE
= 0x08,
3502 /* WMI_TOF_FTM_PER_DEST_RES_EVENTID */
3503 struct wmi_tof_ftm_per_dest_res_event
{
3504 /* FTM session ID */
3506 /* destination MAC address */
3507 u8 dst_mac
[WMI_MAC_LEN
];
3508 /* wmi_tof_ftm_per_dest_res_flags_e */
3510 /* wmi_tof_ftm_per_dest_res_status_e */
3512 /* responder ASAP */
3514 /* responder number of FTM per burst */
3515 u8 responder_num_ftm_per_burst
;
3516 /* responder number of FTM burst exponent */
3517 u8 responder_num_ftm_bursts_exp
;
3518 /* responder burst duration ,wmi_tof_burst_duration_e */
3519 u8 responder_burst_duration
;
3520 /* responder burst period, indicate interval between two consecutive
3521 * burst instances, in units of 100 ms
3523 __le16 responder_burst_period
;
3524 /* receive burst counter */
3526 /* tsf of responder start burst */
3528 /* actual received ftm per burst */
3529 u8 actual_ftm_per_burst
;
3530 /* Measurments are from RFs, defined by the mask */
3531 __le32 meas_rf_mask
;
3533 struct wmi_responder_ftm_res responder_ftm_res
[0];
3536 /* WMI_TOF_CFG_RESPONDER_EVENTID */
3537 struct wmi_tof_cfg_responder_event
{
3538 /* enum wmi_fw_status */
3543 enum wmi_tof_channel_info_type
{
3544 WMI_TOF_CHANNEL_INFO_AOA
= 0x00,
3545 WMI_TOF_CHANNEL_INFO_LCI
= 0x01,
3546 WMI_TOF_CHANNEL_INFO_LCR
= 0x02,
3547 WMI_TOF_CHANNEL_INFO_VENDOR_SPECIFIC
= 0x03,
3548 WMI_TOF_CHANNEL_INFO_CIR
= 0x04,
3549 WMI_TOF_CHANNEL_INFO_RSSI
= 0x05,
3550 WMI_TOF_CHANNEL_INFO_SNR
= 0x06,
3551 WMI_TOF_CHANNEL_INFO_DEBUG
= 0x07,
3554 /* WMI_TOF_CHANNEL_INFO_EVENTID */
3555 struct wmi_tof_channel_info_event
{
3556 /* FTM session ID */
3558 /* destination MAC address */
3559 u8 dst_mac
[WMI_MAC_LEN
];
3560 /* wmi_tof_channel_info_type_e */
3562 /* data report length */
3564 /* data report payload */
3568 /* WMI_TOF_SET_TX_RX_OFFSET_EVENTID */
3569 struct wmi_tof_set_tx_rx_offset_event
{
3570 /* enum wmi_fw_status */
3575 /* WMI_TOF_GET_TX_RX_OFFSET_EVENTID */
3576 struct wmi_tof_get_tx_rx_offset_event
{
3577 /* enum wmi_fw_status */
3579 /* RF index used to read the offsets */
3582 /* TX delay offset */
3584 /* RX delay offset */
3586 /* Offset to strongest tap of CIR */
3590 /* Result status codes for WMI commands */
3591 enum wmi_rf_sector_status
{
3592 WMI_RF_SECTOR_STATUS_SUCCESS
= 0x00,
3593 WMI_RF_SECTOR_STATUS_BAD_PARAMETERS_ERROR
= 0x01,
3594 WMI_RF_SECTOR_STATUS_BUSY_ERROR
= 0x02,
3595 WMI_RF_SECTOR_STATUS_NOT_SUPPORTED_ERROR
= 0x03,
3598 /* Types of the RF sector (TX,RX) */
3599 enum wmi_rf_sector_type
{
3600 WMI_RF_SECTOR_TYPE_RX
= 0x00,
3601 WMI_RF_SECTOR_TYPE_TX
= 0x01,
3604 /* Content of RF Sector (six 32-bits registers) */
3605 struct wmi_rf_sector_info
{
3606 /* Phase values for RF Chains[15-0] (2bits per RF chain) */
3608 /* Phase values for RF Chains[31-16] (2bits per RF chain) */
3610 /* ETYPE Bit0 for all RF chains[31-0] - bit0 of Edge amplifier gain
3614 /* ETYPE Bit1 for all RF chains[31-0] - bit1 of Edge amplifier gain
3618 /* ETYPE Bit2 for all RF chains[31-0] - bit2 of Edge amplifier gain
3622 /* D-Type values (3bits each) for 8 Distribution amplifiers + X16
3625 __le32 dtype_swch_off
;
3628 #define WMI_INVALID_RF_SECTOR_INDEX (0xFFFF)
3629 #define WMI_MAX_RF_MODULES_NUM (8)
3631 /* WMI_GET_RF_SECTOR_PARAMS_CMD */
3632 struct wmi_get_rf_sector_params_cmd
{
3633 /* Sector number to be retrieved */
3635 /* enum wmi_rf_sector_type - type of requested RF sector */
3637 /* bitmask vector specifying destination RF modules */
3641 /* \WMI_GET_RF_SECTOR_PARAMS_DONE_EVENT */
3642 struct wmi_get_rf_sector_params_done_event
{
3643 /* result status of WMI_GET_RF_SECTOR_PARAMS_CMD (enum
3644 * wmi_rf_sector_status)
3647 /* align next field to U64 boundary */
3649 /* TSF timestamp when RF sectors where retrieved */
3651 /* Content of RF sector retrieved from each RF module */
3652 struct wmi_rf_sector_info sectors_info
[WMI_MAX_RF_MODULES_NUM
];
3655 /* WMI_SET_RF_SECTOR_PARAMS_CMD */
3656 struct wmi_set_rf_sector_params_cmd
{
3657 /* Sector number to be retrieved */
3659 /* enum wmi_rf_sector_type - type of requested RF sector */
3661 /* bitmask vector specifying destination RF modules */
3663 /* Content of RF sector to be written to each RF module */
3664 struct wmi_rf_sector_info sectors_info
[WMI_MAX_RF_MODULES_NUM
];
3667 /* \WMI_SET_RF_SECTOR_PARAMS_DONE_EVENT */
3668 struct wmi_set_rf_sector_params_done_event
{
3669 /* result status of WMI_SET_RF_SECTOR_PARAMS_CMD (enum
3670 * wmi_rf_sector_status)
3675 /* WMI_GET_SELECTED_RF_SECTOR_INDEX_CMD - Get RF sector index selected by
3676 * TXSS/BRP for communication with specified CID
3678 struct wmi_get_selected_rf_sector_index_cmd
{
3679 /* Connection/Station ID in [0:7] range */
3681 /* type of requested RF sector (enum wmi_rf_sector_type) */
3683 /* align to U32 boundary */
3687 /* \WMI_GET_SELECTED_RF_SECTOR_INDEX_DONE_EVENT - Returns retrieved RF sector
3688 * index selected by TXSS/BRP for communication with specified CID
3690 struct wmi_get_selected_rf_sector_index_done_event
{
3691 /* Retrieved sector index selected in TXSS (for TX sector request) or
3692 * BRP (for RX sector request)
3695 /* result status of WMI_GET_SELECTED_RF_SECTOR_INDEX_CMD (enum
3696 * wmi_rf_sector_status)
3699 /* align next field to U64 boundary */
3701 /* TSF timestamp when result was retrieved */
3705 /* WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD - Force RF sector index for
3706 * communication with specified CID. Assumes that TXSS/BRP is disabled by
3709 struct wmi_set_selected_rf_sector_index_cmd
{
3710 /* Connection/Station ID in [0:7] range */
3712 /* type of requested RF sector (enum wmi_rf_sector_type) */
3714 /* Forced sector index */
3718 /* \WMI_SET_SELECTED_RF_SECTOR_INDEX_DONE_EVENT - Success/Fail status for
3719 * WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD
3721 struct wmi_set_selected_rf_sector_index_done_event
{
3722 /* result status of WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD (enum
3723 * wmi_rf_sector_status)
3726 /* align to U32 boundary */
3730 /* WMI_SET_RF_SECTOR_ON_CMD - Activates specified sector for specified rf
3733 struct wmi_set_rf_sector_on_cmd
{
3734 /* Sector index to be activated */
3736 /* type of requested RF sector (enum wmi_rf_sector_type) */
3738 /* bitmask vector specifying destination RF modules */
3742 /* \WMI_SET_RF_SECTOR_ON_DONE_EVENT - Success/Fail status for
3743 * WMI_SET_RF_SECTOR_ON_CMD
3745 struct wmi_set_rf_sector_on_done_event
{
3746 /* result status of WMI_SET_RF_SECTOR_ON_CMD (enum
3747 * wmi_rf_sector_status)
3750 /* align to U32 boundary */
3754 enum wmi_sector_sweep_type
{
3755 WMI_SECTOR_SWEEP_TYPE_TXSS
= 0x00,
3756 WMI_SECTOR_SWEEP_TYPE_BCON
= 0x01,
3757 WMI_SECTOR_SWEEP_TYPE_TXSS_AND_BCON
= 0x02,
3758 WMI_SECTOR_SWEEP_TYPE_NUM
= 0x03,
3761 /* WMI_PRIO_TX_SECTORS_ORDER_CMDID
3763 * Set the order of TX sectors in TXSS and/or Beacon(AP).
3766 * - WMI_PRIO_TX_SECTORS_ORDER_EVENTID
3768 struct wmi_prio_tx_sectors_order_cmd
{
3769 /* tx sectors order to be applied, 0xFF for end of array */
3770 u8 tx_sectors_priority_array
[MAX_NUM_OF_SECTORS
];
3771 /* enum wmi_sector_sweep_type, TXSS and/or Beacon */
3772 u8 sector_sweep_type
;
3773 /* needed only for TXSS configuration */
3775 /* alignment to 32b */
3779 /* completion status codes */
3780 enum wmi_prio_tx_sectors_cmd_status
{
3781 WMI_PRIO_TX_SECT_CMD_STATUS_SUCCESS
= 0x00,
3782 WMI_PRIO_TX_SECT_CMD_STATUS_BAD_PARAM
= 0x01,
3784 WMI_PRIO_TX_SECT_CMD_STATUS_ERROR
= 0x02,
3787 /* WMI_PRIO_TX_SECTORS_ORDER_EVENTID */
3788 struct wmi_prio_tx_sectors_order_event
{
3789 /* enum wmi_prio_tx_sectors_cmd_status */
3791 /* alignment to 32b */
3795 struct wmi_prio_tx_sectors_num_cmd
{
3796 /* [0-128], 0 = No changes */
3797 u8 beacon_number_of_sectors
;
3798 /* [0-128], 0 = No changes */
3799 u8 txss_number_of_sectors
;
3800 /* [0-8] needed only for TXSS configuration */
3804 /* WMI_PRIO_TX_SECTORS_NUMBER_CMDID
3806 * Set the number of active sectors in TXSS and/or Beacon.
3809 * - WMI_PRIO_TX_SECTORS_NUMBER_EVENTID
3811 struct wmi_prio_tx_sectors_number_cmd
{
3812 struct wmi_prio_tx_sectors_num_cmd active_sectors_num
;
3813 /* alignment to 32b */
3817 /* WMI_PRIO_TX_SECTORS_NUMBER_EVENTID */
3818 struct wmi_prio_tx_sectors_number_event
{
3819 /* enum wmi_prio_tx_sectors_cmd_status */
3821 /* alignment to 32b */
3825 /* WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_CMDID
3827 * Set default sectors order and number (hard coded in board file)
3828 * in TXSS and/or Beacon.
3831 * - WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID
3833 struct wmi_prio_tx_sectors_set_default_cfg_cmd
{
3834 /* enum wmi_sector_sweep_type, TXSS and/or Beacon */
3835 u8 sector_sweep_type
;
3836 /* needed only for TXSS configuration */
3838 /* alignment to 32b */
3842 /* WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID */
3843 struct wmi_prio_tx_sectors_set_default_cfg_event
{
3844 /* enum wmi_prio_tx_sectors_cmd_status */
3846 /* alignment to 32b */
3850 /* WMI_SET_SILENT_RSSI_TABLE_DONE_EVENTID */
3851 struct wmi_set_silent_rssi_table_done_event
{
3852 /* enum wmi_silent_rssi_status */
3854 /* enum wmi_silent_rssi_table */
3858 /* WMI_VRING_SWITCH_TIMING_CONFIG_EVENTID */
3859 struct wmi_vring_switch_timing_config_event
{
3860 /* enum wmi_fw_status */
3865 /* WMI_GET_ASSOC_LIST_RES_EVENTID */
3866 struct wmi_assoc_sta_info
{
3867 u8 mac
[WMI_MAC_LEN
];
3868 u8 omni_index_address
;
3872 #define WMI_GET_ASSOC_LIST_SIZE (8)
3874 /* WMI_GET_ASSOC_LIST_RES_EVENTID
3875 * Returns up to MAX_ASSOC_STA_LIST_SIZE associated STAs
3877 struct wmi_get_assoc_list_res_event
{
3878 struct wmi_assoc_sta_info assoc_sta_list
[WMI_GET_ASSOC_LIST_SIZE
];
3884 /* WMI_BF_CONTROL_EVENTID - deprecated */
3885 struct wmi_bf_control_event
{
3891 /* WMI_BF_CONTROL_EX_EVENTID */
3892 struct wmi_bf_control_ex_event
{
3898 /* WMI_COMMAND_NOT_SUPPORTED_EVENTID */
3899 struct wmi_command_not_supported_event
{
3904 /* for UT command only, otherwise reserved */
3905 __le16 command_subtype
;
3909 /* WMI_TSF_SYNC_CMDID */
3910 struct wmi_tsf_sync_cmd
{
3911 /* The time interval to send announce frame in one BI */
3913 /* The mcs to send announce frame */
3918 /* WMI_TSF_SYNC_STATUS_EVENTID */
3919 enum wmi_tsf_sync_status
{
3920 WMI_TSF_SYNC_SUCCESS
= 0x00,
3921 WMI_TSF_SYNC_FAILED
= 0x01,
3922 WMI_TSF_SYNC_REJECTED
= 0x02,
3925 /* WMI_TSF_SYNC_STATUS_EVENTID */
3926 struct wmi_tsf_sync_status_event
{
3927 /* enum wmi_tsf_sync_status */
3932 /* WMI_GET_CCA_INDICATIONS_EVENTID */
3933 struct wmi_get_cca_indications_event
{
3936 /* CCA-Energy Detect in percentage over last BI (0..100) */
3938 /* Averaged CCA-Energy Detect in percent over number of BIs (0..100) */
3939 u8 cca_ed_avg_percent
;
3940 /* NAV percent over last BI (0..100) */
3942 /* Averaged NAV percent over number of BIs (0..100) */
3947 /* WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_CMDID */
3948 struct wmi_set_cca_indications_bi_avg_num_cmd
{
3949 /* set the number of bis to average cca_ed (0..255) */
3954 /* WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_EVENTID */
3955 struct wmi_set_cca_indications_bi_avg_num_event
{
3961 /* WMI_INTERNAL_FW_SET_CHANNEL */
3962 struct wmi_internal_fw_set_channel_event
{
3967 /* WMI_LINK_STATS_CONFIG_DONE_EVENTID */
3968 struct wmi_link_stats_config_done_event
{
3969 /* wmi_fw_status_e */
3974 /* WMI_LINK_STATS_EVENTID */
3975 struct wmi_link_stats_event
{
3977 __le16 payload_size
;
3980 /* a stream of wmi_link_stats_record_s */
3984 /* WMI_LINK_STATS_EVENT */
3985 struct wmi_link_stats_record
{
3986 /* wmi_link_stats_record_type_e */
3993 /* WMI_LINK_STATS_TYPE_BASIC */
3994 struct wmi_link_stats_basic
{
4001 u8 rx_effective_ant_num
;
4013 __le32 rx_bcast_frames
;
4016 /* WMI_LINK_STATS_TYPE_GLOBAL */
4017 struct wmi_link_stats_global
{
4018 /* all ack-able frames */
4020 /* all ack-able frames */
4022 __le32 rx_ba_frames
;
4023 __le32 tx_ba_frames
;
4025 __le32 rx_mic_errors
;
4026 __le32 rx_crc_errors
;
4027 __le32 tx_fail_no_ack
;
4031 /* WMI_SET_GRANT_MCS_EVENTID */
4032 struct wmi_set_grant_mcs_event
{
4038 /* WMI_SET_AP_SLOT_SIZE_EVENTID */
4039 struct wmi_set_ap_slot_size_event
{
4045 /* WMI_SET_VRING_PRIORITY_WEIGHT_EVENTID */
4046 struct wmi_set_vring_priority_weight_event
{
4052 /* WMI_SET_VRING_PRIORITY_EVENTID */
4053 struct wmi_set_vring_priority_event
{
4059 #endif /* __WILOCITY_WMI_H__ */