blob: ade7aa62ed383266da4cac0eaec7f880e48dcc49 [file] [log] [blame]
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001/*
2 * Qualcomm Atheros OUI and vendor specific assignments
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08003 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
Hai Shalom81f62d82019-07-22 12:10:00 -07004 * Copyright (c) 2018-2019, The Linux Foundation
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08005 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef QCA_VENDOR_H
11#define QCA_VENDOR_H
12
Ahmed ElArabawyc358e802020-01-16 09:31:30 -080013#include "utils/common.h"
14
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080015/*
16 * This file is a registry of identifier assignments from the Qualcomm Atheros
17 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
18 * can be assigned through normal review process for changes to the upstream
19 * hostap.git repository.
20 */
21
22#define OUI_QCA 0x001374
23
24/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070025 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
26 */
27enum qca_radiotap_vendor_ids {
28 QCA_RADIOTAP_VID_WLANTEST = 0,
29};
30
31/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080032 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
33 *
34 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
35 *
36 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
37 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -070038 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
39 * internal BSS-selection. This command uses
40 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
41 * for the current connection (i.e., changes policy set by the nl80211
42 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
43 * included to indicate which BSS to use in case roaming is disabled.
44 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080045 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
46 * ranges to avoid to reduce issues due to interference or internal
Hai Shalom74f70d42019-02-11 14:42:39 -080047 * co-existence information in the driver. These frequencies aim to
48 * minimize the traffic but not to totally avoid the traffic. That said
49 * for a P2P use case, these frequencies are allowed for the P2P
50 * discovery/negotiation but avoid the group to get formed on these
51 * frequencies. The event data structure is defined in
52 * struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070053 *
54 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
55 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -070056 *
57 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
58 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -070059 * interpreted between the framework and the firmware component. While
60 * sending the command from userspace to the driver, payload is not
61 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
62 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080063 *
64 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
65 * used to configure PMK to the driver even when not connected. This can
66 * be used to request offloading of key management operations. Only used
67 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
68 *
69 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
70 * NL80211_CMD_ROAM event with optional attributes including information
71 * from offloaded key management operation. Uses
72 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
73 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
74 *
75 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
76 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -070077 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080078 *
79 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
80 * supported by the driver. enum qca_wlan_vendor_features defines
81 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080082 *
83 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
84 * which supports DFS offloading, to indicate a channel availability check
85 * start.
86 *
87 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
88 * which supports DFS offloading, to indicate a channel availability check
89 * completion.
90 *
91 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
92 * which supports DFS offloading, to indicate that the channel availability
93 * check aborted, no change to the channel status.
94 *
95 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
96 * driver, which supports DFS offloading, to indicate that the
97 * Non-Occupancy Period for this channel is over, channel becomes usable.
98 *
99 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
100 * which supports DFS offloading, to indicate a radar pattern has been
101 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700102 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700103 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
104 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
105 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700106 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
107 * based on enum wifi_logger_supported_features. Attributes defined in
108 * enum qca_wlan_vendor_attr_get_logger_features.
109 *
110 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
111 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
112 * attribute for this command. Attributes defined in
113 * enum qca_wlan_vendor_attr_wifi_logger_start.
114 *
115 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
116 * capabilities of the driver, parameters includes the attributes defined
117 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
118 *
119 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
120 * sending of certain periodic IP packet to firmware, attributes defined in
121 * enum qca_wlan_vendor_attr_offloaded_packets.
122 *
123 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
124 * monitoring, defines min and max RSSI which are configured for RSSI
125 * monitoring. Also used to notify the RSSI breach and provides the BSSID
126 * and RSSI value that was breached. Attributes defined in
127 * enum qca_wlan_vendor_attr_rssi_monitoring.
128 *
129 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
130 * Data Path (NDP) related operations, attributes defined in
131 * enum qca_wlan_vendor_attr_ndp_params.
132 *
133 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
134 * Neighbour Discovery offload, attributes defined in
135 * enum qca_wlan_vendor_attr_nd_offload.
136 *
137 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
138 * configuration parameter for BPF packet filter, attributes defined in
139 * enum qca_wlan_vendor_attr_packet_filter.
140 *
141 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
142 * maximum supported size, attributes defined in
143 * enum qca_wlan_vendor_drv_info.
144 *
145 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
146 * data about wake reasons and datapath IP statistics, attributes defined
147 * in enum qca_wlan_vendor_attr_wake_stats.
148 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700149 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
150 * for IEEE 802.11 communicating outside the context of a basic service
151 * set, called OCB command. Uses the attributes defines in
152 * enum qca_wlan_vendor_attr_ocb_set_config.
153 *
154 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
155 * UTC time. Use the attributes defines in
156 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
157 *
158 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
159 * sending OCB timing advert frames. Uses the attributes defines in
160 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
161 *
162 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
163 * OCB timing advert. Uses the attributes defines in
164 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
165 *
166 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
167 * timer value. Uses the attributes defines in
168 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
169 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800170 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
171 * link properties of the respective interface. As an event, is used
172 * to notify the connected station's status. The attributes for this
173 * command are defined in enum qca_wlan_vendor_attr_link_properties.
174 *
Hai Shalomc3565922019-10-28 11:58:20 -0700175 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
176 * DFS policy and channel hint for ACS operation. This command uses the
177 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
178 * enum qca_acs_dfs_mode.
179 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700180 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
181 * start the P2P Listen offload function in device and pass the listen
182 * channel, period, interval, count, device types, and vendor specific
183 * information elements to the device driver and firmware.
184 * Uses the attributes defines in
185 * enum qca_wlan_vendor_attr_p2p_listen_offload.
186 *
187 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
188 * indicate stop request/response of the P2P Listen offload function in
189 * device. As an event, it indicates either the feature stopped after it
190 * was already running or feature has actually failed to start. Uses the
191 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
192 *
193 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
194 * beaconing, this sub command provides the driver, the frequencies on the
195 * 5 GHz band to check for any radar activity. Driver selects one channel
196 * from this priority list provided through
197 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
198 * to check for radar activity on it. If no radar activity is detected
199 * during the channel availability check period, driver internally switches
200 * to the selected frequency of operation. If the frequency is zero, driver
201 * internally selects a channel. The status of this conditional switch is
202 * indicated through an event using the same sub command through
203 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
204 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700205 *
206 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
207 * attributes defined in enum qca_wlan_gpio_attr.
208 *
209 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
210 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
211 * capabilities are to be fetched and other
212 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
213 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700214 *
215 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
216 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
217 * command and event.
218 *
219 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
220 * indoor location features. Capabilities are reported in
221 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
222 *
223 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
224 * (fine timing measurement) session with one or more peers.
225 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
226 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
227 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
228 * events will be reported, followed by
229 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
230 * end of session.
231 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
232 *
233 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
234 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
235 * status code indicating session was aborted.
236 *
237 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
238 * results for one peer. Results are reported in
239 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
240 *
241 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
242 * FTM session is finished, either successfully or aborted by
243 * request.
244 *
245 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
246 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
247 * to enable or disable the responder. LCI/LCR reports can be
248 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
249 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
250 * times to update the LCI/LCR reports.
251 *
252 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
253 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800254 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
255 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
256 * scan results cache and use the frequency from there).
257 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
258 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700259 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
260 *
261 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
262 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
263 *
264 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
265 * the AOA measurement result.
266 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
267 * success/failure status is reported in
268 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
269 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
270 * The antenna array(s) used in the measurement are reported in
271 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700272 *
273 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
274 * data as per the given parameters.
275 *
276 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
277 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800278 *
279 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
280 * configuration for a DMG RF sector. Specify sector index in
281 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
282 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
283 * to return sector information for in
284 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
285 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
286 * exact time where information was captured in
287 * QCA_WLAN_VENDOR_ATTR_TSF.
288 *
289 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
290 * configuration for a DMG RF sector. Specify sector index in
291 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
292 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
293 * for one or more DMG RF modules in
294 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
295 *
296 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
297 * DMG RF sector for a station. This is the sector that the HW
298 * will use to communicate with the station. Specify the MAC address
299 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
300 * needed for unassociated station). Specify sector type to return in
301 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
302 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
303 * Also return the exact time where the information was captured
304 * in QCA_WLAN_VENDOR_ATTR_TSF.
305 *
306 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
307 * selected DMG RF sector for a station. This is the sector that
308 * the HW will use to communicate with the station.
309 * Specify the MAC address of associated station/AP/PCP in
310 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
311 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
312 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
313 * The selected sector will be locked such that it will not be
314 * modified like it normally does (for example when station
315 * moves around). To unlock the selected sector for a station
316 * pass the special value 0xFFFF in the sector index. To unlock
317 * all connected stations also pass a broadcast MAC address.
318 *
319 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
320 * in the host driver. The different TDLS configurations are defined
321 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800322 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800323 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
324 * capabilities. The response uses the attributes defined in
325 * enum qca_wlan_vendor_attr_get_he_capabilities.
326 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800327 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
328 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
329 * carries the scan cookie of the corresponding scan request. The scan
330 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800331 *
332 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
333 * Absorption Rate (SAR) power limits. A critical regulation for
334 * FCC compliance, OEMs require methods to set SAR limits on TX
335 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
336 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800337 *
338 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
339 * host driver for offloading the implementation of Auto Channel Selection
340 * (ACS) to an external user space entity. This interface is used as the
341 * event from the host driver to the user space entity and also as the
342 * request from the user space entity to the host driver. The event from
343 * the host driver is used by the user space entity as an indication to
344 * start the ACS functionality. The attributes used by this event are
345 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
346 * User space entity uses the same interface to inform the host driver with
347 * selected channels after the ACS operation using the attributes defined
348 * by enum qca_wlan_vendor_attr_external_acs_channels.
349 *
350 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
351 * requisite information leading to a power save failure. The information
352 * carried as part of this event is represented by the
353 * enum qca_attr_chip_power_save_failure attributes.
354 *
355 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
356 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
357 *
358 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
359 * statistics are represented by the enum qca_attr_nud_stats_get
360 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800361 *
362 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
363 * the BSS transition status, whether accept or reject, for a list of
364 * candidate BSSIDs provided by the userspace. This uses the vendor
365 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
366 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
367 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
368 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
369 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
370 * the driver shall specify array of
371 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
372 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
373 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
374 *
375 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
376 * specific QCA module. The trace levels are represented by
377 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700378 *
379 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
380 * Protocol antenna limit in different modes. See enum
381 * qca_wlan_vendor_attr_brp_ant_limit_mode.
382 *
383 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
384 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
385 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700386 * identifying the operation in success case. In failure cases an
387 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
388 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700389 *
390 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
391 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
392 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
393 * be stopped.
394 *
395 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
396 * specific interface. This can be used to modify some of the low level
397 * scan parameters (off channel dwell time, home channel time) in the
398 * driver/firmware. These parameters are maintained within the host driver.
399 * This command is valid only when the interface is in the connected state.
400 * These scan parameters shall be reset by the driver/firmware once
401 * disconnected. The attributes used with this command are defined in
402 * enum qca_wlan_vendor_attr_active_tos.
403 *
404 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
405 * driver has detected an internal failure. This event carries the
406 * information indicating the reason that triggered this detection. The
407 * attributes for this command are defined in
408 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700409 *
410 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
411 * of spectral parameters used. The spectral scan parameters are specified
412 * by enum qca_wlan_vendor_attr_spectral_scan.
413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
415 * for spectral scan functionality. The debug stats are specified by
416 * enum qca_wlan_vendor_attr_spectral_diag_stats.
417 *
418 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
419 * scan system capabilities. The capabilities are specified
420 * by enum qca_wlan_vendor_attr_spectral_cap.
421 *
422 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
423 * status of spectral scan. The status values are specified
424 * by enum qca_wlan_vendor_attr_spectral_scan_status.
425 *
426 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
427 * peer pending packets. Specify the peer MAC address in
428 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
429 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
430 * in enum qca_wlan_vendor_attr_flush_pending.
431 *
432 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
433 * RF Operating Parameter (RROP) information. The attributes for this
434 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
435 * intended for use by external Auto Channel Selection applications.
436 *
437 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
438 * (SAR) power limits. This is a companion to the command
439 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
440 * settings currently in use. The attributes returned by this command are
441 * defined by enum qca_vendor_attr_sar_limits.
442 *
443 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
444 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
445 * information attached to the respective MAC.
446 * This works both as a query (user space asks the current mode) or event
447 * interface (driver advertising the current mode to the user space).
448 * Driver does not trigger this event for temporary hardware mode changes.
449 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
450 * channel change, etc.) are updated with this event. Attributes for this
451 * interface are defined in enum qca_wlan_vendor_attr_mac.
452 *
453 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
454 * per peer per TID. Attributes for this command are define in
455 * enum qca_wlan_set_qdepth_thresh_attr.
456 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
457 * guide for WLAN driver. Request to suspend of driver and FW if the
458 * temperature is higher than the suspend threshold; resume action is
459 * requested to driver if the temperature is lower than the resume
460 * threshold. In user poll mode, request temperature data by user. For test
461 * purpose, getting thermal shutdown configuration parameters is needed.
462 * Attributes for this interface are defined in
463 * enum qca_wlan_vendor_attr_thermal_cmd.
464 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
465 * driver. Thermal temperature and indication of resume completion are
466 * reported as thermal events. The attributes for this command are defined
467 * in enum qca_wlan_vendor_attr_thermal_event.
468 *
469 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
470 * test configuration. Attributes for this command are defined in
471 * enum qca_wlan_vendor_attr_wifi_test_config.
472 *
473 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
474 * RX filter to receive frames from stations that are active on the
475 * operating channel, but not associated with the local device (e.g., STAs
476 * associated with other APs). Filtering is done based on a list of BSSIDs
477 * and STA MAC addresses added by the user. This command is also used to
478 * fetch the statistics of unassociated stations. The attributes used with
479 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700480 *
481 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
482 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
483 * carried a payload which was a binary blob of data. The command was not
484 * extendable to send more information. The newer version carries the
485 * legacy blob encapsulated within an attribute and can be extended with
486 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800487 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
488 * or stopped within driver/firmware in order to initiate roaming. The
489 * attributes used with this event are defined in enum
490 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
491 * in few cases, e.g., if the host processor is sleeping when this event
492 * is generated in firmware.
493 *
494 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
495 * configure parameters per peer to capture Channel Frequency Response
496 * (CFR) and enable Periodic CFR capture. The attributes for this command
497 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
Hai Shalom74f70d42019-02-11 14:42:39 -0800498 *
499 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
500 * in throughput dynamically. The driver estimates the throughput based on
501 * number of packets being transmitted/received per second and indicates
502 * the changes in throughput to user space. Userspace tools can use this
503 * information to configure kernel's TCP parameters in order to achieve
504 * peak throughput. Optionally, the driver will also send guidance on
505 * modifications to kernel's TCP parameters which can be referred by
506 * userspace tools. The attributes used with this event are defined in enum
507 * qca_wlan_vendor_attr_throughput_change.
508 *
509 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
510 * priorities among different types of traffic during coex scenarios.
511 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
512 * profiles mentioned in enum qca_coex_config_profiles. The associated
513 * attributes used with this command are defined in enum
514 * qca_vendor_attr_coex_config.
515 *
516 * Based on the config provided, FW will boost the weight and prioritize
517 * the traffic for that subsystem (WLAN/BT/Zigbee).
518 *
519 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
520 * the supported AKM suite selectorss from the driver. It returns the list
521 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700522 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
523 * state from the driver. It returns the firmware state in the attribute
524 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
525 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
526 * is used by the driver to flush per-peer cached statistics to user space
527 * application. This interface is used as an event from the driver to
528 * user space application. Attributes for this event are specified in
529 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
530 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
531 * sent in the event.
532 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
533 * improve the success rate of Zigbee joining network.
534 * Due to PTA master limitation, Zigbee joining network success rate is
535 * low while WLAN is working. The WLAN driver needs to configure some
536 * parameters including Zigbee state and specific WLAN periods to enhance
537 * PTA master. All these parameters are delivered by the attributes
538 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700539 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
540 * implement Beacon frame reporting feature.
541 *
542 * Userspace can request the driver/firmware to periodically report
543 * received Beacon frames whose BSSID is same as the current connected
544 * BSS's MAC address.
545 *
546 * In case the STA seamlessly (without sending disconnect indication to
547 * userspace) roams to a different BSS, Beacon frame reporting will be
548 * automatically enabled for the Beacon frames whose BSSID is same as the
549 * MAC address of the new BSS. Beacon reporting will be stopped when the
550 * STA is disconnected (when the disconnect indication is sent to
551 * userspace) and need to be explicitly enabled by userspace for next
552 * connection.
553 *
554 * When a Beacon frame matching configured conditions is received, and if
555 * userspace has requested to send asynchronous beacon reports, the
556 * driver/firmware will encapsulate the details of the Beacon frame in an
557 * event and send it to userspace along with updating the BSS information
558 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
559 * scan cache with the information from the received Beacon frame but will
560 * not send any active report to userspace.
561 *
562 * The userspace can request the driver/firmware to stop reporting Beacon
563 * frames. If the driver/firmware is not able to receive Beacon frames due
564 * to other Wi-Fi operations such as off-channel activities, etc., the
565 * driver/firmware will send a pause event to userspace and stop reporting
566 * Beacon frames. Whether the beacon reporting will be automatically
567 * resumed or not by the driver/firmware later will be reported to
568 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
569 * flag. The beacon reporting shall be resumed for all the cases except
570 * either when userspace sets
571 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
572 * which triggered the current beacon reporting or during any disconnection
573 * case as indicated by setting
574 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
575 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
576 * driver.
577 *
578 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
579 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
580 * flag not set, the next first
581 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
582 * shall be considered as un-pause event.
583 *
584 * All the attributes used with this command are defined in
585 * enum qca_wlan_vendor_attr_beacon_reporting_params.
586 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
587 * interop issues with the DUT. This sub command is used to transfer the
588 * AP info between the driver and user space. This works both as a command
589 * and an event. As a command, it configures the stored list of APs from
590 * user space to firmware; as an event, it indicates the AP info detected
591 * by the firmware to user space for persistent storage. The attributes
592 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
593 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700594 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
595 * send/receive OEM data binary blobs to/from application/service to/from
596 * firmware. The attributes defined in enum
597 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
598 * parameters.
599 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
600 * to send/receive avoid frequency data using
601 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
602 * This new command is alternative to existing command
603 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
604 * is using stream of bytes instead of structured data using vendor
605 * attributes.
606 *
607 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
608 * add the STA node details in driver/firmware. Attributes for this event
609 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
610 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
611 * coex chain mode from application/service.
612 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
613 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800614 *
615 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
616 * get information of a station from driver to userspace. This command can
617 * be used in both STA and AP modes. For STA mode, it provides information
618 * of the current association when in connected state or the last
619 * association when in disconnected state. For AP mode, only information
620 * of the currently connected stations is available. This command uses
621 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800622 */
623enum qca_nl80211_vendor_subcmds {
624 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
625 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700626 /* subcmds 2..8 not yet allocated */
627 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800628 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700629 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700630 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800631 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800632 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
633 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
634 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
635 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
636 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
637 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
638 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
639 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
640 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
641 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
642 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
643 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
644 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
645 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
646 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
647 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
648 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
649 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
650 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
651 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
652 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
653 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
654 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
655 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
656 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
657 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
658 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
659 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
660 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
661 /* 43..49 - reserved for QCA */
662 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
663 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
664 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700665 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800666 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
667 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800668 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
669 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
670 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
671 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
672 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800673 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
674 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
675 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
676 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
677 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
678 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
679 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
680 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
681 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
682 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
683 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
684 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
685 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700686 /* Wi-Fi configuration subcommands */
687 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
688 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700689 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
690 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
691 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
692 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
693 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
694 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
695 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
696 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
697 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
698 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
699 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700700 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700701 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
702 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
703 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
704 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
705 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
706 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
707 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
708 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
709 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700710 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700711 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
712 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
713 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
714 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800715 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
716 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
717 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
718 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
719 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800720 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700721 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
722 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700723 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700724 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
725 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700726 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700727 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
728 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
729 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700730 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
731 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700732 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
733 /* FTM/indoor location subcommands */
734 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
735 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
736 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
737 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
738 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
739 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
740 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
741 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
742 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700743 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
744 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800745 /* DMG low level RF sector operations */
746 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
747 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
748 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
749 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
750 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800751 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800752 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800753 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800754 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
755 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
756 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
757 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800758 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
759 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700760 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
761 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
762 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
763 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
764 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700765 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
766 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
767 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
768 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
769 /* Flush peer pending data */
770 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
771 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
772 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
773 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
774 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
775 /* Thermal shutdown commands to protect wifi chip */
776 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
777 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
778 /* Wi-Fi test configuration subcommand */
779 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
780 /* Frame filter operations for other BSSs/unassociated STAs */
781 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700782 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800783 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
784 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -0800785 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
786 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
787 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -0700788 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
789 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
790 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -0700791 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
792 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -0700793 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
794 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
795 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
796 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800797 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800798};
799
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700800enum qca_wlan_vendor_attr {
801 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
802 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
803 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700804 /* Used only when driver sends vendor events to the userspace under the
805 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
806 * commands to the driver.
807 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700808 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -0700809 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
810 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -0700811 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
812 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700813 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -0700814 * by enum qca_roaming_policy.
815 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700816 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
817 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800818 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
819 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800820 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700821 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
822 /* Unsigned 32-bit value. */
823 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
824 /* Unsigned 32-bit value */
825 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
826 /* Unsigned 32-bit value */
827 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
828 /* Unsigned 32-bit value from enum qca_set_band. */
829 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700830 /* Dummy (NOP) attribute for 64 bit padding */
831 QCA_WLAN_VENDOR_ATTR_PAD = 13,
832 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
833 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
834 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
835 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
836 */
837 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
838 /* Indoor location capabilities, returned by
839 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
840 * see enum qca_wlan_vendor_attr_loc_capa.
841 */
842 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
843 /* Array of nested attributes containing information about each peer
844 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
845 * for supported attributes for each peer.
846 */
847 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
848 /* Array of nested attributes containing measurement results for
849 * one or more peers, reported by the
850 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
851 * See enum qca_wlan_vendor_attr_peer_result for list of supported
852 * attributes.
853 */
854 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
855 /* Flag attribute for enabling or disabling responder functionality. */
856 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
857 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
858 * command to specify the LCI report that will be sent by
859 * the responder during a measurement exchange. The format is
860 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
861 */
862 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
863 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
864 * command to specify the location civic report that will
865 * be sent by the responder during a measurement exchange.
866 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
867 */
868 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
869 /* Session/measurement completion status code,
870 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
871 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
872 * see enum qca_vendor_attr_loc_session_status.
873 */
874 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
875 /* Initial dialog token used by responder (0 if not specified),
876 * unsigned 8 bit value.
877 */
878 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
879 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
880 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
881 * AOA measurements are needed as part of an FTM session.
882 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
883 * enum qca_wlan_vendor_attr_aoa_type.
884 */
885 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
886 /* A bit mask (unsigned 32 bit value) of antenna arrays used
887 * by indoor location measurements. Refers to the antenna
888 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
889 */
890 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
891 /* AOA measurement data. Its contents depends on the AOA measurement
892 * type and antenna array mask:
893 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
894 * phase of the strongest CIR path for each antenna in the measured
895 * array(s).
896 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
897 * values, phase and amplitude of the strongest CIR path for each
898 * antenna in the measured array(s).
899 */
900 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700901 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
902 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -0700903 * the corresponding antenna RSSI value
904 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700905 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
906 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700907 * to report the specific antenna RSSI value (unsigned 32 bit value)
908 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700909 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800910 /* Frequency in MHz, various uses. Unsigned 32 bit value */
911 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
912 /* TSF timer value, unsigned 64 bit value.
913 * May be returned by various commands.
914 */
915 QCA_WLAN_VENDOR_ATTR_TSF = 29,
916 /* DMG RF sector index, unsigned 16 bit number. Valid values are
917 * 0..127 for sector indices or 65535 as special value used to
918 * unlock sector selection in
919 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
920 */
921 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
922 /* DMG RF sector type, unsigned 8 bit value. One of the values
923 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
924 */
925 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
926 /* Bitmask of DMG RF modules for which information is requested. Each
927 * bit corresponds to an RF module with the same index as the bit
928 * number. Unsigned 32 bit number but only low 8 bits can be set since
929 * all DMG chips currently have up to 8 RF modules.
930 */
931 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
932 /* Array of nested attributes where each entry is DMG RF sector
933 * configuration for a single RF module.
934 * Attributes for each entry are taken from enum
935 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
936 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
937 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
938 */
939 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
940 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
941 * to report frame aggregation statistics to userspace.
942 */
943 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
944 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800945 /* Unsigned 8-bit value representing MBO transition reason code as
946 * provided by the AP used by subcommand
947 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
948 * specified by the userspace in the request to the driver.
949 */
950 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
951 /* Array of nested attributes, BSSID and status code, used by subcommand
952 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
953 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
954 * The userspace space specifies the list/array of candidate BSSIDs in
955 * the order of preference in the request. The driver specifies the
956 * status code, for each BSSID in the list, in the response. The
957 * acceptable candidates are listed in the order preferred by the
958 * driver.
959 */
960 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700961 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
962 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
963 */
964 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
965 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
966 * to define the number of antennas to use for BRP.
967 * different purpose in each ANT_LIMIT_MODE:
968 * DISABLE - ignored
969 * EFFECTIVE - upper limit to number of antennas to be used
970 * FORCE - exact number of antennas to be used
971 * unsigned 8 bit value
972 */
973 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
974 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700975 * to report the corresponding antenna index to the chain RSSI value
976 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700977 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -0800978 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
979 * the specific antenna EVM value (unsigned 32 bit value). With a
980 * determinate group of antennas, the driver specifies the EVM value
981 * for each antenna ID, and application extract them in user space.
982 */
983 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -0700984 /*
985 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
986 * wlan firmware current state. FW state is an unsigned 8 bit value,
987 * one of the values in enum qca_wlan_vendor_attr_fw_state.
988 */
989 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800990
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700991 /* keep last */
992 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
993 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
994};
995
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700996enum qca_roaming_policy {
997 QCA_ROAMING_NOT_ALLOWED,
998 QCA_ROAMING_ALLOWED_WITHIN_ESS,
999};
1000
Hai Shalom021b0b52019-04-10 11:17:58 -07001001/**
1002 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1003 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1004 *
1005 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1006 * reasons.
1007 *
1008 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1009 * the configured threshold.
1010 *
1011 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1012 * beacon misses from the then connected AP.
1013 *
1014 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1015 * by the connected AP.
1016 *
1017 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1018 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1019 *
1020 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1021 * or environment being very noisy or congested.
1022 *
1023 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
1024 * from the user (user space).
1025 *
1026 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1027 * the connected AP.
1028 *
1029 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1030 * breaching out the configured threshold.
1031 */
1032enum qca_roam_reason {
1033 QCA_ROAM_REASON_UNKNOWN,
1034 QCA_ROAM_REASON_PER,
1035 QCA_ROAM_REASON_BEACON_MISS,
1036 QCA_ROAM_REASON_POOR_RSSI,
1037 QCA_ROAM_REASON_BETTER_RSSI,
1038 QCA_ROAM_REASON_CONGESTION,
1039 QCA_ROAM_REASON_USER_TRIGGER,
1040 QCA_ROAM_REASON_BTM,
1041 QCA_ROAM_REASON_BSS_LOAD,
1042};
1043
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001044enum qca_wlan_vendor_attr_roam_auth {
1045 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1046 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1047 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1048 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1049 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1050 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1051 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1052 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001053 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001054 /* Indicates the status of re-association requested by user space for
1055 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1056 * Type u16.
1057 * Represents the status code from AP. Use
1058 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1059 * real status code for failures.
1060 */
1061 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1062 /* This attribute indicates that the old association was maintained when
1063 * a re-association is requested by user space and that re-association
1064 * attempt fails (i.e., cannot connect to the requested BSS, but can
1065 * remain associated with the BSS with which the association was in
1066 * place when being requested to roam). Used along with
1067 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1068 * re-association status. Type flag.
1069 * This attribute is applicable only for re-association failure cases.
1070 */
1071 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1072 /* This attribute specifies the PMK if one was newly generated during
1073 * FILS roaming. This is added to the PMKSA cache and is used in
1074 * subsequent connections with PMKSA caching.
1075 */
1076 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1077 /* This attribute specifies the PMKID used/generated for the current
1078 * FILS roam. This is used in subsequent connections with PMKSA caching.
1079 */
1080 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1081 /* A 16-bit unsigned value specifying the next sequence number to use
1082 * in ERP message in the currently associated realm. This is used in
1083 * doing subsequent ERP based connections in the same realm.
1084 */
1085 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001086 /* A 16-bit unsigned value representing the reasons for the roaming.
1087 * Defined by enum qca_roam_reason.
1088 */
1089 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1090
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001091 /* keep last */
1092 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1093 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1094 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1095};
1096
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001097enum qca_wlan_vendor_attr_p2p_listen_offload {
1098 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1099 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1100 * of the social channels.
1101 */
1102 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1103 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1104 */
1105 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1106 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1107 */
1108 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1109 /* A 32-bit unsigned value; number of interval times the firmware needs
1110 * to run the offloaded P2P listen operation before it stops.
1111 */
1112 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1113 /* An array of arbitrary binary data with one or more 8-byte values.
1114 * The device types include both primary and secondary device types.
1115 */
1116 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1117 /* An array of unsigned 8-bit characters; vendor information elements.
1118 */
1119 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1120 /* A 32-bit unsigned value; a control flag to indicate whether listen
1121 * results need to be flushed to wpa_supplicant.
1122 */
1123 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1124 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1125 * event.
1126 */
1127 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1128 /* keep last */
1129 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1130 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1131 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1132};
1133
Hai Shalomc3565922019-10-28 11:58:20 -07001134/**
1135 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1136 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1137 *
1138 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1139 * Used with event to notify the primary channel number selected in ACS
1140 * operation.
1141 * Note: If both the driver and user-space application supports the 6 GHz band,
1142 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1143 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1144 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1145 * is still used if either of the driver or user space application doesn't
1146 * support the 6 GHz band.
1147 *
1148 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1149 * Used with event to notify the secondary channel number selected in ACS
1150 * operation.
1151 * Note: If both the driver and user-space application supports the 6 GHz band,
1152 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1153 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1154 * To maintain backward compatibility,
1155 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1156 * the driver or user space application doesn't support 6 GHz band.
1157 *
1158 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1159 * (a) Used with command to configure hw_mode from
1160 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1161 * (b) Also used with event to notify the hw_mode of selected primary channel
1162 * in ACS operation.
1163 *
1164 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1165 * Used with command to configure ACS operation for HT mode.
1166 * Disable (flag attribute not present) - HT disabled and
1167 * Enable (flag attribute present) - HT enabled.
1168 *
1169 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1170 * Used with command to configure ACS operation for HT40 mode.
1171 * Disable (flag attribute not present) - HT40 disabled and
1172 * Enable (flag attribute present) - HT40 enabled.
1173 *
1174 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1175 * Used with command to configure ACS operation for VHT mode.
1176 * Disable (flag attribute not present) - VHT disabled and
1177 * Enable (flag attribute present) - VHT enabled.
1178 *
1179 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1180 * mandatory with event.
1181 * If specified in command path, ACS operation is configured with the given
1182 * channel width (in MHz).
1183 * In event path, specifies the channel width of the primary channel selected.
1184 *
1185 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1186 * Used with command to configure channel list using an array of
1187 * channel numbers (u8).
1188 * Note: If both the driver and user-space application supports the 6 GHz band,
1189 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1190 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1191 *
1192 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1193 * Used with event to notify the VHT segment 0 center channel number selected in
1194 * ACS operation.
1195 * Note: If both the driver and user-space application supports the 6 GHz band,
1196 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1197 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1198 * To maintain backward compatibility,
1199 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1200 * the driver or user space application doesn't support the 6 GHz band.
1201 *
1202 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1203 * Used with event to notify the VHT segment 1 center channel number selected in
1204 * ACS operation.
1205 * Note: If both the driver and user-space application supports the 6 GHz band,
1206 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1207 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1208 * To maintain backward compatibility,
1209 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1210 * the driver or user space application doesn't support the 6 GHz band.
1211 *
1212 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1213 * Used with command to configure the channel list using an array of channel
1214 * center frequencies in MHz (u32).
1215 * Note: If both the driver and user-space application supports the 6 GHz band,
1216 * the driver first parses the frequency list and if it fails to get a frequency
1217 * list, parses the channel list specified using
1218 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1219 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1220 *
1221 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1222 * Used with event to notify the primary channel center frequency (MHz) selected
1223 * in ACS operation.
1224 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1225 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1226 *
1227 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1228 * Used with event to notify the secondary channel center frequency (MHz)
1229 * selected in ACS operation.
1230 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1231 * includes this attribute along with
1232 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1233 *
1234 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1235 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1236 * selected in ACS operation.
1237 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1238 * includes this attribute along with
1239 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1240 *
1241 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1242 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1243 * selected in ACS operation.
1244 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1245 * includes this attribute along with
1246 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
1247 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001248enum qca_wlan_vendor_attr_acs_offload {
1249 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001250 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1251 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1252 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1253 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1254 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1255 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1256 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1257 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1258 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1259 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1260 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1261 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1262 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1263 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1264 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
1265
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001266 /* keep last */
1267 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1268 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1269 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1270};
1271
Hai Shalomc3565922019-10-28 11:58:20 -07001272/**
1273 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1274 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1275 *
1276 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1277 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1278 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1279 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1280 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1281 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1282 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001283enum qca_wlan_vendor_acs_hw_mode {
1284 QCA_ACS_MODE_IEEE80211B,
1285 QCA_ACS_MODE_IEEE80211G,
1286 QCA_ACS_MODE_IEEE80211A,
1287 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001288 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001289 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001290};
1291
1292/**
1293 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1294 *
1295 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1296 * management offload, a mechanism where the station's firmware
1297 * does the exchange with the AP to establish the temporal keys
1298 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001299 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1300 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001301 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001302 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001303 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1304 * Listen offload; a mechanism where the station's firmware takes care of
1305 * responding to incoming Probe Request frames received from other P2P
1306 * Devices whilst in Listen state, rather than having the user space
1307 * wpa_supplicant do it. Information from received P2P requests are
1308 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001309 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1310 * specific features.
1311 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1312 * features.
1313 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1314 * specific features only. If a Device sets this bit but not the
1315 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1316 * this Device may not support all OCE AP functionalities but can support
1317 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001318 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1319 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001320 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001321 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1322 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001323 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1324 */
1325enum qca_wlan_vendor_features {
1326 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001327 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001328 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001329 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001330 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1331 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1332 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001333 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Hai Shalom021b0b52019-04-10 11:17:58 -07001334 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001335 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1336 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001337 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1338};
1339
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001340/**
1341 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1342 *
1343 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1344 * the offloaded data.
1345 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1346 * data.
1347 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1348 * indication.
1349 */
1350enum qca_wlan_vendor_attr_data_offload_ind {
1351 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1352 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1353 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1354 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1355
1356 /* keep last */
1357 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1358 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1359 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1360};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001361
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001362/**
1363 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1364 * OCB config
1365 *
1366 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1367 * configuration
1368 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1369 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1370 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1371 * scheduled
1372 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1373 * information
1374 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1375 * active state configuration
1376 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1377 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1378 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1379 * use in the case that a packet is sent without a TX control header
1380 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1381 * last TA received that the local time set by TA is synchronous to other
1382 * communicating OCB STAs.
1383 */
1384enum qca_wlan_vendor_attr_ocb_set_config {
1385 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1386 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1387 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1388 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1389 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1390 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1391 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1392 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1393 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1394 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1395 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1396 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1397 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1398};
1399
1400/**
1401 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1402 * UTC time
1403 *
1404 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1405 * 10 bytes
1406 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1407 * 5 bytes
1408 */
1409enum qca_wlan_vendor_attr_ocb_set_utc_time {
1410 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1411 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1412 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1413 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1414 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1415 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1416};
1417
1418/**
1419 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1420 * to start sending timing advert frames
1421 *
1422 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1423 * on which to send the frames
1424 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1425 * the frame is sent in 5 seconds
1426 */
1427enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1428 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1429 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1430 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1431 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1432 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1433 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1434};
1435
1436/**
1437 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1438 * to stop timing advert
1439 *
1440 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1441 * frequency on which to stop the timing advert
1442 */
1443enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1444 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1445 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1446 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1447 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1448 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1449};
1450
1451/**
1452 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1453 * get TSF timer value
1454 *
1455 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1456 * timer
1457 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1458 */
1459enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1460 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1461 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1462 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1463 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1464 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1465 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1466};
1467
Ravi Joshie6ccb162015-07-16 17:45:41 -07001468enum qca_vendor_attr_get_preferred_freq_list {
1469 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1470 /* A 32-unsigned value; the interface type/mode for which the preferred
1471 * frequency list is requested (see enum qca_iface_type for possible
1472 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1473 * kernel and in the kernel response back to user-space.
1474 */
1475 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1476 /* An array of 32-unsigned values; values are frequency (MHz); sent
1477 * from kernel space to user space.
1478 */
1479 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001480 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1481 * attribute. Each element contains frequency (MHz), weight, and flag
1482 * bit mask indicating how the frequency should be used in P2P
1483 * negotiation; sent from kernel space to user space.
1484 */
1485 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001486 /* keep last */
1487 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1488 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1489 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1490};
1491
1492enum qca_vendor_attr_probable_oper_channel {
1493 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1494 /* 32-bit unsigned value; indicates the connection/iface type likely to
1495 * come on this channel (see enum qca_iface_type).
1496 */
1497 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1498 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1499 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1500 /* keep last */
1501 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1502 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1503 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1504};
1505
1506enum qca_iface_type {
1507 QCA_IFACE_TYPE_STA,
1508 QCA_IFACE_TYPE_AP,
1509 QCA_IFACE_TYPE_P2P_CLIENT,
1510 QCA_IFACE_TYPE_P2P_GO,
1511 QCA_IFACE_TYPE_IBSS,
1512 QCA_IFACE_TYPE_TDLS,
1513};
1514
1515enum qca_set_band {
1516 QCA_SETBAND_AUTO,
1517 QCA_SETBAND_5G,
1518 QCA_SETBAND_2G,
1519};
1520
Dmitry Shmidt17022322016-04-06 13:28:42 -07001521/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001522 * enum qca_access_policy - Access control policy
1523 *
1524 * Access control policy is applied on the configured IE
1525 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1526 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1527 *
1528 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1529 * the specific configuration (IE) set, i.e., allow all the
1530 * connections which do not match the configuration.
1531 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1532 * the specific configuration (IE) set, i.e., deny all the
1533 * connections which do not match the configuration.
1534 */
1535enum qca_access_policy {
1536 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1537 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1538};
1539
1540/**
Dmitry Shmidt17022322016-04-06 13:28:42 -07001541 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1542 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1543 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1544 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1545 * SOC timer value at TSF capture
1546 */
1547enum qca_vendor_attr_tsf_cmd {
1548 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1549 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1550 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1551 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1552 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1553 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1554 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1555};
1556
1557/**
1558 * enum qca_tsf_operation: TSF driver commands
1559 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1560 * @QCA_TSF_GET: Get TSF capture value
1561 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1562 */
1563enum qca_tsf_cmd {
1564 QCA_TSF_CAPTURE,
1565 QCA_TSF_GET,
1566 QCA_TSF_SYNC_GET,
1567};
1568
1569/**
1570 * enum qca_vendor_attr_wisa_cmd
1571 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1572 * WISA setup vendor commands
1573 */
1574enum qca_vendor_attr_wisa_cmd {
1575 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1576 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1577 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1578 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1579 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1580};
1581
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001582/* IEEE 802.11 Vendor Specific elements */
1583
1584/**
1585 * enum qca_vendor_element_id - QCA Vendor Specific element types
1586 *
1587 * These values are used to identify QCA Vendor Specific elements. The
1588 * payload of the element starts with the three octet OUI (OUI_QCA) and
1589 * is followed by a single octet type which is defined by this enum.
1590 *
1591 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1592 * This element can be used to specify preference order for supported
1593 * channels. The channels in this list are in preference order (the first
1594 * one has the highest preference) and are described as a pair of
1595 * (global) Operating Class and Channel Number (each one octet) fields.
1596 *
1597 * This extends the standard P2P functionality by providing option to have
1598 * more than one preferred operating channel. When this element is present,
1599 * it replaces the preference indicated in the Operating Channel attribute.
1600 * For supporting other implementations, the Operating Channel attribute is
1601 * expected to be used with the highest preference channel. Similarly, all
1602 * the channels included in this Preferred channel list element are
1603 * expected to be included in the Channel List attribute.
1604 *
1605 * This vendor element may be included in GO Negotiation Request, P2P
1606 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001607 *
1608 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1609 * This element can be used for pre-standard publication testing of HE
1610 * before P802.11ax draft assigns the element ID. The payload of this
1611 * vendor specific element is defined by the latest P802.11ax draft.
1612 * Please note that the draft is still work in progress and this element
1613 * payload is subject to change.
1614 *
1615 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1616 * This element can be used for pre-standard publication testing of HE
1617 * before P802.11ax draft assigns the element ID. The payload of this
1618 * vendor specific element is defined by the latest P802.11ax draft.
1619 * Please note that the draft is still work in progress and this element
1620 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001621 *
1622 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1623 * element).
1624 * This element can be used for pre-standard publication testing of HE
1625 * before P802.11ax draft assigns the element ID extension. The payload of
1626 * this vendor specific element is defined by the latest P802.11ax draft
1627 * (not including the Element ID Extension field). Please note that the
1628 * draft is still work in progress and this element payload is subject to
1629 * change.
1630 *
1631 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1632 * This element can be used for pre-standard publication testing of HE
1633 * before P802.11ax draft assigns the element ID extension. The payload of
1634 * this vendor specific element is defined by the latest P802.11ax draft
1635 * (not including the Element ID Extension field). Please note that the
1636 * draft is still work in progress and this element payload is subject to
1637 * change.
1638 *
1639 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1640 * This element can be used for pre-standard publication testing of HE
1641 * before P802.11ax draft assigns the element ID extension. The payload of
1642 * this vendor specific element is defined by the latest P802.11ax draft
1643 * (not including the Element ID Extension field). Please note that the
1644 * draft is still work in progress and this element payload is subject to
1645 * change.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001646 */
1647enum qca_vendor_element_id {
1648 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001649 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1650 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08001651 QCA_VENDOR_ELEM_RAPS = 3,
1652 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1653 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001654};
1655
1656/**
1657 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1658 *
1659 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1660 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1661 * with frequencies to be scanned (in MHz)
1662 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1663 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1664 * rates to be included
1665 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07001666 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001667 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1668 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07001669 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001670 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07001671 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001672 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07001673 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001674 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001675 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08001676 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1677 * specific BSSID to scan for.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001678 */
1679enum qca_wlan_vendor_attr_scan {
1680 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001681 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1682 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1683 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1684 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1685 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1686 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1687 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1688 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1689 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1690 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1691 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001692 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1693 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1694 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1695};
1696
1697/**
1698 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07001699 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001700 *
1701 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001702 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001703 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1704 */
1705enum scan_status {
1706 VENDOR_SCAN_STATUS_NEW_RESULTS,
1707 VENDOR_SCAN_STATUS_ABORTED,
1708 VENDOR_SCAN_STATUS_MAX,
1709};
1710
1711/**
1712 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1713 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1714 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1715 */
1716enum qca_vendor_attr_ota_test {
1717 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1718 /* 8-bit unsigned value to indicate if OTA test is enabled */
1719 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1720 /* keep last */
1721 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1722 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1723 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1724};
1725
1726/**
1727 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1728 *
1729 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1730 */
1731enum qca_vendor_attr_txpower_scale {
1732 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1733 /* 8-bit unsigned value to indicate the scaling of tx power */
1734 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1735 /* keep last */
1736 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1737 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1738 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1739};
1740
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001741/**
1742 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1743 *
1744 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1745 */
1746enum qca_vendor_attr_txpower_decr_db {
1747 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1748 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001749 * a virtual interface.
1750 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001751 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1752 /* keep last */
1753 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1754 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1755 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1756};
1757
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001758/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001759 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1760 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001761 */
1762enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001763 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001764 /* Unsigned 32-bit value to set the DTIM period.
1765 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1766 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1767 * DTIM beacons.
1768 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001769 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001770 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1771 * used to calculate statistics like average the TSF offset or average
1772 * number of frame leaked.
1773 * For instance, upon Beacon frame reception:
1774 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1775 * For instance, when evaluating leaky APs:
1776 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1777 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001778 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001779 /* Unsigned 32-bit value to configure guard time, i.e., when
1780 * implementing IEEE power management based on frame control PM bit, how
1781 * long the driver waits before shutting down the radio and after
1782 * receiving an ACK frame for a Data frame with PM bit set.
1783 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001784 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001785 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001786 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001787 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001788 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001789 /* Unsigned 32-bit value to configure the number of continuous
1790 * Beacon Miss which shall be used by the firmware to penalize
1791 * the RSSI.
1792 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001793 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001794 /* Unsigned 8-bit value to configure the channel avoidance indication
1795 * behavior. Firmware to send only one indication and ignore duplicate
1796 * indications when set to avoid multiple Apps wakeups.
1797 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001798 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001799 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001800 * aggregation.
1801 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001802 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001803 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001804 * aggregation.
1805 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001806 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001807 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001808 * retry threshold (0 disable, 31 max).
1809 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001810 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001811 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001812 * retry threshold (0 disable, 31 max).
1813 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001814 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001815 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001816 * retry threshold (0 disable, 31 max).
1817 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001818 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001819 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001820 * retry threshold (0 disable, 31 max).
1821 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001822 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001823 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001824 * 2G/5G band (0~63, units in us)
1825 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001826 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001827 /* Unsigned 32-bit value to configure the number of unicast TX fail
1828 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07001829 * reached.
1830 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001831 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001832 /* Attribute used to set scan default IEs to the driver.
1833 *
1834 * These IEs can be used by scan operations that will be initiated by
1835 * the driver/firmware.
1836 *
1837 * For further scan requests coming to the driver, these IEs should be
1838 * merged with the IEs received along with scan request coming to the
1839 * driver. If a particular IE is present in the scan default IEs but not
1840 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07001841 * sent in the Probe Request frames for that scan request.
1842 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001843 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001844 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001845 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001846 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001847 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001848 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001849 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001850 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001851 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1852 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001853 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001854 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001855 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1856 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001857 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001858 /* Unsigned 32-bit, defining the access policy.
1859 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001860 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1861 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001862 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001863 /* Sets the list of full set of IEs for which a specific access policy
1864 * has to be applied. Used along with
1865 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001866 * Zero length payload can be used to clear this access constraint.
1867 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001868 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001869 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1870 * corresponding configurations are applied. If the interface index is
1871 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07001872 * wiphy.
1873 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001874 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001875 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001876 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001877 /* 8-bit unsigned value to configure the driver and below layers to
1878 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07001879 * 1-Ignore, 0-Don't ignore
1880 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001881 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001882 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07001883 * 1-Enable, 0-Disable
1884 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001885 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001886 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001887 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001888 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001889 * 1-Enable, 0-Disable
1890 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001891 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001892 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001893 * the unit is micro-second
1894 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001895 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
1896 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1897 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1898 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1899 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1900 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1901 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1902 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1903 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1904 /* 6-byte MAC address to point out the specific peer */
1905 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1906 /* 32-bit unsigned value to set window size for specific peer */
1907 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001908 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1909 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1910 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1911 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001912 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1913 * station device while in disconnect state. The attribute use the
1914 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1915 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1916 * 10 MHz channel width, the station will not connect to a BSS using 20
1917 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07001918 * clear this constraint.
1919 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001920 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
1921 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07001922 * for 2G/5G band (units in us)
1923 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001924 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
1925 /* 32-bit unsigned value to set probe period */
1926 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1927 /* 32-bit unsigned value to set stay period */
1928 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1929 /* 32-bit unsigned value to set snr diff */
1930 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1931 /* 32-bit unsigned value to set probe dwell time */
1932 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1933 /* 32-bit unsigned value to set mgmt snr weight */
1934 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1935 /* 32-bit unsigned value to set data snr weight */
1936 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1937 /* 32-bit unsigned value to set ack snr weight */
1938 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
1939 /* 32-bit unsigned value to configure the listen interval.
1940 * This is in units of beacon intervals. This configuration alters
1941 * the negotiated listen interval with the AP during the connection.
1942 * It is highly recommended to configure a value less than or equal to
1943 * the one negotiated during the association. Configuring any greater
1944 * value can have adverse effects (frame loss, AP disassociating STA,
1945 * etc.).
1946 */
1947 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
1948 /*
1949 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1950 * disable operations that would cause the AP/GO to leave its operating
1951 * channel.
1952 *
1953 * This will restrict the scans to the AP/GO operating channel and the
1954 * channels of the other band, if DBS is supported.A STA/CLI interface
1955 * brought up after this setting is enabled, will be restricted to
1956 * connecting to devices only on the AP/GO interface's operating channel
1957 * or on the other band in DBS case. P2P supported channel list is
1958 * modified, to only include AP interface's operating-channel and the
1959 * channels of the other band if DBS is supported.
1960 *
1961 * These restrictions are only applicable as long as the AP/GO interface
1962 * is alive. If the AP/GO interface is brought down then this
1963 * setting/restriction is forgotten.
1964 *
1965 * If this variable is set on an AP/GO interface while a multi-channel
1966 * concurrent session is active, it has no effect on the operation of
1967 * the current interfaces, other than restricting the scan to the AP/GO
1968 * operating channel and the other band channels if DBS is supported.
1969 * However, if the STA is brought down and restarted then the new STA
1970 * connection will either be formed on the AP/GO channel or on the
1971 * other band in a DBS case. This is because of the scan being
1972 * restricted on these channels as mentioned above.
1973 *
1974 * 1-Restrict / 0-Don't restrict offchannel operations.
1975 */
1976 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
1977 /*
1978 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1979 * on an interface.
1980 * 1 - Enable, 0 - Disable.
1981 */
1982 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
1983
1984 /*
1985 * 8 bit unsigned value to globally enable/disable scan
1986 * 1 - Enable, 0 - Disable.
1987 */
1988 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1989
1990 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07001991 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001992 */
1993 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1994
1995 /* Unsigned 32-bit value to configure the number of continuous
1996 * Beacon Miss which shall be used by the firmware to penalize
1997 * the RSSI for BTC.
1998 */
1999 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2000
2001 /* 8-bit unsigned value to configure the driver and below layers to
2002 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002003 * 0-enable, 1-disable
2004 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002005 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002006
Roshan Pius3a1667e2018-07-03 15:17:14 -07002007 /* 16-bit unsigned value to configure the level of WLAN latency
2008 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2009 */
2010 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2011
2012 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2013 * the connect interface. Exclusively used for the scenarios where the
2014 * device is used as a test bed device with special functionality and
2015 * not recommended for production. This helps driver to not validate the
2016 * RSNE passed from user space and thus allow arbitrary IE data to be
2017 * used for testing purposes.
2018 * 1-enable, 0-disable.
2019 * Applications set/reset this configuration. If not reset, this
2020 * parameter remains in use until the driver is unloaded.
2021 */
2022 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2023
2024 /* 8-bit unsigned value to trigger green Tx power saving.
2025 * 1-Enable, 0-Disable
2026 */
2027 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2028
Hai Shalomc3565922019-10-28 11:58:20 -07002029 /* Attribute to configure disconnect IEs to the driver.
2030 * This carries an array of unsigned 8-bit characters.
2031 *
2032 * If this is configured, driver shall fill the IEs in disassoc/deauth
2033 * frame.
2034 * These IEs are expected to be considered only for the next
2035 * immediate disconnection (disassoc/deauth frame) originated by
2036 * the DUT, irrespective of the entity (user space/driver/firmware)
2037 * triggering the disconnection.
2038 * The host drivers are not expected to use the IEs set through
2039 * this interface for further disconnections after the first immediate
2040 * disconnection initiated post the configuration.
2041 * If the IEs are also updated through cfg80211 interface (after the
2042 * enhancement to cfg80211_disconnect), host driver is expected to
2043 * take the union of IEs from both of these interfaces and send in
2044 * further disassoc/deauth frames.
2045 */
2046 QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
2047
2048 /* 8-bit unsigned value for ELNA bypass.
2049 * 1-Enable, 0-Disable
2050 */
2051 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2052
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002053 /* keep last */
2054 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2055 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2056 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2057};
2058
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002059/**
2060 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002061 *
2062 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2063 * Channel number on which Access Point should restart.
2064 * Note: If both the driver and user space application supports the 6 GHz band,
2065 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2066 * should be used.
2067 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2068 * is still used if either of the driver or user space application doesn't
2069 * support the 6 GHz band.
2070 *
2071 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2072 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002073 */
2074enum qca_wlan_vendor_attr_sap_config {
2075 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002076 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2077
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002078 /* List of frequencies on which AP is expected to operate.
2079 * This is irrespective of ACS configuration. This list is a priority
2080 * based one and is looked for before the AP is created to ensure the
2081 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2082 * the system.
2083 */
2084 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002085 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002086
2087 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2088 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2089 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2090};
2091
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002092/**
2093 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2094 * conditional channel switch
2095 */
2096enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2097 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2098 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002099 * order)
2100 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002101 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2102 /* Status of the conditional switch (u32).
2103 * 0: Success, Non-zero: Failure
2104 */
2105 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2106
2107 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2108 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2109 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2110};
2111
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002112/**
2113 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
2114 */
2115enum qca_wlan_gpio_attr {
2116 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2117 /* Unsigned 32-bit attribute for GPIO command */
2118 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
2119 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
2120 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
2121 /* Unsigned 32-bit attribute for GPIO value to configure */
2122 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
2123 /* Unsigned 32-bit attribute for GPIO pull type */
2124 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
2125 /* Unsigned 32-bit attribute for GPIO interrupt mode */
2126 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
2127
2128 /* keep last */
2129 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2130 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2131 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2132};
2133
2134/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07002135 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2136 * MSDUQ depth threshold per peer per tid in the target
2137 *
2138 * Associated Vendor Command:
2139 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2140 */
2141enum qca_wlan_set_qdepth_thresh_attr {
2142 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2143 /* 6-byte MAC address */
2144 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2145 /* Unsigned 32-bit attribute for holding the TID */
2146 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2147 /* Unsigned 32-bit attribute for holding the update mask
2148 * bit 0 - Update high priority msdu qdepth threshold
2149 * bit 1 - Update low priority msdu qdepth threshold
2150 * bit 2 - Update UDP msdu qdepth threshold
2151 * bit 3 - Update Non UDP msdu qdepth threshold
2152 * rest of bits are reserved
2153 */
2154 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2155 /* Unsigned 32-bit attribute for holding the threshold value */
2156 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2157
2158 /* keep last */
2159 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2160 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2161 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2162};
2163
2164/**
Hai Shalomc3565922019-10-28 11:58:20 -07002165 * enum qca_acs_dfs_mode - Defines different types of DFS channel
2166 * configurations for ACS operation.
2167 *
2168 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2169 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2170 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2171 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2172 */
2173enum qca_acs_dfs_mode {
2174 QCA_ACS_DFS_MODE_NONE = 0,
2175 QCA_ACS_DFS_MODE_ENABLE = 1,
2176 QCA_ACS_DFS_MODE_DISABLE = 2,
2177 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
2178};
2179
2180/**
2181 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
2182 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
2183 *
2184 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
2185 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
2186 *
2187 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
2188 * channel number hint for ACS operation, if valid channel is specified then
2189 * ACS operation gives priority to this channel.
2190 * Note: If both the driver and user space application supports the 6 GHz band,
2191 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
2192 * should be used.
2193 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
2194 * is still used if either of the driver or user space application doesn't
2195 * support the 6 GHz band.
2196 *
2197 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
2198 * Channel center frequency (MHz) hint for ACS operation, if a valid center
2199 * frequency is specified, ACS operation gives priority to this channel.
2200 */
2201enum qca_wlan_vendor_attr_acs_config {
2202 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
2203 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
2204 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
2205 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
2206
2207 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
2208 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
2209 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
2210};
2211
2212/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002213 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
2214 */
2215enum qca_wlan_vendor_attr_get_hw_capability {
2216 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
2217 /* Antenna isolation
2218 * An attribute used in the response.
2219 * The content of this attribute is encoded in a byte array. Each byte
2220 * value is an antenna isolation value. The array length is the number
2221 * of antennas.
2222 */
2223 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
2224 /* Request HW capability
2225 * An attribute used in the request.
2226 * The content of this attribute is a u32 array for one or more of
2227 * hardware capabilities (attribute IDs) that are being requested. Each
2228 * u32 value has a value from this
2229 * enum qca_wlan_vendor_attr_get_hw_capability
2230 * identifying which capabilities are requested.
2231 */
2232 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2233
2234 /* keep last */
2235 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2236 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2237 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2238};
2239
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002240/**
2241 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2242 * offload which is an extension for LL_STATS.
2243 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2244 * If MAC counters do not exceed the threshold, FW will report monitored
2245 * link layer counters periodically as this setting. The first report is
2246 * always triggered by this timer.
2247 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
2248 * For each MAC layer counter, FW holds two copies. One is the current value.
2249 * The other is the last report. Once a current counter's increment is larger
2250 * than the threshold, FW will indicate that counter to host even if the
2251 * monitoring timer does not expire.
2252 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
2253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
2254 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
2255 * failure code.
2256 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
2257 * 1: TX packet discarded
2258 * 2: No ACK
2259 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
2261 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
2262 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
2263 * Threshold for all monitored parameters. If per counter dedicated threshold
2264 * is not enabled, this threshold will take effect.
2265 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
2266 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
2267 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
2268 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
2269 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
2270 * Bit0: TX counter unit in MSDU
2271 * Bit1: TX counter unit in MPDU
2272 * Bit2: TX counter unit in PPDU
2273 * Bit3: TX counter unit in byte
2274 * Bit4: Dropped MSDUs
2275 * Bit5: Dropped Bytes
2276 * Bit6: MPDU retry counter
2277 * Bit7: MPDU failure counter
2278 * Bit8: PPDU failure counter
2279 * Bit9: MPDU aggregation counter
2280 * Bit10: MCS counter for ACKed MPDUs
2281 * Bit11: MCS counter for Failed MPDUs
2282 * Bit12: TX Delay counter
2283 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
2284 * Bit0: MAC RX counter unit in MPDU
2285 * Bit1: MAC RX counter unit in byte
2286 * Bit2: PHY RX counter unit in PPDU
2287 * Bit3: PHY RX counter unit in byte
2288 * Bit4: Disorder counter
2289 * Bit5: Retry counter
2290 * Bit6: Duplication counter
2291 * Bit7: Discard counter
2292 * Bit8: MPDU aggregation size counter
2293 * Bit9: MCS counter
2294 * Bit10: Peer STA power state change (wake to sleep) counter
2295 * Bit11: Peer STA power save counter, total time in PS mode
2296 * Bit12: Probe request counter
2297 * Bit13: Other management frames counter
2298 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
2299 * Bit0: Idle time
2300 * Bit1: TX time
2301 * Bit2: time RX in current bss
2302 * Bit3: Out of current bss time
2303 * Bit4: Wireless medium busy time
2304 * Bit5: RX in bad condition time
2305 * Bit6: TX in bad condition time
2306 * Bit7: time wlan card not available
2307 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
2308 * Bit0: Per channel SNR counter
2309 * Bit1: Per channel noise floor counter
2310 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
2311 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
2312 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
2313 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
2314 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
2315 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
2316 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
2317 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
2318 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
2319 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
2320 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
2321 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
2322 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
2323 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
2324 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
2325 * aggregation stats buffer length
2326 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
2327 * buffer for ACKed MPDUs.
2328 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
2329 * buffer for failed MPDUs.
2330 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
2331 * length of delay stats array.
2332 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
2333 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
2334 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
2335 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
2336 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
2337 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
2338 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
2339 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
2340 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
2341 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
2342 * flagged as retransmissions
2343 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
2344 * flagged as duplicated
2345 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
2346 * packets discarded
2347 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
2348 * stats buffer.
2349 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
2350 * stats buffer.
2351 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
2352 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
2353 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
2354 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
2355 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
2356 * requests received
2357 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
2358 * frames received
2359 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
2360 * there is no TX, nor RX, nor interference.
2361 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
2362 * transmitting packets.
2363 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
2364 * for receiving.
2365 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
2366 * interference detected.
2367 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
2368 * receiving packets with errors.
2369 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
2370 * TX no-ACK.
2371 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
2372 * the chip is unable to work in normal conditions.
2373 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
2374 * receiving packets in current BSS.
2375 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
2376 * receiving packets not in current BSS.
2377 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
2378 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
2379 * This is a container for per antenna signal stats.
2380 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
2381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
2382 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
2383 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07002384 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
2385 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
2386 * message, user layer APP could call gettimeofday to get another
2387 * timestamp and calculate transfer delay for the message.
2388 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
2389 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002390 */
2391enum qca_wlan_vendor_attr_ll_stats_ext {
2392 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2393
2394 /* Attributes for configurations */
2395 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2396 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2397
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002398 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002399 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2400
2401 /* TX failure event */
2402 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2403 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2404 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2405
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002406 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2407 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2408
2409 /* MAC counters */
2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2413 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
2414 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
2415 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
2416 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
2417 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
2418 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
2419 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
2420 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
2421 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
2422
2423 /* Sub-attributes for PEER_AC_TX */
2424 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
2425 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
2426 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
2427 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
2428 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
2429 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
2430 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
2431 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
2432 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
2433 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
2434 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
2435 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
2436 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
2437 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
2438 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
2439 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
2440 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
2441
2442 /* Sub-attributes for PEER_AC_RX */
2443 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2444 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2445 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2446 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2447 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2448 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2449 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2450 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2452 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2453 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2454 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2455 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2456 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2457 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2458 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2459
2460 /* Sub-attributes for CCA_BSS */
2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2462 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2463 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2464 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2466 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2467 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2468
2469 /* sub-attribute for BSS_RX_TIME */
2470 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2471 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2472
2473 /* Sub-attributes for PEER_SIGNAL */
2474 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
2475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
2476 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
2477 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
2478
2479 /* Sub-attributes for IFACE_BSS */
2480 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
2481 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
2482
Roshan Pius3a1667e2018-07-03 15:17:14 -07002483 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
2484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
2485
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002486 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
2487 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
2488 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
2489};
2490
2491/* Attributes for FTM commands and events */
2492
2493/**
2494 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2495 *
2496 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2497 * enum qca_wlan_vendor_attr_loc_capa_flags.
2498 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2499 * of measurement sessions that can run concurrently.
2500 * Default is one session (no session concurrency).
2501 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2502 * peers that are supported in running sessions. For example,
2503 * if the value is 8 and maximum number of sessions is 2, you can
2504 * have one session with 8 unique peers, or 2 sessions with 4 unique
2505 * peers each, and so on.
2506 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2507 * of bursts per peer, as an exponent (2^value). Default is 0,
2508 * meaning no multi-burst support.
2509 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2510 * of measurement exchanges allowed in a single burst.
2511 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2512 * types. A bit mask (unsigned 32 bit value), each bit corresponds
2513 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2514 */
2515enum qca_wlan_vendor_attr_loc_capa {
2516 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
2517 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
2518 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
2519 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
2520 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
2521 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
2522 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
2523 /* keep last */
2524 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
2525 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
2526 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
2527};
2528
2529/**
2530 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2531 *
2532 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2533 * can be configured as an FTM responder (for example, an AP that
2534 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2535 * will be supported if set.
2536 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2537 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2538 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002539 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002540 * supports immediate (ASAP) response.
2541 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2542 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2543 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2544 * requesting AOA measurements as part of an FTM session.
2545 */
2546enum qca_wlan_vendor_attr_loc_capa_flags {
2547 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
2548 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
2549 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
2550 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
2551 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
2552};
2553
2554/**
2555 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2556 * a single peer in a measurement session.
2557 *
2558 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2559 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2560 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002561 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002562 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2563 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2564 * list of supported attributes.
2565 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2566 * secure measurement.
2567 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2568 * measurement every <value> bursts. If 0 or not specified,
2569 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002570 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2571 * the measurement frames are exchanged. Optional; if not
2572 * specified, try to locate the peer in the kernel scan
2573 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002574 */
2575enum qca_wlan_vendor_attr_ftm_peer_info {
2576 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
2577 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
2578 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002580 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
2581 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002582 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002583 /* keep last */
2584 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
2585 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
2586 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
2587};
2588
2589/**
2590 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2591 * per-peer
2592 *
2593 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2594 * immediate (ASAP) response from peer.
2595 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2596 * LCI report from peer. The LCI report includes the absolute
2597 * location of the peer in "official" coordinates (similar to GPS).
2598 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2599 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2600 * Location civic report from peer. The LCR includes the location
2601 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2602 * 11.24.6.7 for more information.
2603 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2604 * request a secure measurement.
2605 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2606 */
2607enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
2608 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
2609 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
2610 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
2611 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
2612};
2613
2614/**
2615 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2616 *
2617 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2618 * to perform in a single burst.
2619 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2620 * perform, specified as an exponent (2^value).
2621 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2622 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2623 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2624 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2625 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2626 */
2627enum qca_wlan_vendor_attr_ftm_meas_param {
2628 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
2629 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
2630 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
2631 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
2632 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
2633 /* keep last */
2634 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
2635 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
2636 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
2637};
2638
2639/**
2640 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2641 *
2642 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2643 * peer.
2644 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2645 * request for this peer.
2646 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2647 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2648 * to measurement results for this peer.
2649 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2650 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2651 * request failed and peer requested not to send an additional request
2652 * for this number of seconds.
2653 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2654 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2655 * 9.4.2.22.10.
2656 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2657 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2658 * 9.4.2.22.13.
2659 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2660 * overridden some measurement request parameters. See
2661 * enum qca_wlan_vendor_attr_ftm_meas_param.
2662 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2663 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2664 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2665 * results. Each entry is a nested attribute defined
2666 * by enum qca_wlan_vendor_attr_ftm_meas.
2667 */
2668enum qca_wlan_vendor_attr_ftm_peer_result {
2669 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2670 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2671 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2672 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2673 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2674 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2675 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2676 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2677 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2678 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2679 /* keep last */
2680 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2681 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2682 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2683};
2684
2685/**
2686 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2687 *
2688 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2689 * will be provided. Peer may have overridden some measurement parameters,
2690 * in which case overridden parameters will be report by
2691 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2692 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2693 * of performing the measurement request. No more results will be sent
2694 * for this peer in this session.
2695 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2696 * failed, and requested not to send an additional request for number
2697 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2698 * attribute.
2699 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2700 * failed. Request was not sent over the air.
2701 */
2702enum qca_wlan_vendor_attr_ftm_peer_result_status {
2703 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2704 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2705 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2706 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2707};
2708
2709/**
2710 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2711 * for measurement result, per-peer
2712 *
2713 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2714 * measurement completed for this peer. No more results will be reported
2715 * for this peer in this session.
2716 */
2717enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2718 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2719};
2720
2721/**
2722 * enum qca_vendor_attr_loc_session_status: Session completion status code
2723 *
2724 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2725 * successfully.
2726 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2727 * by request.
2728 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2729 * was invalid and was not started.
2730 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2731 * and did not complete normally (for example out of resources).
2732 */
2733enum qca_vendor_attr_loc_session_status {
2734 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2735 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2736 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2737 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2738};
2739
2740/**
2741 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2742 *
2743 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2744 * recorded by responder, in picoseconds.
2745 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2746 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2747 * initiator, in picoseconds.
2748 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2749 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2750 * initiator, in picoseconds.
2751 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2752 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2753 * responder, in picoseconds.
2754 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2755 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2756 * during this measurement exchange. Optional and will be provided if
2757 * the hardware can measure it.
2758 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2759 * responder. Not always provided.
2760 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2761 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2762 * responder. Not always provided.
2763 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2764 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2765 * initiator. Not always provided.
2766 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2767 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2768 * initiator. Not always provided.
2769 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2770 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2771 */
2772enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002773 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002774 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2775 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2776 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2777 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2778 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2779 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2780 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2781 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2782 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2783 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2784 /* keep last */
2785 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2786 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2787 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2788};
2789
2790/**
2791 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2792 *
2793 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2794 * CIR (channel impulse response) path for each antenna.
2795 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2796 * of the strongest CIR path for each antenna.
2797 */
2798enum qca_wlan_vendor_attr_aoa_type {
2799 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2800 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2801 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2802};
2803
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002804/**
2805 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2806 * validate encryption engine
2807 *
2808 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2809 * This will be included if the request is for decryption; if not included,
2810 * the request is treated as a request for encryption by default.
2811 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2812 * indicating the key cipher suite. Takes same values as
2813 * NL80211_ATTR_KEY_CIPHER.
2814 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2815 * Key Id to be used for encryption
2816 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2817 * Key (TK) to be used for encryption/decryption
2818 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2819 * Packet number to be specified for encryption/decryption
2820 * 6 bytes for TKIP/CCMP/GCMP.
2821 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2822 * representing the 802.11 packet (header + payload + FCS) that
2823 * needs to be encrypted/decrypted.
2824 * Encrypted/decrypted response from the driver will also be sent
2825 * to userspace with the same attribute.
2826 */
2827enum qca_wlan_vendor_attr_encryption_test {
2828 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2829 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2830 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2831 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2832 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2833 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2834 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2835
2836 /* keep last */
2837 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2838 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2839 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2840};
2841
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002842/**
2843 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2844 * sector for DMG RF sector operations.
2845 *
2846 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2847 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2848 */
2849enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2850 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2851 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2852 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2853};
2854
2855/**
Hai Shalom021b0b52019-04-10 11:17:58 -07002856 * enum qca_wlan_vendor_attr_fw_state - State of firmware
2857 *
2858 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
2859 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
2860 */
2861enum qca_wlan_vendor_attr_fw_state {
2862 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
2863 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
2864 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
2865};
2866
2867/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002868 * BRP antenna limit mode
2869 *
2870 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2871 * antenna limit, BRP will be performed as usual.
2872 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2873 * antennas limit. the hardware may use less antennas than the
2874 * maximum limit.
2875 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2876 * use exactly the specified number of antennas for BRP.
2877 */
2878enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2879 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2880 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2881 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2882 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2883};
2884
2885/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002886 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2887 * DMG RF sector configuration for a single RF module.
2888 * The values are defined in a compact way which closely matches
2889 * the way it is stored in HW registers.
2890 * The configuration provides values for 32 antennas and 8 distribution
2891 * amplifiers, and together describes the characteristics of the RF
2892 * sector - such as a beam in some direction with some gain.
2893 *
2894 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2895 * of RF module for this configuration.
2896 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2897 * amplifier gain index. Unsigned 32 bit number containing
2898 * bits for all 32 antennas.
2899 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2900 * amplifier gain index. Unsigned 32 bit number containing
2901 * bits for all 32 antennas.
2902 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2903 * amplifier gain index. Unsigned 32 bit number containing
2904 * bits for all 32 antennas.
2905 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2906 * for first 16 antennas, 2 bits per antenna.
2907 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2908 * for last 16 antennas, 2 bits per antenna.
2909 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2910 * DTYPE values (3 bits) for each distribution amplifier, followed
2911 * by X16 switch bits for each distribution amplifier. There are
2912 * total of 8 distribution amplifiers.
2913 */
2914enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2915 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2916 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2917 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2918 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2919 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2920 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2921 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2922 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2923
2924 /* keep last */
2925 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2926 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2927 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2928};
2929
2930enum qca_wlan_vendor_attr_ll_stats_set {
2931 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2932 /* Unsigned 32-bit value */
2933 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2934 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2935 /* keep last */
2936 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2937 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2938 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2939};
2940
2941enum qca_wlan_vendor_attr_ll_stats_clr {
2942 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2943 /* Unsigned 32bit bitmap for clearing statistics
2944 * All radio statistics 0x00000001
2945 * cca_busy_time (within radio statistics) 0x00000002
2946 * All channel stats (within radio statistics) 0x00000004
2947 * All scan statistics (within radio statistics) 0x00000008
2948 * All interface statistics 0x00000010
2949 * All tx rate statistics (within interface statistics) 0x00000020
2950 * All ac statistics (with in interface statistics) 0x00000040
2951 * All contention (min, max, avg) statistics (within ac statisctics)
2952 * 0x00000080.
2953 */
2954 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2955 /* Unsigned 8 bit value: Request to stop statistics collection */
2956 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2957
2958 /* Unsigned 32 bit bitmap: Response from the driver
2959 * for the cleared statistics
2960 */
2961 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2962 /* Unsigned 8 bit value: Response from driver/firmware
2963 * for the stop request
2964 */
2965 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2966 /* keep last */
2967 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2968 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2969 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2970};
2971
2972enum qca_wlan_vendor_attr_ll_stats_get {
2973 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2974 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2975 * command. When reporting the stats results, the driver uses the same
2976 * value to indicate which GET request the results correspond to.
2977 */
2978 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2979 /* Unsigned 32 bit value - bit mask to identify what statistics are
2980 * requested for retrieval.
2981 * Radio Statistics 0x00000001
2982 * Interface Statistics 0x00000020
2983 * All Peer Statistics 0x00000040
2984 * Peer Statistics 0x00000080
2985 */
2986 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2987 /* keep last */
2988 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2989 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2990 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2991};
2992
2993enum qca_wlan_vendor_attr_ll_stats_results {
2994 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2995 /* Unsigned 32bit value. Used by the driver; must match the request id
2996 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2997 */
2998 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2999
3000 /* Unsigned 32 bit value */
3001 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3002 /* Unsigned 32 bit value */
3003 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3004 /* Unsigned 32 bit value */
3005 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3006 /* Unsigned 32 bit value */
3007 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3008 /* Signed 32 bit value */
3009 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3010 /* Signed 32 bit value */
3011 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3012 /* Signed 32 bit value */
3013 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3014
3015 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3016 * nested within the interface stats.
3017 */
3018
3019 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3020 * Type = enum wifi_interface_mode.
3021 */
3022 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3023 /* Interface MAC address. An array of 6 Unsigned int8 */
3024 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3025 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3026 * AUTHENTICATING, etc. valid for STA, CLI only.
3027 */
3028 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3029 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3030 */
3031 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3032 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3033 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3034 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3035 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3036 /* BSSID. An array of 6 unsigned 8 bit values */
3037 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3038 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3039 * values.
3040 */
3041 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3042 /* Country string for this association. An array of 3 unsigned 8 bit
3043 * values.
3044 */
3045 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3046
3047 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3048 * be nested within the interface stats.
3049 */
3050
3051 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3052 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3053 /* Unsigned int 32 value corresponding to respective AC */
3054 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3055 /* Unsigned int 32 value corresponding to respective AC */
3056 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3057 /* Unsigned int 32 value corresponding to respective AC */
3058 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3059 /* Unsigned int 32 value corresponding to respective AC */
3060 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3061 /* Unsigned int 32 value corresponding to respective AC */
3062 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3063 /* Unsigned int 32 value corresponding to respective AC */
3064 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3065 /* Unsigned int 32 value corresponding to respective AC */
3066 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3067 /* Unsigned int 32 value corresponding to respective AC */
3068 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3069 /* Unsigned int 32 value corresponding to respective AC */
3070 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3071 /* Unsigned int 32 values corresponding to respective AC */
3072 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3073 /* Unsigned int 32 values corresponding to respective AC */
3074 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3075 /* Unsigned int 32 values corresponding to respective AC */
3076 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3077 /* Unsigned int 32 values corresponding to respective AC */
3078 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3079 /* Unsigned int 32 values corresponding to respective AC */
3080 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3081 /* Unsigned 32 bit value. Number of peers */
3082 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3083
3084 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3085 * nested within the interface stats.
3086 */
3087
3088 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3089 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3090 /* MAC addr corresponding to respective peer. An array of 6 unsigned
3091 * 8 bit values.
3092 */
3093 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3094 /* Unsigned int 32 bit value representing capabilities corresponding
3095 * to respective peer.
3096 */
3097 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3098 /* Unsigned 32 bit value. Number of rates */
3099 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3100
3101 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3102 * are nested within the rate stat.
3103 */
3104
3105 /* Wi-Fi Rate - separate attributes defined for individual fields */
3106
3107 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3108 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3109 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3110 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3111 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3112 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3113 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07003114 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3115 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003116 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3117
3118 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3119 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3120
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003121 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3122 * nested within the peer info stats.
3123 */
3124
3125 /* Unsigned int 32 bit value. Number of successfully transmitted data
3126 * packets, i.e., with ACK received corresponding to the respective
3127 * rate.
3128 */
3129 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3130 /* Unsigned int 32 bit value. Number of received data packets
3131 * corresponding to the respective rate.
3132 */
3133 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3134 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3135 * received corresponding to the respective rate.
3136 */
3137 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3138 /* Unsigned int 32 bit value. Total number of data packet retries for
3139 * the respective rate.
3140 */
3141 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3142 /* Unsigned int 32 bit value. Total number of short data packet retries
3143 * for the respective rate.
3144 */
3145 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3146 /* Unsigned int 32 bit value. Total number of long data packet retries
3147 * for the respective rate.
3148 */
3149 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3150
3151 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3152 /* Unsigned 32 bit value. Total number of msecs the radio is awake
3153 * accruing over time.
3154 */
3155 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3156 /* Unsigned 32 bit value. Total number of msecs the radio is
3157 * transmitting accruing over time.
3158 */
3159 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3160 /* Unsigned 32 bit value. Total number of msecs the radio is in active
3161 * receive accruing over time.
3162 */
3163 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3164 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3165 * to all scan accruing over time.
3166 */
3167 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3168 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3169 * to NAN accruing over time.
3170 */
3171 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3172 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3173 * to GSCAN accruing over time.
3174 */
3175 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
3176 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3177 * to roam scan accruing over time.
3178 */
3179 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
3180 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3181 * to PNO scan accruing over time.
3182 */
3183 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
3184 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3185 * to Hotspot 2.0 scans and GAS exchange accruing over time.
3186 */
3187 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
3188 /* Unsigned 32 bit value. Number of channels. */
3189 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
3190
3191 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
3192 * be nested within the channel stats.
3193 */
3194
3195 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
3196 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
3197 /* Unsigned 32 bit value. Primary 20 MHz channel. */
3198 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
3199 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
3200 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
3201 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
3202 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
3203
3204 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
3205 * nested within the radio stats.
3206 */
3207
3208 /* Unsigned int 32 bit value representing total number of msecs the
3209 * radio is awake on that channel accruing over time, corresponding to
3210 * the respective channel.
3211 */
3212 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
3213 /* Unsigned int 32 bit value representing total number of msecs the CCA
3214 * register is busy accruing over time corresponding to the respective
3215 * channel.
3216 */
3217 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
3218
3219 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
3220
3221 /* Signifies the nested list of channel attributes
3222 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
3223 */
3224 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
3225
3226 /* Signifies the nested list of peer info attributes
3227 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
3228 */
3229 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
3230
3231 /* Signifies the nested list of rate info attributes
3232 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3233 */
3234 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3235
3236 /* Signifies the nested list of wmm info attributes
3237 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3238 */
3239 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3240
3241 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3242 * that more stats, e.g., peers or radio, are to follow in the next
3243 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3244 * Otherwise, it is set to 0.
3245 */
3246 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
3247
3248 /* Unsigned 64 bit value */
3249 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
3250
3251 /* Unsigned 32 bit value */
3252 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
3253
3254 /* Unsigned 32 bit value */
3255 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
3256
3257 /* Unsigned 32 bit value */
3258 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
3259
3260 /* Unsigned 32 bit value */
3261 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
3262
3263 /* Unsigned 32 bit value */
3264 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
3265
3266 /* Number of msecs the radio spent in transmitting for each power level
3267 */
3268 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
3269
3270 /* Unsigned 32 bit value */
3271 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
3272 /* Unsigned 32 bit value */
3273 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
3274 /* Unsigned 32 bit value */
3275 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
3276 /* Unsigned 32 bit value */
3277 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
3278
Roshan Pius3a1667e2018-07-03 15:17:14 -07003279 /* Unsigned int 32 value.
3280 * Pending MSDUs corresponding to respective AC.
3281 */
3282 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
3283
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003284 /* keep last */
3285 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
3286 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
3287 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
3288};
3289
Roshan Pius3a1667e2018-07-03 15:17:14 -07003290enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003291 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
3292 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
3293 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
3294 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
3295
3296 /* keep last */
3297 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
3298 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
3299 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
3300};
3301
3302/**
3303 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
3304 * TDLS configuration to the host driver.
3305 *
3306 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
3307 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
3308 * represents the different TDLS trigger modes.
3309 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
3310 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
3311 * of packets shall meet the criteria for implicit TDLS setup.
3312 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
3313 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
3314 * to initiate a TDLS setup.
3315 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
3316 * a TDLS Discovery to the peer.
3317 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
3318 * discovery attempts to know the TDLS capability of the peer. A peer is
3319 * marked as TDLS not capable if there is no response for all the attempts.
3320 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
3321 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
3322 * number of TX / RX frames meet the criteria for TDLS teardown.
3323 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
3324 * of Tx/Rx packets within a duration
3325 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
3326 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
3327 * corresponding to the RSSI of the peer below which a TDLS setup is
3328 * triggered.
3329 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
3330 * corresponding to the RSSI of the peer above which a TDLS teardown is
3331 * triggered.
3332 */
3333enum qca_wlan_vendor_attr_tdls_configuration {
3334 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
3335 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
3336
3337 /* Attributes configuring the TDLS Implicit Trigger */
3338 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
3339 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
3340 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
3341 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
3342 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
3343 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
3344 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
3345 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
3346
3347 /* keep last */
3348 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
3349 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
3350 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
3351};
3352
3353/**
3354 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
3355 * the driver
3356 *
3357 * The following are the different values for
3358 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
3359 *
3360 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
3361 * the TDLS connection to a respective peer comes from the user space.
3362 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
3363 * TDLS_DISCOVER to do this.
3364 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
3365 * setup/teardown to the eligible peer once the configured criteria
3366 * (such as TX/RX threshold, RSSI) is met. The attributes
3367 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
3368 * the different configuration criteria for the TDLS trigger from the
3369 * host driver.
3370 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
3371 * the TDLS setup / teardown through the implicit mode only to the
3372 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
3373 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
3374 * External mode works on top of the implicit mode. Thus the host driver
3375 * is expected to configure in TDLS Implicit mode too to operate in
3376 * External mode.
3377 * Configuring External mode alone without Implicit mode is invalid.
3378 *
3379 * All the above implementations work as expected only when the host driver
3380 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
3381 * that the TDLS message exchange is not internal to the host driver, but
3382 * depends on wpa_supplicant to do the message exchange.
3383 */
3384enum qca_wlan_vendor_tdls_trigger_mode {
3385 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
3386 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
3387 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
3388};
3389
Dmitry Shmidt29333592017-01-09 12:27:11 -08003390/**
3391 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
3392 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3393 * that is hard-coded in the Board Data File (BDF).
3394 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3395 * that is hard-coded in the Board Data File (BDF).
3396 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3397 * that is hard-coded in the Board Data File (BDF).
3398 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
3399 * that is hard-coded in the Board Data File (BDF).
3400 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
3401 * that is hard-coded in the Board Data File (BDF).
3402 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
3403 * source of SAR power limits, thereby disabling the SAR power
3404 * limit feature.
3405 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
3406 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003407 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
3408 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003409 *
3410 * This enumerates the valid set of values that may be supplied for
3411 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07003412 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
3413 * the response to an instance of the
3414 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003415 */
3416enum qca_vendor_attr_sar_limits_selections {
3417 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
3418 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
3419 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
3420 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
3421 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
3422 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
3423 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003424 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003425};
3426
3427/**
3428 * enum qca_vendor_attr_sar_limits_spec_modulations -
3429 * SAR limits specification modulation
3430 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3431 * CCK modulation
3432 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3433 * OFDM modulation
3434 *
3435 * This enumerates the valid set of values that may be supplied for
3436 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3437 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3438 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07003439 * command or in the response to an instance of the
3440 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003441 */
3442enum qca_vendor_attr_sar_limits_spec_modulations {
3443 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
3444 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
3445};
3446
3447/**
3448 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3449 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003450 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08003451 * select which SAR power limit table should be used. Valid
3452 * values are enumerated in enum
3453 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3454 * power limit selection is unchanged if this attribute is not
3455 * present.
3456 *
3457 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3458 * which specifies the number of SAR power limit specifications
3459 * which will follow.
3460 *
3461 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3462 * limit specifications. The number of specifications is
3463 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3464 * specification contains a set of
3465 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3466 * specification is uniquely identified by the attributes
3467 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3468 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3469 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3470 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07003471 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3472 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3473 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3474 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3475 * needed based upon the value of
3476 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003477 *
3478 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3479 * indicate for which band this specification applies. Valid
3480 * values are enumerated in enum %nl80211_band (although not all
3481 * bands may be supported by a given device). If the attribute is
3482 * not supplied then the specification will be applied to all
3483 * supported bands.
3484 *
3485 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3486 * to indicate for which antenna chain this specification
3487 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3488 * attribute is not supplied then the specification will be
3489 * applied to all chains.
3490 *
3491 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3492 * value to indicate for which modulation scheme this
3493 * specification applies. Valid values are enumerated in enum
3494 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3495 * is not supplied then the specification will be applied to all
3496 * modulation schemes.
3497 *
3498 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3499 * value to specify the actual power limit value in units of 0.5
3500 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07003501 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3502 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003503 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07003504 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3505 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3506 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3507 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
3508 *
3509 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3510 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003511 */
3512enum qca_vendor_attr_sar_limits {
3513 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
3514 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
3515 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
3516 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
3517 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
3518 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
3519 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
3520 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003521 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003522
3523 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
3524 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
3525 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
3526};
3527
3528/**
3529 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3530 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07003531 *
3532 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
3533 * should be set to any U8 value to indicate that the driver version
3534 * should be returned. When enabled in this manner, in a response this
3535 * attribute will contain a string representation of the driver version.
3536 *
3537 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
3538 * should be set to any U8 value to indicate that the firmware version
3539 * should be returned. When enabled in this manner, in a response this
3540 * attribute will contain a string representation of the firmware version.
3541 *
3542 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
3543 * should be set to any U32 value to indicate that the current radio
3544 * index should be returned. When enabled in this manner, in a response
3545 * this attribute will contain a U32 radio index value.
3546 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08003547 */
3548enum qca_wlan_vendor_attr_get_wifi_info {
3549 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3550 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3551 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07003552 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003553
3554 /* keep last */
3555 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3556 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3557 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3558};
3559
3560/*
3561 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3562 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3563 */
3564enum qca_wlan_vendor_attr_wifi_logger_start {
3565 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
3566 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
3567 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
3568 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
3569
3570 /* keep last */
3571 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
3572 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
3573 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
3574};
3575
3576enum qca_wlan_vendor_attr_logger_results {
3577 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3578
3579 /* Unsigned 32-bit value; must match the request Id supplied by
3580 * Wi-Fi HAL in the corresponding subcmd NL msg.
3581 */
3582 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3583
3584 /* Unsigned 32-bit value; used to indicate the size of memory
3585 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003586 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08003587 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3588
3589 /* keep last */
3590 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3591 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3592 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3593};
3594
Hai Shalomc3565922019-10-28 11:58:20 -07003595/**
3596 * enum qca_scan_freq_list_type: Frequency list types
3597 *
3598 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3599 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3600 * a preferred frequency list for roaming.
3601 *
3602 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3603 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3604 * a specific frequency list for roaming.
3605 */
3606enum qca_scan_freq_list_type {
3607 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3608 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3609};
3610
3611/**
3612 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3613 *
3614 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
3615 * List of frequencies in MHz to be considered for a roam scan.
3616 *
3617 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3618 * Type of frequency list scheme being configured/gotten as defined by the
3619 * enum qca_scan_freq_list_type.
3620 */
3621enum qca_vendor_attr_scan_freq_list_scheme {
3622 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3623 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3624
3625 /* keep last */
3626 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3627 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3628 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3629};
3630
3631/*
3632 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3633 *
3634 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3635 * a bad packet error rates (PER).
3636 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3637 * based on beacon misses from the connected AP.
3638 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3639 * due to poor RSSI of the connected AP.
3640 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3641 * upon finding a BSSID with a better RSSI than the connected BSSID.
3642 * Here the RSSI of the current BSSID need not be poor.
3643 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3644 * by triggering a periodic scan to find a better AP to roam.
3645 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3646 * when the connected channel environment is too noisy/congested.
3647 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3648 * when BTM Request frame is received from the connected AP.
3649 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3650 * when the channel utilization is goes above the configured threshold.
3651 *
3652 * Set the corresponding roam trigger reason bit to consider it for roam
3653 * trigger.
3654 * Userspace can set multiple bits and send to the driver. The driver shall
3655 * consider all of them to trigger/initiate a roam scan.
3656 */
3657enum qca_vendor_roam_triggers {
3658 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
3659 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
3660 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
3661 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
3662 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
3663 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
3664 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
3665 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
3666};
3667
3668/**
3669 * enum qca_vendor_attr_roam_candidate_selection_criteria:
3670 *
3671 * Each attribute carries a weightage in percentage (%).
3672 *
3673 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3674 * Represents the weightage to be given for the RSSI selection
3675 * criteria among other parameters.
3676 *
3677 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3678 * Represents the weightage to be given for the rate selection
3679 * criteria among other parameters.
3680 *
3681 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3682 * Represents the weightage to be given for the band width selection
3683 * criteria among other parameters.
3684 *
3685 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3686 * Represents the weightage to be given for the band selection
3687 * criteria among other parameters.
3688 *
3689 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3690 * Represents the weightage to be given for the NSS selection
3691 * criteria among other parameters.
3692 *
3693 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3694 * Represents the weightage to be given for the channel congestion
3695 * selection criteria among other parameters.
3696 *
3697 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3698 * Represents the weightage to be given for the beamforming selection
3699 * criteria among other parameters.
3700 *
3701 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3702 * Represents the weightage to be given for the OCE selection
3703 * criteria among other parameters.
3704 */
3705enum qca_vendor_attr_roam_candidate_selection_criteria {
3706 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3707 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3708 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3709 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3710 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3711 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3712 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3713 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3714
3715 /* keep last */
3716 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3717 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3718 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3719};
3720
3721/**
3722 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3723 * The following attributes are used to set/get/clear the respective
3724 * configurations to/from the driver.
3725 * For the get, the attribute for the configuration to be queried shall
3726 * carry any of its acceptable values to the driver. In return, the driver
3727 * shall send the configured values within the same attribute to the user
3728 * space.
3729 *
3730 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3731 * Signifies to enable/disable roam control in driver.
3732 * 1-enable, 0-disable
3733 * Enable: Mandates the driver to do the further roams using the
3734 * configuration parameters set through
3735 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3736 * Disable: Disables the driver/firmware roaming triggered through
3737 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3738 * expected to continue with the default configurations.
3739 *
3740 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3741 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3742 * Roam control status is obtained through this attribute.
3743 *
3744 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3745 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3746 * is to be cleared in the driver.
3747 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3748 * and shall be ignored if used with other sub commands.
3749 * If this attribute is specified along with subcmd
3750 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3751 * all other attributes, if there are any.
3752 * If this attribute is not specified when the subcmd
3753 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3754 * clear the data corresponding to the attributes specified.
3755 *
3756 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3757 * list of frequencies and its type, represented by
3758 * enum qca_vendor_attr_scan_freq_list_scheme.
3759 * Frequency list and its type are mandatory for this attribute to set
3760 * the frequencies.
3761 * Frequency type is mandatory for this attribute to get the frequencies
3762 * and the frequency list is obtained through
3763 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3764 * Frequency list type is mandatory for this attribute to clear the
3765 * frequencies.
3766 *
3767 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3768 * Carries the value of scan period in seconds to set.
3769 * The value of scan period is obtained with the same attribute for get.
3770 * Clears the scan period in the driver when specified with clear command.
3771 * Scan period is the idle time in seconds between each subsequent
3772 * channel scans.
3773 *
3774 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3775 * Carries the value of full scan period in seconds to set.
3776 * The value of full scan period is obtained with the same attribute for
3777 * get.
3778 * Clears the full scan period in the driver when specified with clear
3779 * command. Full scan period is the idle period in seconds between two
3780 * successive full channel roam scans.
3781 *
3782 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3783 * Carries a bitmap of the roam triggers specified in
3784 * enum qca_vendor_roam_triggers.
3785 * The driver shall enable roaming by enabling corresponding roam triggers
3786 * based on the trigger bits sent with this attribute.
3787 * If this attribute is not configured, the driver shall proceed with
3788 * default behavior.
3789 * The bitmap configured is obtained with the same attribute for get.
3790 * Clears the bitmap configured in driver when specified with clear
3791 * command.
3792 *
3793 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3794 * weightage in percentage (%) to be given for each selection criteria.
3795 * Different roam candidate selection criteria are represented by
3796 * enum qca_vendor_attr_roam_candidate_selection_criteria.
3797 * The driver shall select the roam candidate based on corresponding
3798 * candidate selection scores sent.
3799 *
3800 * An empty nested attribute is used to indicate that no specific
3801 * preference score/criteria is configured (i.e., to disable this mechanism
3802 * in the set case and to show that the mechanism is disabled in the get
3803 * case).
3804 *
3805 * Userspace can send multiple attributes out of this enum to the driver.
3806 * Since this attribute represents the weight/percentage of preference for
3807 * the respective selection criteria, it is preferred to configure 100%
3808 * total weightage. The value in each attribute or cumulative weight of the
3809 * values in all the nested attributes should not exceed 100%. The driver
3810 * shall reject such configuration.
3811 *
3812 * If the weights configured through this attribute are less than 100%,
3813 * the driver shall honor the weights (x%) passed for the corresponding
3814 * selection criteria and choose/distribute rest of the weight (100-x)%
3815 * for the other selection criteria, based on its internal logic.
3816 *
3817 * The selection criteria configured is obtained with the same
3818 * attribute for get.
3819 *
3820 * Clears the selection criteria configured in the driver when specified
3821 * with clear command.
3822 */
3823enum qca_vendor_attr_roam_control {
3824 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3825 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3826 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3827 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
3828 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3829 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3830 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3831 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3832
3833 /* keep last */
3834 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3835 QCA_ATTR_ROAM_CONTROL_MAX =
3836 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3837};
3838
3839/*
3840 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3841 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3842 *
3843 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3844 * Represents the different roam sub commands referred by
3845 * enum qca_wlan_vendor_roaming_subcmd.
3846 *
3847 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3848 * Represents the Request ID for the specific set of commands.
3849 * This also helps to map specific set of commands to the respective
3850 * ID / client. e.g., helps to identify the user entity configuring the
3851 * Blacklist BSSID and accordingly clear the respective ones with the
3852 * matching ID.
3853 *
3854 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3855 * 32-bit value.Represents the number of whitelist SSIDs configured.
3856 *
3857 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3858 * to carry the list of Whitelist SSIDs.
3859 *
3860 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3861 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
3862 * represent the list of SSIDs to which the firmware/driver can consider
3863 * to roam to.
3864 *
3865 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3866 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3867 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3868 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
3869 *
3870 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3871 * value, RSSI threshold above which 5GHz RSSI is favored.
3872 *
3873 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3874 * value, RSSI threshold below which 5GHz RSSI is penalized.
3875 *
3876 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3877 * value, factor by which 5GHz RSSI is boosted.
3878 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3879 *
3880 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3881 * value, factor by which 5GHz RSSI is penalized.
3882 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3883 *
3884 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3885 * value, maximum boost that can be applied to a 5GHz RSSI.
3886 *
3887 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3888 * value, boost applied to current BSSID to ensure the currently
3889 * associated BSSID is favored so as to prevent ping-pong situations.
3890 *
3891 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3892 * value, RSSI below which "Alert" roam is enabled.
3893 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3894 * because the RSSI is low, or because many successive beacons have been
3895 * lost or other bad link conditions.
3896 *
3897 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3898 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3899 * firmware is hunting for a better BSSID or white listed SSID even though
3900 * the RSSI of the link is good. The parameters enabling the roaming are
3901 * configured through the PARAM_A_BAND_XX attrbutes.
3902 *
3903 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3904 * represents the BSSIDs preferred over others while evaluating them
3905 * for the roaming.
3906 *
3907 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3908 * 32-bit value. Represents the number of preferred BSSIDs set.
3909 *
3910 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3911 * address representing the BSSID to be preferred.
3912 *
3913 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3914 * 32-bit value, representing the modifier to be applied to the RSSI of
3915 * the BSSID for the purpose of comparing it with other roam candidate.
3916 *
3917 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3918 * represents the BSSIDs to get blacklisted for roaming.
3919 *
3920 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3921 * 32-bit value, represents the number of blacklisted BSSIDs.
3922 *
3923 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3924 * address representing the Blacklisted BSSID.
3925 *
3926 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3927 * indicates this BSSID blacklist as a hint to the driver. The driver can
3928 * select this BSSID in the worst case (when no other BSSIDs are better).
3929 *
3930 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3931 * set/get/clear the roam control config as
3932 * defined @enum qca_vendor_attr_roam_control.
3933 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08003934enum qca_wlan_vendor_attr_roaming_config_params {
3935 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3936
3937 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3938 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3939
3940 /* Attributes for wifi_set_ssid_white_list */
3941 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3942 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3943 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3944
3945 /* Attributes for set_roam_params */
3946 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3947 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3948 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3949 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3950 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3951 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3952 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3953
3954 /* Attribute for set_lazy_roam */
3955 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3956
3957 /* Attribute for set_lazy_roam with preferences */
3958 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3959 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3960 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3961 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3962
3963 /* Attribute for set_blacklist bssid params */
3964 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3965 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3966 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom021b0b52019-04-10 11:17:58 -07003967 /* Flag attribute indicates this BSSID blacklist as a hint */
3968 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003969
Hai Shalomc3565922019-10-28 11:58:20 -07003970 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3971
Dmitry Shmidt29333592017-01-09 12:27:11 -08003972 /* keep last */
3973 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3974 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3975 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3976};
3977
3978/*
Hai Shalomc3565922019-10-28 11:58:20 -07003979 * enum qca_wlan_vendor_roaming_subcmd: Referred by
3980 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3981 *
3982 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3983 * configure the white list SSIDs. These are configured through
3984 * the following attributes.
3985 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3986 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3987 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3988 *
3989 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
3990 * configure the Roam params. These parameters are evaluated on the GScan
3991 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
3992 * params.
3993 *
3994 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3995 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3996 * to enable/disable Lazy roam.
3997 *
3998 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3999 * preference. Contains the attribute
4000 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
4001 * preference.
4002 *
4003 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
4004 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
4005 * set the same.
4006 *
4007 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4008 * roam control config to the driver with the attribute
4009 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4010 *
4011 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4012 * roam control config from driver with the attribute
4013 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4014 * For the get, the attribute for the configuration to be queried shall
4015 * carry any of its acceptable value to the driver. In return, the driver
4016 * shall send the configured values within the same attribute to the user
4017 * space.
4018 *
4019 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4020 * roam control config in the driver with the attribute
4021 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4022 * The driver shall continue with its default roaming behavior when data
4023 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004024 */
Hai Shalomc3565922019-10-28 11:58:20 -07004025enum qca_wlan_vendor_roaming_subcmd {
4026 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
4027 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4028 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
4029 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4030 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4031 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4032 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4033 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4034 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4035 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004036};
4037
4038enum qca_wlan_vendor_attr_gscan_config_params {
4039 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
4040
4041 /* Unsigned 32-bit value */
4042 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
4043
4044 /* Attributes for data used by
4045 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
4046 */
4047 /* Unsigned 32-bit value */
4048 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
4049 = 2,
4050 /* Unsigned 32-bit value */
4051 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
4052 = 3,
4053
4054 /* Attributes for input params used by
4055 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
4056 */
4057
4058 /* Unsigned 32-bit value; channel frequency */
4059 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
4060 /* Unsigned 32-bit value; dwell time in ms. */
4061 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
4062 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
4063 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
4064 /* Unsigned 8-bit value; channel class */
4065 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
4066
4067 /* Unsigned 8-bit value; bucket index, 0 based */
4068 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
4069 /* Unsigned 8-bit value; band. */
4070 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
4071 /* Unsigned 32-bit value; desired period, in ms. */
4072 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
4073 /* Unsigned 8-bit value; report events semantics. */
4074 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
4075 /* Unsigned 32-bit value. Followed by a nested array of
4076 * GSCAN_CHANNEL_SPEC_* attributes.
4077 */
4078 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
4079
4080 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
4081 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4082 */
4083 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
4084
4085 /* Unsigned 32-bit value; base timer period in ms. */
4086 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
4087 /* Unsigned 32-bit value; number of APs to store in each scan in the
4088 * BSSID/RSSI history buffer (keep the highest RSSI APs).
4089 */
4090 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
4091 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
4092 * up AP.
4093 */
4094 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
4095 = 16,
4096
4097 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
4098 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
4099 * of the array is determined by NUM_BUCKETS.
4100 */
4101 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
4102
4103 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
4104 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
4105 */
4106 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
4107
4108 /* Unsigned 8-bit value */
4109 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
4110 = 19,
4111 /* Unsigned 32-bit value; maximum number of results to be returned. */
4112 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
4113 = 20,
4114
4115 /* An array of 6 x unsigned 8-bit value */
4116 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
4117 /* Signed 32-bit value */
4118 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
4119 /* Signed 32-bit value */
4120 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
4121 /* Unsigned 32-bit value */
4122 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
4123
4124 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
4125 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
4126 * array is determined by NUM_AP.
4127 */
4128 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
4129
4130 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
4131 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4132 */
4133 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
4134
4135 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
4136 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
4137 = 27,
4138 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4139 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
4140 = 28,
4141 /* Unsigned 32-bit value; number of APs breaching threshold. */
4142 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
4143 /* Unsigned 32-bit value; number of APs. Followed by an array of
4144 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
4145 */
4146 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
4147 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4148 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
4149 = 31,
4150 /* Unsigned 32-bit value. If max_period is non zero or different than
4151 * period, then this bucket is an exponential backoff bucket.
4152 */
4153 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
4154 /* Unsigned 32-bit value. */
4155 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
4156 /* Unsigned 32-bit value. For exponential back off bucket, number of
4157 * scans to perform for a given period.
4158 */
4159 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
4160 /* Unsigned 8-bit value; in number of scans, wake up AP after these
4161 * many scans.
4162 */
4163 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
4164 = 35,
4165
4166 /* Attributes for data used by
4167 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
4168 */
4169 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
4170 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
4171 = 36,
4172 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
4173 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
4174 * size of the array is determined by NUM_SSID.
4175 */
4176 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
4177 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
4178 * attributes.
4179 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
4180 */
4181 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
4182
4183 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
4184 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
4185 /* Unsigned 8-bit value */
4186 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
4187 /* Signed 32-bit value */
4188 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
4189 /* Signed 32-bit value */
4190 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
4191 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
4192 */
4193 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
4194
4195 /* keep last */
4196 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
4197 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
4198 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
4199};
4200
4201enum qca_wlan_vendor_attr_gscan_results {
4202 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
4203
4204 /* Unsigned 32-bit value; must match the request Id supplied by
4205 * Wi-Fi HAL in the corresponding subcmd NL msg.
4206 */
4207 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
4208
4209 /* Unsigned 32-bit value; used to indicate the status response from
4210 * firmware/driver for the vendor sub-command.
4211 */
4212 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
4213
4214 /* GSCAN Valid Channels attributes */
4215 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
4216 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
4217 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
4218 * representing channel numbers.
4219 */
4220 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
4221
4222 /* GSCAN Capabilities attributes */
4223 /* Unsigned 32-bit value */
4224 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
4225 /* Unsigned 32-bit value */
4226 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
4227 /* Unsigned 32-bit value */
4228 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
4229 = 7,
4230 /* Unsigned 32-bit value */
4231 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
4232 = 8,
4233 /* Signed 32-bit value */
4234 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
4235 = 9,
4236 /* Unsigned 32-bit value */
4237 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
4238 /* Unsigned 32-bit value */
4239 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
4240 = 11,
4241 /* Unsigned 32-bit value */
4242 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
4243 = 12,
4244
4245 /* GSCAN Attributes used with
4246 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
4247 */
4248
4249 /* Unsigned 32-bit value */
4250 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
4251
4252 /* GSCAN attributes used with
4253 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
4254 */
4255
4256 /* An array of NUM_RESULTS_AVAILABLE x
4257 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
4258 */
4259 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
4260
4261 /* Unsigned 64-bit value; age of sample at the time of retrieval */
4262 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
4263 /* 33 x unsigned 8-bit value; NULL terminated SSID */
4264 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
4265 /* An array of 6 x unsigned 8-bit value */
4266 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
4267 /* Unsigned 32-bit value; channel frequency in MHz */
4268 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
4269 /* Signed 32-bit value */
4270 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
4271 /* Unsigned 32-bit value */
4272 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
4273 /* Unsigned 32-bit value */
4274 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
4275 /* Unsigned 16-bit value */
4276 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
4277 /* Unsigned 16-bit value */
4278 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
4279 /* Unsigned 32-bit value; size of the IE DATA blob */
4280 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
4281 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
4282 * information elements found in the beacon; this data should be a
4283 * packed list of wifi_information_element objects, one after the
4284 * other.
4285 */
4286 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
4287
4288 /* Unsigned 8-bit value; set by driver to indicate more scan results are
4289 * available.
4290 */
4291 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
4292
4293 /* GSCAN attributes for
4294 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
4295 */
4296 /* Unsigned 8-bit value */
4297 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
4298 /* Unsigned 32-bit value */
4299 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
4300
4301 /* GSCAN attributes for
4302 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
4303 */
4304 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4305 * to indicate number of results.
4306 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
4307 * list of results.
4308 */
4309
4310 /* GSCAN attributes for
4311 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
4312 */
4313 /* An array of 6 x unsigned 8-bit value */
4314 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
4315 /* Unsigned 32-bit value */
4316 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
4317 = 30,
4318 /* Unsigned 32-bit value. */
4319 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
4320 = 31,
4321 /* A nested array of signed 32-bit RSSI values. Size of the array is
4322 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
4323 */
4324 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
4325 = 32,
4326
4327 /* GSCAN attributes used with
4328 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
4329 */
4330 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4331 * to indicate number of gscan cached results returned.
4332 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
4333 * the list of gscan cached results.
4334 */
4335
4336 /* An array of NUM_RESULTS_AVAILABLE x
4337 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
4338 */
4339 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
4340 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
4341 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
4342 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
4343 */
4344 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
4345 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4346 * to indicate number of wifi scan results/bssids retrieved by the scan.
4347 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
4348 * list of wifi scan results returned for each cached result block.
4349 */
4350
4351 /* GSCAN attributes for
4352 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
4353 */
4354 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
4355 * number of results.
4356 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
4357 * list of wifi scan results returned for each
4358 * wifi_passpoint_match_result block.
4359 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
4360 */
4361
4362 /* GSCAN attributes for
4363 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
4364 */
4365 /* Unsigned 32-bit value */
4366 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
4367 = 36,
4368 /* A nested array of
4369 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
4370 * attributes. Array size =
4371 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
4372 */
4373 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
4374
4375 /* Unsigned 32-bit value; network block id for the matched network */
4376 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
4377 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
4378 * list of wifi scan results returned for each
4379 * wifi_passpoint_match_result block.
4380 */
4381 /* Unsigned 32-bit value */
4382 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
4383 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
4384 * ANQP data in the information_element format.
4385 */
4386 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
4387
4388 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4389 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
4390 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4391 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
4392 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4393 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
4394 = 43,
4395 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4396 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
4397 = 44,
4398
4399 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
4400
Hai Shalomce48b4a2018-09-05 11:41:35 -07004401 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
4402 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07004403 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
4404 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07004405 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
4406 */
4407 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
4408
Dmitry Shmidt29333592017-01-09 12:27:11 -08004409 /* keep last */
4410 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
4411 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
4412 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
4413};
4414
4415enum qca_wlan_vendor_attr_pno_config_params {
4416 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
4417 /* Attributes for data used by
4418 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
4419 */
4420 /* Unsigned 32-bit value */
4421 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
4422 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
4423 * attributes. Array size =
4424 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
4425 */
4426 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
4427
4428 /* Unsigned 32-bit value */
4429 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
4430 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
4431 * realm, 0 if unspecified.
4432 */
4433 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
4434 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
4435 * match, 0 if unspecified.
4436 */
4437 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
4438 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
4439 * unspecified.
4440 */
4441 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
4442
4443 /* Attributes for data used by
4444 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
4445 */
4446 /* Unsigned 32-bit value */
4447 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
4448 /* Array of nested
4449 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
4450 * attributes. Array size =
4451 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
4452 */
4453 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
4454 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
4455 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
4456 /* Signed 8-bit value; threshold for considering this SSID as found,
4457 * required granularity for this threshold is 4 dBm to 8 dBm.
4458 */
4459 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
4460 = 10,
4461 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
4462 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
4463 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
4464 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
4465 /* Unsigned 8-bit to indicate ePNO type;
4466 * It takes values from qca_wlan_epno_type
4467 */
4468 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
4469
4470 /* Nested attribute to send the channel list */
4471 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
4472
4473 /* Unsigned 32-bit value; indicates the interval between PNO scan
4474 * cycles in msec.
4475 */
4476 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
4477 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
4478 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
4479 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
4480 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
4481 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
4482 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
4483 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004484 /* Unsigned 32-bit value, representing the PNO Request ID */
4485 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004486
4487 /* keep last */
4488 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
4489 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
4490 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
4491};
4492
Paul Stewart092955c2017-02-06 09:13:09 -08004493/**
4494 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
4495 * the ACS has to be triggered. These values are used by
4496 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
4497 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
4498 */
4499enum qca_wlan_vendor_acs_select_reason {
4500 /* Represents the reason that the ACS triggered during the AP start */
4501 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
4502 /* Represents the reason that DFS found with the current channel */
4503 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
4504 /* Represents the reason that LTE co-exist in the current band. */
4505 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07004506 /* Represents the reason that generic, uncategorized interference has
4507 * been found in the current channel.
4508 */
4509 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
4510 /* Represents the reason that excessive 802.11 interference has been
4511 * found in the current channel.
4512 */
4513 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
4514 /* Represents the reason that generic Continuous Wave (CW) interference
4515 * has been found in the current channel.
4516 */
4517 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
4518 /* Represents the reason that Microwave Oven (MWO) interference has been
4519 * found in the current channel.
4520 */
4521 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
4522 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
4523 * (FHSS) interference has been found in the current channel. This may
4524 * include 802.11 waveforms.
4525 */
4526 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
4527 /* Represents the reason that non-802.11 generic Frequency-Hopping
4528 * Spread Spectrum (FHSS) interference has been found in the current
4529 * channel.
4530 */
4531 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
4532 /* Represents the reason that generic Wideband (WB) interference has
4533 * been found in the current channel. This may include 802.11 waveforms.
4534 */
4535 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
4536 /* Represents the reason that non-802.11 generic Wideband (WB)
4537 * interference has been found in the current channel.
4538 */
4539 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
4540 /* Represents the reason that Jammer interference has been found in the
4541 * current channel.
4542 */
4543 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Paul Stewart092955c2017-02-06 09:13:09 -08004544};
4545
4546/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004547 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
4548 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
4549 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
4550 * external ACS policies to select the channels w.r.t. the PCL weights.
4551 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
4552 * their PCL weights.)
4553 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
4554 * select a channel with non-zero PCL weight.
4555 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
4556 * channel with non-zero PCL weight.
4557 *
4558 */
4559enum qca_wlan_vendor_attr_external_acs_policy {
4560 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
4561 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
4562};
4563
4564/**
Paul Stewart092955c2017-02-06 09:13:09 -08004565 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
4566 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
4567 */
4568enum qca_wlan_vendor_channel_prop_flags {
4569 /* Bits 0, 1, 2, and 3 are reserved */
4570
4571 /* Turbo channel */
4572 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
4573 /* CCK channel */
4574 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
4575 /* OFDM channel */
4576 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
4577 /* 2.4 GHz spectrum channel. */
4578 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
4579 /* 5 GHz spectrum channel */
4580 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
4581 /* Only passive scan allowed */
4582 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
4583 /* Dynamic CCK-OFDM channel */
4584 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
4585 /* GFSK channel (FHSS PHY) */
4586 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
4587 /* Radar found on channel */
4588 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
4589 /* 11a static turbo channel only */
4590 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
4591 /* Half rate channel */
4592 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
4593 /* Quarter rate channel */
4594 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
4595 /* HT 20 channel */
4596 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
4597 /* HT 40 with extension channel above */
4598 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
4599 /* HT 40 with extension channel below */
4600 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
4601 /* HT 40 intolerant */
4602 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
4603 /* VHT 20 channel */
4604 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
4605 /* VHT 40 with extension channel above */
4606 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
4607 /* VHT 40 with extension channel below */
4608 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
4609 /* VHT 80 channel */
4610 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
4611 /* HT 40 intolerant mark bit for ACS use */
4612 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
4613 /* Channel temporarily blocked due to noise */
4614 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
4615 /* VHT 160 channel */
4616 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
4617 /* VHT 80+80 channel */
4618 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004619 /* HE 20 channel */
4620 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
4621 /* HE 40 with extension channel above */
4622 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
4623 /* HE 40 with extension channel below */
4624 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
4625 /* HE 40 intolerant */
4626 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
4627};
4628
4629/**
4630 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
4631 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
4632 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
4633 */
4634enum qca_wlan_vendor_channel_prop_flags_2 {
4635 /* HE 40 intolerant mark bit for ACS use */
4636 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
4637 /* HE 80 channel */
4638 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
4639 /* HE 160 channel */
4640 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
4641 /* HE 80+80 channel */
4642 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08004643};
4644
4645/**
4646 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
4647 * each channel. This is used by
4648 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
4649 */
4650enum qca_wlan_vendor_channel_prop_flags_ext {
4651 /* Radar found on channel */
4652 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
4653 /* DFS required on channel */
4654 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
4655 /* DFS required on channel for 2nd band of 80+80 */
4656 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
4657 /* If channel has been checked for DFS */
4658 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
4659 /* Excluded in 802.11d */
4660 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
4661 /* Channel Switch Announcement received on this channel */
4662 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
4663 /* Ad-hoc is not allowed */
4664 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
4665 /* Station only channel */
4666 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
4667 /* DFS radar history for slave device (STA mode) */
4668 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
4669 /* DFS CAC valid for slave device (STA mode) */
4670 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
4671};
4672
4673/**
4674 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4675 * information. These attributes are sent as part of
4676 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4677 * attributes correspond to a single channel.
4678 */
4679enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4680 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4681
4682 /* A bitmask (u32) with flags specified in
4683 * enum qca_wlan_vendor_channel_prop_flags.
4684 */
4685 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4686 /* A bitmask (u32) with flags specified in
4687 * enum qca_wlan_vendor_channel_prop_flags_ext.
4688 */
4689 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4690 /* frequency in MHz (u32) */
4691 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4692 /* maximum regulatory transmission power (u32) */
4693 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4694 /* maximum transmission power (u32) */
4695 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4696 /* minimum transmission power (u32) */
4697 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4698 /* regulatory class id (u8) */
4699 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4700 /* maximum antenna gain in (u8) */
4701 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4702 /* VHT segment 0 (u8) */
4703 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4704 /* VHT segment 1 (u8) */
4705 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004706 /* A bitmask (u32) with flags specified in
4707 * enum qca_wlan_vendor_channel_prop_flags_2.
4708 */
4709 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08004710
Hai Shalomc3565922019-10-28 11:58:20 -07004711 /*
4712 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
4713 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4714 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4715 * along with
4716 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
4717 *
4718 * If both the driver and user-space application supports the 6 GHz
4719 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
4720 * is deprecated and
4721 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4722 * should be used.
4723 *
4724 * To maintain backward compatibility,
4725 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4726 * is still used if either of the driver or user space application
4727 * doesn't support the 6 GHz band.
4728 */
4729 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
4730
4731 /*
4732 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
4733 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4734 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4735 * along with
4736 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
4737 *
4738 * If both the driver and user-space application supports the 6 GHz
4739 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
4740 * is deprecated and
4741 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4742 * should be considered.
4743 *
4744 * To maintain backward compatibility,
4745 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4746 * is still used if either of the driver or user space application
4747 * doesn't support the 6 GHz band.
4748 */
4749 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
4750
Paul Stewart092955c2017-02-06 09:13:09 -08004751 /* keep last */
4752 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4753 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4754 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4755};
4756
4757/**
4758 * qca_wlan_vendor_attr_pcl: Represents attributes for
4759 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004760 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4761 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08004762 */
4763enum qca_wlan_vendor_attr_pcl {
4764 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4765
4766 /* Channel number (u8) */
4767 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4768 /* Channel weightage (u8) */
4769 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004770 /* Channel frequency (u32) in MHz */
4771 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4772 /* Channel flags (u32)
4773 * bit 0 set: channel to be used for GO role,
4774 * bit 1 set: channel to be used on CLI role,
4775 * bit 2 set: channel must be considered for operating channel
4776 * selection & peer chosen operating channel should be
4777 * one of the channels with this flag set,
4778 * bit 3 set: channel should be excluded in GO negotiation
4779 */
4780 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Paul Stewart092955c2017-02-06 09:13:09 -08004781};
4782
4783/**
4784 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
4785 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
4786 * host driver.
4787 */
4788enum qca_wlan_vendor_attr_external_acs_event {
4789 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4790
4791 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
4792 * This helps ACS module to understand why ACS needs to be started.
4793 */
4794 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4795 /* Flag attribute to indicate if driver supports spectral scanning */
4796 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4797 /* Flag attribute to indicate if 11ac is offloaded to firmware */
4798 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4799 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07004800 * capability as part of scan operation
4801 */
Paul Stewart092955c2017-02-06 09:13:09 -08004802 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
4803 /* Flag attribute to indicate interface status is UP */
4804 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4805 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07004806 * values.
4807 */
Paul Stewart092955c2017-02-06 09:13:09 -08004808 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
4809 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
4810 * This is the upper bound of channel width. ACS logic should try to get
4811 * a channel with the specified width and if not found, look for lower
4812 * values.
4813 */
4814 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
4815 /* This (u8) will hold values of one of enum nl80211_bands */
4816 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4817 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07004818 * values
4819 */
Paul Stewart092955c2017-02-06 09:13:09 -08004820 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4821 /* Array of (u32) supported frequency list among which ACS should choose
4822 * best frequency.
4823 */
4824 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4825 /* Preferred channel list by the driver which will have array of nested
4826 * values as per enum qca_wlan_vendor_attr_pcl attribute.
4827 */
4828 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4829 /* Array of nested attribute for each channel. It takes attr as defined
4830 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
4831 */
4832 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004833 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
4834 * It uses values defined in enum
4835 * qca_wlan_vendor_attr_external_acs_policy.
4836 */
4837 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004838 /* Reference RF Operating Parameter (RROP) availability information
4839 * (u16). It uses values defined in enum
4840 * qca_wlan_vendor_attr_rropavail_info.
4841 */
4842 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Paul Stewart092955c2017-02-06 09:13:09 -08004843
4844 /* keep last */
4845 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4846 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4847 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4848};
4849
4850/**
Hai Shalomc3565922019-10-28 11:58:20 -07004851 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08004852 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
4853 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07004854 *
4855 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
4856 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
4857 *
4858 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
4859 * Array of nested values for each channel with following attributes:
4860 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
4861 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
4862 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
4863 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
4864 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4865 * Note: If both the driver and user-space application supports the 6 GHz band,
4866 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
4867 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
4868 * To maintain backward compatibility,
4869 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
4870 * is still used if either of the driver or user space application doesn't
4871 * support the 6 GHz band.
4872 *
4873 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
4874 * Primary channel number
4875 * Note: If both the driver and user-space application supports the 6 GHz band,
4876 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
4877 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
4878 * To maintain backward compatibility,
4879 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
4880 * is still used if either of the driver or user space application doesn't
4881 * support the 6 GHz band.
4882 *
4883 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
4884 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
4885 * Note: If both the driver and user-space application supports the 6 GHz band,
4886 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
4887 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
4888 * To maintain backward compatibility,
4889 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
4890 * is still used if either of the driver or user space application
4891 * doesn't support the 6 GHz band.
4892 *
4893 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
4894 * VHT seg0 channel number
4895 * Note: If both the driver and user-space application supports the 6 GHz band,
4896 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
4897 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
4898 * To maintain backward compatibility,
4899 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
4900 * is still used if either of the driver or user space application
4901 * doesn't support the 6 GHz band.
4902 *
4903 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
4904 * VHT seg1 channel number
4905 * Note: If both the driver and user-space application supports the 6 GHz band,
4906 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
4907 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
4908 * To maintain backward compatibility,
4909 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
4910 * is still used if either of the driver or user space application
4911 * doesn't support the 6 GHz band.
4912 *
4913 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
4914 * Takes one of enum nl80211_chan_width values.
4915 *
4916 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
4917 * Array of nested values for each channel with following attributes:
4918 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
4919 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
4920 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
4921 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
4922 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4923 * Note: If user-space application has no support of the 6 GHz band, this
4924 * attribute is optional.
4925 *
4926 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
4927 * Primary channel frequency in MHz
4928 * Note: If user-space application has no support of the 6 GHz band, this
4929 * attribute is optional.
4930 *
4931 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
4932 * Secondary channel frequency in MHz used for HT 40 MHz channels.
4933 * Note: If user-space application has no support of the 6 GHz band, this
4934 * attribute is optional.
4935 *
4936 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
4937 * VHT seg0 channel frequency in MHz
4938 * Note: If user-space application has no support of the 6GHz band, this
4939 * attribute is optional.
4940 *
4941 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
4942 * VHT seg1 channel frequency in MHz
4943 * Note: If user-space application has no support of the 6 GHz band, this
4944 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08004945 */
4946enum qca_wlan_vendor_attr_external_acs_channels {
4947 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
4948
4949 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
4950 */
4951 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
4952
4953 /* Array of nested values for each channel with following attributes:
4954 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
4955 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
4956 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
4957 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
4958 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
4959 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4960 */
4961 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
4962 /* This (u8) will hold values of one of enum nl80211_bands */
4963 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
4964 /* Primary channel (u8) */
4965 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
4966 /* Secondary channel (u8) used for HT 40 MHz channels */
4967 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
4968 /* VHT seg0 channel (u8) */
4969 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
4970 /* VHT seg1 channel (u8) */
4971 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
4972 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
4973 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
4974
Hai Shalomc3565922019-10-28 11:58:20 -07004975 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
4976 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
4977 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
4978 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
4979 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
4980
Paul Stewart092955c2017-02-06 09:13:09 -08004981 /* keep last */
4982 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
4983 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
4984 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
4985};
4986
4987enum qca_chip_power_save_failure_reason {
4988 /* Indicates if the reason for the failure is due to a protocol
4989 * layer/module.
4990 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07004991 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08004992 /* Indicates if the reason for the failure is due to a hardware issue.
4993 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07004994 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08004995};
4996
4997/**
4998 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
4999 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
5000 * information leading to the power save failure.
5001 */
5002enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07005003 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
5004 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08005005 * These reasons are represented by
5006 * enum qca_chip_power_save_failure_reason.
5007 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07005008 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005009
Roshan Pius3a1667e2018-07-03 15:17:14 -07005010 /* keep last */
5011 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
5012 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
5013 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
5014};
5015
5016/**
5017 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
5018 * data types for which the stats have to get collected.
5019 */
5020enum qca_wlan_vendor_nud_stats_data_pkt_flags {
5021 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
5022 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
5023 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
5024 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
5025 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
5026 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
5027 * to represent the stats of respective data type.
5028 */
5029 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
5030 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
5031 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
5032};
5033
5034enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
5035 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
5036 /* Represents the data packet type to be monitored (u32).
5037 * Host driver tracks the stats corresponding to each data frame
5038 * represented by these flags.
5039 * These data packets are represented by
5040 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
5041 */
5042 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
5043 /* Name corresponding to the DNS frame for which the respective DNS
5044 * stats have to get monitored (string). Max string length 255.
5045 */
5046 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
5047 /* source port on which the respective proto stats have to get
5048 * collected (u32).
5049 */
5050 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
5051 /* destination port on which the respective proto stats have to get
5052 * collected (u32).
5053 */
5054 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
5055 /* IPv4 address for which the destined data packets have to be
5056 * monitored. (in network byte order), u32.
5057 */
5058 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
5059 /* IPv6 address for which the destined data packets have to be
5060 * monitored. (in network byte order), 16 bytes array.
5061 */
5062 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
5063
5064 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
5065 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
5066 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005067};
5068
5069/**
5070 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
5071 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
5072 * information to start/stop the NUD statistics collection.
5073 */
5074enum qca_attr_nud_stats_set {
5075 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
5076
5077 /* Flag to start/stop the NUD statistics collection.
5078 * Start - If included, Stop - If not included
5079 */
5080 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005081 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08005082 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005083 /* Represents the list of data packet types to be monitored.
5084 * Host driver tracks the stats corresponding to each data frame
5085 * represented by these flags.
5086 * These data packets are represented by
5087 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
5088 */
5089 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005090
5091 /* keep last */
5092 QCA_ATTR_NUD_STATS_SET_LAST,
5093 QCA_ATTR_NUD_STATS_SET_MAX =
5094 QCA_ATTR_NUD_STATS_SET_LAST - 1,
5095};
5096
Roshan Pius3a1667e2018-07-03 15:17:14 -07005097enum qca_attr_nud_data_stats {
5098 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
5099 /* Data packet type for which the stats are collected (u32).
5100 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
5101 */
5102 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
5103 /* Name corresponding to the DNS frame for which the respective DNS
5104 * stats are monitored (string). Max string length 255.
5105 */
5106 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
5107 /* source port on which the respective proto stats are collected (u32).
5108 */
5109 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
5110 /* destination port on which the respective proto stats are collected
5111 * (u32).
5112 */
5113 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
5114 /* IPv4 address for which the destined data packets have to be
5115 * monitored. (in network byte order), u32.
5116 */
5117 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
5118 /* IPv6 address for which the destined data packets have to be
5119 * monitored. (in network byte order), 16 bytes array.
5120 */
5121 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
5122 /* Data packet Request count received from netdev (u32). */
5123 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
5124 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
5125 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
5126 /* Data packet Request count received by lower MAC from upper MAC
5127 * (u32)
5128 */
5129 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
5130 /* Data packet Request count successfully transmitted by the device
5131 * (u32)
5132 */
5133 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
5134 /* Data packet Response count received by lower MAC (u32) */
5135 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
5136 /* Data packet Response count received by upper MAC (u32) */
5137 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
5138 /* Data packet Response count delivered to netdev (u32) */
5139 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
5140 /* Data Packet Response count that are dropped out of order (u32) */
5141 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
5142
5143 /* keep last */
5144 QCA_ATTR_NUD_DATA_STATS_LAST,
5145 QCA_ATTR_NUD_DATA_STATS_MAX =
5146 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
5147};
5148
Paul Stewart092955c2017-02-06 09:13:09 -08005149/**
5150 * qca_attr_nud_stats_get: Attributes to vendor subcmd
5151 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
5152 * NUD statistics collected when queried.
5153 */
5154enum qca_attr_nud_stats_get {
5155 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005156 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005157 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005158 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005159 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005160 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005161 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005162 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005163 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005164 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005165 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005166 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005167 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005168 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005169 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005170 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005171 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
5172 /* Flag indicating if the station's link to the AP is active.
5173 * Active Link - If included, Inactive link - If not included
5174 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005175 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08005176 /* Flag indicating if there is any duplicate address detected (DAD).
5177 * Yes - If detected, No - If not detected.
5178 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005179 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005180 /* List of Data packet types for which the stats are requested.
5181 * This list does not carry ARP stats as they are done by the
5182 * above attributes. Represented by enum qca_attr_nud_data_stats.
5183 */
5184 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005185
5186 /* keep last */
5187 QCA_ATTR_NUD_STATS_GET_LAST,
5188 QCA_ATTR_NUD_STATS_GET_MAX =
5189 QCA_ATTR_NUD_STATS_GET_LAST - 1,
5190};
5191
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08005192enum qca_wlan_btm_candidate_status {
5193 QCA_STATUS_ACCEPT = 0,
5194 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
5195 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
5196 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
5197 QCA_STATUS_REJECT_LOW_RSSI = 4,
5198 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
5199 QCA_STATUS_REJECT_UNKNOWN = 6,
5200};
5201
5202enum qca_wlan_vendor_attr_btm_candidate_info {
5203 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
5204
5205 /* 6-byte MAC address representing the BSSID of transition candidate */
5206 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
5207 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
5208 * returned by the driver. It says whether the BSSID provided in
5209 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
5210 * the driver, if not it specifies the reason for rejection.
5211 * Note that the user-space can overwrite the transition reject reason
5212 * codes provided by driver based on more information.
5213 */
5214 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
5215
5216 /* keep last */
5217 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
5218 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
5219 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
5220};
5221
5222enum qca_attr_trace_level {
5223 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
5224 /*
5225 * Nested array of the following attributes:
5226 * QCA_ATTR_TRACE_LEVEL_MODULE,
5227 * QCA_ATTR_TRACE_LEVEL_MASK.
5228 */
5229 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
5230 /*
5231 * Specific QCA host driver module. Please refer to the QCA host
5232 * driver implementation to get the specific module ID.
5233 */
5234 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
5235 /* Different trace level masks represented in the QCA host driver. */
5236 QCA_ATTR_TRACE_LEVEL_MASK = 3,
5237
5238 /* keep last */
5239 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
5240 QCA_ATTR_TRACE_LEVEL_MAX =
5241 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
5242};
5243
5244/**
5245 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
5246 */
5247enum qca_wlan_vendor_attr_get_he_capabilities {
5248 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
5249 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07005250 * (u8 attribute: 0 = not supported, 1 = supported)
5251 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08005252 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
5253 /* HE PHY capabilities, array of 3 u32 values */
5254 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
5255 /* HE MAC capabilities (u32 attribute) */
5256 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
5257 /* HE MCS map (u32 attribute) */
5258 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
5259 /* Number of SS (u32 attribute) */
5260 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
5261 /* RU count (u32 attribute) */
5262 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
5263 /* PPE threshold data, array of 8 u32 values */
5264 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
5265
5266 /* keep last */
5267 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
5268 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
5269 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
5270};
5271
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005272/**
5273 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
5274 */
5275enum qca_wlan_vendor_attr_spectral_scan {
5276 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
5277 /* Number of times the chip enters spectral scan mode before
5278 * deactivating spectral scans. When set to 0, chip will enter spectral
5279 * scan mode continuously. u32 attribute.
5280 */
5281 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
5282 /* Spectral scan period. Period increment resolution is 256*Tclk,
5283 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
5284 */
5285 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
5286 /* Spectral scan priority. u32 attribute. */
5287 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
5288 /* Number of FFT data points to compute. u32 attribute. */
5289 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
5290 /* Enable targeted gain change before starting the spectral scan FFT.
5291 * u32 attribute.
5292 */
5293 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
5294 /* Restart a queued spectral scan. u32 attribute. */
5295 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
5296 /* Noise floor reference number for the calculation of bin power.
5297 * u32 attribute.
5298 */
5299 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
5300 /* Disallow spectral scan triggers after TX/RX packets by setting
5301 * this delay value to roughly SIFS time period or greater.
5302 * u32 attribute.
5303 */
5304 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
5305 /* Number of strong bins (inclusive) per sub-channel, below
5306 * which a signal is declared a narrow band tone. u32 attribute.
5307 */
5308 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
5309 /* Specify the threshold over which a bin is declared strong (for
5310 * scan bandwidth analysis). u32 attribute.
5311 */
5312 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
5313 /* Spectral scan report mode. u32 attribute. */
5314 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
5315 /* RSSI report mode, if the ADC RSSI is below
5316 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
5317 * then FFTs will not trigger, but timestamps and summaries get
5318 * reported. u32 attribute.
5319 */
5320 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
5321 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
5322 * to ensure spectral scan reporting with normal error code.
5323 * u32 attribute.
5324 */
5325 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
5326 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
5327 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
5328 * u32 attribute.
5329 */
5330 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
5331 /* Format of FFT report to software for spectral scan triggered FFTs.
5332 * 0: No FFT report (only spectral scan summary report)
5333 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
5334 * report
5335 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
5336 * bins (in-band) per FFT + spectral scan summary report
5337 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
5338 * bins (all) per FFT + spectral scan summary report
5339 * u32 attribute.
5340 */
5341 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
5342 /* Number of LSBs to shift out in order to scale the FFT bins.
5343 * u32 attribute.
5344 */
5345 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
5346 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
5347 * in dBm power. u32 attribute.
5348 */
5349 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
5350 /* Per chain enable mask to select input ADC for search FFT.
5351 * u32 attribute.
5352 */
5353 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
5354 /* An unsigned 64-bit integer provided by host driver to identify the
5355 * spectral scan request. This attribute is included in the scan
5356 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
5357 * and used as an attribute in
5358 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
5359 * specific scan to be stopped.
5360 */
5361 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005362 /* Skip interval for FFT reports. u32 attribute */
5363 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
5364 /* Set to report only one set of FFT results.
5365 * u32 attribute.
5366 */
5367 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
5368 /* Debug level for spectral module in driver.
5369 * 0 : Verbosity level 0
5370 * 1 : Verbosity level 1
5371 * 2 : Verbosity level 2
5372 * 3 : Matched filterID display
5373 * 4 : One time dump of FFT report
5374 * u32 attribute.
5375 */
5376 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
5377 /* Type of spectral scan request. u32 attribute.
5378 * It uses values defined in enum
5379 * qca_wlan_vendor_attr_spectral_scan_request_type.
5380 */
5381 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07005382 /* This specifies the frequency span over which spectral
5383 * scan would be carried out. Its value depends on the
5384 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
5385 * the relation is as follows.
5386 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
5387 * Not applicable. Spectral scan would happen in the
5388 * operating span.
5389 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
5390 * Center frequency (in MHz) of the span of interest or
5391 * for convenience, center frequency (in MHz) of any channel
5392 * in the span of interest. If agile spectral scan is initiated
5393 * without setting a valid frequency it returns the error code
5394 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
5395 * u32 attribute.
5396 */
5397 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
5398 /* Spectral scan mode. u32 attribute.
5399 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
5400 * If this attribute is not present, it is assumed to be
5401 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
5402 */
5403 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
5404 /* Spectral scan error code. u32 attribute.
5405 * It uses values defined in enum
5406 * qca_wlan_vendor_spectral_scan_error_code.
5407 * This attribute is included only in failure scenarios.
5408 */
5409 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
5410 /* 8-bit unsigned value to enable/disable debug of the
5411 * Spectral DMA ring.
5412 * 1-enable, 0-disable
5413 */
5414 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
5415 /* 8-bit unsigned value to enable/disable debug of the
5416 * Spectral DMA buffers.
5417 * 1-enable, 0-disable
5418 */
5419 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005420
5421 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
5422 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
5423 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
5424};
5425
Roshan Pius3a1667e2018-07-03 15:17:14 -07005426/**
5427 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
5428 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
5429 */
5430enum qca_wlan_vendor_attr_spectral_diag_stats {
5431 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
5432 /* Number of spectral TLV signature mismatches.
5433 * u64 attribute.
5434 */
5435 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
5436 /* Number of spectral phyerror events with insufficient length when
5437 * parsing for secondary 80 search FFT report. u64 attribute.
5438 */
5439 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
5440 /* Number of spectral phyerror events without secondary 80
5441 * search FFT report. u64 attribute.
5442 */
5443 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
5444 /* Number of spectral phyerror events with vht operation segment 1 id
5445 * mismatches in search fft report. u64 attribute.
5446 */
5447 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
5448 /* Number of spectral phyerror events with vht operation segment 2 id
5449 * mismatches in search fft report. u64 attribute.
5450 */
5451 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
5452
5453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
5454 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
5455 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
5456};
5457
5458/**
5459 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
5460 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
5461 */
5462enum qca_wlan_vendor_attr_spectral_cap {
5463 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
5464 /* Flag attribute to indicate phydiag capability */
5465 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
5466 /* Flag attribute to indicate radar detection capability */
5467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
5468 /* Flag attribute to indicate spectral capability */
5469 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
5470 /* Flag attribute to indicate advanced spectral capability */
5471 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
5472 /* Spectral hardware generation. u32 attribute.
5473 * It uses values defined in enum
5474 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
5475 */
5476 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08005477 /* Spectral bin scaling formula ID. u16 attribute.
5478 * It uses values defined in enum
5479 * qca_wlan_vendor_spectral_scan_cap_formula_id.
5480 */
5481 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
5482 /* Spectral bin scaling param - low level offset.
5483 * s16 attribute.
5484 */
5485 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
5486 /* Spectral bin scaling param - high level offset.
5487 * s16 attribute.
5488 */
5489 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
5490 /* Spectral bin scaling param - RSSI threshold.
5491 * s16 attribute.
5492 */
5493 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
5494 /* Spectral bin scaling param - default AGC max gain.
5495 * u8 attribute.
5496 */
5497 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07005498 /* Flag attribute to indicate agile spectral scan capability
5499 * for 20/40/80 MHz modes.
5500 */
Hai Shalom81f62d82019-07-22 12:10:00 -07005501 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07005502 /* Flag attribute to indicate agile spectral scan capability
5503 * for 160 MHz mode.
5504 */
5505 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
5506 /* Flag attribute to indicate agile spectral scan capability
5507 * for 80+80 MHz mode.
5508 */
5509 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005510
5511 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
5512 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
5513 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
5514};
5515
5516/**
5517 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
5518 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
5519 */
5520enum qca_wlan_vendor_attr_spectral_scan_status {
5521 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
5522 /* Flag attribute to indicate whether spectral scan is enabled */
5523 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
5524 /* Flag attribute to indicate whether spectral scan is in progress*/
5525 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005526 /* Spectral scan mode. u32 attribute.
5527 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
5528 * If this attribute is not present, normal mode
5529 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
5530 * requested.
5531 */
5532 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005533
5534 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
5535 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
5536 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
5537};
5538
5539/**
5540 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
5541 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
5542 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
5543 * spectral scan request types.
5544 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
5545 * set the spectral parameters and start scan.
5546 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
5547 * only set the spectral parameters.
5548 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
5549 * only start the spectral scan.
5550 */
5551enum qca_wlan_vendor_attr_spectral_scan_request_type {
5552 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
5553 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
5554 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
5555};
5556
5557/**
Hai Shalom81f62d82019-07-22 12:10:00 -07005558 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
5559 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
5560 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
5561 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
5562 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
5563 * spectral scan modes.
5564 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
5565 * spectral scan in the current operating span.
5566 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
5567 * spectral scan in the configured agile span.
5568 */
5569enum qca_wlan_vendor_spectral_scan_mode {
5570 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
5571 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
5572};
5573
5574/**
5575 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
5576 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
5577 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
5578 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
5579 * of a parameter is not supported.
5580 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
5581 * mode is not supported.
5582 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
5583 * has invalid value.
5584 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
5585 * is not initialized.
5586 */
5587enum qca_wlan_vendor_spectral_scan_error_code {
5588 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
5589 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
5590 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
5591 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
5592};
5593
5594/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07005595 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
5596 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
5597 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
5598 * spectral hardware generation.
5599 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
5600 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
5601 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
5602 */
5603enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
5604 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
5605 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
5606 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
5607};
5608
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005609enum qca_wlan_vendor_tos {
5610 QCA_WLAN_VENDOR_TOS_BK = 0,
5611 QCA_WLAN_VENDOR_TOS_BE = 1,
5612 QCA_WLAN_VENDOR_TOS_VI = 2,
5613 QCA_WLAN_VENDOR_TOS_VO = 3,
5614};
5615
5616/**
5617 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
5618 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
5619 */
5620enum qca_wlan_vendor_attr_active_tos {
5621 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
5622 /* Type Of Service - Represented by qca_wlan_vendor_tos */
5623 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
5624 /* Flag attribute representing the start (attribute included) or stop
5625 * (attribute not included) of the respective TOS.
5626 */
5627 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
5628};
5629
5630enum qca_wlan_vendor_hang_reason {
5631 /* Unspecified reason */
5632 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
5633 /* No Map for the MAC entry for the received frame */
5634 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
5635 /* Peer deletion timeout happened */
5636 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
5637 /* Peer unmap timeout */
5638 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
5639 /* Scan request timed out */
5640 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
5641 /* Consecutive Scan attempt failures */
5642 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
5643 /* Unable to get the message buffer */
5644 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
5645 /* Current command processing is timedout */
5646 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
5647 /* Timeout for an ACK from FW for suspend request */
5648 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
5649 /* Timeout for an ACK from FW for resume request */
5650 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
5651 /* Transmission timeout for consecutive data frames */
5652 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
5653 /* Timeout for the TX completion status of data frame */
5654 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
5655 /* DXE failure for TX/RX, DXE resource unavailability */
5656 QCA_WLAN_HANG_DXE_FAILURE = 12,
5657 /* WMI pending commands exceed the maximum count */
5658 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
5659};
5660
5661/**
5662 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
5663 * QCA_NL80211_VENDOR_SUBCMD_HANG.
5664 */
5665enum qca_wlan_vendor_attr_hang {
5666 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
5667 /* Reason for the hang - u32 attribute with a value from enum
5668 * qca_wlan_vendor_hang_reason.
5669 */
5670 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
5671
5672 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
5673 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
5674 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
5675};
5676
Roshan Pius3a1667e2018-07-03 15:17:14 -07005677/**
5678 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
5679 * flushing pending traffic in firmware.
5680 *
5681 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
5682 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
5683 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
5684 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
5685 * flush packets with access category.
5686 */
5687enum qca_wlan_vendor_attr_flush_pending {
5688 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
5689 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
5690 QCA_WLAN_VENDOR_ATTR_AC = 2,
5691
5692 /* keep last */
5693 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
5694 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
5695 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
5696};
5697
5698/**
Hai Shalom74f70d42019-02-11 14:42:39 -08005699 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
5700 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
5701 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
5702 * Spectral bin scaling formula ID.
5703 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
5704 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
5705 * and RSSI threshold based formula.
5706 */
5707enum qca_wlan_vendor_spectral_scan_cap_formula_id {
5708 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
5709 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
5710};
5711
5712/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07005713 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
5714 * RF Operating Parameter (RROP) information is available, and if so, at which
5715 * point in the application-driver interaction sequence it can be retrieved by
5716 * the application from the driver. This point may vary by architecture and
5717 * other factors. This is a u16 value.
5718 */
5719enum qca_wlan_vendor_attr_rropavail_info {
5720 /* RROP information is unavailable. */
5721 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
5722 /* RROP information is available and the application can retrieve the
5723 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
5724 * event from the driver.
5725 */
5726 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
5727 /* RROP information is available only after a vendor specific scan
5728 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
5729 * successfully completed. The application can retrieve the information
5730 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
5731 * the driver.
5732 */
5733 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
5734};
5735
5736/**
5737 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
5738 * Representative RF Operating Parameter (RROP) information. It is sent for the
5739 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
5740 * intended for use by external Auto Channel Selection applications. It provides
5741 * guidance values for some RF parameters that are used by the system during
5742 * operation. These values could vary by channel, band, radio, and so on.
5743 */
5744enum qca_wlan_vendor_attr_rrop_info {
5745 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
5746
5747 /* Representative Tx Power List (RTPL) which has an array of nested
5748 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
5749 */
5750 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
5751
5752 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
5753 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
5754 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
5755};
5756
5757/**
5758 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
5759 * entry instances in the Representative Tx Power List (RTPL). It provides
5760 * simplified power values intended for helping external Auto channel Selection
5761 * applications compare potential Tx power performance between channels, other
5762 * operating conditions remaining identical. These values are not necessarily
5763 * the actual Tx power values that will be used by the system. They are also not
5764 * necessarily the max or average values that will be used. Instead, they are
5765 * relative, summarized keys for algorithmic use computed by the driver or
5766 * underlying firmware considering a number of vendor specific factors.
5767 */
5768enum qca_wlan_vendor_attr_rtplinst {
5769 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
5770
5771 /* Primary channel number (u8) */
5772 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
5773 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
5774 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
5775 /* Representative Tx power in dBm (s32) with emphasis on range. */
5776 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
5777
5778 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
5779 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
5780 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
5781};
5782
5783/**
5784 * enum qca_wlan_vendor_attr_config_latency_level - Level for
5785 * wlan latency module.
5786 *
5787 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
5788 * power saving which would causing data exchange out of service, this
5789 * would be a big impact on latency. For latency sensitive applications over
5790 * Wi-Fi are intolerant to such operations and thus would configure them
5791 * to meet their respective needs. It is well understood by such applications
5792 * that altering the default behavior would degrade the Wi-Fi functionality
5793 * w.r.t the above pointed WLAN operations.
5794 *
5795 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
5796 * Default WLAN operation level which throughput orientated.
5797 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
5798 * Use moderate level to improve latency by limit scan duration.
5799 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
5800 * Use low latency level to benifit application like concurrent
5801 * downloading or video streaming via constraint scan/adaptive PS.
5802 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
5803 * Use ultra low latency level to benefit for gaming/voice
5804 * application via constraint scan/roaming/adaptive PS.
5805 */
5806enum qca_wlan_vendor_attr_config_latency_level {
5807 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
5808 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
5809 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
5810 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
5811 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
5812
5813 /* keep last */
5814 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
5815 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
5816 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
5817};
5818
5819/**
5820 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
5821 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5822 */
5823enum qca_wlan_vendor_attr_mac {
5824 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
5825
5826 /* MAC mode info list which has an array of nested values as
5827 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
5828 */
5829 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
5830
5831 /* keep last */
5832 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
5833 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
5834 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
5835};
5836
5837/**
5838 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
5839 * Wi-Fi netdev interface on a respective MAC.
5840 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
5841 */
5842enum qca_wlan_vendor_attr_mac_iface_info {
5843 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
5844 /* Wi-Fi netdev's interface index (u32) */
5845 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
5846 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
5847 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
5848
5849 /* keep last */
5850 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
5851 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
5852 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
5853};
5854
5855/**
5856 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
5857 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
5858 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5859 */
5860enum qca_wlan_vendor_attr_mac_info {
5861 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
5862 /* Hardware MAC ID associated for the MAC (u32) */
5863 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
5864 /* Band supported by the MAC at a given point.
5865 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
5866 * nl80211_band.
5867 */
5868 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
5869 /* Refers to list of WLAN netdev interfaces associated with this MAC.
5870 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
5871 */
5872 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
5873
5874 /* keep last */
5875 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
5876 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
5877 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
5878};
5879
5880/**
5881 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
5882 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
5883 */
5884enum qca_wlan_vendor_attr_get_logger_features {
5885 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
5886 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
5887 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
5888 /* keep last */
5889 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
5890 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
5891 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
5892};
5893
5894/**
5895 * enum wifi_logger_supported_features - Values for supported logger features
5896 */
5897enum wifi_logger_supported_features {
5898 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
5899 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
5900 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
5901 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
5902 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
5903 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
5904 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
5905 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
5906 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
5907};
5908
5909/**
5910 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
5911 * capabilities features
5912 */
5913enum qca_wlan_tdls_caps_features_supported {
5914 WIFI_TDLS_SUPPORT = (1 << (0)),
5915 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
5916 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
5917};
5918
5919/**
5920 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
5921 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
5922 */
5923enum qca_wlan_vendor_attr_tdls_get_capabilities {
5924 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
5925 /* Indicates the max concurrent sessions */
5926 /* Unsigned 32-bit value */
5927 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
5928 /* Indicates the support for features */
5929 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
5930 */
5931 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
5932
5933 /* keep last */
5934 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
5935 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
5936 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
5937};
5938
5939/**
5940 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
5941 * command used as value for the attribute
5942 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
5943 */
5944enum qca_wlan_offloaded_packets_sending_control {
5945 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
5946 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
5947 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
5948};
5949
5950/**
5951 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5952 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5953 */
5954enum qca_wlan_vendor_attr_offloaded_packets {
5955 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5956 /* Takes valid value from the enum
5957 * qca_wlan_offloaded_packets_sending_control
5958 * Unsigned 32-bit value
5959 */
5960 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5961 /* Unsigned 32-bit value */
5962 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5963 /* array of u8 len: Max packet size */
5964 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5965 /* 6-byte MAC address used to represent source MAC address */
5966 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5967 /* 6-byte MAC address used to represent destination MAC address */
5968 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5969 /* Unsigned 32-bit value, in milli seconds */
5970 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07005971 /* This optional unsigned 16-bit attribute is used for specifying
5972 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5973 */
5974 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005975
5976 /* keep last */
5977 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5978 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5979 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5980};
5981
5982/**
5983 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
5984 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
5985 */
5986enum qca_wlan_rssi_monitoring_control {
5987 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5988 QCA_WLAN_RSSI_MONITORING_START,
5989 QCA_WLAN_RSSI_MONITORING_STOP,
5990};
5991
5992/**
5993 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
5994 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
5995 */
5996enum qca_wlan_vendor_attr_rssi_monitoring {
5997 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5998 /* Takes valid value from the enum
5999 * qca_wlan_rssi_monitoring_control
6000 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
6001 */
6002 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
6003 /* Unsigned 32-bit value */
6004 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
6005 /* Signed 8-bit value in dBm */
6006 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
6007 /* Signed 8-bit value in dBm */
6008 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
6009 /* attributes to be used/received in callback */
6010 /* 6-byte MAC address used to represent current BSSID MAC address */
6011 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
6012 /* Signed 8-bit value indicating the current RSSI */
6013 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
6014 /* keep last */
6015 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
6016 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
6017 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
6018};
6019
6020/**
6021 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
6022 * QCA_NL80211_VENDOR_SUBCMD_NDP.
6023 */
6024enum qca_wlan_vendor_attr_ndp_params {
6025 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6026 /* Unsigned 32-bit value
6027 * enum of sub commands values in qca_wlan_ndp_sub_cmd
6028 */
6029 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
6030 /* Unsigned 16-bit value */
6031 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
6032 /* NL attributes for data used NDP SUB cmds */
6033 /* Unsigned 32-bit value indicating a service info */
6034 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
6035 /* Unsigned 32-bit value; channel frequency in MHz */
6036 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
6037 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
6038 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
6039 /* Interface name on which NDP is being created */
6040 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
6041 /* Unsigned 32-bit value for security */
6042 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
6043 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
6044 /* Unsigned 32-bit value for QoS */
6045 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
6046 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
6047 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
6048 /* Unsigned 32-bit value for NDP instance Id */
6049 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
6050 /* Array of instance Ids */
6051 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
6052 /* Unsigned 32-bit value for initiator/responder NDP response code
6053 * accept/reject
6054 */
6055 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
6056 /* NDI MAC address. An array of 6 Unsigned int8 */
6057 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
6058 /* Unsigned 32-bit value errors types returned by driver
6059 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6060 * NanStatusType includes these values.
6061 */
6062 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
6063 /* Unsigned 32-bit value error values returned by driver
6064 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
6065 * NanInternalStatusType includes these values.
6066 */
6067 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
6068 /* Unsigned 32-bit value for Channel setup configuration
6069 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6070 * NanDataPathChannelCfg includes these values.
6071 */
6072 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
6073 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
6074 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
6075 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
6076 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
6077 /* Security Context Identifier that contains the PMKID
6078 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
6079 */
6080 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
6081 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
6082 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
6083 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
6084 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
6085 /* Unsigned 32-bit bitmap indicating schedule update
6086 * BIT_0: NSS Update
6087 * BIT_1: Channel list update
6088 */
6089 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
6090 /* Unsigned 32-bit value for NSS */
6091 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
6092 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
6093 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
6094 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
6095 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
6096 */
6097 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
6098 /* Array of channel/band width */
6099 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
6100 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
6101 * This attribute is used and optional for ndp request, ndp response,
6102 * ndp indication, and ndp confirm.
6103 */
6104 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
6105 /* Unsigned 16-bit value indicating transport port used by NDP.
6106 * This attribute is used and optional for ndp response, ndp indication,
6107 * and ndp confirm.
6108 */
6109 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
6110 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
6111 * the Internet Assigned Numbers Authority (IANA) as per:
6112 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
6113 * This attribute is used and optional for ndp response, ndp indication,
6114 * and ndp confirm.
6115 */
6116 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08006117 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
6118 * 1:support 0:not support
6119 */
6120 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006121
6122 /* keep last */
6123 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
6124 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
6125 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
6126};
6127
6128enum qca_wlan_ndp_sub_cmd {
6129 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
6130 /* Command to create a NAN data path interface */
6131 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
6132 /* Command to delete a NAN data path interface */
6133 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
6134 /* Command to initiate a NAN data path session */
6135 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
6136 /* Command to notify if the NAN data path session was sent */
6137 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
6138 /* Command to respond to NAN data path session */
6139 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
6140 /* Command to notify on the responder about the response */
6141 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
6142 /* Command to initiate a NAN data path end */
6143 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
6144 /* Command to notify the if end request was sent */
6145 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
6146 /* Command to notify the peer about the end request */
6147 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
6148 /* Command to confirm the NAN data path session is complete */
6149 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
6150 /* Command to indicate the peer about the end request being received */
6151 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
6152 /* Command to indicate the peer of schedule update */
6153 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
6154};
6155
6156/**
6157 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
6158 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
6159 */
6160enum qca_wlan_vendor_attr_nd_offload {
6161 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
6162 /* Flag to set Neighbour Discovery offload */
6163 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
6164 /* Keep last */
6165 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
6166 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
6167 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
6168};
6169
6170/**
6171 * enum packet_filter_sub_cmd - Packet filter sub commands
6172 */
6173enum packet_filter_sub_cmd {
6174 /**
6175 * Write packet filter program and/or data. The driver/firmware should
6176 * disable APF before writing into local buffer and re-enable APF after
6177 * writing is done.
6178 */
6179 QCA_WLAN_SET_PACKET_FILTER = 1,
6180 /* Get packet filter feature capabilities from driver */
6181 QCA_WLAN_GET_PACKET_FILTER = 2,
6182 /**
6183 * Write packet filter program and/or data. User space will send the
6184 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
6185 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
6186 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
6187 * enable/disable is given to user space with this command. Also,
6188 * user space sends the length of program portion in the buffer within
6189 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
6190 */
6191 QCA_WLAN_WRITE_PACKET_FILTER = 3,
6192 /* Read packet filter program and/or data */
6193 QCA_WLAN_READ_PACKET_FILTER = 4,
6194 /* Enable APF feature */
6195 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
6196 /* Disable APF feature */
6197 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
6198};
6199
6200/**
6201 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
6202 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
6203 */
6204enum qca_wlan_vendor_attr_packet_filter {
6205 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
6206 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
6207 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
6208 /* Unsigned 32-bit value indicating the packet filter version */
6209 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
6210 /* Unsigned 32-bit value indicating the packet filter id */
6211 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
6212 /**
6213 * Unsigned 32-bit value indicating the packet filter size including
6214 * program + data.
6215 */
6216 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
6217 /* Unsigned 32-bit value indicating the packet filter current offset */
6218 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
6219 /* Program and/or data in bytes */
6220 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
6221 /* Unsigned 32-bit value of the length of the program section in packet
6222 * filter buffer.
6223 */
6224 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
6225
6226 /* keep last */
6227 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
6228 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
6229 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
6230};
6231
6232/**
6233 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
6234 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
6235 */
6236enum qca_wlan_vendor_drv_info {
6237 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6238 /* Maximum Message size info between firmware & HOST
6239 * Unsigned 32-bit value
6240 */
6241 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6242 /* keep last */
6243 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6244 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6245 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6246};
6247
6248/**
6249 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6250 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6251 */
6252enum qca_wlan_vendor_attr_wake_stats {
6253 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6254 /* Unsigned 32-bit value indicating the total count of wake event */
6255 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6256 /* Array of individual wake count, each index representing wake reason
6257 */
6258 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6259 /* Unsigned 32-bit value representing wake count array */
6260 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6261 /* Unsigned 32-bit total wake count value of driver/fw */
6262 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6263 /* Array of wake stats of driver/fw */
6264 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6265 /* Unsigned 32-bit total wake count value of driver/fw */
6266 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6267 /* Unsigned 32-bit total wake count value of packets received */
6268 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6269 /* Unsigned 32-bit wake count value unicast packets received */
6270 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6271 /* Unsigned 32-bit wake count value multicast packets received */
6272 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6273 /* Unsigned 32-bit wake count value broadcast packets received */
6274 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6275 /* Unsigned 32-bit wake count value of ICMP packets */
6276 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6277 /* Unsigned 32-bit wake count value of ICMP6 packets */
6278 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6279 /* Unsigned 32-bit value ICMP6 router advertisement */
6280 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6281 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
6282 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6283 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
6284 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6285 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6286 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6287 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6288 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6289 /* Unsigned 32-bit wake count value of receive side multicast */
6290 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6291 /* Unsigned 32-bit wake count value of a given RSSI breach */
6292 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6293 /* Unsigned 32-bit wake count value of low RSSI */
6294 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6295 /* Unsigned 32-bit value GSCAN count */
6296 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6297 /* Unsigned 32-bit value PNO complete count */
6298 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6299 /* Unsigned 32-bit value PNO match count */
6300 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6301 /* keep last */
6302 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6303 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6304 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6305};
6306
6307/**
6308 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6309 * cmd value. Used for NL attributes for data used by
6310 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6311 */
6312enum qca_wlan_vendor_attr_thermal_cmd {
6313 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6314 /* The value of command, driver will implement different operations
6315 * according to this value. It uses values defined in
6316 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6317 * u32 attribute.
6318 */
6319 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6320
6321 /* keep last */
6322 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6323 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6324 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6325};
6326
6327/**
6328 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6329 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6330 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6331 * thermal command types sent to driver.
6332 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6333 * get thermal shutdown configuration parameters for display. Parameters
6334 * responded from driver are defined in
6335 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6336 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6337 * get temperature. Host should respond with a temperature data. It is defined
6338 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6339 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6340 * suspend action.
6341 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6342 * resume action.
6343 */
6344enum qca_wlan_vendor_attr_thermal_cmd_type {
6345 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6346 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6347 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6348 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6349};
6350
6351/**
6352 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6353 * to get chip temperature by user.
6354 * enum values are used for NL attributes for data used by
6355 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6356 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6357 */
6358enum qca_wlan_vendor_attr_thermal_get_temperature {
6359 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6360 /* Temperature value (degree Celsius) from driver.
6361 * u32 attribute.
6362 */
6363 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6364
6365 /* keep last */
6366 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6367 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6368 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6369};
6370
6371/**
6372 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
6373 * to get configuration parameters of thermal shutdown feature. Enum values are
6374 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
6375 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6376 */
6377enum qca_wlan_vendor_attr_get_thermal_params_rsp {
6378 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
6379 /* Indicate if the thermal shutdown feature is enabled.
6380 * NLA_FLAG attribute.
6381 */
6382 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
6383 /* Indicate if the auto mode is enabled.
6384 * Enable: Driver triggers the suspend/resume action.
6385 * Disable: User space triggers the suspend/resume action.
6386 * NLA_FLAG attribute.
6387 */
6388 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
6389 /* Thermal resume threshold (degree Celsius). Issue the resume command
6390 * if the temperature value is lower than this threshold.
6391 * u16 attribute.
6392 */
6393 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
6394 /* Thermal warning threshold (degree Celsius). FW reports temperature
6395 * to driver if it's higher than this threshold.
6396 * u16 attribute.
6397 */
6398 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
6399 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
6400 * if the temperature value is higher than this threshold.
6401 * u16 attribute.
6402 */
6403 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
6404 /* FW reports temperature data periodically at this interval (ms).
6405 * u16 attribute.
6406 */
6407 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
6408
6409 /* keep last */
6410 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
6411 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
6412 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
6413};
6414
6415/**
6416 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6417 * report thermal events from driver to user space.
6418 * enum values are used for NL attributes for data used by
6419 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6420 */
6421enum qca_wlan_vendor_attr_thermal_event {
6422 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6423 /* Temperature value (degree Celsius) from driver.
6424 * u32 attribute.
6425 */
6426 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6427 /* Indication of resume completion from power save mode.
6428 * NLA_FLAG attribute.
6429 */
6430 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6431
6432 /* keep last */
6433 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6434 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6435 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6436};
6437
6438/**
6439 * enum he_fragmentation_val - HE fragmentation support values
6440 * Indicates level of dynamic fragmentation that is supported by
6441 * a STA as a recipient.
6442 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
6443 * (HE MAC Capabilities Information field) and are used in HE Capabilities
6444 * element to advertise the support. These values are validated in the driver
6445 * to check the device capability and advertised in the HE Capabilities
6446 * element. These values are used to configure testbed device to allow the
6447 * advertised hardware capabilities to be downgraded for testing purposes.
6448 *
6449 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
6450 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
6451 * contained within an MPDU or S-MPDU, no support for dynamic fragments
6452 * within an A-MPDU that is not an S-MPDU.
6453 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
6454 * contained within an MPDU or S-MPDU and support for up to one dynamic
6455 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
6456 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
6457 * MPDU or S-MPDU.
6458 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
6459 * contained within an MPDU or S-MPDU and support for multiple dynamic
6460 * fragments for each MSDU and for each A-MSDU if supported by the
6461 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
6462 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
6463 */
6464enum he_fragmentation_val {
6465 HE_FRAG_DISABLE,
6466 HE_FRAG_LEVEL1,
6467 HE_FRAG_LEVEL2,
6468 HE_FRAG_LEVEL3,
6469};
6470
6471/**
6472 * enum he_mcs_config - HE MCS support configuration
6473 *
6474 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
6475 * These values are used in driver to configure the HE MCS map to advertise
6476 * Tx/Rx MCS map in HE capability and these values are applied for all the
6477 * streams supported by the device. To configure MCS for different bandwidths,
6478 * vendor command needs to be sent using this attribute with appropriate value.
6479 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
6480 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
6481 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
6482 * These values are used to configure testbed device to allow the advertised
6483 * hardware capabilities to be downgraded for testing purposes. The enum values
6484 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
6485 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
6486 * These values are validated in the driver before setting the MCS map and
6487 * driver returns error if the input is other than these enum values.
6488 *
6489 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
6490 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
6491 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
6492 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
6493 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
6494 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
6495 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
6496 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
6497 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
6498 */
6499enum he_mcs_config {
6500 HE_80_MCS0_7 = 0,
6501 HE_80_MCS0_9 = 1,
6502 HE_80_MCS0_11 = 2,
6503 HE_160_MCS0_7 = 4,
6504 HE_160_MCS0_9 = 5,
6505 HE_160_MCS0_11 = 6,
6506 HE_80P80_MCS0_7 = 8,
6507 HE_80P80_MCS0_9 = 9,
6508 HE_80P80_MCS0_11 = 10,
6509};
6510
6511/**
6512 * enum qca_wlan_ba_session_config - BA session configuration
6513 *
6514 * Indicates the configuration values for BA session configuration attribute.
6515 *
6516 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
6517 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
6518 */
6519enum qca_wlan_ba_session_config {
6520 QCA_WLAN_ADD_BA = 1,
6521 QCA_WLAN_DELETE_BA = 2,
6522};
6523
6524/**
6525 * enum qca_wlan_ac_type - Access category type
6526 *
6527 * Indicates the access category type value.
6528 *
6529 * @QCA_WLAN_AC_BE: BE access category
6530 * @QCA_WLAN_AC_BK: BK access category
6531 * @QCA_WLAN_AC_VI: VI access category
6532 * @QCA_WLAN_AC_VO: VO access category
6533 * @QCA_WLAN_AC_ALL: All ACs
6534 */
6535enum qca_wlan_ac_type {
6536 QCA_WLAN_AC_BE = 0,
6537 QCA_WLAN_AC_BK = 1,
6538 QCA_WLAN_AC_VI = 2,
6539 QCA_WLAN_AC_VO = 3,
6540 QCA_WLAN_AC_ALL = 4,
6541};
6542
6543/**
6544 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
6545 *
6546 * Indicates the HE LTF configuration value.
6547 *
6548 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
6549 * based on the GI setting
6550 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
6551 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
6552 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
6553 */
6554enum qca_wlan_he_ltf_cfg {
6555 QCA_WLAN_HE_LTF_AUTO = 0,
6556 QCA_WLAN_HE_LTF_1X = 1,
6557 QCA_WLAN_HE_LTF_2X = 2,
6558 QCA_WLAN_HE_LTF_4X = 3,
6559};
6560
Hai Shalomc9e41a12018-07-31 14:41:42 -07006561/**
6562 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
6563 *
6564 * Indicates the HE trigger frame MAC padding duration value.
6565 *
6566 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
6567 * process the trigger frame.
6568 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
6569 * trigger frame.
6570 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
6571 * trigger frame.
6572 */
6573enum qca_wlan_he_mac_padding_dur {
6574 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
6575 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
6576 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
6577};
6578
Hai Shalom74f70d42019-02-11 14:42:39 -08006579/**
6580 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
6581 *
6582 * Indicates the HE Operating mode control channel width setting value.
6583 *
6584 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
6585 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
6586 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
6587 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
6588 */
6589enum qca_wlan_he_om_ctrl_ch_bw {
6590 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
6591 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
6592 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
6593 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
6594};
6595
6596/**
6597 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
6598 * HE operating mode control transmit request. These attributes are
6599 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
6600 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
6601 *
6602 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
6603 * indicates the maximum number of spatial streams, NSS, that the STA
6604 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
6605 * and is set to NSS - 1.
6606 *
6607 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
6608 * indicates the operating channel width supported by the STA for both
6609 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
6610 *
6611 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
6612 * indicates the all trigger based UL MU operations by the STA.
6613 * 0 - UL MU operations are enabled by the STA.
6614 * 1 - All triggered UL MU transmissions are suspended by the STA.
6615 *
6616 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
6617 * indicates the maximum number of space-time streams, NSTS, that
6618 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07006619 *
6620 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
6621 * combined with the UL MU Disable subfield and the recipient's setting
6622 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
6623 * capabilities to determine which HE TB PPDUs are possible by the
6624 * STA to transmit.
6625 * 0 - UL MU data operations are enabled by the STA.
6626 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
6627 * bit is not set, else UL MU Tx is suspended.
6628 *
Hai Shalom74f70d42019-02-11 14:42:39 -08006629 */
6630enum qca_wlan_vendor_attr_he_omi_tx {
6631 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
6632 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
6633 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
6634 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
6635 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07006636 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006637
6638 /* keep last */
6639 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
6640 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
6641 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
6642};
6643
Roshan Pius3a1667e2018-07-03 15:17:14 -07006644/* Attributes for data used by
6645 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
6646 */
6647enum qca_wlan_vendor_attr_wifi_test_config {
6648 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
6649 /* 8-bit unsigned value to configure the driver to enable/disable
6650 * WMM feature. This attribute is used to configure testbed device.
6651 * 1-enable, 0-disable
6652 */
6653 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
6654
6655 /* 8-bit unsigned value to configure the driver to accept/reject
6656 * the addba request from peer. This attribute is used to configure
6657 * the testbed device.
6658 * 1-accept addba, 0-reject addba
6659 */
6660 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
6661
6662 /* 8-bit unsigned value to configure the driver to send or not to
6663 * send the addba request to peer.
6664 * This attribute is used to configure the testbed device.
6665 * 1-send addba, 0-do not send addba
6666 */
6667 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
6668
6669 /* 8-bit unsigned value to indicate the HE fragmentation support.
6670 * Uses enum he_fragmentation_val values.
6671 * This attribute is used to configure the testbed device to
6672 * allow the advertised hardware capabilities to be downgraded
6673 * for testing purposes.
6674 */
6675 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
6676
6677 /* 8-bit unsigned value to indicate the HE MCS support.
6678 * Uses enum he_mcs_config values.
6679 * This attribute is used to configure the testbed device to
6680 * allow the advertised hardware capabilities to be downgraded
6681 * for testing purposes.
6682 */
6683 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
6684
6685 /* 8-bit unsigned value to configure the driver to allow or not to
6686 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
6687 * This attribute is used to configure the testbed device.
6688 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
6689 */
6690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
6691
6692 /* 8-bit unsigned value to configure the driver to add a
6693 * new BA session or delete the existing BA session for
6694 * given TID. ADDBA command uses the buffer size and TID
6695 * configuration if user specifies the values else default
6696 * value for buffer size is used for all TIDs if the TID
6697 * also not specified. For DEL_BA command TID value is
6698 * required to process the command.
6699 * Uses enum qca_wlan_ba_session_config values.
6700 * This attribute is used to configure the testbed device.
6701 */
6702 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
6703
Hai Shalomce48b4a2018-09-05 11:41:35 -07006704 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07006705 * request and response frames.
6706 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07006707 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07006708 */
6709 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
6710
6711 /* 8-bit unsigned value to configure the buffer size in addba
6712 * request and response frames.
6713 * This attribute is used to configure the testbed device.
6714 */
6715 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
6716
6717 /* 8-bit unsigned value to configure the no ack policy.
6718 * To configure no ack policy, access category value is
6719 * required to process the command.
6720 * This attribute is used to configure the testbed device.
6721 * 1 - enable no ack, 0 - disable no ack.
6722 */
6723 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
6724
6725 /* 8-bit unsigned value to configure the AC for no ack policy
6726 * This attribute is used to configure the testbed device.
6727 * Uses the enum qca_wlan_ac_type values.
6728 */
6729 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
6730
6731 /* 8-bit unsigned value to configure the HE LTF
6732 * This attribute is used to configure the testbed device.
6733 * Uses the enum qca_wlan_he_ltf_cfg values.
6734 */
6735 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
6736
6737 /* 8-bit unsigned value to configure the tx beamformee.
6738 * This attribute is used to configure the testbed device.
6739 * 1-enable, 0-disable.
6740 */
6741 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
6742
6743 /* 8-bit unsigned value to configure the tx beamformee number
6744 * of space-time streams.
6745 * This attribute is used to configure the testbed device.
6746 * The range of the value is 0 to 8.
6747 */
6748 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
6749
6750 /* 8-bit unsigned value to configure the MU EDCA params for given AC
6751 * This attribute is used to configure the testbed device.
6752 * Uses the enum qca_wlan_ac_type values.
6753 */
6754 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
6755
6756 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
6757 * To configure MU EDCA AIFSN value, MU EDCA access category value
6758 * is required to process the command.
6759 * This attribute is used to configure the testbed device.
6760 */
6761 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
6762
6763 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
6764 * given AC.
6765 * To configure MU EDCA ECW min value, MU EDCA access category value
6766 * is required to process the command.
6767 * This attribute is used to configure the testbed device.
6768 */
6769 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
6770
6771 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
6772 * given AC.
6773 * To configure MU EDCA ECW max value, MU EDCA access category value
6774 * is required to process the command.
6775 * This attribute is used to configure the testbed device.
6776 */
6777 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
6778
6779 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
6780 * To configure MU EDCA timer value, MU EDCA access category value
6781 * is required to process the command.
6782 * This attribute is used to configure the testbed device.
6783 */
6784 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
6785
Hai Shalomc9e41a12018-07-31 14:41:42 -07006786 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
6787 * duration.
6788 * This attribute is used to configure the testbed device.
6789 * Uses the enum qca_wlan_he_mac_padding_dur values.
6790 */
6791 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
6792
Hai Shalomce48b4a2018-09-05 11:41:35 -07006793 /* 8-bit unsigned value to override the MU EDCA params to defaults
6794 * regardless of the AP beacon MU EDCA params. If it is enabled use
6795 * the default values else use the MU EDCA params from AP beacon.
6796 * This attribute is used to configure the testbed device.
6797 * 1-enable, 0-disable.
6798 */
6799 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
6800
Hai Shalom39ba6fc2019-01-22 12:40:38 -08006801 /* 8-bit unsigned value to configure the support for receiving
6802 * an MPDU that contains an operating mode control subfield.
6803 * This attribute is used to configure the testbed device.
6804 * 1-enable, 0-disable.
6805 */
6806 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
6807
6808 /* Nested attribute values required to setup the TWT session.
6809 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
6810 * information to set up the session. It contains broadcast flags,
6811 * set_up flags, trigger value, flow type, flow ID, wake interval
6812 * exponent, protection, target wake time, wake duration, wake interval
6813 * mantissa. These nested attributes are used to setup a host triggered
6814 * TWT session.
6815 */
6816 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
6817
6818 /* This nested attribute is used to terminate the current TWT session.
6819 * It does not currently carry any attributes.
6820 */
6821 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
6822
6823 /* This nested attribute is used to suspend the current TWT session.
6824 * It does not currently carry any attributes.
6825 */
6826 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
6827
6828 /* Nested attribute values to indicate the request for resume.
6829 * This attribute is used to resume the TWT session.
6830 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
6831 * parameters required to resume the TWT session.
6832 */
6833 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
6834
Hai Shalom74f70d42019-02-11 14:42:39 -08006835 /* 8-bit unsigned value to set the HE operating mode control
6836 * (OM CTRL) Channel Width subfield.
6837 * The Channel Width subfield indicates the operating channel width
6838 * supported by the STA for both reception and transmission.
6839 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
6840 * This setting is cleared with the
6841 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6842 * flag attribute to reset defaults.
6843 * This attribute is used to configure the testbed device.
6844 */
6845 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
6846
6847 /* 8-bit unsigned value to configure the number of spatial
6848 * streams in HE operating mode control field.
6849 * This setting is cleared with the
6850 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6851 * flag attribute to reset defaults.
6852 * This attribute is used to configure the testbed device.
6853 */
6854 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
6855
6856 /* Flag attribute to configure the UL MU disable bit in
6857 * HE operating mode control field.
6858 * This setting is cleared with the
6859 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6860 * flag attribute to reset defaults.
6861 * This attribute is used to configure the testbed device.
6862 */
6863 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
6864
6865 /* Flag attribute to clear the previously set HE operating mode
6866 * control field configuration.
6867 * This attribute is used to configure the testbed device to reset
6868 * defaults to clear any previously set HE operating mode control
6869 * field configuration.
6870 */
6871 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
6872
6873 /* 8-bit unsigned value to configure HE single user PPDU
6874 * transmission. By default this setting is disabled and it
6875 * is disabled in the reset defaults of the device configuration.
6876 * This attribute is used to configure the testbed device.
6877 * 1-enable, 0-disable
6878 */
6879 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
6880
6881 /* 8-bit unsigned value to configure action frame transmission
6882 * in HE trigger based PPDU transmission.
6883 * By default this setting is disabled and it is disabled in
6884 * the reset defaults of the device configuration.
6885 * This attribute is used to configure the testbed device.
6886 * 1-enable, 0-disable
6887 */
6888 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
6889
6890 /* Nested attribute to indicate HE operating mode control field
6891 * transmission. It contains operating mode control field Nss,
6892 * channel bandwidth, Tx Nsts and UL MU disable attributes.
6893 * These nested attributes are used to send HE operating mode control
6894 * with configured values.
6895 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
6896 * This attribute is used to configure the testbed device.
6897 */
6898 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
6899
6900 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
6901 * support for the reception of a frame that carries an HE variant
6902 * HT Control field.
6903 * This attribute is used to configure the testbed device.
6904 * 1-enable, 0-disable
6905 */
6906 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
6907
Hai Shalom021b0b52019-04-10 11:17:58 -07006908 /* 8-bit unsigned value to configure VHT support in 2.4G band.
6909 * This attribute is used to configure the testbed device.
6910 * 1-enable, 0-disable
6911 */
6912 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
6913
6914 /* 8-bit unsigned value to configure HE testbed defaults.
6915 * This attribute is used to configure the testbed device.
6916 * 1-set the device HE capabilities to testbed defaults.
6917 * 0-reset the device HE capabilities to supported config.
6918 */
6919 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
6920
6921 /* 8-bit unsigned value to configure TWT request support.
6922 * This attribute is used to configure the testbed device.
6923 * 1-enable, 0-disable.
6924 */
6925 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
6926
Roshan Pius3a1667e2018-07-03 15:17:14 -07006927 /* keep last */
6928 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
6929 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
6930 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
6931};
6932
6933/**
6934 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
6935 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6936 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
6937 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
6938 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
6939 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
6940 * statistics of an unassociated station by specifying the MAC address in
6941 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
6942 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
6943 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
6944 * the statistics of all unassociated stations by specifying the Broadcast MAC
6945 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
6946 * above procedure. In the response, driver shall specify statistics
6947 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
6948 */
6949enum qca_wlan_vendor_attr_bss_filter {
6950 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
6951 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
6952 /* Other BSS filter type, unsigned 8 bit value. One of the values
6953 * in enum qca_wlan_vendor_bss_filter_type.
6954 */
6955 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
6956 /* Other BSS filter action, unsigned 8 bit value. One of the values
6957 * in enum qca_wlan_vendor_bss_filter_action.
6958 */
6959 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
6960 /* Array of nested attributes where each entry is the statistics
6961 * information of the specified station that belong to another BSS.
6962 * Attributes for each entry are taken from enum
6963 * qca_wlan_vendor_bss_filter_sta_stats.
6964 * Other BSS station configured in
6965 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
6966 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
6967 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
6968 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
6969 */
6970 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
6971
6972 /* keep last */
6973 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
6974 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
6975 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
6976};
6977
6978/**
6979 * enum qca_wlan_vendor_bss_filter_type - Type of
6980 * filter used in other BSS filter operations. Used by the vendor command
6981 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6982 *
6983 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
6984 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
6985 */
6986enum qca_wlan_vendor_bss_filter_type {
6987 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
6988 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
6989};
6990
6991/**
6992 * enum qca_wlan_vendor_bss_filter_action - Type of
6993 * action in other BSS filter operations. Used by the vendor command
6994 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6995 *
6996 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
6997 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
6998 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
6999 */
7000enum qca_wlan_vendor_bss_filter_action {
7001 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
7002 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
7003 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
7004};
7005
7006/**
7007 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
7008 * the statistics of a specific unassociated station belonging to another BSS.
7009 * The statistics provides information of the unassociated station
7010 * filtered by other BSS operation - such as MAC, signal value.
7011 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
7012 *
7013 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
7014 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
7015 * of the station. Unsigned 8 bit number containing RSSI.
7016 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
7017 * driver for the last received RSSI. Unsigned 64 bit number containing
7018 * nanoseconds from the boottime.
7019 */
7020enum qca_wlan_vendor_bss_filter_sta_stats {
7021 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
7022 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
7023 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
7024 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
7025
7026 /* keep last */
7027 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
7028 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
7029 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
7030};
7031
Hai Shalomce48b4a2018-09-05 11:41:35 -07007032/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
7033 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
7034 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7035 */
7036enum qca_wlan_nan_ext_subcmd_type {
7037 /* Subcmd of type NAN Enable Request */
7038 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
7039 /* Subcmd of type NAN Disable Request */
7040 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
7041};
7042
7043/**
7044 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
7045 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7046 */
7047enum qca_wlan_vendor_attr_nan_params {
7048 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
7049 /* Carries NAN command for firmware component. Every vendor command
7050 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
7051 * payload containing the NAN command. NLA_BINARY attribute.
7052 */
7053 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
7054 /* Indicates the type of NAN command sent with
7055 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
7056 * describes the possible range of values. This attribute is mandatory
7057 * if the command being issued is either
7058 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
7059 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
7060 */
7061 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
7062 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
7063 * band. This attribute is mandatory when command type is
7064 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
7065 */
7066 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
7067 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
7068 * band. This attribute is optional and should be included when command
7069 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
7070 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
7071 */
7072 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
7073
7074 /* keep last */
7075 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
7076 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
7077 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
7078};
7079
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007080/**
7081 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
7082 * TWT (Target Wake Time) setup request. These attributes are sent as part of
7083 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
7084 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7085 *
7086 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
7087 * Disable (flag attribute not present) - Individual TWT
7088 * Enable (flag attribute present) - Broadcast TWT.
7089 * Individual means the session is between the STA and the AP.
7090 * This session is established using a separate negotiation between
7091 * STA and AP.
7092 * Broadcast means the session is across multiple STAs and an AP. The
7093 * configuration parameters are announced in Beacon frames by the AP.
7094 *
7095 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
7096 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
7097 * specify the TWT request type
7098 *
7099 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
7100 * Enable (flag attribute present) - TWT with trigger support.
7101 * Disable (flag attribute not present) - TWT without trigger support.
7102 * Trigger means the AP will send the trigger frame to allow STA to send data.
7103 * Without trigger, the STA will wait for the MU EDCA timer before
7104 * transmitting the data.
7105 *
7106 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
7107 * 0 - Announced TWT - In this mode, STA may skip few service periods to
7108 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
7109 * NULL frame to AP.
7110 * 1 - Unannounced TWT - The STA will wakeup during every SP.
7111 *
7112 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
7113 * Flow ID is the unique identifier for each TWT session.
7114 * Currently this is not required and dialog ID will be set to zero.
7115 *
7116 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
7117 * This attribute (exp) is used along with the mantissa to derive the
7118 * wake interval using the following formula:
7119 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
7120 * Wake interval is the interval between 2 successive SP.
7121 *
7122 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
7123 * Enable (flag attribute present) - Protection required.
7124 * Disable (flag attribute not present) - Protection not required.
7125 * If protection is enabled, then the AP will use protection
7126 * mechanism using RTS/CTS to self to reserve the airtime.
7127 *
7128 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
7129 * This attribute is used as the SP offset which is the offset from
7130 * TSF after which the wake happens. The units are in microseconds. If
7131 * this attribute is not provided, then the value will be set to zero.
7132 *
7133 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
7134 * This is the duration of the service period. The units are in TU.
7135 *
7136 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
7137 * This attribute is used to configure wake interval mantissa.
7138 * The units are in TU.
7139 */
7140enum qca_wlan_vendor_attr_twt_setup {
7141 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
7142 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
7143 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
7144 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
7145 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
7146 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
7147 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
7148 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
7149 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
7150 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
7151 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
7152
7153 /* keep last */
7154 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
7155 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
7156 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
7157};
7158
7159/**
7160 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
7161 * TWT (Target Wake Time) resume request. These attributes are sent as part of
7162 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
7163 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7164 *
7165 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
7166 * This attribute is used as the SP offset which is the offset from
7167 * TSF after which the wake happens. The units are in microseconds.
7168 * If this attribute is not provided, then the value will be set to
7169 * zero.
7170 *
7171 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
7172 * This attribute represents the next TWT subfield size.
7173 */
7174enum qca_wlan_vendor_attr_twt_resume {
7175 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
7176 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
7177 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
7178
7179 /* keep last */
7180 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
7181 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
7182 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
7183};
7184
7185/**
7186 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
7187 * Represents the setup type being requested for TWT.
7188 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
7189 * parameters but relying on AP to fill the parameters during the negotiation.
7190 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
7191 * values which the AP may accept or AP may provide alternative parameters
7192 * which the STA may accept.
7193 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
7194 * alternate parameters than the requested ones.
7195 */
7196enum qca_wlan_vendor_twt_setup_req_type {
7197 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
7198 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
7199 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
7200};
7201
7202/**
7203 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
7204 *
7205 * Indicates the type of roam scan event sent by firmware/driver.
7206 *
7207 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
7208 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
7209 */
7210enum qca_wlan_roam_scan_event_type {
7211 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
7212 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
7213};
7214
7215/**
7216 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
7217 *
7218 * Indicates the reason for triggering roam scan by firmware/driver.
7219 *
7220 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
7221 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
7222 */
7223enum qca_wlan_roam_scan_trigger_reason {
7224 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
7225 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
7226};
7227
7228/**
7229 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
7230 * roam scan related details from driver/firmware to user space. enum values
7231 * are used for NL attributes sent with
7232 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
7233 */
7234enum qca_wlan_vendor_attr_roam_scan {
7235 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
7236 /* Encapsulates type of roam scan event being reported. enum
7237 * qca_wlan_roam_scan_event_type describes the possible range of
7238 * values. u32 attribute.
7239 */
7240 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
7241 /* Encapsulates reason for triggering roam scan. enum
7242 * qca_wlan_roam_scan_trigger_reason describes the possible range of
7243 * values. u32 attribute.
7244 */
7245 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
7246
7247 /* keep last */
7248 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
7249 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
7250 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
7251};
7252
7253/**
7254 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
7255 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
7256 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
7257 */
7258enum qca_wlan_vendor_cfr_method {
7259 /* CFR method using QOS Null frame */
7260 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
7261};
7262
7263/**
7264 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
7265 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
7266 * Channel Frequency Response capture parameters and enable periodic CFR
7267 * capture.
7268 */
7269enum qca_wlan_vendor_peer_cfr_capture_attr {
7270 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
7271 /* 6-byte MAC address of the peer.
7272 * This attribute is mandatory.
7273 */
7274 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
7275 /* Enable peer CFR Capture, flag attribute.
7276 * This attribute is mandatory to enable peer CFR capture.
7277 * If this attribute is not present, peer CFR capture is disabled.
7278 */
7279 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
7280 /* BW of measurement, attribute uses the values in enum nl80211_chan_width
7281 * Supported values: 20, 40, 80, 80+80, 160.
7282 * Note that all targets may not support all bandwidths.
7283 * u8 attribute. This attribute is mandatory if attribute
7284 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7285 */
7286 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
7287 /* Periodicity of CFR measurement in msec.
7288 * Periodicity should be a multiple of Base timer.
7289 * Current Base timer value supported is 10 msecs (default).
7290 * 0 for one shot capture. u32 attribute.
7291 * This attribute is mandatory if attribute
7292 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7293 */
7294 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
7295 /* Method used to capture Channel Frequency Response.
7296 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
7297 * u8 attribute. This attribute is mandatory if attribute
7298 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7299 */
7300 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
7301 /* Enable periodic CFR capture, flag attribute.
7302 * This attribute is mandatory to enable Periodic CFR capture.
7303 * If this attribute is not present, periodic CFR capture is disabled.
7304 */
7305 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
7306
7307 /* Keep last */
7308 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
7309 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
7310 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
7311};
7312
Hai Shalom74f70d42019-02-11 14:42:39 -08007313/**
7314 * enum qca_wlan_throughput_level - Current throughput level
7315 *
7316 * Indicates the current level of throughput calculated by the driver. The
7317 * driver may choose different thresholds to decide whether the throughput level
7318 * is low or medium or high based on variety of parameters like physical link
7319 * capacity of the current connection, the number of packets being dispatched
7320 * per second, etc. The throughput level events might not be consistent with the
7321 * actual current throughput value being observed.
7322 *
7323 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
7324 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
7325 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
7326 */
7327enum qca_wlan_throughput_level {
7328 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
7329 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
7330 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
7331};
7332
7333/**
7334 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
7335 * report throughput changes from the driver to user space. enum values are used
7336 * for netlink attributes sent with
7337 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
7338 */
7339enum qca_wlan_vendor_attr_throughput_change {
7340 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
7341 /* Indicates the direction of throughput in which the change is being
7342 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
7343 */
7344 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
7345 /* Indicates the newly observed throughput level. enum
7346 * qca_wlan_throughput_level describes the possible range of values.
7347 * u8 attribute.
7348 */
7349 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
7350 /* Indicates the driver's guidance on the new value to be set to
7351 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
7352 * driver may optionally include this attribute.
7353 */
7354 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
7355 /* Indicates the driver's guidance on the new value to be set to
7356 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
7357 * values are from -31 to 31. The driver may optionally include this
7358 * attribute.
7359 */
7360 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
7361 /* Indicates the driver's guidance on the new value to be set to
7362 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
7363 * optionally include this attribute.
7364 */
7365 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
7366
7367 /* keep last */
7368 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
7369 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
7370 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
7371};
7372
7373/**
7374 * enum qca_coex_config_profiles - This enum defines different types of
7375 * traffic streams that can be prioritized one over the other during coex
7376 * scenarios.
7377 * The types defined in this enum are categorized in the below manner.
7378 * 0 - 31 values corresponds to WLAN
7379 * 32 - 63 values corresponds to BT
7380 * 64 - 95 values corresponds to Zigbee
7381 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
7382 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
7383 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
7384 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
7385 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
7386 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
7387 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
7388 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
7389 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
7390 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
7391 * @QCA_BT_A2DP: Prioritize BT A2DP
7392 * @QCA_BT_BLE: Prioritize BT BLE
7393 * @QCA_BT_SCO: Prioritize BT SCO
7394 * @QCA_ZB_LOW: Prioritize Zigbee Low
7395 * @QCA_ZB_HIGH: Prioritize Zigbee High
7396 */
7397enum qca_coex_config_profiles {
7398 /* 0 - 31 corresponds to WLAN */
7399 QCA_WIFI_STA_DISCOVERY = 0,
7400 QCA_WIFI_STA_CONNECTION = 1,
7401 QCA_WIFI_STA_CLASS_3_MGMT = 2,
7402 QCA_WIFI_STA_DATA = 3,
7403 QCA_WIFI_STA_ALL = 4,
7404 QCA_WIFI_SAP_DISCOVERY = 5,
7405 QCA_WIFI_SAP_CONNECTION = 6,
7406 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
7407 QCA_WIFI_SAP_DATA = 8,
7408 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -07007409 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -08007410 /* 32 - 63 corresponds to BT */
7411 QCA_BT_A2DP = 32,
7412 QCA_BT_BLE = 33,
7413 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -07007414 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -08007415 /* 64 - 95 corresponds to Zigbee */
7416 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -07007417 QCA_ZB_HIGH = 65,
7418 QCA_ZB_CASE_MAX = 95,
7419 /* 0xff is default value if the u8 profile value is not set. */
7420 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
7421};
7422
7423/**
7424 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
7425 * This enum defines the valid set of values of coex configuration types. These
7426 * values may used by attribute
7427 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
7428 *
7429 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
7430 * weights to default values.
7431 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
7432 * weights with configurability value.
7433 */
7434enum qca_vendor_attr_coex_config_types {
7435 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7436 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
7437 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -08007438};
7439
7440/**
7441 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
7442 *
7443 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
7444 * length array of 8-bit values from enum qca_coex_config_profiles.
7445 * FW will prioritize the profiles in the order given in the array encapsulated
7446 * in this attribute.
7447 * For example:
7448 * -----------------------------------------------------------------------
7449 * | 1 | 34 | 32 | 65 |
7450 * -----------------------------------------------------------------------
7451 * If the attribute contains the values defined in above array then it means
7452 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
7453 * 2) BT_SCO has priority over BT_A2DP.
7454 * 3) BT_A2DP has priority over ZIGBEE HIGH.
7455 * Profiles which are not listed in this array shall not be preferred over the
7456 * profiles which are listed in the array as a part of this attribute.
7457 */
7458enum qca_vendor_attr_coex_config {
7459 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7460 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
7461
7462 /* Keep last */
7463 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
7464 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
7465 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
7466};
7467
7468/**
Hai Shalom021b0b52019-04-10 11:17:58 -07007469 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
7470 * attributes
7471 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
7472 *
7473 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
7474 * Indicate config type.
7475 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
7476 *
7477 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
7478 * Indicate the Priority 1 profiles.
7479 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7480 * In same priority level, maximum to 4 profiles can be set here.
7481 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
7482 * Indicate the Priority 2 profiles.
7483 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7484 * In same priority level, maximum to 4 profiles can be set here.
7485 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
7486 * Indicate the Priority 3 profiles.
7487 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7488 * In same priority level, maximum to 4 profiles can be set here.
7489 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
7490 * Indicate the Priority 4 profiles.
7491 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7492 * In same priority level, maximum to 4 profiles can be set here.
7493 * NOTE:
7494 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
7495 * arrangement:
7496 * 1: In the same u32 attribute (priority x), the profiles enum values own
7497 * same priority level.
7498 * 2: 0xff is default value if the u8 profile value is not set.
7499 * 3: max to 4 rules/profiles in same priority level.
7500 * 4: max to 4 priority level (priority 1 - priority 4)
7501 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
7502 * hybrid rules not support.
7503 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
7504 * remain blank to reset all parameters.
7505 * For example:
7506 *
7507 * If the attributes as follow:
7508 * priority 1:
7509 * ------------------------------------
7510 * | 0xff | 0 | 1 | 2 |
7511 * ------------------------------------
7512 * priority 2:
7513 * -------------------------------------
7514 * | 0xff | 0xff | 0xff | 32 |
7515 * -------------------------------------
7516 * priority 3:
7517 * -------------------------------------
7518 * | 0xff | 0xff | 0xff | 65 |
7519 * -------------------------------------
7520 * then it means:
7521 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7522 * owns same priority level.
7523 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7524 * has priority over BT_A2DP and ZB_HIGH.
7525 * 3: BT_A2DP has priority over ZB_HIGH.
7526 */
7527
7528enum qca_vendor_attr_coex_config_three_way {
7529 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
7530 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
7531 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
7532 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
7533 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
7534 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
7535
7536 /* Keep last */
7537 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
7538 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
7539 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
7540};
7541
7542/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007543 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
7544 *
7545 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
7546 * (STA/AP) for the connected link.
7547 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
7548 * &struct nl80211_sta_flag_update for the respective connected link. MAC
7549 * address of the peer represented by
7550 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
7551 */
7552enum qca_wlan_vendor_attr_link_properties {
7553 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
7554 /* 1 - 3 are reserved */
7555 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
7556 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
7557
7558 /* Keep last */
7559 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
7560 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
7561 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
7562};
7563
Hai Shalom021b0b52019-04-10 11:17:58 -07007564/**
7565 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
7566 * This enum defines the valid set of values of peer stats cache types. These
7567 * values are used by attribute
7568 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
7569 *
7570 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
7571 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
7572 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
7573 * statistics
7574 */
7575enum qca_vendor_attr_peer_stats_cache_type {
7576 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
7577
7578 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
7579 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
7580 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
7581};
7582
7583/**
7584 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
7585 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
7586 * Information in these attributes is used to flush peer rate statistics from
7587 * the driver to user application.
7588 *
7589 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
7590 * Indicate peer statistics cache type.
7591 * The statistics types are 32-bit values from
7592 * enum qca_vendor_attr_peer_stats_cache_type.
7593 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
7594 * of size 6 octets, representing the peer MAC address.
7595 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
7596 * containing buffer of statistics to send to application layer entity.
7597 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
7598 * representing a cookie for peer unique session.
7599 */
7600enum qca_wlan_vendor_attr_peer_stats_cache_params {
7601 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
7602
7603 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
7604 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
7605 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
7606 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
7607
7608 /* Keep last */
7609 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
7610 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
7611 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
7612};
7613
7614/**
7615 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
7616 * This enum defines all the possible states of Zigbee, which can be
7617 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
7618 *
7619 * @ZIGBEE_IDLE: Zigbee in idle state
7620 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
7621 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
7622 * @ZIGBEE_JOIN: Zigbee joining network
7623 * @ZIGBEE_NETWORK_UP: Zigbee network is up
7624 * @ZIGBEE_HMI: Zigbee in HMI mode
7625 */
7626enum qca_mpta_helper_attr_zigbee_state {
7627 ZIGBEE_IDLE = 0,
7628 ZIGBEE_FORM_NETWORK = 1,
7629 ZIGBEE_WAIT_JOIN = 2,
7630 ZIGBEE_JOIN = 3,
7631 ZIGBEE_NETWORK_UP = 4,
7632 ZIGBEE_HMI = 5,
7633};
7634
7635/*
7636 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
7637 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
7638 */
7639enum qca_mpta_helper_vendor_attr {
7640 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
7641 /* Optional attribute used to update Zigbee state.
7642 * enum qca_mpta_helper_attr_zigbee_state.
7643 * NLA_U32 attribute.
7644 */
7645 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
7646 /* Optional attribute used to configure WLAN duration for Shape-OCS
7647 * during interrupt.
7648 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
7649 * Value range 0 ~ 300 (ms).
7650 * NLA_U32 attribute.
7651 */
7652 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
7653 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
7654 * during interrupt.
7655 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
7656 * Value range 0 ~ 300 (ms).
7657 * NLA_U32 attribute.
7658 */
7659 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
7660 /* Optional attribute used to configure WLAN duration for Shape-OCS
7661 * monitor period.
7662 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
7663 * Value range 0 ~ 300 (ms)
7664 * NLA_U32 attribute
7665 */
7666 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
7667 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
7668 * monitor period.
7669 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
7670 * Value range 0 ~ 300 (ms)
7671 * NLA_U32 attribute
7672 */
7673 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
7674 /* Optional attribute used to configure OCS interrupt duration.
7675 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
7676 * Value range 1000 ~ 20000 (ms)
7677 * NLA_U32 attribute
7678 */
7679 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
7680 /* Optional attribute used to configure OCS monitor duration.
7681 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
7682 * Value range 1000 ~ 20000 (ms)
7683 * NLA_U32 attribute
7684 */
7685 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
7686 /* Optional attribute used to notify WLAN firmware the current Zigbee
7687 * channel.
7688 * Value range 11 ~ 26
7689 * NLA_U32 attribute
7690 */
7691 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
7692 /* Optional attribute used to configure WLAN mute duration.
7693 * Value range 0 ~ 400 (ms)
7694 * NLA_U32 attribute
7695 */
7696 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
7697
7698 /* keep last */
7699 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
7700 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
7701 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
7702};
7703
Hai Shalom81f62d82019-07-22 12:10:00 -07007704/**
7705 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
7706 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
7707 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
7708 *
7709 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
7710 * to request the driver to start reporting Beacon frames.
7711 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
7712 * request the driver to stop reporting Beacon frames.
7713 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
7714 * userspace to report received Beacon frames.
7715 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
7716 * to indicate that the driver is going to pause reporting Beacon frames.
7717 */
7718enum qca_wlan_vendor_beacon_reporting_op_types {
7719 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
7720 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
7721 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
7722 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
7723};
7724
7725/**
7726 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
7727 * of reasons for which the driver is pausing reporting Beacon frames. Will be
7728 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
7729 *
7730 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
7731 * reasons.
7732 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
7733 * driver/firmware is starting a scan.
7734 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
7735 * driver/firmware disconnects from the ESS and indicates the disconnection to
7736 * userspace (non-seamless roaming case). This reason code will be used by the
7737 * driver/firmware to indicate stopping of beacon report events. Userspace will
7738 * need to start beacon reporting again (if desired) by sending vendor command
7739 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
7740 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
7741 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
7742 * completed.
7743 */
7744enum qca_wlan_vendor_beacon_reporting_pause_reasons {
7745 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
7746 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
7747 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
7748};
7749
7750/*
7751 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
7752 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
7753 */
7754enum qca_wlan_vendor_attr_beacon_reporting_params {
7755 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
7756 /* Specifies the type of operation that the vendor command/event is
7757 * intended for. Possible values for this attribute are defined in
7758 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
7759 */
7760 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
7761 /* Optionally set by userspace to request the driver to report Beacon
7762 * frames using asynchronous vendor events when the
7763 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7764 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7765 * If this flag is not set, the driver will only update Beacon frames in
7766 * cfg80211 scan cache but not send any vendor events.
7767 */
7768 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
7769 /* Optionally used by userspace to request the driver/firmware to report
7770 * Beacon frames periodically when the
7771 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7772 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
7773 * u32 attribute, indicates the period of Beacon frames to be reported
7774 * and in the units of beacon interval.
7775 * If this attribute is missing in the command, then the default value
7776 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
7777 * Zero is an invalid value.
7778 * If a valid value is received for this attribute, the driver will
7779 * update the cfg80211 scan cache periodically as per the value received
7780 * in this attribute in addition to updating the cfg80211 scan cache
7781 * when there is significant change in Beacon frame IEs.
7782 */
7783 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
7784 /* Used by the driver to encapsulate the SSID when the
7785 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7786 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7787 * u8 array with a maximum size of 32.
7788 *
7789 * When generating beacon report from non-MBSSID Beacon frame, the SSID
7790 * will be taken from the SSID element of the received Beacon frame.
7791 *
7792 * When generating beacon report from Multiple BSSID Beacon frame and if
7793 * the BSSID of the current connected BSS matches the BSSID of the
7794 * transmitting BSS, the SSID will be taken from the SSID element of the
7795 * received Beacon frame.
7796 *
7797 * When generating beacon report from Multiple BSSID Beacon frame and if
7798 * the BSSID of the current connected BSS matches the BSSID of one of
7799 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
7800 * included in the nontransmitted BSS profile whose derived BSSID is
7801 * same as the BSSID of the current connected BSS. When there is no
7802 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
7803 * of current connected* BSS, this attribute will not be present.
7804 */
7805 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
7806 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
7807 * currently connected to when the
7808 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7809 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
7810 * fixed size of 6 bytes.
7811 *
7812 * When generating beacon report from a Multiple BSSID beacon and the
7813 * current connected BSSID matches one of the nontransmitted BSSIDs in a
7814 * Multiple BSSID set, this BSSID will be that particular nontransmitted
7815 * BSSID and not the transmitted BSSID (i.e., the transmitting address
7816 * of the Beacon frame).
7817 */
7818 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
7819 /* Used by the driver to encapsulate the frequency in MHz on which
7820 * the Beacon frame was received when the
7821 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
7822 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7823 * u32 attribute.
7824 */
7825 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
7826 /* Used by the driver to encapsulate the Beacon interval
7827 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7828 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7829 * u16 attribute. The value will be copied from the Beacon frame and the
7830 * units are TUs.
7831 */
7832 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
7833 /* Used by the driver to encapsulate the Timestamp field from the Beacon
7834 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
7835 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7836 * u64 attribute.
7837 */
7838 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
7839 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
7840 * Beacon frame is received in the driver when the
7841 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7842 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
7843 * the units of nanoseconds. This value is expected to have accuracy of
7844 * about 10 ms.
7845 */
7846 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
7847 /* Used by the driver to encapsulate the IEs of the Beacon frame from
7848 * which this event is generated when the
7849 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7850 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
7851 */
7852 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
7853 /* Used by the driver to specify the reason for the driver/firmware to
7854 * pause sending beacons to userspace when the
7855 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7856 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
7857 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
7858 * attribute.
7859 */
7860 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
7861 /* Used by the driver to specify whether the driver will automatically
7862 * resume reporting beacon events to userspace later (for example after
7863 * the ongoing off-channel activity is completed etc.) when the
7864 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7865 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
7866 */
7867 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
7868 /* Optionally set by userspace to request the driver not to resume
7869 * beacon reporting after a pause is completed, when the
7870 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7871 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7872 * If this flag is set, the driver will not resume beacon reporting
7873 * after any pause in beacon reporting is completed. Userspace has to
7874 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
7875 * to initiate beacon reporting again. If this flag is set in the recent
7876 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
7877 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
7878 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
7879 * set by the driver. Setting this flag until and unless there is a
7880 * specific need is not recommended as there is a chance of some beacons
7881 * received after pause command and next start command being not
7882 * reported.
7883 */
7884 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
7885
7886 /* Keep last */
7887 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
7888 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
7889 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
7890};
7891
7892/**
7893 * enum qca_vendor_interop_issues_ap_type - Interop issue types
7894 * This enum defines the valid set of values of interop issue types. These
7895 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
7896 *
7897 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
7898 * when the STA's Qpower feature is enabled.
7899 */
7900enum qca_vendor_interop_issues_ap_type {
7901 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
7902 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
7903};
7904
7905/**
7906 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
7907 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
7908 *
7909 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
7910 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
7911 * 32-bit unsigned value. The values defined in enum
7912 * qca_vendor_interop_issues_ap_type are used.
7913 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
7914 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
7915 * It is present and mandatory for the command but is not used for the event
7916 * since only a single BSSID is reported in an event.
7917 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
7918 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
7919 * attribute in command case and without such encapsulation in the event case.
7920 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
7921 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
7922 */
7923enum qca_vendor_attr_interop_issues_ap {
7924 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
7925 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
7926 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
7927 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
7928 /* keep last */
7929 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
7930 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
7931 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
7932};
7933
Hai Shalomc3565922019-10-28 11:58:20 -07007934/**
7935 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
7936 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
7937 *
7938 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
7939 * a virtual device.
7940 *
7941 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
7942 * a physical device.
7943 */
7944enum qca_vendor_oem_device_type {
7945 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
7946 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
7947};
7948
7949/**
7950 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
7951 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
7952 *
7953 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
7954 * command/event QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
7955 * attribute.
7956 * NLA_BINARY attribute, the max size is 1024 bytes.
7957 *
7958 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
7959 * based on this field. This optional attribute is included to specify whether
7960 * the device type is a virtual device or a physical device for the
7961 * command/event. This attribute can be omitted for a virtual device (default)
7962 * command/event.
7963 * This u8 attribute is used to carry information for the device type using
7964 * values defined by enum qca_vendor_oem_device_type.
7965 */
7966enum qca_wlan_vendor_attr_oem_data_params {
7967 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
7968 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
7969 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
7970
7971 /* keep last */
7972 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
7973 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
7974 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
7975};
7976
7977/**
7978 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
7979 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
7980 *
7981 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
7982 * Nested attribute containing multiple ranges with following attributes:
7983 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
7984 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
7985 *
7986 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
7987 * Starting center frequency in MHz.
7988 *
7989 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
7990 * Ending center frequency in MHz.
7991 */
7992enum qca_wlan_vendor_attr_avoid_frequency_ext {
7993 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
7994 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
7995 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
7996 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
7997
7998 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
7999 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
8000 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
8001};
8002
8003/*
8004 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
8005 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
8006 */
8007enum qca_wlan_vendor_attr_add_sta_node_params {
8008 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
8009 /* 6 byte MAC address of STA */
8010 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
8011 /* Authentication algorithm used by the station of size u16;
8012 * defined in enum nl80211_auth_type.
8013 */
8014 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
8015
8016 /* keep last */
8017 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
8018 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
8019 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
8020};
8021
8022/**
8023 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
8024 * This enum defines the valid set of values of BT coex chain mode.
8025 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
8026 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8027 *
8028 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
8029 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
8030 */
8031enum qca_btc_chain_mode {
8032 QCA_BTC_CHAIN_SHARED = 0,
8033 QCA_BTC_CHAIN_SEPARATED = 1,
8034};
8035
8036/**
8037 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
8038 * chain mode.
8039 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8040 *
8041 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
8042 * Indicates the BT coex chain mode, are 32-bit values from
8043 * enum qca_btc_chain_mode. This attribute is mandatory.
8044 *
8045 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
8046 * If set, vdev should be restarted when BT coex chain mode is updated.
8047 * This attribute is optional.
8048 */
8049enum qca_vendor_attr_btc_chain_mode {
8050 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
8051 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
8052 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
8053
8054 /* Keep last */
8055 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
8056 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
8057 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
8058};
8059
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08008060/**
8061 * enum qca_vendor_wlan_sta_flags - Station feature flags
8062 * Bits will be set to 1 if the corresponding features are enabled.
8063 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
8064 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
8065 for the station
8066 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
8067 for the station
8068 */
8069enum qca_vendor_wlan_sta_flags {
8070 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
8071 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
8072 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
8073};
8074
8075/**
8076 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
8077 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
8078 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
8079 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
8080 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
8081 */
8082enum qca_vendor_wlan_sta_guard_interval {
8083 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
8084 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
8085 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
8086 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
8087};
8088
8089/**
8090 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
8091 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
8092 *
8093 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
8094 * Required attribute in request, 6-byte MAC address,
8095 * used in both STA and AP modes.
8096 * MAC address of the station for which information is requested (BSSID of the
8097 * AP in STA mode).
8098 *
8099 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
8100 * Optionally used in response, u32 attribute, contains a bitmap of different
8101 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
8102 *
8103 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
8104 * Optionally used in response, u32 attribute, possible values are defined in
8105 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
8106 * Guard interval used by the station.
8107 *
8108 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
8109 * Optionally used in response, u32 attribute, used in AP mode only.
8110 * Value indicates the number of data frames received from station with retry
8111 * bit set to 1 in FC.
8112 *
8113 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
8114 * Optionally used in response, u32 attribute, used in AP mode only.
8115 * Counter for number of data frames with broadcast or multicast address in
8116 * the destination address received from the station.
8117 *
8118 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
8119 * Optionally used in response, u32 attribute, used in both STA and AP modes.
8120 * Value indicates the number of data frames successfully transmitted only
8121 * after retrying the packets and for which the TX status has been updated
8122 * back to host from target.
8123 *
8124 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
8125 * Optionally used in response, u32 attribute, used in AP mode only.
8126 * Value indicates the number of data frames not transmitted successfully even
8127 * after retrying the packets for the number of times equal to the total number
8128 * of retries allowed for that packet and for which the TX status has been
8129 * updated back to host from target.
8130 *
8131 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
8132 * Optionally used in response, u32 attribute, used in AP mode only.
8133 * Counter in the target for the number of data frames successfully transmitted
8134 * to the station.
8135 *
8136 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
8137 * Optionally used in response, u32 attribute, used in AP mode only.
8138 * Value indicates the number of data frames successfully transmitted only
8139 * after retrying the packets.
8140 *
8141 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
8142 * Optionally used in response, u32 attribute, used in AP mode only.
8143 * Value indicates the number of data frames not transmitted successfully even
8144 * after retrying the packets for the number of times equal to the total number
8145 * of retries allowed for that packet.
8146 */
8147enum qca_wlan_vendor_attr_get_sta_info {
8148 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
8149 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
8150 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
8151 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
8152 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
8153 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
8154 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
8155 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
8156 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
8157 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
8158 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
8159
8160 /* keep last */
8161 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
8162 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
8163 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
8164};
8165
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08008166#endif /* QCA_VENDOR_H */