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