]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/common/qca-vendor.h
tests: SAE anti clogging during an attack
[thirdparty/hostap.git] / src / common / qca-vendor.h
CommitLineData
1682c623
JM
1/*
2 * Qualcomm Atheros OUI and vendor specific assignments
09a97eb2 3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
9cc8303d 4 * Copyright (c) 2018, The Linux Foundation
1682c623
JM
5 *
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
13/*
14 * This file is a registry of identifier assignments from the Qualcomm Atheros
15 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
16 * can be assigned through normal review process for changes to the upstream
17 * hostap.git repository.
18 */
19
20#define OUI_QCA 0x001374
21
30476e4f
JB
22/**
23 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
24 */
25enum qca_radiotap_vendor_ids {
26 QCA_RADIOTAP_VID_WLANTEST = 0,
27};
28
1682c623
JM
29/**
30 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
31 *
32 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
33 *
34 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
253f2e37 35 *
0800f9ee
JM
36 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
37 * internal BSS-selection. This command uses
38 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
39 * for the current connection (i.e., changes policy set by the nl80211
40 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
41 * included to indicate which BSS to use in case roaming is disabled.
42 *
253f2e37
AH
43 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
44 * ranges to avoid to reduce issues due to interference or internal
9da1641a
SD
45 * co-existence information in the driver. These frequencies aim to
46 * minimize the traffic but not to totally avoid the traffic. That said
47 * for a P2P use case, these frequencies are allowed for the P2P
48 * discovery/negotiation but avoid the group to get formed on these
49 * frequencies. The event data structure is defined in
50 * struct qca_avoid_freq_list.
65d645ce
AS
51 *
52 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
53 * for DFS offloading.
4a16a0bd
AHS
54 *
55 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
56 * NAN Request/Response and NAN Indication messages. These messages are
28c7f77a
NK
57 * interpreted between the framework and the firmware component. While
58 * sending the command from userspace to the driver, payload is not
59 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
60 * is used when receiving vendor events in userspace from the driver.
b41f2684
CL
61 *
62 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
63 * used to configure PMK to the driver even when not connected. This can
15badebd
CL
64 * be used to request offloading of key management operations. Only used
65 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
66 *
b41f2684
CL
67 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
68 * NL80211_CMD_ROAM event with optional attributes including information
69 * from offloaded key management operation. Uses
15badebd
CL
70 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
71 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
16689c7c
PX
72 *
73 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
74 * invoke the ACS function in device and pass selected channels to
75 * hostapd.
15badebd
CL
76 *
77 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
78 * supported by the driver. enum qca_wlan_vendor_features defines
79 * the possible features.
e0761c5b 80 *
480994da
AK
81 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
82 * which supports DFS offloading, to indicate a channel availability check
83 * start.
84 *
85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
86 * which supports DFS offloading, to indicate a channel availability check
87 * completion.
88 *
89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
90 * which supports DFS offloading, to indicate that the channel availability
91 * check aborted, no change to the channel status.
92 *
93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
94 * driver, which supports DFS offloading, to indicate that the
95 * Non-Occupancy Period for this channel is over, channel becomes usable.
96 *
97 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
98 * which supports DFS offloading, to indicate a radar pattern has been
99 * detected. The channel is now unusable.
35d66557 100 *
a7769f6d
SS
101 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
102 * based on enum wifi_logger_supported_features. Attributes defined in
103 * enum qca_wlan_vendor_attr_get_logger_features.
104 *
105 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
106 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
107 * attribute for this command. Attributes defined in
108 * enum qca_wlan_vendor_attr_wifi_logger_start.
109 *
110 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
111 * capabilities of the driver, parameters includes the attributes defined
112 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
113 *
114 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
115 * sending of certain periodic IP packet to firmware, attributes defined in
116 * enum qca_wlan_vendor_attr_offloaded_packets.
117 *
118 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
119 * monitoring, defines min and max RSSI which are configured for RSSI
120 * monitoring. Also used to notify the RSSI breach and provides the BSSID
121 * and RSSI value that was breached. Attributes defined in
122 * enum qca_wlan_vendor_attr_rssi_monitoring.
123 *
124 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
125 * Data Path (NDP) related operations, attributes defined in
126 * enum qca_wlan_vendor_attr_ndp_params.
127 *
128 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
129 * Neighbour Discovery offload, attributes defined in
130 * enum qca_wlan_vendor_attr_nd_offload.
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
133 * configuration parameter for BPF packet filter, attributes defined in
134 * enum qca_wlan_vendor_attr_packet_filter.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
137 * maximum supported size, attributes defined in
138 * enum qca_wlan_vendor_drv_info.
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
141 * data about wake reasons and datapath IP statistics, attributes defined
142 * in enum qca_wlan_vendor_attr_wake_stats.
143 *
2a9ec7c6
ZL
144 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
145 * for IEEE 802.11 communicating outside the context of a basic service
146 * set, called OCB command. Uses the attributes defines in
147 * enum qca_wlan_vendor_attr_ocb_set_config.
148 *
149 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
150 * UTC time. Use the attributes defines in
151 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
152 *
153 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
154 * sending OCB timing advert frames. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
158 * OCB timing advert. Uses the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
160 *
161 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
162 * timer value. Uses the attributes defines in
163 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
164 *
acecac4c
SD
165 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
166 * link properties of the respective interface. As an event, is used
167 * to notify the connected station's status. The attributes for this
168 * command are defined in enum qca_wlan_vendor_attr_link_properties.
169 *
35d66557
PX
170 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
171 * start the P2P Listen offload function in device and pass the listen
172 * channel, period, interval, count, device types, and vendor specific
173 * information elements to the device driver and firmware.
174 * Uses the attributes defines in
175 * enum qca_wlan_vendor_attr_p2p_listen_offload.
176 *
177 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
178 * indicate stop request/response of the P2P Listen offload function in
179 * device. As an event, it indicates either the feature stopped after it
180 * was already running or feature has actually failed to start. Uses the
181 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
1c8fe68f
CM
182 *
183 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
184 * beaconing, this sub command provides the driver, the frequencies on the
185 * 5 GHz band to check for any radar activity. Driver selects one channel
186 * from this priority list provided through
187 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
188 * to check for radar activity on it. If no radar activity is detected
189 * during the channel availability check period, driver internally switches
190 * to the selected frequency of operation. If the frequency is zero, driver
191 * internally selects a channel. The status of this conditional switch is
192 * indicated through an event using the same sub command through
193 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
194 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
4ac75cd0
VK
195 *
196 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
197 * attributes defined in enum qca_wlan_gpio_attr.
6fe3b9d4
YT
198 *
199 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
200 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
201 * capabilities are to be fetched and other
202 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
203 * requested capabilities.
22950d05
ZQ
204 *
205 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
206 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
207 * command and event.
fcd85d9a
LD
208 *
209 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
210 * indoor location features. Capabilities are reported in
211 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
212 *
213 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
214 * (fine timing measurement) session with one or more peers.
215 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
216 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
217 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
218 * events will be reported, followed by
219 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
220 * end of session.
221 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
222 *
223 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
224 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
225 * status code indicating session was aborted.
226 *
227 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
228 * results for one peer. Results are reported in
229 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
230 *
231 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
232 * FTM session is finished, either successfully or aborted by
233 * request.
234 *
235 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
236 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
237 * to enable or disable the responder. LCI/LCR reports can be
238 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
239 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
240 * times to update the LCI/LCR reports.
241 *
242 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
243 * arrival) measurement with a single peer. Specify peer MAC address in
32d08d5b
LD
244 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
245 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
246 * scan results cache and use the frequency from there).
247 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
248 * Measurement result is reported in
fcd85d9a
LD
249 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
250 *
251 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
252 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
253 *
254 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
255 * the AOA measurement result.
256 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
257 * success/failure status is reported in
258 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
259 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
260 * The antenna array(s) used in the measurement are reported in
261 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
0d7eba54
SD
262 *
263 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
264 * data as per the given parameters.
8b7c5b89 265 *
266 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
267 * specific chain.
6eb1a569
LD
268 *
269 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
270 * configuration for a DMG RF sector. Specify sector index in
271 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
272 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
273 * to return sector information for in
274 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
275 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
276 * exact time where information was captured in
277 * QCA_WLAN_VENDOR_ATTR_TSF.
278 *
279 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
280 * configuration for a DMG RF sector. Specify sector index in
281 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
282 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
283 * for one or more DMG RF modules in
284 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
285 *
286 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
287 * DMG RF sector for a station. This is the sector that the HW
288 * will use to communicate with the station. Specify the MAC address
289 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
290 * needed for unassociated station). Specify sector type to return in
291 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
292 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
293 * Also return the exact time where the information was captured
294 * in QCA_WLAN_VENDOR_ATTR_TSF.
295 *
296 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
297 * selected DMG RF sector for a station. This is the sector that
298 * the HW will use to communicate with the station.
299 * Specify the MAC address of associated station/AP/PCP in
300 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
301 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
302 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
303 * The selected sector will be locked such that it will not be
304 * modified like it normally does (for example when station
305 * moves around). To unlock the selected sector for a station
306 * pass the special value 0xFFFF in the sector index. To unlock
307 * all connected stations also pass a broadcast MAC address.
14cd203f
SD
308 *
309 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
310 * in the host driver. The different TDLS configurations are defined
311 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
1a793f5c 312 *
7785c70b
PX
313 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
314 * capabilities. The response uses the attributes defined in
315 * enum qca_wlan_vendor_attr_get_he_capabilities.
316 *
1a793f5c
SD
317 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
318 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
319 * carries the scan cookie of the corresponding scan request. The scan
320 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
c79238b6
JJ
321 *
322 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
323 * Absorption Rate (SAR) power limits. A critical regulation for
324 * FCC compliance, OEMs require methods to set SAR limits on TX
325 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
326 * attributes are used with this command.
4c407000
PK
327 *
328 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
329 * host driver for offloading the implementation of Auto Channel Selection
330 * (ACS) to an external user space entity. This interface is used as the
331 * event from the host driver to the user space entity and also as the
332 * request from the user space entity to the host driver. The event from
333 * the host driver is used by the user space entity as an indication to
334 * start the ACS functionality. The attributes used by this event are
335 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
336 * User space entity uses the same interface to inform the host driver with
337 * selected channels after the ACS operation using the attributes defined
338 * by enum qca_wlan_vendor_attr_external_acs_channels.
d7d0f909
SD
339 *
340 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
341 * requisite information leading to a power save failure. The information
342 * carried as part of this event is represented by the
343 * enum qca_attr_chip_power_save_failure attributes.
a9491695
SD
344 *
345 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
346 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
347 *
348 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
349 * statistics are represented by the enum qca_attr_nud_stats_get
350 * attributes.
70407ee5
KV
351 *
352 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
353 * the BSS transition status, whether accept or reject, for a list of
354 * candidate BSSIDs provided by the userspace. This uses the vendor
355 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
356 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
357 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
358 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
359 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
360 * the driver shall specify array of
361 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
362 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
363 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
841e9a8c
SD
364 *
365 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
366 * specific QCA module. The trace levels are represented by
367 * enum qca_attr_trace_level attributes.
160dca07
AAL
368 *
369 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
370 * Protocol antenna limit in different modes. See enum
371 * qca_wlan_vendor_attr_brp_ant_limit_mode.
16217e13
PX
372 *
373 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
374 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
375 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
376 * identifying the operation in success case.
377 *
378 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
379 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
380 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
381 * be stopped.
944f359e
SD
382 *
383 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
384 * specific interface. This can be used to modify some of the low level
385 * scan parameters (off channel dwell time, home channel time) in the
386 * driver/firmware. These parameters are maintained within the host driver.
387 * This command is valid only when the interface is in the connected state.
388 * These scan parameters shall be reset by the driver/firmware once
389 * disconnected. The attributes used with this command are defined in
390 * enum qca_wlan_vendor_attr_active_tos.
cf39475b
SD
391 *
392 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
393 * driver has detected an internal failure. This event carries the
394 * information indicating the reason that triggered this detection. The
395 * attributes for this command are defined in
396 * enum qca_wlan_vendor_attr_hang.
fbfceef3
EJ
397 *
398 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
399 * of spectral parameters used. The spectral scan parameters are specified
400 * by enum qca_wlan_vendor_attr_spectral_scan.
401 *
402 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
403 * for spectral scan functionality. The debug stats are specified by
404 * enum qca_wlan_vendor_attr_spectral_diag_stats.
405 *
406 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
407 * scan system capabilities. The capabilities are specified
408 * by enum qca_wlan_vendor_attr_spectral_cap.
409 *
410 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
411 * status of spectral scan. The status values are specified
412 * by enum qca_wlan_vendor_attr_spectral_scan_status.
2115603a 413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
415 * peer pending packets. Specify the peer MAC address in
416 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
417 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
418 * in enum qca_wlan_vendor_attr_flush_pending.
364039d2
KR
419 *
420 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
421 * RF Operating Parameter (RROP) information. The attributes for this
422 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
423 * intended for use by external Auto Channel Selection applications.
9cc8303d 424 *
2d942ec4
JJ
425 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
426 * (SAR) power limits. This is a companion to the command
427 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
428 * settings currently in use. The attributes returned by this command are
429 * defined by enum qca_vendor_attr_sar_limits.
430 *
9cc8303d
SD
431 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
432 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
433 * information attached to the respective MAC.
434 * This works both as a query (user space asks the current mode) or event
435 * interface (driver advertising the current mode to the user space).
436 * Driver does not trigger this event for temporary hardware mode changes.
437 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
438 * channel change, etc.) are updated with this event. Attributes for this
439 * interface are defined in enum qca_wlan_vendor_attr_mac.
b4cd8b7e
VSB
440 *
441 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
442 * per peer per TID. Attributes for this command are define in
443 * enum qca_wlan_set_qdepth_thresh_attr.
8678b14f
GY
444 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
445 * guide for WLAN driver. Request to suspend of driver and FW if the
446 * temperature is higher than the suspend threshold; resume action is
447 * requested to driver if the temperature is lower than the resume
448 * threshold. In user poll mode, request temperature data by user. For test
449 * purpose, getting thermal shutdown configuration parameters is needed.
450 * Attributes for this interface are defined in
451 * enum qca_wlan_vendor_attr_thermal_cmd.
452 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
453 * driver. Thermal temperature and indication of resume completion are
454 * reported as thermal events. The attributes for this command are defined
455 * in enum qca_wlan_vendor_attr_thermal_event.
5ac43464
KKL
456 *
457 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
6965705b
JJ
458 * test configuration. Attributes for this command are defined in
459 * enum qca_wlan_vendor_attr_wifi_test_config.
6b21df0b
KP
460 *
461 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
462 * RX filter to receive frames from stations that are active on the
463 * operating channel, but not associated with the local device (e.g., STAs
464 * associated with other APs). Filtering is done based on a list of BSSIDs
465 * and STA MAC addresses added by the user. This command is also used to
466 * fetch the statistics of unassociated stations. The attributes used with
467 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
495aebd3
NK
468 *
469 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
470 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
471 * carried a payload which was a binary blob of data. The command was not
472 * extendable to send more information. The newer version carries the
473 * legacy blob encapsulated within an attribute and can be extended with
474 * additional vendor attributes that can enhance the NAN command interface.
edb509d4 475 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
476 * or stopped within driver/firmware in order to initiate roaming. The
477 * attributes used with this event are defined in enum
478 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
479 * in few cases, e.g., if the host processor is sleeping when this event
480 * is generated in firmware.
77fcd747
VT
481 *
482 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
483 * configure parameters per peer to capture Channel Frequency Response
484 * (CFR) and enable Periodic CFR capture. The attributes for this command
485 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
a626fb10 486 *
487 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
488 * in throughput dynamically. The driver estimates the throughput based on
489 * number of packets being transmitted/received per second and indicates
490 * the changes in throughput to user space. Userspace tools can use this
491 * information to configure kernel's TCP parameters in order to achieve
492 * peak throughput. Optionally, the driver will also send guidance on
493 * modifications to kernel's TCP parameters which can be referred by
494 * userspace tools. The attributes used with this event are defined in enum
495 * qca_wlan_vendor_attr_throughput_change.
d5544021
SA
496 *
497 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
498 * priorities among different types of traffic during coex scenarios.
499 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
500 * profiles mentioned in enum qca_coex_config_profiles. The associated
501 * attributes used with this command are defined in enum
502 * qca_vendor_attr_coex_config.
503 *
504 * Based on the config provided, FW will boost the weight and prioritize
505 * the traffic for that subsystem (WLAN/BT/Zigbee).
dbe7f6da
VJ
506 *
507 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
508 * the supported AKM suite selectorss from the driver. It returns the list
509 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
31ee2992
QZ
510 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
511 * state from the driver. It returns the firmware state in the attribute
512 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
1682c623
JM
513 */
514enum qca_nl80211_vendor_subcmds {
515 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
516 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
0800f9ee
JM
517 /* subcmds 2..8 not yet allocated */
518 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
253f2e37 519 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
65d645ce 520 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
4a16a0bd 521 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
87416eaf 522 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
37df6a87
JM
523 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
524 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
525 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
526 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
527 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
528 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
e48635cf
JM
529 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
530 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
531 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
532 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
533 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
534 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
535 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
536 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
537 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
538 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
539 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
540 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
541 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
542 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
37df6a87
JM
543 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
544 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
545 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
546 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
547 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
548 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
549 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
994d6f46 550 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
37df6a87
JM
551 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
552 /* 43..49 - reserved for QCA */
b41f2684
CL
553 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
554 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
41a23357 555 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
90758f09 556 /* 53 - reserved - was used by QCA, but not in use anymore */
16689c7c 557 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
15badebd 558 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
480994da
AK
559 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
560 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
561 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
562 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
563 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
cea76147
SD
564 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
565 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
566 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
567 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
568 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
569 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
570 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
571 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
572 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
573 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
574 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
575 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
576 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
ac7aea86
SD
577 /* Wi-Fi configuration subcommands */
578 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
579 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
a7769f6d
SS
580 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
581 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
582 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
583 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
584 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
585 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
586 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
587 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
588 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
589 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
590 /* 86-90 - reserved for QCA */
b2329e4a 591 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
7f90a234
JM
592 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
593 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
594 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
595 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
596 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
597 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
598 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
599 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
600 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
279724d8 601 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
d71bdfbd 602 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
6b0ceee9
AK
603 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
604 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
844dfeb8 605 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
b4856719
KV
606 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
607 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
5d4c5089
PX
608 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
609 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
95784134 610 /* 110..114 - reserved for QCA */
9a8d9f7c 611 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
52a6c9c9
SD
612 /* 116..117 - reserved for QCA */
613 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
85c0f01d
MM
614 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
615 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
d1296da6 616 /* 121 - reserved for QCA */
35d66557
PX
617 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
618 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1c8fe68f 619 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
4ac75cd0 620 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
6fe3b9d4 621 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
22950d05 622 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
fcd85d9a
LD
623 /* FTM/indoor location subcommands */
624 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
625 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
626 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
627 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
628 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
629 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
630 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
631 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
632 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
0d7eba54 633 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
8b7c5b89 634 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
6eb1a569
LD
635 /* DMG low level RF sector operations */
636 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
637 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
638 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
639 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
14cd203f 640 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
7785c70b 641 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
1a793f5c 642 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
c79238b6 643 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
4c407000 644 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
d7d0f909 645 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
a9491695
SD
646 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
647 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
70407ee5 648 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
841e9a8c 649 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
160dca07 650 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
16217e13
PX
651 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
652 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
944f359e 653 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
cf39475b 654 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
fbfceef3
EJ
655 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
656 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
657 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
658 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
2115603a 659 /* Flush peer pending data */
660 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
364039d2 661 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
2d942ec4 662 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
9cc8303d 663 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
b4cd8b7e 664 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
8678b14f
GY
665 /* Thermal shutdown commands to protect wifi chip */
666 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
667 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
5ac43464
KKL
668 /* Wi-Fi test configuration subcommand */
669 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
6b21df0b
KP
670 /* Frame filter operations for other BSSs/unassociated STAs */
671 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
495aebd3 672 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
edb509d4 673 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
77fcd747 674 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
a626fb10 675 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
d5544021 676 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
dbe7f6da 677 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
31ee2992 678 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1682c623
JM
679};
680
65d645ce
AS
681enum qca_wlan_vendor_attr {
682 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
683 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
684 QCA_WLAN_VENDOR_ATTR_DFS = 1,
28c7f77a
NK
685 /* Used only when driver sends vendor events to the userspace under the
686 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
687 * commands to the driver.
688 */
4a16a0bd 689 QCA_WLAN_VENDOR_ATTR_NAN = 2,
4a64d5a9
AS
690 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
691 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
84df1675
AS
692 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
693 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
0800f9ee 694 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
6965705b
JJ
695 * by enum qca_roaming_policy.
696 */
0800f9ee
JM
697 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
698 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
15badebd
CL
699 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
700 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1db718b3 701 QCA_WLAN_VENDOR_ATTR_TEST = 8,
6b0ceee9
AK
702 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
703 /* Unsigned 32-bit value. */
704 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
705 /* Unsigned 32-bit value */
706 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
707 /* Unsigned 32-bit value */
708 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
844dfeb8
SD
709 /* Unsigned 32-bit value from enum qca_set_band. */
710 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
fcd85d9a
LD
711 /* Dummy (NOP) attribute for 64 bit padding */
712 QCA_WLAN_VENDOR_ATTR_PAD = 13,
713 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
714 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
715 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
716 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
717 */
718 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
719 /* Indoor location capabilities, returned by
720 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
721 * see enum qca_wlan_vendor_attr_loc_capa.
722 */
723 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
724 /* Array of nested attributes containing information about each peer
725 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
726 * for supported attributes for each peer.
727 */
728 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
729 /* Array of nested attributes containing measurement results for
730 * one or more peers, reported by the
731 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
732 * See enum qca_wlan_vendor_attr_peer_result for list of supported
733 * attributes.
734 */
735 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
736 /* Flag attribute for enabling or disabling responder functionality. */
737 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
738 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
739 * command to specify the LCI report that will be sent by
740 * the responder during a measurement exchange. The format is
741 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
742 */
743 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
744 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
745 * command to specify the location civic report that will
746 * be sent by the responder during a measurement exchange.
747 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
748 */
749 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
750 /* Session/measurement completion status code,
751 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
752 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
753 * see enum qca_vendor_attr_loc_session_status.
754 */
755 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
756 /* Initial dialog token used by responder (0 if not specified),
757 * unsigned 8 bit value.
758 */
759 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
760 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
761 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
762 * AOA measurements are needed as part of an FTM session.
763 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
764 * enum qca_wlan_vendor_attr_aoa_type.
765 */
766 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
767 /* A bit mask (unsigned 32 bit value) of antenna arrays used
768 * by indoor location measurements. Refers to the antenna
769 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
770 */
771 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
772 /* AOA measurement data. Its contents depends on the AOA measurement
773 * type and antenna array mask:
774 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
775 * phase of the strongest CIR path for each antenna in the measured
776 * array(s).
777 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
778 * values, phase and amplitude of the strongest CIR path for each
779 * antenna in the measured array(s).
780 */
781 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
8b7c5b89 782 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
783 * to specify the chain number (unsigned 32 bit value) to inquire
6965705b
JJ
784 * the corresponding antenna RSSI value
785 */
8b7c5b89 786 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
787 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
6965705b
JJ
788 * to report the specific antenna RSSI value (unsigned 32 bit value)
789 */
8b7c5b89 790 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
32d08d5b
LD
791 /* Frequency in MHz, various uses. Unsigned 32 bit value */
792 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
6eb1a569
LD
793 /* TSF timer value, unsigned 64 bit value.
794 * May be returned by various commands.
795 */
796 QCA_WLAN_VENDOR_ATTR_TSF = 29,
797 /* DMG RF sector index, unsigned 16 bit number. Valid values are
798 * 0..127 for sector indices or 65535 as special value used to
799 * unlock sector selection in
800 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
801 */
802 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
803 /* DMG RF sector type, unsigned 8 bit value. One of the values
804 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
805 */
806 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
807 /* Bitmask of DMG RF modules for which information is requested. Each
808 * bit corresponds to an RF module with the same index as the bit
809 * number. Unsigned 32 bit number but only low 8 bits can be set since
810 * all DMG chips currently have up to 8 RF modules.
811 */
812 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
813 /* Array of nested attributes where each entry is DMG RF sector
814 * configuration for a single RF module.
815 * Attributes for each entry are taken from enum
816 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
817 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
818 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
819 */
820 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
87416eaf 821 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
822 * to report frame aggregation statistics to userspace.
823 */
824 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
825 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
70407ee5
KV
826 /* Unsigned 8-bit value representing MBO transition reason code as
827 * provided by the AP used by subcommand
828 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
829 * specified by the userspace in the request to the driver.
830 */
831 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
832 /* Array of nested attributes, BSSID and status code, used by subcommand
833 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
834 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
835 * The userspace space specifies the list/array of candidate BSSIDs in
836 * the order of preference in the request. The driver specifies the
837 * status code, for each BSSID in the list, in the response. The
838 * acceptable candidates are listed in the order preferred by the
839 * driver.
840 */
841 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
160dca07
AAL
842 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
843 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
844 */
845 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
846 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
847 * to define the number of antennas to use for BRP.
848 * different purpose in each ANT_LIMIT_MODE:
849 * DISABLE - ignored
850 * EFFECTIVE - upper limit to number of antennas to be used
851 * FORCE - exact number of antennas to be used
852 * unsigned 8 bit value
853 */
854 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
6c2056ab 855 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
6965705b
JJ
856 * to report the corresponding antenna index to the chain RSSI value
857 */
6c2056ab 858 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
fff8da8a 859 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
860 * the specific antenna EVM value (unsigned 32 bit value). With a
861 * determinate group of antennas, the driver specifies the EVM value
862 * for each antenna ID, and application extract them in user space.
863 */
864 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
31ee2992
QZ
865 /*
866 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
867 * wlan firmware current state. FW state is an unsigned 8 bit value,
868 * one of the values in enum qca_wlan_vendor_attr_fw_state.
869 */
870 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
87416eaf 871
65d645ce
AS
872 /* keep last */
873 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
874 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
875};
876
0800f9ee
JM
877enum qca_roaming_policy {
878 QCA_ROAMING_NOT_ALLOWED,
879 QCA_ROAMING_ALLOWED_WITHIN_ESS,
880};
881
b41f2684
CL
882enum qca_wlan_vendor_attr_roam_auth {
883 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
884 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
885 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
886 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
887 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
888 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
889 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
890 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
d3819633 891 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
e8e430fe
VK
892 /* Indicates the status of re-association requested by user space for
893 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
894 * Type u16.
895 * Represents the status code from AP. Use
896 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
897 * real status code for failures.
898 */
899 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
900 /* This attribute indicates that the old association was maintained when
901 * a re-association is requested by user space and that re-association
902 * attempt fails (i.e., cannot connect to the requested BSS, but can
903 * remain associated with the BSS with which the association was in
904 * place when being requested to roam). Used along with
905 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
906 * re-association status. Type flag.
907 * This attribute is applicable only for re-association failure cases.
908 */
909 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
cddfda78
VK
910 /* This attribute specifies the PMK if one was newly generated during
911 * FILS roaming. This is added to the PMKSA cache and is used in
912 * subsequent connections with PMKSA caching.
913 */
914 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
915 /* This attribute specifies the PMKID used/generated for the current
916 * FILS roam. This is used in subsequent connections with PMKSA caching.
917 */
918 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
919 /* A 16-bit unsigned value specifying the next sequence number to use
920 * in ERP message in the currently associated realm. This is used in
921 * doing subsequent ERP based connections in the same realm.
922 */
923 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
b41f2684
CL
924 /* keep last */
925 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
926 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
927 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
928};
929
35d66557
PX
930enum qca_wlan_vendor_attr_p2p_listen_offload {
931 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
932 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
933 * of the social channels.
934 */
935 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
936 /* A 32-bit unsigned value; the P2P listen offload period (ms).
937 */
938 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
939 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
940 */
941 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
942 /* A 32-bit unsigned value; number of interval times the firmware needs
943 * to run the offloaded P2P listen operation before it stops.
944 */
945 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
946 /* An array of arbitrary binary data with one or more 8-byte values.
947 * The device types include both primary and secondary device types.
948 */
949 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
950 /* An array of unsigned 8-bit characters; vendor information elements.
951 */
952 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
953 /* A 32-bit unsigned value; a control flag to indicate whether listen
954 * results need to be flushed to wpa_supplicant.
955 */
956 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
957 /* A 8-bit unsigned value; reason code for P2P listen offload stop
958 * event.
959 */
960 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
961 /* keep last */
962 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
963 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
964 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
965};
966
16689c7c
PX
967enum qca_wlan_vendor_attr_acs_offload {
968 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
969 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
970 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
971 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
972 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
973 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
857d9422
MM
974 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
975 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
976 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
977 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
978 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
d0cdccd3 979 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
16689c7c
PX
980 /* keep last */
981 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
982 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
983 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
984};
985
986enum qca_wlan_vendor_acs_hw_mode {
987 QCA_ACS_MODE_IEEE80211B,
988 QCA_ACS_MODE_IEEE80211G,
989 QCA_ACS_MODE_IEEE80211A,
990 QCA_ACS_MODE_IEEE80211AD,
3784c058 991 QCA_ACS_MODE_IEEE80211ANY,
16689c7c
PX
992};
993
15badebd
CL
994/**
995 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
996 *
997 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
998 * management offload, a mechanism where the station's firmware
999 * does the exchange with the AP to establish the temporal keys
1000 * after roaming, rather than having the user space wpa_supplicant do it.
3784c058
PX
1001 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1002 * band selection based on channel selection results.
94fb165c 1003 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
6965705b 1004 * simultaneous off-channel operations.
35d66557
PX
1005 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1006 * Listen offload; a mechanism where the station's firmware takes care of
1007 * responding to incoming Probe Request frames received from other P2P
1008 * Devices whilst in Listen state, rather than having the user space
1009 * wpa_supplicant do it. Information from received P2P requests are
1010 * forwarded from firmware to host whenever the host processor wakes up.
46b15e47 1011 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1012 * specific features.
1013 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1014 * features.
1015 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1016 * specific features only. If a Device sets this bit but not the
1017 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1018 * this Device may not support all OCE AP functionalities but can support
1019 * only OCE STA-CFON functionalities.
7d66e7c4
KKL
1020 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1021 * managed regulatory.
15badebd
CL
1022 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1023 */
1024enum qca_wlan_vendor_features {
1025 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3784c058 1026 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
94fb165c 1027 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
35d66557 1028 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
46b15e47 1029 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1030 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1031 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
7d66e7c4 1032 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
15badebd
CL
1033 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1034};
1035
b2329e4a
SD
1036/**
1037 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1038 *
1039 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1040 * the offloaded data.
1041 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1042 * data.
1043 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1044 * indication.
1045 */
1046enum qca_wlan_vendor_attr_data_offload_ind {
1047 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1048 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1049 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1050 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1051
1052 /* keep last */
1053 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1054 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1055 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1056};
6b0ceee9 1057
2a9ec7c6
ZL
1058/**
1059 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1060 * OCB config
1061 *
1062 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1063 * configuration
1064 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1065 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1066 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1067 * scheduled
1068 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1069 * information
1070 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1071 * active state configuration
1072 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1073 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1074 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1075 * use in the case that a packet is sent without a TX control header
12759588
ZL
1076 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1077 * last TA received that the local time set by TA is synchronous to other
1078 * communicating OCB STAs.
2a9ec7c6
ZL
1079 */
1080enum qca_wlan_vendor_attr_ocb_set_config {
1081 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1082 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1083 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1084 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1085 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1086 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1087 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1088 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1089 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
12759588 1090 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2a9ec7c6
ZL
1091 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1092 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1093 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1094};
1095
1096/**
1097 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1098 * UTC time
1099 *
1100 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1101 * 10 bytes
1102 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1103 * 5 bytes
1104 */
1105enum qca_wlan_vendor_attr_ocb_set_utc_time {
1106 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1107 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1108 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1109 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1110 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1111 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1112};
1113
1114/**
1115 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1116 * to start sending timing advert frames
1117 *
1118 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1119 * on which to send the frames
1120 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1121 * the frame is sent in 5 seconds
1122 */
1123enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1124 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1125 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1126 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1127 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1128 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1129 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1130};
1131
1132/**
1133 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1134 * to stop timing advert
1135 *
1136 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1137 * frequency on which to stop the timing advert
1138 */
1139enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1140 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1141 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1142 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1143 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1144 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1145};
1146
1147/**
1148 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1149 * get TSF timer value
1150 *
1151 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1152 * timer
1153 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1154 */
1155enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1156 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1157 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1158 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1159 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1160 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1161 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1162};
1163
6b0ceee9
AK
1164enum qca_vendor_attr_get_preferred_freq_list {
1165 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1166 /* A 32-unsigned value; the interface type/mode for which the preferred
1167 * frequency list is requested (see enum qca_iface_type for possible
1168 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1169 * kernel and in the kernel response back to user-space.
1170 */
1171 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1172 /* An array of 32-unsigned values; values are frequency (MHz); sent
1173 * from kernel space to user space.
1174 */
1175 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
61536b5f
PX
1176 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1177 * attribute. Each element contains frequency (MHz), weight, and flag
1178 * bit mask indicating how the frequency should be used in P2P
1179 * negotiation; sent from kernel space to user space.
1180 */
1181 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6b0ceee9
AK
1182 /* keep last */
1183 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1184 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1185 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1186};
1187
1188enum qca_vendor_attr_probable_oper_channel {
1189 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1190 /* 32-bit unsigned value; indicates the connection/iface type likely to
1191 * come on this channel (see enum qca_iface_type).
1192 */
1193 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1194 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1195 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1196 /* keep last */
1197 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1198 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1199 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1200};
1201
1202enum qca_iface_type {
1203 QCA_IFACE_TYPE_STA,
1204 QCA_IFACE_TYPE_AP,
1205 QCA_IFACE_TYPE_P2P_CLIENT,
1206 QCA_IFACE_TYPE_P2P_GO,
1207 QCA_IFACE_TYPE_IBSS,
1208 QCA_IFACE_TYPE_TDLS,
1209};
1210
844dfeb8
SD
1211enum qca_set_band {
1212 QCA_SETBAND_AUTO,
1213 QCA_SETBAND_5G,
1214 QCA_SETBAND_2G,
1215};
1216
14b76124
SD
1217/**
1218 * enum qca_access_policy - Access control policy
1219 *
1220 * Access control policy is applied on the configured IE
1221 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1222 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1223 *
1224 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1225 * the specific configuration (IE) set, i.e., allow all the
1226 * connections which do not match the configuration.
1227 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1228 * the specific configuration (IE) set, i.e., deny all the
1229 * connections which do not match the configuration.
1230 */
1231enum qca_access_policy {
1232 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1233 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1234};
1235
85c0f01d
MM
1236/**
1237 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1238 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1239 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1240 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1241 * SOC timer value at TSF capture
1242 */
1243enum qca_vendor_attr_tsf_cmd {
1244 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1245 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1246 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1247 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1248 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1249 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1250 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1251};
1252
1253/**
1254 * enum qca_tsf_operation: TSF driver commands
1255 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1256 * @QCA_TSF_GET: Get TSF capture value
1257 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1258 */
1259enum qca_tsf_cmd {
1260 QCA_TSF_CAPTURE,
1261 QCA_TSF_GET,
1262 QCA_TSF_SYNC_GET,
1263};
1264
1265/**
1266 * enum qca_vendor_attr_wisa_cmd
1267 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1268 * WISA setup vendor commands
1269 */
1270enum qca_vendor_attr_wisa_cmd {
1271 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1272 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1273 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1274 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1275 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1276};
1277
b43b2b52
JM
1278/* IEEE 802.11 Vendor Specific elements */
1279
1280/**
1281 * enum qca_vendor_element_id - QCA Vendor Specific element types
1282 *
1283 * These values are used to identify QCA Vendor Specific elements. The
1284 * payload of the element starts with the three octet OUI (OUI_QCA) and
1285 * is followed by a single octet type which is defined by this enum.
1286 *
1287 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1288 * This element can be used to specify preference order for supported
1289 * channels. The channels in this list are in preference order (the first
1290 * one has the highest preference) and are described as a pair of
1291 * (global) Operating Class and Channel Number (each one octet) fields.
1292 *
1293 * This extends the standard P2P functionality by providing option to have
1294 * more than one preferred operating channel. When this element is present,
1295 * it replaces the preference indicated in the Operating Channel attribute.
1296 * For supporting other implementations, the Operating Channel attribute is
1297 * expected to be used with the highest preference channel. Similarly, all
1298 * the channels included in this Preferred channel list element are
1299 * expected to be included in the Channel List attribute.
1300 *
1301 * This vendor element may be included in GO Negotiation Request, P2P
1302 * Invitation Request, and Provision Discovery Request frames.
617593c3
JM
1303 *
1304 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1305 * This element can be used for pre-standard publication testing of HE
1306 * before P802.11ax draft assigns the element ID. The payload of this
1307 * vendor specific element is defined by the latest P802.11ax draft.
1308 * Please note that the draft is still work in progress and this element
1309 * payload is subject to change.
1310 *
1311 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1312 * This element can be used for pre-standard publication testing of HE
1313 * before P802.11ax draft assigns the element ID. The payload of this
1314 * vendor specific element is defined by the latest P802.11ax draft.
1315 * Please note that the draft is still work in progress and this element
1316 * payload is subject to change.
a2aa21a3
JM
1317 *
1318 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1319 * element).
1320 * This element can be used for pre-standard publication testing of HE
1321 * before P802.11ax draft assigns the element ID extension. The payload of
1322 * this vendor specific element is defined by the latest P802.11ax draft
1323 * (not including the Element ID Extension field). Please note that the
1324 * draft is still work in progress and this element payload is subject to
1325 * change.
1326 *
1327 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1328 * This element can be used for pre-standard publication testing of HE
1329 * before P802.11ax draft assigns the element ID extension. The payload of
1330 * this vendor specific element is defined by the latest P802.11ax draft
1331 * (not including the Element ID Extension field). Please note that the
1332 * draft is still work in progress and this element payload is subject to
1333 * change.
1334 *
1335 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1336 * This element can be used for pre-standard publication testing of HE
1337 * before P802.11ax draft assigns the element ID extension. The payload of
1338 * this vendor specific element is defined by the latest P802.11ax draft
1339 * (not including the Element ID Extension field). Please note that the
1340 * draft is still work in progress and this element payload is subject to
1341 * change.
b43b2b52
JM
1342 */
1343enum qca_vendor_element_id {
1344 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
617593c3
JM
1345 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1346 QCA_VENDOR_ELEM_HE_OPER = 2,
a2aa21a3
JM
1347 QCA_VENDOR_ELEM_RAPS = 3,
1348 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1349 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
b43b2b52
JM
1350};
1351
b4856719
KV
1352/**
1353 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1354 *
1355 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1356 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1357 * with frequencies to be scanned (in MHz)
1358 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1359 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1360 * rates to be included
1361 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
6965705b 1362 * at non CCK rate in 2GHz band
b4856719
KV
1363 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1364 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
6965705b 1365 * driver for the specific scan request
b4856719 1366 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
6965705b 1367 * request decoded as in enum scan_status
b4856719 1368 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
6965705b 1369 * scan flag is set
b4856719 1370 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
6965705b 1371 * randomisation
444930e5
SD
1372 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1373 * specific BSSID to scan for.
b4856719
KV
1374 */
1375enum qca_wlan_vendor_attr_scan {
1376 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
444930e5
SD
1377 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1378 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1379 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1380 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1381 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1382 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1383 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1384 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1385 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1386 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1387 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
b4856719
KV
1388 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1389 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1390 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1391};
1392
1393/**
1394 * enum scan_status - Specifies the valid values the vendor scan attribute
6965705b 1395 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
b4856719
KV
1396 *
1397 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
6965705b 1398 * new scan results
b4856719
KV
1399 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1400 */
1401enum scan_status {
1402 VENDOR_SCAN_STATUS_NEW_RESULTS,
1403 VENDOR_SCAN_STATUS_ABORTED,
1404 VENDOR_SCAN_STATUS_MAX,
1405};
1406
5d4c5089
PX
1407/**
1408 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1409 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1410 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1411 */
1412enum qca_vendor_attr_ota_test {
1413 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1414 /* 8-bit unsigned value to indicate if OTA test is enabled */
1415 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1416 /* keep last */
1417 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1418 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1419 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1420};
1421
1422/**
1423 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1424 *
1425 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1426 */
1427enum qca_vendor_attr_txpower_scale {
1428 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1429 /* 8-bit unsigned value to indicate the scaling of tx power */
1430 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1431 /* keep last */
1432 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1433 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1434 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1435};
1436
9a8d9f7c
PX
1437/**
1438 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1439 *
1440 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1441 */
1442enum qca_vendor_attr_txpower_decr_db {
1443 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1444 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
6965705b
JJ
1445 * a virtual interface.
1446 */
9a8d9f7c
PX
1447 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1448 /* keep last */
1449 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1450 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1451 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1452};
1453
ac7aea86 1454/* Attributes for data used by
4f910f38
JM
1455 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1456 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
ac7aea86
SD
1457 */
1458enum qca_wlan_vendor_attr_config {
8b668884 1459 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
ac7aea86
SD
1460 /* Unsigned 32-bit value to set the DTIM period.
1461 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1462 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1463 * DTIM beacons.
1464 */
8b668884 1465 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
ac7aea86
SD
1466 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1467 * used to calculate statistics like average the TSF offset or average
1468 * number of frame leaked.
1469 * For instance, upon Beacon frame reception:
1470 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1471 * For instance, when evaluating leaky APs:
1472 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1473 */
8b668884 1474 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
ac7aea86
SD
1475 /* Unsigned 32-bit value to configure guard time, i.e., when
1476 * implementing IEEE power management based on frame control PM bit, how
1477 * long the driver waits before shutting down the radio and after
1478 * receiving an ACK frame for a Data frame with PM bit set.
1479 */
8b668884 1480 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
ac7aea86 1481 /* Unsigned 32-bit value to change the FTM capability dynamically */
8b668884 1482 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
ac7aea86 1483 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
8b668884 1484 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
ac7aea86
SD
1485 /* Unsigned 32-bit value to configure the number of continuous
1486 * Beacon Miss which shall be used by the firmware to penalize
1487 * the RSSI.
1488 */
8b668884 1489 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
ac7aea86
SD
1490 /* Unsigned 8-bit value to configure the channel avoidance indication
1491 * behavior. Firmware to send only one indication and ignore duplicate
1492 * indications when set to avoid multiple Apps wakeups.
1493 */
8b668884 1494 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
ac7aea86 1495 /* 8-bit unsigned value to configure the maximum TX MPDU for
6965705b
JJ
1496 * aggregation.
1497 */
8b668884 1498 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
ac7aea86 1499 /* 8-bit unsigned value to configure the maximum RX MPDU for
6965705b
JJ
1500 * aggregation.
1501 */
8b668884 1502 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
52fec366 1503 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
6965705b
JJ
1504 * retry threshold (0 disable, 31 max).
1505 */
8b668884 1506 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
52fec366 1507 /* 8-bit unsigned value to configure the aggregrate sw
6965705b
JJ
1508 * retry threshold (0 disable, 31 max).
1509 */
8b668884 1510 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
52fec366 1511 /* 8-bit unsigned value to configure the MGMT frame
6965705b
JJ
1512 * retry threshold (0 disable, 31 max).
1513 */
8b668884 1514 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
52fec366 1515 /* 8-bit unsigned value to configure the CTRL frame
6965705b
JJ
1516 * retry threshold (0 disable, 31 max).
1517 */
8b668884 1518 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
52fec366 1519 /* 8-bit unsigned value to configure the propagation delay for
6965705b
JJ
1520 * 2G/5G band (0~63, units in us)
1521 */
8b668884 1522 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
6c34b9c2
SD
1523 /* Unsigned 32-bit value to configure the number of unicast TX fail
1524 * packet count. The peer is disconnected once this threshold is
6965705b
JJ
1525 * reached.
1526 */
8b668884 1527 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
ab218631 1528 /* Attribute used to set scan default IEs to the driver.
1529 *
1530 * These IEs can be used by scan operations that will be initiated by
1531 * the driver/firmware.
1532 *
1533 * For further scan requests coming to the driver, these IEs should be
1534 * merged with the IEs received along with scan request coming to the
1535 * driver. If a particular IE is present in the scan default IEs but not
1536 * present in the scan request, then that IE should be added to the IEs
6965705b
JJ
1537 * sent in the Probe Request frames for that scan request.
1538 */
8b668884 1539 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
babf0ce0 1540 /* Unsigned 32-bit attribute for generic commands */
8b668884 1541 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
babf0ce0 1542 /* Unsigned 32-bit value attribute for generic commands */
8b668884 1543 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
babf0ce0 1544 /* Unsigned 32-bit data attribute for generic command response */
8b668884 1545 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
babf0ce0 1546 /* Unsigned 32-bit length attribute for
6965705b
JJ
1547 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1548 */
8b668884 1549 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
babf0ce0 1550 /* Unsigned 32-bit flags attribute for
6965705b
JJ
1551 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1552 */
8b668884 1553 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
14b76124
SD
1554 /* Unsigned 32-bit, defining the access policy.
1555 * See enum qca_access_policy. Used with
6965705b
JJ
1556 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1557 */
8b668884 1558 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
14b76124
SD
1559 /* Sets the list of full set of IEs for which a specific access policy
1560 * has to be applied. Used along with
1561 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
6965705b
JJ
1562 * Zero length payload can be used to clear this access constraint.
1563 */
8b668884 1564 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
fed802c2
SD
1565 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1566 * corresponding configurations are applied. If the interface index is
1567 * not specified, the configurations are attributed to the respective
6965705b
JJ
1568 * wiphy.
1569 */
8b668884 1570 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
dc24a361 1571 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
8b668884 1572 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2800ec85 1573 /* 8-bit unsigned value to configure the driver and below layers to
1574 * ignore the assoc disallowed set by APs while connecting
6965705b
JJ
1575 * 1-Ignore, 0-Don't ignore
1576 */
8b668884 1577 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
8b7c5b89 1578 /* 32-bit unsigned value to trigger antenna diversity features:
6965705b
JJ
1579 * 1-Enable, 0-Disable
1580 */
8b668884 1581 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
8b7c5b89 1582 /* 32-bit unsigned value to configure specific chain antenna */
8b668884 1583 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
8b7c5b89 1584 /* 32-bit unsigned value to trigger cycle selftest
6965705b
JJ
1585 * 1-Enable, 0-Disable
1586 */
8b668884 1587 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
8b7c5b89 1588 /* 32-bit unsigned to configure the cycle time of selftest
6965705b
JJ
1589 * the unit is micro-second
1590 */
8b668884 1591 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
87416eaf 1592 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1593 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1594 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1595 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1596 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1597 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1598 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1599 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1600 /* 6-byte MAC address to point out the specific peer */
1601 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1602 /* 32-bit unsigned value to set window size for specific peer */
1603 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
cb0cc6ef
SD
1604 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1605 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1606 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1607 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
21ac7827
GZ
1608 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1609 * station device while in disconnect state. The attribute use the
1610 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1611 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1612 * 10 MHz channel width, the station will not connect to a BSS using 20
1613 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
6965705b
JJ
1614 * clear this constraint.
1615 */
21ac7827 1616 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
b4ae5f04 1617 /* 32-bit unsigned value to configure the propagation absolute delay
6965705b
JJ
1618 * for 2G/5G band (units in us)
1619 */
b4ae5f04 1620 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
6c2056ab 1621 /* 32-bit unsigned value to set probe period */
1622 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1623 /* 32-bit unsigned value to set stay period */
1624 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1625 /* 32-bit unsigned value to set snr diff */
1626 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1627 /* 32-bit unsigned value to set probe dwell time */
1628 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1629 /* 32-bit unsigned value to set mgmt snr weight */
1630 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1631 /* 32-bit unsigned value to set data snr weight */
1632 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1633 /* 32-bit unsigned value to set ack snr weight */
1634 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
33117656
SD
1635 /* 32-bit unsigned value to configure the listen interval.
1636 * This is in units of beacon intervals. This configuration alters
1637 * the negotiated listen interval with the AP during the connection.
1638 * It is highly recommended to configure a value less than or equal to
1639 * the one negotiated during the association. Configuring any greater
1640 * value can have adverse effects (frame loss, AP disassociating STA,
1641 * etc.).
1642 */
1643 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
d506c35e
SD
1644 /*
1645 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1646 * disable operations that would cause the AP/GO to leave its operating
1647 * channel.
1648 *
1649 * This will restrict the scans to the AP/GO operating channel and the
1650 * channels of the other band, if DBS is supported.A STA/CLI interface
1651 * brought up after this setting is enabled, will be restricted to
1652 * connecting to devices only on the AP/GO interface's operating channel
1653 * or on the other band in DBS case. P2P supported channel list is
1654 * modified, to only include AP interface's operating-channel and the
1655 * channels of the other band if DBS is supported.
1656 *
1657 * These restrictions are only applicable as long as the AP/GO interface
1658 * is alive. If the AP/GO interface is brought down then this
1659 * setting/restriction is forgotten.
1660 *
1661 * If this variable is set on an AP/GO interface while a multi-channel
1662 * concurrent session is active, it has no effect on the operation of
1663 * the current interfaces, other than restricting the scan to the AP/GO
1664 * operating channel and the other band channels if DBS is supported.
1665 * However, if the STA is brought down and restarted then the new STA
1666 * connection will either be formed on the AP/GO channel or on the
1667 * other band in a DBS case. This is because of the scan being
1668 * restricted on these channels as mentioned above.
1669 *
9ddba3a3 1670 * 1-Restrict / 0-Don't restrict offchannel operations.
d506c35e 1671 */
9ddba3a3 1672 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
528b6557
SD
1673 /*
1674 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1675 * on an interface.
1676 * 1 - Enable, 0 - Disable.
1677 */
1678 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
ac7aea86 1679
505554bb
SP
1680 /*
1681 * 8 bit unsigned value to globally enable/disable scan
1682 * 1 - Enable, 0 - Disable.
1683 */
1684 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1685
7bd88aaf 1686 /* 8-bit unsigned value to set the total beacon miss count
6965705b 1687 * This parameter will set the total beacon miss count.
7bd88aaf
SA
1688 */
1689 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1690
e77d13ef
SA
1691 /* Unsigned 32-bit value to configure the number of continuous
1692 * Beacon Miss which shall be used by the firmware to penalize
1693 * the RSSI for BTC.
1694 */
1695 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
1696
d55b1746
VK
1697 /* 8-bit unsigned value to configure the driver and below layers to
1698 * enable/disable all FILS features.
6965705b
JJ
1699 * 0-enable, 1-disable
1700 */
d55b1746
VK
1701 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
1702
9b0de99f
PZ
1703 /* 16-bit unsigned value to configure the level of WLAN latency
1704 * module. See enum qca_wlan_vendor_attr_config_latency_level.
1705 */
1706 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
1707
2fca2d21
SD
1708 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
1709 * the connect interface. Exclusively used for the scenarios where the
1710 * device is used as a test bed device with special functionality and
1711 * not recommended for production. This helps driver to not validate the
1712 * RSNE passed from user space and thus allow arbitrary IE data to be
1713 * used for testing purposes.
1714 * 1-enable, 0-disable.
1715 * Applications set/reset this configuration. If not reset, this
1716 * parameter remains in use until the driver is unloaded.
1717 */
1718 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
1719
b829e4b6
SA
1720 /* 8-bit unsigned value to trigger green Tx power saving.
1721 * 1-Enable, 0-Disable
1722 */
1723 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
1724
ac7aea86
SD
1725 /* keep last */
1726 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1727 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1728 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1729};
1730
52a6c9c9
SD
1731/**
1732 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1733 */
1734enum qca_wlan_vendor_attr_sap_config {
1735 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1736 /* 1 - reserved for QCA */
1737 /* List of frequencies on which AP is expected to operate.
1738 * This is irrespective of ACS configuration. This list is a priority
1739 * based one and is looked for before the AP is created to ensure the
1740 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1741 * the system.
1742 */
1743 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1744
1745 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1746 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1747 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1748};
1749
1c8fe68f
CM
1750/**
1751 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1752 * conditional channel switch
1753 */
1754enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1755 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1756 /* Priority based frequency list (an array of u32 values in host byte
6965705b
JJ
1757 * order)
1758 */
1c8fe68f
CM
1759 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1760 /* Status of the conditional switch (u32).
1761 * 0: Success, Non-zero: Failure
1762 */
1763 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1764
1765 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1766 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1767 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1768};
1769
4ac75cd0
VK
1770/**
1771 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1772 */
1773enum qca_wlan_gpio_attr {
1774 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1775 /* Unsigned 32-bit attribute for GPIO command */
1776 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1777 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1778 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1779 /* Unsigned 32-bit attribute for GPIO value to configure */
1780 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1781 /* Unsigned 32-bit attribute for GPIO pull type */
1782 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1783 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1784 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1785
1786 /* keep last */
1787 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1788 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1789 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1790};
1791
b4cd8b7e
VSB
1792/**
1793 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
1794 * MSDUQ depth threshold per peer per tid in the target
1795 *
1796 * Associated Vendor Command:
1797 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
1798 */
1799enum qca_wlan_set_qdepth_thresh_attr {
1800 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
1801 /* 6-byte MAC address */
1802 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
1803 /* Unsigned 32-bit attribute for holding the TID */
1804 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
1805 /* Unsigned 32-bit attribute for holding the update mask
1806 * bit 0 - Update high priority msdu qdepth threshold
1807 * bit 1 - Update low priority msdu qdepth threshold
1808 * bit 2 - Update UDP msdu qdepth threshold
1809 * bit 3 - Update Non UDP msdu qdepth threshold
1810 * rest of bits are reserved
1811 */
1812 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
1813 /* Unsigned 32-bit attribute for holding the threshold value */
1814 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
1815
1816 /* keep last */
1817 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
1818 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
1819 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
1820};
1821
6fe3b9d4
YT
1822/**
1823 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1824 */
1825enum qca_wlan_vendor_attr_get_hw_capability {
1826 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1827 /* Antenna isolation
1828 * An attribute used in the response.
1829 * The content of this attribute is encoded in a byte array. Each byte
1830 * value is an antenna isolation value. The array length is the number
1831 * of antennas.
1832 */
1833 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1834 /* Request HW capability
1835 * An attribute used in the request.
1836 * The content of this attribute is a u32 array for one or more of
1837 * hardware capabilities (attribute IDs) that are being requested. Each
1838 * u32 value has a value from this
1839 * enum qca_wlan_vendor_attr_get_hw_capability
1840 * identifying which capabilities are requested.
1841 */
1842 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1843
1844 /* keep last */
1845 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1846 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1847 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1848};
1849
22950d05
ZQ
1850/**
1851 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1852 * offload which is an extension for LL_STATS.
1853 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1854 * If MAC counters do not exceed the threshold, FW will report monitored
1855 * link layer counters periodically as this setting. The first report is
1856 * always triggered by this timer.
1857 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1858 * For each MAC layer counter, FW holds two copies. One is the current value.
1859 * The other is the last report. Once a current counter's increment is larger
1860 * than the threshold, FW will indicate that counter to host even if the
1861 * monitoring timer does not expire.
1862 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1863 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1864 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1865 * failure code.
1866 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1867 * 1: TX packet discarded
1868 * 2: No ACK
1869 * 3: Postpone
320caeab
ZQ
1870 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1871 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1872 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1873 * Threshold for all monitored parameters. If per counter dedicated threshold
1874 * is not enabled, this threshold will take effect.
1875 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1876 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1877 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1878 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1879 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1880 * Bit0: TX counter unit in MSDU
1881 * Bit1: TX counter unit in MPDU
1882 * Bit2: TX counter unit in PPDU
1883 * Bit3: TX counter unit in byte
1884 * Bit4: Dropped MSDUs
1885 * Bit5: Dropped Bytes
1886 * Bit6: MPDU retry counter
1887 * Bit7: MPDU failure counter
1888 * Bit8: PPDU failure counter
1889 * Bit9: MPDU aggregation counter
1890 * Bit10: MCS counter for ACKed MPDUs
1891 * Bit11: MCS counter for Failed MPDUs
1892 * Bit12: TX Delay counter
1893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1894 * Bit0: MAC RX counter unit in MPDU
1895 * Bit1: MAC RX counter unit in byte
1896 * Bit2: PHY RX counter unit in PPDU
1897 * Bit3: PHY RX counter unit in byte
1898 * Bit4: Disorder counter
1899 * Bit5: Retry counter
1900 * Bit6: Duplication counter
1901 * Bit7: Discard counter
1902 * Bit8: MPDU aggregation size counter
1903 * Bit9: MCS counter
1904 * Bit10: Peer STA power state change (wake to sleep) counter
1905 * Bit11: Peer STA power save counter, total time in PS mode
1906 * Bit12: Probe request counter
1907 * Bit13: Other management frames counter
1908 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1909 * Bit0: Idle time
1910 * Bit1: TX time
1911 * Bit2: time RX in current bss
1912 * Bit3: Out of current bss time
1913 * Bit4: Wireless medium busy time
1914 * Bit5: RX in bad condition time
1915 * Bit6: TX in bad condition time
1916 * Bit7: time wlan card not available
1917 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1918 * Bit0: Per channel SNR counter
1919 * Bit1: Per channel noise floor counter
1920 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1921 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1922 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1923 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1924 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1925 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1926 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1927 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1928 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1929 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1930 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1931 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1932 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1933 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1934 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1935 * aggregation stats buffer length
1936 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1937 * buffer for ACKed MPDUs.
1938 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1939 * buffer for failed MPDUs.
1940 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1941 * length of delay stats array.
1942 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1943 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1944 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1945 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1946 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1947 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1948 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1949 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1950 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1951 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1952 * flagged as retransmissions
1953 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1954 * flagged as duplicated
1955 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1956 * packets discarded
1957 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1958 * stats buffer.
1959 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1960 * stats buffer.
1961 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1962 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1963 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1964 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1965 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1966 * requests received
1967 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1968 * frames received
1969 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1970 * there is no TX, nor RX, nor interference.
1971 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1972 * transmitting packets.
1973 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1974 * for receiving.
1975 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1976 * interference detected.
1977 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1978 * receiving packets with errors.
1979 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1980 * TX no-ACK.
1981 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1982 * the chip is unable to work in normal conditions.
1983 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1984 * receiving packets in current BSS.
1985 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1986 * receiving packets not in current BSS.
1987 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1988 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1989 * This is a container for per antenna signal stats.
1990 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1991 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1992 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1993 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
962b8fcf
ZQ
1994 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
1995 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
1996 * message, user layer APP could call gettimeofday to get another
1997 * timestamp and calculate transfer delay for the message.
1998 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
1999 * Real period for this measurement, unit in us.
22950d05
ZQ
2000 */
2001enum qca_wlan_vendor_attr_ll_stats_ext {
2002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2003
2004 /* Attributes for configurations */
2005 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2006 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2007
320caeab 2008 /* Peer STA power state change */
22950d05
ZQ
2009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2010
2011 /* TX failure event */
2012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2015
320caeab
ZQ
2016 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2017 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2018
2019 /* MAC counters */
2020 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2021 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2022 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2023 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
2024 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
2025 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
2026 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
2027 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
2028 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
2029 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
2030 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
2031 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
2032
2033 /* Sub-attributes for PEER_AC_TX */
2034 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
2035 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
2036 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
2037 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
2038 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
2039 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
2040 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
2041 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
2042 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
2043 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
2044 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
2045 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
2046 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
2047 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
2048 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
2049 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
2050 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
2051
2052 /* Sub-attributes for PEER_AC_RX */
2053 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2054 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2055 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2056 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2057 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2058 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2059 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2060 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2061 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2062 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2063 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2064 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2065 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2066 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2067 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2068 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2069
2070 /* Sub-attributes for CCA_BSS */
2071 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2072 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2073 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2074 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2075 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2076 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2077 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2078
2079 /* sub-attribute for BSS_RX_TIME */
2080 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2081 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2082
2083 /* Sub-attributes for PEER_SIGNAL */
2084 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
2085 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
2086 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
2087 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
2088
2089 /* Sub-attributes for IFACE_BSS */
2090 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
2091 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
2092
962b8fcf
ZQ
2093 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
2094 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
2095
22950d05
ZQ
2096 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
2097 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
2098 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
2099};
2100
fcd85d9a
LD
2101/* Attributes for FTM commands and events */
2102
2103/**
2104 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2105 *
2106 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2107 * enum qca_wlan_vendor_attr_loc_capa_flags.
2108 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2109 * of measurement sessions that can run concurrently.
2110 * Default is one session (no session concurrency).
2111 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2112 * peers that are supported in running sessions. For example,
2113 * if the value is 8 and maximum number of sessions is 2, you can
2114 * have one session with 8 unique peers, or 2 sessions with 4 unique
2115 * peers each, and so on.
2116 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2117 * of bursts per peer, as an exponent (2^value). Default is 0,
2118 * meaning no multi-burst support.
2119 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2120 * of measurement exchanges allowed in a single burst.
2121 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2122 * types. A bit mask (unsigned 32 bit value), each bit corresponds
2123 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2124 */
2125enum qca_wlan_vendor_attr_loc_capa {
2126 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
2127 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
2128 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
2129 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
2130 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
2131 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
2132 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
2133 /* keep last */
2134 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
2135 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
2136 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
2137};
2138
2139/**
2140 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2141 *
2142 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2143 * can be configured as an FTM responder (for example, an AP that
2144 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2145 * will be supported if set.
2146 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2147 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2148 * will be supported if set.
6965705b 2149 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
fcd85d9a
LD
2150 * supports immediate (ASAP) response.
2151 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2152 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2153 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2154 * requesting AOA measurements as part of an FTM session.
2155 */
2156enum qca_wlan_vendor_attr_loc_capa_flags {
2157 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
2158 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
2159 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
2160 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
2161 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
2162};
2163
2164/**
2165 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2166 * a single peer in a measurement session.
2167 *
2168 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2169 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2170 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
a62dea41 2171 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
fcd85d9a
LD
2172 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2173 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2174 * list of supported attributes.
2175 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2176 * secure measurement.
2177 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2178 * measurement every <value> bursts. If 0 or not specified,
2179 * AOA measurements will be disabled for this peer.
32d08d5b
LD
2180 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2181 * the measurement frames are exchanged. Optional; if not
2182 * specified, try to locate the peer in the kernel scan
2183 * results cache and use frequency from there.
fcd85d9a
LD
2184 */
2185enum qca_wlan_vendor_attr_ftm_peer_info {
2186 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
2187 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
2188 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
a62dea41 2189 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
fcd85d9a
LD
2190 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
2191 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
32d08d5b 2192 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
fcd85d9a
LD
2193 /* keep last */
2194 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
2195 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
2196 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
2197};
2198
2199/**
2200 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2201 * per-peer
2202 *
2203 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2204 * immediate (ASAP) response from peer.
2205 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2206 * LCI report from peer. The LCI report includes the absolute
2207 * location of the peer in "official" coordinates (similar to GPS).
2208 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2209 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2210 * Location civic report from peer. The LCR includes the location
2211 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2212 * 11.24.6.7 for more information.
2213 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2214 * request a secure measurement.
2215 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2216 */
2217enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
2218 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
2219 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
2220 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
2221 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
2222};
2223
2224/**
2225 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2226 *
2227 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2228 * to perform in a single burst.
2229 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2230 * perform, specified as an exponent (2^value).
2231 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2232 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2233 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2234 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2235 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2236 */
2237enum qca_wlan_vendor_attr_ftm_meas_param {
2238 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
2239 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
2240 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
2241 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
2242 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
2243 /* keep last */
2244 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
2245 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
2246 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
2247};
2248
2249/**
2250 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2251 *
2252 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2253 * peer.
2254 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2255 * request for this peer.
2256 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2257 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2258 * to measurement results for this peer.
2259 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2260 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2261 * request failed and peer requested not to send an additional request
2262 * for this number of seconds.
2263 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2264 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2265 * 9.4.2.22.10.
2266 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2267 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2268 * 9.4.2.22.13.
2269 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2270 * overridden some measurement request parameters. See
2271 * enum qca_wlan_vendor_attr_ftm_meas_param.
2272 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2273 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2274 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2275 * results. Each entry is a nested attribute defined
2276 * by enum qca_wlan_vendor_attr_ftm_meas.
2277 */
2278enum qca_wlan_vendor_attr_ftm_peer_result {
2279 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2280 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2281 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2282 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2283 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2284 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2285 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2286 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2287 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2288 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2289 /* keep last */
2290 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2291 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2292 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2293};
2294
2295/**
2296 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2297 *
2298 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2299 * will be provided. Peer may have overridden some measurement parameters,
2300 * in which case overridden parameters will be report by
2301 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2302 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2303 * of performing the measurement request. No more results will be sent
2304 * for this peer in this session.
2305 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2306 * failed, and requested not to send an additional request for number
2307 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2308 * attribute.
2309 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2310 * failed. Request was not sent over the air.
2311 */
2312enum qca_wlan_vendor_attr_ftm_peer_result_status {
2313 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2314 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2315 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2316 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2317};
2318
2319/**
2320 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2321 * for measurement result, per-peer
2322 *
2323 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2324 * measurement completed for this peer. No more results will be reported
2325 * for this peer in this session.
2326 */
2327enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2328 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2329};
2330
2331/**
2332 * enum qca_vendor_attr_loc_session_status: Session completion status code
2333 *
2334 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2335 * successfully.
2336 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2337 * by request.
2338 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2339 * was invalid and was not started.
2340 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2341 * and did not complete normally (for example out of resources).
2342 */
2343enum qca_vendor_attr_loc_session_status {
2344 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2345 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2346 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2347 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2348};
2349
2350/**
2351 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2352 *
2353 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2354 * recorded by responder, in picoseconds.
2355 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2356 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2357 * initiator, in picoseconds.
2358 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2359 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2360 * initiator, in picoseconds.
2361 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2362 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2363 * responder, in picoseconds.
2364 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2365 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2366 * during this measurement exchange. Optional and will be provided if
2367 * the hardware can measure it.
2368 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2369 * responder. Not always provided.
2370 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2371 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2372 * responder. Not always provided.
2373 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2374 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2375 * initiator. Not always provided.
2376 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2377 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2378 * initiator. Not always provided.
2379 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2380 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2381 */
2382enum qca_wlan_vendor_attr_ftm_meas {
a62dea41 2383 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
fcd85d9a
LD
2384 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2385 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2386 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2387 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2388 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2389 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2390 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2391 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2392 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2393 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2394 /* keep last */
2395 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2396 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2397 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2398};
2399
2400/**
2401 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2402 *
2403 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2404 * CIR (channel impulse response) path for each antenna.
2405 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2406 * of the strongest CIR path for each antenna.
2407 */
2408enum qca_wlan_vendor_attr_aoa_type {
2409 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2410 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2411 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2412};
2413
0d7eba54
SD
2414/**
2415 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2416 * validate encryption engine
2417 *
2418 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2419 * This will be included if the request is for decryption; if not included,
2420 * the request is treated as a request for encryption by default.
2421 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2422 * indicating the key cipher suite. Takes same values as
2423 * NL80211_ATTR_KEY_CIPHER.
2424 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2425 * Key Id to be used for encryption
2426 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2427 * Key (TK) to be used for encryption/decryption
2428 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2429 * Packet number to be specified for encryption/decryption
2430 * 6 bytes for TKIP/CCMP/GCMP.
2431 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2432 * representing the 802.11 packet (header + payload + FCS) that
2433 * needs to be encrypted/decrypted.
2434 * Encrypted/decrypted response from the driver will also be sent
2435 * to userspace with the same attribute.
2436 */
2437enum qca_wlan_vendor_attr_encryption_test {
2438 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2439 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2440 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2441 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2442 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2443 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2444 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2445
2446 /* keep last */
2447 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2448 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2449 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2450};
2451
6eb1a569
LD
2452/**
2453 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2454 * sector for DMG RF sector operations.
2455 *
2456 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2457 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2458 */
2459enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2460 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2461 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2462 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2463};
2464
31ee2992
QZ
2465/**
2466 * enum qca_wlan_vendor_attr_fw_state - State of firmware
2467 *
2468 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
2469 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
2470 */
2471enum qca_wlan_vendor_attr_fw_state {
2472 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
2473 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
2474 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
2475};
2476
160dca07
AAL
2477/**
2478 * BRP antenna limit mode
2479 *
2480 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2481 * antenna limit, BRP will be performed as usual.
2482 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2483 * antennas limit. the hardware may use less antennas than the
2484 * maximum limit.
2485 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2486 * use exactly the specified number of antennas for BRP.
2487 */
2488enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2489 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2490 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2491 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2492 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2493};
2494
6eb1a569
LD
2495/**
2496 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2497 * DMG RF sector configuration for a single RF module.
2498 * The values are defined in a compact way which closely matches
2499 * the way it is stored in HW registers.
2500 * The configuration provides values for 32 antennas and 8 distribution
2501 * amplifiers, and together describes the characteristics of the RF
2502 * sector - such as a beam in some direction with some gain.
2503 *
2504 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2505 * of RF module for this configuration.
2506 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2507 * amplifier gain index. Unsigned 32 bit number containing
2508 * bits for all 32 antennas.
2509 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2510 * amplifier gain index. Unsigned 32 bit number containing
2511 * bits for all 32 antennas.
2512 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2513 * amplifier gain index. Unsigned 32 bit number containing
2514 * bits for all 32 antennas.
2515 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2516 * for first 16 antennas, 2 bits per antenna.
2517 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2518 * for last 16 antennas, 2 bits per antenna.
2519 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2520 * DTYPE values (3 bits) for each distribution amplifier, followed
2521 * by X16 switch bits for each distribution amplifier. There are
2522 * total of 8 distribution amplifiers.
2523 */
2524enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2525 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2526 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2527 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2528 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2529 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2530 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2531 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2532 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2533
2534 /* keep last */
2535 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2536 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2537 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2538};
2539
95f3703a 2540enum qca_wlan_vendor_attr_ll_stats_set {
2541 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2542 /* Unsigned 32-bit value */
2543 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2544 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2545 /* keep last */
2546 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2548 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2549};
2550
2551enum qca_wlan_vendor_attr_ll_stats_clr {
2552 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2553 /* Unsigned 32bit bitmap for clearing statistics
2554 * All radio statistics 0x00000001
2555 * cca_busy_time (within radio statistics) 0x00000002
2556 * All channel stats (within radio statistics) 0x00000004
2557 * All scan statistics (within radio statistics) 0x00000008
2558 * All interface statistics 0x00000010
2559 * All tx rate statistics (within interface statistics) 0x00000020
2560 * All ac statistics (with in interface statistics) 0x00000040
2561 * All contention (min, max, avg) statistics (within ac statisctics)
2562 * 0x00000080.
2563 */
2564 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2565 /* Unsigned 8 bit value: Request to stop statistics collection */
2566 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2567
2568 /* Unsigned 32 bit bitmap: Response from the driver
2569 * for the cleared statistics
2570 */
2571 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2572 /* Unsigned 8 bit value: Response from driver/firmware
2573 * for the stop request
2574 */
2575 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2576 /* keep last */
2577 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2578 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2580};
2581
2582enum qca_wlan_vendor_attr_ll_stats_get {
2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2584 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2585 * command. When reporting the stats results, the driver uses the same
2586 * value to indicate which GET request the results correspond to.
2587 */
2588 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2589 /* Unsigned 32 bit value - bit mask to identify what statistics are
2590 * requested for retrieval.
2591 * Radio Statistics 0x00000001
2592 * Interface Statistics 0x00000020
2593 * All Peer Statistics 0x00000040
2594 * Peer Statistics 0x00000080
2595 */
2596 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2597 /* keep last */
2598 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2599 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2601};
2602
2603enum qca_wlan_vendor_attr_ll_stats_results {
2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2605 /* Unsigned 32bit value. Used by the driver; must match the request id
2606 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2607 */
2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2609
2610 /* Unsigned 32 bit value */
2611 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2612 /* Unsigned 32 bit value */
2613 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2614 /* Unsigned 32 bit value */
2615 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2616 /* Unsigned 32 bit value */
2617 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2618 /* Signed 32 bit value */
2619 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2620 /* Signed 32 bit value */
2621 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2622 /* Signed 32 bit value */
2623 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2624
2625 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2626 * nested within the interface stats.
2627 */
2628
2629 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2630 * Type = enum wifi_interface_mode.
2631 */
2632 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2633 /* Interface MAC address. An array of 6 Unsigned int8 */
2634 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2635 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2636 * AUTHENTICATING, etc. valid for STA, CLI only.
2637 */
2638 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2639 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2640 */
2641 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2642 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2643 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2644 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2645 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2646 /* BSSID. An array of 6 unsigned 8 bit values */
2647 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2648 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2649 * values.
2650 */
2651 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2652 /* Country string for this association. An array of 3 unsigned 8 bit
2653 * values.
2654 */
2655 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2656
2657 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2658 * be nested within the interface stats.
2659 */
2660
2661 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2662 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2663 /* Unsigned int 32 value corresponding to respective AC */
2664 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2665 /* Unsigned int 32 value corresponding to respective AC */
2666 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2667 /* Unsigned int 32 value corresponding to respective AC */
2668 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2669 /* Unsigned int 32 value corresponding to respective AC */
2670 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2671 /* Unsigned int 32 value corresponding to respective AC */
2672 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2673 /* Unsigned int 32 value corresponding to respective AC */
2674 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2675 /* Unsigned int 32 value corresponding to respective AC */
2676 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2677 /* Unsigned int 32 value corresponding to respective AC */
2678 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2679 /* Unsigned int 32 value corresponding to respective AC */
2680 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2681 /* Unsigned int 32 values corresponding to respective AC */
2682 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2683 /* Unsigned int 32 values corresponding to respective AC */
2684 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2685 /* Unsigned int 32 values corresponding to respective AC */
2686 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2687 /* Unsigned int 32 values corresponding to respective AC */
2688 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2689 /* Unsigned int 32 values corresponding to respective AC */
2690 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2691 /* Unsigned 32 bit value. Number of peers */
2692 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2693
2694 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2695 * nested within the interface stats.
2696 */
2697
2698 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2699 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2700 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2701 * 8 bit values.
2702 */
2703 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2704 /* Unsigned int 32 bit value representing capabilities corresponding
2705 * to respective peer.
2706 */
2707 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2708 /* Unsigned 32 bit value. Number of rates */
2709 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2710
2711 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2712 * are nested within the rate stat.
2713 */
2714
2715 /* Wi-Fi Rate - separate attributes defined for individual fields */
2716
2717 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2718 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2719 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2720 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2721 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2722 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2723 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
6965705b
JJ
2724 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2725 */
95f3703a 2726 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2727
2728 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2729 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2730
95f3703a 2731 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2732 * nested within the peer info stats.
2733 */
2734
2735 /* Unsigned int 32 bit value. Number of successfully transmitted data
2736 * packets, i.e., with ACK received corresponding to the respective
2737 * rate.
2738 */
2739 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2740 /* Unsigned int 32 bit value. Number of received data packets
2741 * corresponding to the respective rate.
2742 */
2743 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2744 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2745 * received corresponding to the respective rate.
2746 */
2747 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2748 /* Unsigned int 32 bit value. Total number of data packet retries for
2749 * the respective rate.
2750 */
2751 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2752 /* Unsigned int 32 bit value. Total number of short data packet retries
2753 * for the respective rate.
2754 */
2755 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2756 /* Unsigned int 32 bit value. Total number of long data packet retries
2757 * for the respective rate.
2758 */
2759 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2760
2761 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2762 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2763 * accruing over time.
2764 */
2765 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2766 /* Unsigned 32 bit value. Total number of msecs the radio is
2767 * transmitting accruing over time.
2768 */
2769 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2770 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2771 * receive accruing over time.
2772 */
2773 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2774 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2775 * to all scan accruing over time.
2776 */
2777 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2778 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2779 * to NAN accruing over time.
2780 */
2781 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2782 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2783 * to GSCAN accruing over time.
2784 */
2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2786 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2787 * to roam scan accruing over time.
2788 */
2789 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2790 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2791 * to PNO scan accruing over time.
2792 */
2793 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2794 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2795 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2796 */
2797 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2798 /* Unsigned 32 bit value. Number of channels. */
2799 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2800
2801 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2802 * be nested within the channel stats.
2803 */
2804
2805 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2806 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2807 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2808 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2809 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2810 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2811 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2812 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2813
2814 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2815 * nested within the radio stats.
2816 */
2817
2818 /* Unsigned int 32 bit value representing total number of msecs the
2819 * radio is awake on that channel accruing over time, corresponding to
2820 * the respective channel.
2821 */
2822 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2823 /* Unsigned int 32 bit value representing total number of msecs the CCA
2824 * register is busy accruing over time corresponding to the respective
2825 * channel.
2826 */
2827 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2828
2829 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2830
2831 /* Signifies the nested list of channel attributes
2832 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2833 */
2834 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2835
2836 /* Signifies the nested list of peer info attributes
2837 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2838 */
2839 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2840
2841 /* Signifies the nested list of rate info attributes
2842 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2843 */
2844 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2845
2846 /* Signifies the nested list of wmm info attributes
2847 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2848 */
2849 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2850
2851 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2852 * that more stats, e.g., peers or radio, are to follow in the next
2853 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2854 * Otherwise, it is set to 0.
2855 */
2856 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2857
2858 /* Unsigned 64 bit value */
2859 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2860
2861 /* Unsigned 32 bit value */
2862 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2863
2864 /* Unsigned 32 bit value */
2865 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2866
2867 /* Unsigned 32 bit value */
2868 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2869
2870 /* Unsigned 32 bit value */
2871 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2872
2873 /* Unsigned 32 bit value */
2874 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2875
2876 /* Number of msecs the radio spent in transmitting for each power level
2877 */
2878 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2879
a18563d4 2880 /* Unsigned 32 bit value */
2881 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2882 /* Unsigned 32 bit value */
2883 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2884 /* Unsigned 32 bit value */
2885 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2886 /* Unsigned 32 bit value */
2887 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2888
27987b67
ZQ
2889 /* Unsigned int 32 value.
2890 * Pending MSDUs corresponding to respective AC.
2891 */
2892 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2893
95f3703a 2894 /* keep last */
2895 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2896 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2897 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2898};
2899
6965705b 2900enum qca_wlan_vendor_attr_ll_stats_type {
95f3703a 2901 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2902 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2903 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2904 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2905
2906 /* keep last */
2907 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2908 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2909 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2910};
2911
14cd203f
SD
2912/**
2913 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2914 * TDLS configuration to the host driver.
2915 *
2916 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2917 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2918 * represents the different TDLS trigger modes.
2919 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2920 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2921 * of packets shall meet the criteria for implicit TDLS setup.
2922 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2923 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2924 * to initiate a TDLS setup.
2925 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2926 * a TDLS Discovery to the peer.
2927 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2928 * discovery attempts to know the TDLS capability of the peer. A peer is
2929 * marked as TDLS not capable if there is no response for all the attempts.
2930 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2931 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2932 * number of TX / RX frames meet the criteria for TDLS teardown.
2933 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2934 * of Tx/Rx packets within a duration
2935 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2936 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2937 * corresponding to the RSSI of the peer below which a TDLS setup is
2938 * triggered.
2939 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2940 * corresponding to the RSSI of the peer above which a TDLS teardown is
2941 * triggered.
2942 */
2943enum qca_wlan_vendor_attr_tdls_configuration {
2944 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
2945 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
2946
2947 /* Attributes configuring the TDLS Implicit Trigger */
2948 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
2949 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
2950 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
2951 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
2952 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
2953 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
2954 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
2955 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
2956
2957 /* keep last */
2958 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
2959 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
2960 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
2961};
2962
2963/**
2964 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2965 * the driver
2966 *
2967 * The following are the different values for
2968 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2969 *
2970 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2971 * the TDLS connection to a respective peer comes from the user space.
2972 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2973 * TDLS_DISCOVER to do this.
2974 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2975 * setup/teardown to the eligible peer once the configured criteria
2976 * (such as TX/RX threshold, RSSI) is met. The attributes
2977 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2978 * the different configuration criteria for the TDLS trigger from the
2979 * host driver.
2980 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2981 * the TDLS setup / teardown through the implicit mode only to the
2982 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2983 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2984 * External mode works on top of the implicit mode. Thus the host driver
2985 * is expected to configure in TDLS Implicit mode too to operate in
2986 * External mode.
2987 * Configuring External mode alone without Implicit mode is invalid.
2988 *
2989 * All the above implementations work as expected only when the host driver
2990 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2991 * that the TDLS message exchange is not internal to the host driver, but
2992 * depends on wpa_supplicant to do the message exchange.
2993 */
2994enum qca_wlan_vendor_tdls_trigger_mode {
2995 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
2996 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
2997 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
2998};
2999
c79238b6
JJ
3000/**
3001 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
c79238b6
JJ
3002 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3003 * that is hard-coded in the Board Data File (BDF).
3004 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3005 * that is hard-coded in the Board Data File (BDF).
3006 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3007 * that is hard-coded in the Board Data File (BDF).
3008 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
3009 * that is hard-coded in the Board Data File (BDF).
3010 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
3011 * that is hard-coded in the Board Data File (BDF).
c313c8a5
JM
3012 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
3013 * source of SAR power limits, thereby disabling the SAR power
3014 * limit feature.
c79238b6
JJ
3015 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
3016 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7cfe2f00
KK
3017 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
3018 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
c79238b6
JJ
3019 *
3020 * This enumerates the valid set of values that may be supplied for
3021 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
2d942ec4
JJ
3022 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
3023 * the response to an instance of the
1a2cb20d 3024 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
c79238b6
JJ
3025 */
3026enum qca_vendor_attr_sar_limits_selections {
c313c8a5 3027 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
c79238b6
JJ
3028 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
3029 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
3030 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
3031 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
c313c8a5 3032 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
c79238b6 3033 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7cfe2f00 3034 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
c79238b6
JJ
3035};
3036
3037/**
3038 * enum qca_vendor_attr_sar_limits_spec_modulations -
3039 * SAR limits specification modulation
3040 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3041 * CCK modulation
3042 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3043 * OFDM modulation
3044 *
3045 * This enumerates the valid set of values that may be supplied for
3046 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3047 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3048 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
2d942ec4 3049 * command or in the response to an instance of the
1a2cb20d 3050 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
c79238b6
JJ
3051 */
3052enum qca_vendor_attr_sar_limits_spec_modulations {
3053 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
3054 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
3055};
3056
3057/**
3058 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3059 *
5579c11c 3060 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
c79238b6
JJ
3061 * select which SAR power limit table should be used. Valid
3062 * values are enumerated in enum
3063 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3064 * power limit selection is unchanged if this attribute is not
3065 * present.
3066 *
3067 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3068 * which specifies the number of SAR power limit specifications
3069 * which will follow.
3070 *
3071 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3072 * limit specifications. The number of specifications is
3073 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3074 * specification contains a set of
3075 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3076 * specification is uniquely identified by the attributes
3077 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3078 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3079 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3080 * contains as a payload the attribute
7cfe2f00
KK
3081 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3082 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3083 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3084 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3085 * needed based upon the value of
3086 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
c79238b6
JJ
3087 *
3088 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3089 * indicate for which band this specification applies. Valid
3090 * values are enumerated in enum %nl80211_band (although not all
3091 * bands may be supported by a given device). If the attribute is
3092 * not supplied then the specification will be applied to all
3093 * supported bands.
3094 *
3095 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3096 * to indicate for which antenna chain this specification
3097 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3098 * attribute is not supplied then the specification will be
3099 * applied to all chains.
3100 *
3101 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3102 * value to indicate for which modulation scheme this
3103 * specification applies. Valid values are enumerated in enum
3104 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3105 * is not supplied then the specification will be applied to all
3106 * modulation schemes.
3107 *
3108 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3109 * value to specify the actual power limit value in units of 0.5
3110 * dBm (i.e., a value of 11 represents 5.5 dBm).
7cfe2f00
KK
3111 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3112 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
3113 *
3114 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3115 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3116 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3117 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
c79238b6 3118 *
2d942ec4
JJ
3119 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3120 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
c79238b6
JJ
3121 */
3122enum qca_vendor_attr_sar_limits {
3123 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
3124 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
3125 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
3126 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
3127 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
3128 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
3129 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
3130 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7cfe2f00 3131 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
c79238b6
JJ
3132
3133 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
3134 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
3135 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
3136};
3137
cea76147
SD
3138/**
3139 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3140 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
3141 */
3142enum qca_wlan_vendor_attr_get_wifi_info {
3143 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3144 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3145 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
3146
3147 /* keep last */
3148 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3149 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3150 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3151};
3152
3153/*
3154 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3155 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3156 */
3157enum qca_wlan_vendor_attr_wifi_logger_start {
3158 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
3159 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
3160 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
3161 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
3162
3163 /* keep last */
3164 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
3165 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
3166 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
3167};
3168
3169enum qca_wlan_vendor_attr_logger_results {
3170 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3171
3172 /* Unsigned 32-bit value; must match the request Id supplied by
3173 * Wi-Fi HAL in the corresponding subcmd NL msg.
3174 */
3175 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3176
3177 /* Unsigned 32-bit value; used to indicate the size of memory
3178 * dump to be allocated.
6965705b 3179 */
cea76147
SD
3180 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3181
3182 /* keep last */
3183 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3184 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3185 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3186};
3187
3188enum qca_wlan_vendor_attr_roaming_config_params {
3189 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3190
3191 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3192 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3193
3194 /* Attributes for wifi_set_ssid_white_list */
3195 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3196 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3197 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3198
3199 /* Attributes for set_roam_params */
3200 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3201 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3202 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3203 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3204 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3205 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3206 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3207
3208 /* Attribute for set_lazy_roam */
3209 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3210
3211 /* Attribute for set_lazy_roam with preferences */
3212 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3213 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3214 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3215 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3216
3217 /* Attribute for set_blacklist bssid params */
3218 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3219 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3220 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3221
3222 /* keep last */
3223 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3224 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3225 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3226};
3227
3228/*
3229 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
3230 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3231 */
3232enum qca_wlan_vendor_attr_roam_subcmd {
3233 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
3234 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
3235 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
3236 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
3237 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
3238 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
3239 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
3240
3241 /* keep last */
3242 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
3243 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
3244 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
3245};
3246
3247enum qca_wlan_vendor_attr_gscan_config_params {
3248 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
3249
3250 /* Unsigned 32-bit value */
3251 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
3252
3253 /* Attributes for data used by
3254 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
3255 */
3256 /* Unsigned 32-bit value */
3257 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
3258 = 2,
3259 /* Unsigned 32-bit value */
3260 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
3261 = 3,
3262
3263 /* Attributes for input params used by
3264 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
3265 */
3266
3267 /* Unsigned 32-bit value; channel frequency */
3268 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
3269 /* Unsigned 32-bit value; dwell time in ms. */
3270 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
3271 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
3272 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
3273 /* Unsigned 8-bit value; channel class */
3274 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
3275
3276 /* Unsigned 8-bit value; bucket index, 0 based */
3277 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
3278 /* Unsigned 8-bit value; band. */
3279 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
3280 /* Unsigned 32-bit value; desired period, in ms. */
3281 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
3282 /* Unsigned 8-bit value; report events semantics. */
3283 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
3284 /* Unsigned 32-bit value. Followed by a nested array of
3285 * GSCAN_CHANNEL_SPEC_* attributes.
3286 */
3287 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
3288
3289 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
3290 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3291 */
3292 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
3293
3294 /* Unsigned 32-bit value; base timer period in ms. */
3295 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
3296 /* Unsigned 32-bit value; number of APs to store in each scan in the
3297 * BSSID/RSSI history buffer (keep the highest RSSI APs).
3298 */
3299 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
3300 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
3301 * up AP.
3302 */
3303 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
3304 = 16,
3305
3306 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
3307 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
3308 * of the array is determined by NUM_BUCKETS.
3309 */
3310 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
3311
3312 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
3313 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
3314 */
3315 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
3316
3317 /* Unsigned 8-bit value */
3318 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
3319 = 19,
3320 /* Unsigned 32-bit value; maximum number of results to be returned. */
3321 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
3322 = 20,
3323
3324 /* An array of 6 x unsigned 8-bit value */
3325 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
3326 /* Signed 32-bit value */
3327 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
3328 /* Signed 32-bit value */
3329 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
3330 /* Unsigned 32-bit value */
3331 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
3332
3333 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
3334 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
3335 * array is determined by NUM_AP.
3336 */
3337 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
3338
3339 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
3340 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3341 */
3342 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
3343
3344 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
3345 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
3346 = 27,
3347 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3348 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
3349 = 28,
3350 /* Unsigned 32-bit value; number of APs breaching threshold. */
3351 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
3352 /* Unsigned 32-bit value; number of APs. Followed by an array of
3353 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
3354 */
3355 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
3356 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3357 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
3358 = 31,
3359 /* Unsigned 32-bit value. If max_period is non zero or different than
3360 * period, then this bucket is an exponential backoff bucket.
3361 */
3362 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
3363 /* Unsigned 32-bit value. */
3364 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
3365 /* Unsigned 32-bit value. For exponential back off bucket, number of
3366 * scans to perform for a given period.
3367 */
3368 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
3369 /* Unsigned 8-bit value; in number of scans, wake up AP after these
3370 * many scans.
3371 */
3372 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
3373 = 35,
3374
3375 /* Attributes for data used by
3376 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
3377 */
3378 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
3379 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
3380 = 36,
3381 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
3382 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
3383 * size of the array is determined by NUM_SSID.
3384 */
3385 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
3386 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
3387 * attributes.
3388 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
3389 */
3390 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
3391
3392 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3393 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
3394 /* Unsigned 8-bit value */
3395 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
3396 /* Signed 32-bit value */
3397 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
3398 /* Signed 32-bit value */
3399 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
3400 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
3401 */
3402 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
3403
3404 /* keep last */
3405 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
3406 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
3407 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
3408};
3409
3410enum qca_wlan_vendor_attr_gscan_results {
3411 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
3412
3413 /* Unsigned 32-bit value; must match the request Id supplied by
3414 * Wi-Fi HAL in the corresponding subcmd NL msg.
3415 */
3416 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
3417
3418 /* Unsigned 32-bit value; used to indicate the status response from
3419 * firmware/driver for the vendor sub-command.
3420 */
3421 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
3422
3423 /* GSCAN Valid Channels attributes */
3424 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3425 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
3426 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
3427 * representing channel numbers.
3428 */
3429 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
3430
3431 /* GSCAN Capabilities attributes */
3432 /* Unsigned 32-bit value */
3433 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
3434 /* Unsigned 32-bit value */
3435 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
3436 /* Unsigned 32-bit value */
3437 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3438 = 7,
3439 /* Unsigned 32-bit value */
3440 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3441 = 8,
3442 /* Signed 32-bit value */
3443 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3444 = 9,
3445 /* Unsigned 32-bit value */
3446 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
3447 /* Unsigned 32-bit value */
3448 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3449 = 11,
3450 /* Unsigned 32-bit value */
3451 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3452 = 12,
3453
3454 /* GSCAN Attributes used with
3455 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3456 */
3457
3458 /* Unsigned 32-bit value */
3459 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
3460
3461 /* GSCAN attributes used with
3462 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3463 */
3464
3465 /* An array of NUM_RESULTS_AVAILABLE x
3466 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3467 */
3468 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
3469
3470 /* Unsigned 64-bit value; age of sample at the time of retrieval */
3471 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
3472 /* 33 x unsigned 8-bit value; NULL terminated SSID */
3473 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
3474 /* An array of 6 x unsigned 8-bit value */
3475 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
3476 /* Unsigned 32-bit value; channel frequency in MHz */
3477 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
3478 /* Signed 32-bit value */
3479 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
3480 /* Unsigned 32-bit value */
3481 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
3482 /* Unsigned 32-bit value */
3483 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
3484 /* Unsigned 16-bit value */
3485 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
3486 /* Unsigned 16-bit value */
3487 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
3488 /* Unsigned 32-bit value; size of the IE DATA blob */
3489 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
3490 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3491 * information elements found in the beacon; this data should be a
3492 * packed list of wifi_information_element objects, one after the
3493 * other.
3494 */
3495 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
3496
3497 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3498 * available.
3499 */
3500 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
3501
3502 /* GSCAN attributes for
3503 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3504 */
3505 /* Unsigned 8-bit value */
3506 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
3507 /* Unsigned 32-bit value */
3508 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
3509
3510 /* GSCAN attributes for
3511 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3512 */
3513 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3514 * to indicate number of results.
3515 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3516 * list of results.
3517 */
3518
3519 /* GSCAN attributes for
3520 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3521 */
3522 /* An array of 6 x unsigned 8-bit value */
3523 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
3524 /* Unsigned 32-bit value */
3525 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3526 = 30,
3527 /* Unsigned 32-bit value. */
3528 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3529 = 31,
3530 /* A nested array of signed 32-bit RSSI values. Size of the array is
3531 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3532 */
3533 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3534 = 32,
3535
3536 /* GSCAN attributes used with
3537 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3538 */
3539 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3540 * to indicate number of gscan cached results returned.
3541 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3542 * the list of gscan cached results.
3543 */
3544
3545 /* An array of NUM_RESULTS_AVAILABLE x
3546 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3547 */
3548 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
3549 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3550 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
3551 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3552 */
3553 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
3554 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3555 * to indicate number of wifi scan results/bssids retrieved by the scan.
3556 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3557 * list of wifi scan results returned for each cached result block.
3558 */
3559
3560 /* GSCAN attributes for
3561 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3562 */
3563 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3564 * number of results.
3565 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3566 * list of wifi scan results returned for each
3567 * wifi_passpoint_match_result block.
3568 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3569 */
3570
3571 /* GSCAN attributes for
3572 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3573 */
3574 /* Unsigned 32-bit value */
3575 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3576 = 36,
3577 /* A nested array of
3578 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3579 * attributes. Array size =
3580 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3581 */
3582 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
3583
3584 /* Unsigned 32-bit value; network block id for the matched network */
3585 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
3586 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3587 * list of wifi scan results returned for each
3588 * wifi_passpoint_match_result block.
3589 */
3590 /* Unsigned 32-bit value */
3591 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
3592 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3593 * ANQP data in the information_element format.
3594 */
3595 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
3596
3597 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3598 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
3599 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3600 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
3601 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3602 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3603 = 43,
3604 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3605 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3606 = 44,
3607
3608 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
3609
d35003e5
SD
3610 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
3611 * This is used to limit the maximum number of BSSIDs while sending
3612 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with attributes
3613 * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID and
3614 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
3615 */
3616 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
3617
cea76147
SD
3618 /* keep last */
3619 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
3620 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
3621 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
3622};
3623
3624enum qca_wlan_vendor_attr_pno_config_params {
3625 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3626 /* Attributes for data used by
3627 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3628 */
3629 /* Unsigned 32-bit value */
3630 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3631 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3632 * attributes. Array size =
3633 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3634 */
3635 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3636
3637 /* Unsigned 32-bit value */
3638 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3639 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3640 * realm, 0 if unspecified.
3641 */
3642 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3643 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3644 * match, 0 if unspecified.
3645 */
3646 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3647 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3648 * unspecified.
3649 */
3650 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3651
3652 /* Attributes for data used by
3653 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3654 */
3655 /* Unsigned 32-bit value */
3656 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3657 /* Array of nested
3658 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3659 * attributes. Array size =
3660 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3661 */
3662 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3663 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3664 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3665 /* Signed 8-bit value; threshold for considering this SSID as found,
3666 * required granularity for this threshold is 4 dBm to 8 dBm.
3667 */
3668 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3669 = 10,
3670 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3671 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3672 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3673 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3674 /* Unsigned 8-bit to indicate ePNO type;
3675 * It takes values from qca_wlan_epno_type
3676 */
3677 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3678
3679 /* Nested attribute to send the channel list */
3680 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3681
3682 /* Unsigned 32-bit value; indicates the interval between PNO scan
3683 * cycles in msec.
3684 */
3685 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3686 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3687 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3688 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3689 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3690 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3691 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3692 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
9f44f7f3
SD
3693 /* Unsigned 32-bit value, representing the PNO Request ID */
3694 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
cea76147
SD
3695
3696 /* keep last */
3697 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3698 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3699 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3700};
3701
4c407000
PK
3702/**
3703 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3704 * the ACS has to be triggered. These values are used by
3705 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3706 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3707 */
3708enum qca_wlan_vendor_acs_select_reason {
3709 /* Represents the reason that the ACS triggered during the AP start */
3710 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
3711 /* Represents the reason that DFS found with the current channel */
3712 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
3713 /* Represents the reason that LTE co-exist in the current band. */
3714 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
3715};
3716
8befe8a9
SD
3717/**
3718 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3719 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3720 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3721 * external ACS policies to select the channels w.r.t. the PCL weights.
3722 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3723 * their PCL weights.)
3724 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3725 * select a channel with non-zero PCL weight.
3726 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3727 * channel with non-zero PCL weight.
3728 *
3729 */
3730enum qca_wlan_vendor_attr_external_acs_policy {
3731 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
3732 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
3733};
3734
4c407000
PK
3735/**
3736 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3737 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3738 */
3739enum qca_wlan_vendor_channel_prop_flags {
3740 /* Bits 0, 1, 2, and 3 are reserved */
3741
3742 /* Turbo channel */
3743 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3744 /* CCK channel */
3745 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3746 /* OFDM channel */
3747 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3748 /* 2.4 GHz spectrum channel. */
3749 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3750 /* 5 GHz spectrum channel */
3751 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3752 /* Only passive scan allowed */
3753 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3754 /* Dynamic CCK-OFDM channel */
3755 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3756 /* GFSK channel (FHSS PHY) */
3757 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3758 /* Radar found on channel */
3759 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3760 /* 11a static turbo channel only */
3761 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3762 /* Half rate channel */
3763 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3764 /* Quarter rate channel */
3765 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3766 /* HT 20 channel */
3767 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3768 /* HT 40 with extension channel above */
3769 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3770 /* HT 40 with extension channel below */
3771 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3772 /* HT 40 intolerant */
3773 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3774 /* VHT 20 channel */
3775 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3776 /* VHT 40 with extension channel above */
3777 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3778 /* VHT 40 with extension channel below */
3779 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3780 /* VHT 80 channel */
3781 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3782 /* HT 40 intolerant mark bit for ACS use */
3783 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3784 /* Channel temporarily blocked due to noise */
3785 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3786 /* VHT 160 channel */
3787 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3788 /* VHT 80+80 channel */
3789 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
ee522d27
KR
3790 /* HE 20 channel */
3791 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
3792 /* HE 40 with extension channel above */
3793 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
3794 /* HE 40 with extension channel below */
3795 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
3796 /* HE 40 intolerant */
3797 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
3798};
3799
3800/**
3801 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3802 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3803 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3804 */
3805enum qca_wlan_vendor_channel_prop_flags_2 {
3806 /* HE 40 intolerant mark bit for ACS use */
3807 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3808 /* HE 80 channel */
3809 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
3810 /* HE 160 channel */
3811 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
3812 /* HE 80+80 channel */
3813 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
4c407000
PK
3814};
3815
3816/**
3817 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3818 * each channel. This is used by
3819 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3820 */
3821enum qca_wlan_vendor_channel_prop_flags_ext {
3822 /* Radar found on channel */
3823 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3824 /* DFS required on channel */
3825 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3826 /* DFS required on channel for 2nd band of 80+80 */
3827 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3828 /* If channel has been checked for DFS */
3829 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3830 /* Excluded in 802.11d */
3831 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3832 /* Channel Switch Announcement received on this channel */
3833 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3834 /* Ad-hoc is not allowed */
3835 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3836 /* Station only channel */
3837 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3838 /* DFS radar history for slave device (STA mode) */
3839 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3840 /* DFS CAC valid for slave device (STA mode) */
3841 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3842};
3843
3844/**
3845 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3846 * information. These attributes are sent as part of
3847 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3848 * attributes correspond to a single channel.
3849 */
3850enum qca_wlan_vendor_external_acs_event_chan_info_attr {
3851 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
3852
3853 /* A bitmask (u32) with flags specified in
3854 * enum qca_wlan_vendor_channel_prop_flags.
3855 */
3856 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
3857 /* A bitmask (u32) with flags specified in
3858 * enum qca_wlan_vendor_channel_prop_flags_ext.
3859 */
3860 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
3861 /* frequency in MHz (u32) */
3862 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
3863 /* maximum regulatory transmission power (u32) */
3864 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
3865 /* maximum transmission power (u32) */
3866 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
3867 /* minimum transmission power (u32) */
3868 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
3869 /* regulatory class id (u8) */
3870 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
3871 /* maximum antenna gain in (u8) */
3872 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
3873 /* VHT segment 0 (u8) */
3874 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
3875 /* VHT segment 1 (u8) */
3876 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
ee522d27
KR
3877 /* A bitmask (u32) with flags specified in
3878 * enum qca_wlan_vendor_channel_prop_flags_2.
3879 */
3880 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
4c407000
PK
3881
3882 /* keep last */
3883 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
3884 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
3885 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
3886};
3887
3888/**
3889 * qca_wlan_vendor_attr_pcl: Represents attributes for
3890 * preferred channel list (PCL). These attributes are sent as part of
61536b5f
PX
3891 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
3892 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
4c407000
PK
3893 */
3894enum qca_wlan_vendor_attr_pcl {
3895 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
3896
3897 /* Channel number (u8) */
3898 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
3899 /* Channel weightage (u8) */
3900 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
61536b5f
PX
3901 /* Channel frequency (u32) in MHz */
3902 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
3903 /* Channel flags (u32)
3904 * bit 0 set: channel to be used for GO role,
3905 * bit 1 set: channel to be used on CLI role,
3906 * bit 2 set: channel must be considered for operating channel
3907 * selection & peer chosen operating channel should be
3908 * one of the channels with this flag set,
3909 * bit 3 set: channel should be excluded in GO negotiation
3910 */
3911 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
4c407000
PK
3912};
3913
3914/**
3915 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3916 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3917 * host driver.
3918 */
3919enum qca_wlan_vendor_attr_external_acs_event {
3920 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
3921
3922 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3923 * This helps ACS module to understand why ACS needs to be started.
3924 */
3925 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
3926 /* Flag attribute to indicate if driver supports spectral scanning */
3927 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
3928 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3929 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
3930 /* Flag attribute to indicate if driver provides additional channel
6965705b
JJ
3931 * capability as part of scan operation
3932 */
4c407000
PK
3933 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
3934 /* Flag attribute to indicate interface status is UP */
3935 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
3936 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
6965705b
JJ
3937 * values.
3938 */
4c407000
PK
3939 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
3940 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3941 * This is the upper bound of channel width. ACS logic should try to get
3942 * a channel with the specified width and if not found, look for lower
3943 * values.
3944 */
3945 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
3946 /* This (u8) will hold values of one of enum nl80211_bands */
3947 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
3948 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
6965705b
JJ
3949 * values
3950 */
4c407000
PK
3951 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
3952 /* Array of (u32) supported frequency list among which ACS should choose
3953 * best frequency.
3954 */
3955 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
3956 /* Preferred channel list by the driver which will have array of nested
3957 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3958 */
3959 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
3960 /* Array of nested attribute for each channel. It takes attr as defined
3961 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3962 */
3963 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
8befe8a9
SD
3964 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
3965 * It uses values defined in enum
3966 * qca_wlan_vendor_attr_external_acs_policy.
3967 */
3968 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
364039d2
KR
3969 /* Reference RF Operating Parameter (RROP) availability information
3970 * (u16). It uses values defined in enum
3971 * qca_wlan_vendor_attr_rropavail_info.
3972 */
3973 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
4c407000
PK
3974
3975 /* keep last */
3976 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
3977 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
3978 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
3979};
3980
3981/**
3982 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3983 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3984 * in priority order as decided after ACS operation in userspace.
3985 */
3986enum qca_wlan_vendor_attr_external_acs_channels {
3987 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
3988
3989 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3990 */
3991 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
3992
3993 /* Array of nested values for each channel with following attributes:
3994 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3995 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3996 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3997 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3998 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3999 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4000 */
4001 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
4002 /* This (u8) will hold values of one of enum nl80211_bands */
4003 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
4004 /* Primary channel (u8) */
4005 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
4006 /* Secondary channel (u8) used for HT 40 MHz channels */
4007 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
4008 /* VHT seg0 channel (u8) */
4009 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
4010 /* VHT seg1 channel (u8) */
4011 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
4012 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
4013 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
4014
4015 /* keep last */
4016 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
4017 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
4018 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
4019};
4020
d7d0f909
SD
4021enum qca_chip_power_save_failure_reason {
4022 /* Indicates if the reason for the failure is due to a protocol
4023 * layer/module.
4024 */
6965705b 4025 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
d7d0f909
SD
4026 /* Indicates if the reason for the failure is due to a hardware issue.
4027 */
6965705b 4028 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
d7d0f909
SD
4029};
4030
4031/**
4032 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
4033 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
4034 * information leading to the power save failure.
4035 */
4036enum qca_attr_chip_power_save_failure {
6965705b
JJ
4037 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
4038 /* Reason to cause the power save failure.
d7d0f909
SD
4039 * These reasons are represented by
4040 * enum qca_chip_power_save_failure_reason.
4041 */
6965705b 4042 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
d7d0f909 4043
6965705b
JJ
4044 /* keep last */
4045 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
4046 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
4047 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
d7d0f909
SD
4048};
4049
c103c0b5
SD
4050/**
4051 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4052 * data types for which the stats have to get collected.
4053 */
4054enum qca_wlan_vendor_nud_stats_data_pkt_flags {
4055 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
4056 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
4057 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
4058 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
4059 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
4060 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4061 * to represent the stats of respective data type.
4062 */
4063 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
4064 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
4065 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
4066};
4067
4068enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
4069 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
4070 /* Represents the data packet type to be monitored (u32).
4071 * Host driver tracks the stats corresponding to each data frame
4072 * represented by these flags.
4073 * These data packets are represented by
4074 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
4075 */
4076 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
4077 /* Name corresponding to the DNS frame for which the respective DNS
4078 * stats have to get monitored (string). Max string length 255.
4079 */
4080 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
4081 /* source port on which the respective proto stats have to get
4082 * collected (u32).
4083 */
4084 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
4085 /* destination port on which the respective proto stats have to get
4086 * collected (u32).
4087 */
4088 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
4089 /* IPv4 address for which the destined data packets have to be
4090 * monitored. (in network byte order), u32.
4091 */
4092 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
4093 /* IPv6 address for which the destined data packets have to be
4094 * monitored. (in network byte order), 16 bytes array.
4095 */
4096 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
4097
4098 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
4099 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
4100 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
4101};
4102
a9491695
SD
4103/**
4104 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4105 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4106 * information to start/stop the NUD statistics collection.
4107 */
4108enum qca_attr_nud_stats_set {
4109 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4110
4111 /* Flag to start/stop the NUD statistics collection.
4112 * Start - If included, Stop - If not included
4113 */
4114 QCA_ATTR_NUD_STATS_SET_START = 1,
c103c0b5 4115 /* IPv4 address of the default gateway (in network byte order), u32 */
a9491695 4116 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
c103c0b5
SD
4117 /* Represents the list of data packet types to be monitored.
4118 * Host driver tracks the stats corresponding to each data frame
4119 * represented by these flags.
4120 * These data packets are represented by
4121 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
4122 */
4123 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
a9491695
SD
4124
4125 /* keep last */
4126 QCA_ATTR_NUD_STATS_SET_LAST,
4127 QCA_ATTR_NUD_STATS_SET_MAX =
4128 QCA_ATTR_NUD_STATS_SET_LAST - 1,
4129};
4130
c103c0b5
SD
4131enum qca_attr_nud_data_stats {
4132 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
4133 /* Data packet type for which the stats are collected (u32).
4134 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4135 */
4136 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
4137 /* Name corresponding to the DNS frame for which the respective DNS
4138 * stats are monitored (string). Max string length 255.
4139 */
4140 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
4141 /* source port on which the respective proto stats are collected (u32).
4142 */
4143 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
4144 /* destination port on which the respective proto stats are collected
4145 * (u32).
4146 */
4147 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
4148 /* IPv4 address for which the destined data packets have to be
4149 * monitored. (in network byte order), u32.
4150 */
4151 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
4152 /* IPv6 address for which the destined data packets have to be
4153 * monitored. (in network byte order), 16 bytes array.
4154 */
4155 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
4156 /* Data packet Request count received from netdev (u32). */
4157 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4158 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
4159 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4160 /* Data packet Request count received by lower MAC from upper MAC
4161 * (u32)
4162 */
4163 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4164 /* Data packet Request count successfully transmitted by the device
4165 * (u32)
4166 */
4167 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4168 /* Data packet Response count received by lower MAC (u32) */
4169 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4170 /* Data packet Response count received by upper MAC (u32) */
4171 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4172 /* Data packet Response count delivered to netdev (u32) */
4173 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4174 /* Data Packet Response count that are dropped out of order (u32) */
4175 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4176
4177 /* keep last */
4178 QCA_ATTR_NUD_DATA_STATS_LAST,
4179 QCA_ATTR_NUD_DATA_STATS_MAX =
4180 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
4181};
4182
a9491695
SD
4183/**
4184 * qca_attr_nud_stats_get: Attributes to vendor subcmd
4185 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4186 * NUD statistics collected when queried.
4187 */
4188enum qca_attr_nud_stats_get {
4189 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
c103c0b5 4190 /* ARP Request count from netdev (u32) */
a9491695 4191 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
c103c0b5 4192 /* ARP Request count sent to lower MAC from upper MAC (u32) */
a9491695 4193 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
c103c0b5 4194 /* ARP Request count received by lower MAC from upper MAC (u32) */
a9491695 4195 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
c103c0b5 4196 /* ARP Request count successfully transmitted by the device (u32) */
a9491695 4197 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
c103c0b5 4198 /* ARP Response count received by lower MAC (u32) */
a9491695 4199 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
c103c0b5 4200 /* ARP Response count received by upper MAC (u32) */
a9491695 4201 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
c103c0b5 4202 /* ARP Response count delivered to netdev (u32) */
a9491695 4203 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
c103c0b5 4204 /* ARP Response count dropped due to out of order reception (u32) */
a9491695
SD
4205 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4206 /* Flag indicating if the station's link to the AP is active.
4207 * Active Link - If included, Inactive link - If not included
4208 */
7f5f4e46 4209 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
a9491695
SD
4210 /* Flag indicating if there is any duplicate address detected (DAD).
4211 * Yes - If detected, No - If not detected.
4212 */
7f5f4e46 4213 QCA_ATTR_NUD_STATS_IS_DAD = 10,
c103c0b5
SD
4214 /* List of Data packet types for which the stats are requested.
4215 * This list does not carry ARP stats as they are done by the
4216 * above attributes. Represented by enum qca_attr_nud_data_stats.
4217 */
4218 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
a9491695
SD
4219
4220 /* keep last */
4221 QCA_ATTR_NUD_STATS_GET_LAST,
4222 QCA_ATTR_NUD_STATS_GET_MAX =
4223 QCA_ATTR_NUD_STATS_GET_LAST - 1,
4224};
4225
70407ee5
KV
4226enum qca_wlan_btm_candidate_status {
4227 QCA_STATUS_ACCEPT = 0,
4228 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4229 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4230 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4231 QCA_STATUS_REJECT_LOW_RSSI = 4,
4232 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4233 QCA_STATUS_REJECT_UNKNOWN = 6,
4234};
4235
4236enum qca_wlan_vendor_attr_btm_candidate_info {
4237 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4238
4239 /* 6-byte MAC address representing the BSSID of transition candidate */
4240 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4241 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4242 * returned by the driver. It says whether the BSSID provided in
4243 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4244 * the driver, if not it specifies the reason for rejection.
4245 * Note that the user-space can overwrite the transition reject reason
4246 * codes provided by driver based on more information.
4247 */
4248 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4249
4250 /* keep last */
4251 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4252 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4253 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4254};
4255
841e9a8c
SD
4256enum qca_attr_trace_level {
4257 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4258 /*
4259 * Nested array of the following attributes:
4260 * QCA_ATTR_TRACE_LEVEL_MODULE,
4261 * QCA_ATTR_TRACE_LEVEL_MASK.
4262 */
4263 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4264 /*
4265 * Specific QCA host driver module. Please refer to the QCA host
4266 * driver implementation to get the specific module ID.
4267 */
4268 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4269 /* Different trace level masks represented in the QCA host driver. */
4270 QCA_ATTR_TRACE_LEVEL_MASK = 3,
4271
4272 /* keep last */
4273 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4274 QCA_ATTR_TRACE_LEVEL_MAX =
4275 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4276};
4277
7785c70b
PX
4278/**
4279 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
4280 */
4281enum qca_wlan_vendor_attr_get_he_capabilities {
4282 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
4283 /* Whether HE capabilities is supported
6965705b
JJ
4284 * (u8 attribute: 0 = not supported, 1 = supported)
4285 */
7785c70b
PX
4286 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
4287 /* HE PHY capabilities, array of 3 u32 values */
4288 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
4289 /* HE MAC capabilities (u32 attribute) */
4290 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
4291 /* HE MCS map (u32 attribute) */
4292 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
4293 /* Number of SS (u32 attribute) */
4294 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
4295 /* RU count (u32 attribute) */
4296 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
4297 /* PPE threshold data, array of 8 u32 values */
4298 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
4299
4300 /* keep last */
4301 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
4302 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
4303 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
4304};
4305
16217e13
PX
4306/**
4307 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
4308 */
4309enum qca_wlan_vendor_attr_spectral_scan {
4310 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
4311 /* Number of times the chip enters spectral scan mode before
4312 * deactivating spectral scans. When set to 0, chip will enter spectral
4313 * scan mode continuously. u32 attribute.
4314 */
4315 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
4316 /* Spectral scan period. Period increment resolution is 256*Tclk,
4317 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
4318 */
4319 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
4320 /* Spectral scan priority. u32 attribute. */
4321 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
4322 /* Number of FFT data points to compute. u32 attribute. */
4323 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
4324 /* Enable targeted gain change before starting the spectral scan FFT.
4325 * u32 attribute.
4326 */
4327 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
4328 /* Restart a queued spectral scan. u32 attribute. */
4329 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
4330 /* Noise floor reference number for the calculation of bin power.
4331 * u32 attribute.
4332 */
4333 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
4334 /* Disallow spectral scan triggers after TX/RX packets by setting
4335 * this delay value to roughly SIFS time period or greater.
4336 * u32 attribute.
4337 */
4338 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
4339 /* Number of strong bins (inclusive) per sub-channel, below
4340 * which a signal is declared a narrow band tone. u32 attribute.
4341 */
4342 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
4343 /* Specify the threshold over which a bin is declared strong (for
4344 * scan bandwidth analysis). u32 attribute.
4345 */
4346 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
4347 /* Spectral scan report mode. u32 attribute. */
4348 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
4349 /* RSSI report mode, if the ADC RSSI is below
4350 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
4351 * then FFTs will not trigger, but timestamps and summaries get
4352 * reported. u32 attribute.
4353 */
4354 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
4355 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
4356 * to ensure spectral scan reporting with normal error code.
4357 * u32 attribute.
4358 */
4359 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
4360 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
4361 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
4362 * u32 attribute.
4363 */
4364 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
4365 /* Format of FFT report to software for spectral scan triggered FFTs.
4366 * 0: No FFT report (only spectral scan summary report)
4367 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
4368 * report
4369 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
4370 * bins (in-band) per FFT + spectral scan summary report
4371 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
4372 * bins (all) per FFT + spectral scan summary report
4373 * u32 attribute.
4374 */
4375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
4376 /* Number of LSBs to shift out in order to scale the FFT bins.
4377 * u32 attribute.
4378 */
4379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
4380 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
4381 * in dBm power. u32 attribute.
4382 */
4383 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
4384 /* Per chain enable mask to select input ADC for search FFT.
4385 * u32 attribute.
4386 */
4387 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
4388 /* An unsigned 64-bit integer provided by host driver to identify the
4389 * spectral scan request. This attribute is included in the scan
4390 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
4391 * and used as an attribute in
4392 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
4393 * specific scan to be stopped.
4394 */
4395 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
fbfceef3
EJ
4396 /* Skip interval for FFT reports. u32 attribute */
4397 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
4398 /* Set to report only one set of FFT results.
4399 * u32 attribute.
4400 */
4401 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
4402 /* Debug level for spectral module in driver.
4403 * 0 : Verbosity level 0
4404 * 1 : Verbosity level 1
4405 * 2 : Verbosity level 2
4406 * 3 : Matched filterID display
4407 * 4 : One time dump of FFT report
4408 * u32 attribute.
4409 */
4410 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
4411 /* Type of spectral scan request. u32 attribute.
4412 * It uses values defined in enum
4413 * qca_wlan_vendor_attr_spectral_scan_request_type.
4414 */
4415 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
16217e13
PX
4416
4417 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
4418 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
4419 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
4420};
4421
fbfceef3
EJ
4422/**
4423 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
4424 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
4425 */
4426enum qca_wlan_vendor_attr_spectral_diag_stats {
4427 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
4428 /* Number of spectral TLV signature mismatches.
4429 * u64 attribute.
4430 */
4431 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
4432 /* Number of spectral phyerror events with insufficient length when
4433 * parsing for secondary 80 search FFT report. u64 attribute.
4434 */
4435 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
4436 /* Number of spectral phyerror events without secondary 80
4437 * search FFT report. u64 attribute.
4438 */
4439 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
4440 /* Number of spectral phyerror events with vht operation segment 1 id
4441 * mismatches in search fft report. u64 attribute.
4442 */
4443 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
4444 /* Number of spectral phyerror events with vht operation segment 2 id
4445 * mismatches in search fft report. u64 attribute.
af6614ca 4446 */
fbfceef3
EJ
4447 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
4448
4449 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
4450 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
4451 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
4452};
4453
4454/**
4455 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
4456 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
4457 */
4458enum qca_wlan_vendor_attr_spectral_cap {
4459 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
4460 /* Flag attribute to indicate phydiag capability */
4461 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
4462 /* Flag attribute to indicate radar detection capability */
4463 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
4464 /* Flag attribute to indicate spectral capability */
4465 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
4466 /* Flag attribute to indicate advanced spectral capability */
4467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
98b806b0
EJ
4468 /* Spectral hardware generation. u32 attribute.
4469 * It uses values defined in enum
4470 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
4471 */
4472 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
4c02242d
EJ
4473 /* Spectral bin scaling formula ID. u16 attribute.
4474 * It uses values defined in enum
4475 * qca_wlan_vendor_spectral_scan_cap_formula_id.
4476 */
4477 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
4478 /* Spectral bin scaling param - low level offset.
4479 * s16 attribute.
4480 */
4481 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
4482 /* Spectral bin scaling param - high level offset.
4483 * s16 attribute.
4484 */
4485 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
4486 /* Spectral bin scaling param - RSSI threshold.
4487 * s16 attribute.
4488 */
4489 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
4490 /* Spectral bin scaling param - default AGC max gain.
4491 * u8 attribute.
4492 */
4493 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
fbfceef3
EJ
4494
4495 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
4496 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
4497 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
4498};
4499
4500/**
4501 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
4502 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
4503 */
4504enum qca_wlan_vendor_attr_spectral_scan_status {
4505 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
4506 /* Flag attribute to indicate whether spectral scan is enabled */
4507 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
4508 /* Flag attribute to indicate whether spectral scan is in progress*/
4509 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
4510
4511 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
4512 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
4513 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
4514};
4515
4516/**
4517 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
4518 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
4519 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
4520 * spectral scan request types.
4521 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
4522 * set the spectral parameters and start scan.
4523 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
4524 * only set the spectral parameters.
4525 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
4526 * only start the spectral scan.
4527 */
4528enum qca_wlan_vendor_attr_spectral_scan_request_type {
4529 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
4530 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
4531 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
4532};
4533
98b806b0
EJ
4534/**
4535 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
4536 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
4537 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4538 * spectral hardware generation.
4539 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
4540 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
4541 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
4542 */
4543enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
4544 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
4545 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
4546 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
4547};
4548
944f359e
SD
4549enum qca_wlan_vendor_tos {
4550 QCA_WLAN_VENDOR_TOS_BK = 0,
4551 QCA_WLAN_VENDOR_TOS_BE = 1,
4552 QCA_WLAN_VENDOR_TOS_VI = 2,
4553 QCA_WLAN_VENDOR_TOS_VO = 3,
4554};
4555
4556/**
4557 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
4558 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
4559 */
4560enum qca_wlan_vendor_attr_active_tos {
4561 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
4562 /* Type Of Service - Represented by qca_wlan_vendor_tos */
4563 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
4564 /* Flag attribute representing the start (attribute included) or stop
4565 * (attribute not included) of the respective TOS.
4566 */
4567 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
4568};
4569
cf39475b
SD
4570enum qca_wlan_vendor_hang_reason {
4571 /* Unspecified reason */
4572 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
4573 /* No Map for the MAC entry for the received frame */
4574 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
4575 /* Peer deletion timeout happened */
4576 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
4577 /* Peer unmap timeout */
4578 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
4579 /* Scan request timed out */
4580 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
4581 /* Consecutive Scan attempt failures */
4582 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
4583 /* Unable to get the message buffer */
4584 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
4585 /* Current command processing is timedout */
4586 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
4587 /* Timeout for an ACK from FW for suspend request */
4588 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
4589 /* Timeout for an ACK from FW for resume request */
4590 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
4591 /* Transmission timeout for consecutive data frames */
4592 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
4593 /* Timeout for the TX completion status of data frame */
4594 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
4595 /* DXE failure for TX/RX, DXE resource unavailability */
4596 QCA_WLAN_HANG_DXE_FAILURE = 12,
4597 /* WMI pending commands exceed the maximum count */
4598 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
4599};
4600
4601/**
4602 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
4603 * QCA_NL80211_VENDOR_SUBCMD_HANG.
4604 */
4605enum qca_wlan_vendor_attr_hang {
4606 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
4607 /* Reason for the hang - u32 attribute with a value from enum
4608 * qca_wlan_vendor_hang_reason.
4609 */
4610 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
4611
4612 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
4613 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
4614 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
4615};
4616
2115603a 4617/**
4618 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
4619 * flushing pending traffic in firmware.
4620 *
4621 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
4622 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
4623 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
4624 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
4625 * flush packets with access category.
4626 */
4627enum qca_wlan_vendor_attr_flush_pending {
4628 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
4629 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
4630 QCA_WLAN_VENDOR_ATTR_AC = 2,
4631
4632 /* keep last */
4633 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
4634 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
4635 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
4636};
4637
4c02242d
EJ
4638/**
4639 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
4640 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
4641 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4642 * Spectral bin scaling formula ID.
4643 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
4644 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
4645 * and RSSI threshold based formula.
4646 */
4647enum qca_wlan_vendor_spectral_scan_cap_formula_id {
4648 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
4649 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
4650};
4651
364039d2
KR
4652/**
4653 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
4654 * RF Operating Parameter (RROP) information is available, and if so, at which
4655 * point in the application-driver interaction sequence it can be retrieved by
4656 * the application from the driver. This point may vary by architecture and
4657 * other factors. This is a u16 value.
4658 */
4659enum qca_wlan_vendor_attr_rropavail_info {
4660 /* RROP information is unavailable. */
4661 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
4662 /* RROP information is available and the application can retrieve the
4663 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
4664 * event from the driver.
4665 */
4666 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
4667 /* RROP information is available only after a vendor specific scan
4668 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
4669 * successfully completed. The application can retrieve the information
4670 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
4671 * the driver.
4672 */
4673 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
4674};
4675
4676/**
4677 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
4678 * Representative RF Operating Parameter (RROP) information. It is sent for the
4679 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
4680 * intended for use by external Auto Channel Selection applications. It provides
4681 * guidance values for some RF parameters that are used by the system during
4682 * operation. These values could vary by channel, band, radio, and so on.
4683 */
4684enum qca_wlan_vendor_attr_rrop_info {
4685 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
4686
4687 /* Representative Tx Power List (RTPL) which has an array of nested
4688 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
4689 */
4690 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
4691
4692 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
4693 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
4694 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
4695};
4696
4697/**
4698 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
4699 * entry instances in the Representative Tx Power List (RTPL). It provides
4700 * simplified power values intended for helping external Auto channel Selection
4701 * applications compare potential Tx power performance between channels, other
4702 * operating conditions remaining identical. These values are not necessarily
4703 * the actual Tx power values that will be used by the system. They are also not
4704 * necessarily the max or average values that will be used. Instead, they are
4705 * relative, summarized keys for algorithmic use computed by the driver or
4706 * underlying firmware considering a number of vendor specific factors.
4707 */
4708enum qca_wlan_vendor_attr_rtplinst {
4709 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
4710
4711 /* Primary channel number (u8) */
4712 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
4713 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
4714 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
4715 /* Representative Tx power in dBm (s32) with emphasis on range. */
4716 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
4717
4718 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
4719 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
4720 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
4721};
4722
9b0de99f
PZ
4723/**
4724 * enum qca_wlan_vendor_attr_config_latency_level - Level for
4725 * wlan latency module.
4726 *
4727 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
4728 * power saving which would causing data exchange out of service, this
4729 * would be a big impact on latency. For latency sensitive applications over
4730 * Wi-Fi are intolerant to such operations and thus would configure them
4731 * to meet their respective needs. It is well understood by such applications
4732 * that altering the default behavior would degrade the Wi-Fi functionality
4733 * w.r.t the above pointed WLAN operations.
4734 *
4735 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
4736 * Default WLAN operation level which throughput orientated.
4737 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
4738 * Use moderate level to improve latency by limit scan duration.
4739 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
4740 * Use low latency level to benifit application like concurrent
4741 * downloading or video streaming via constraint scan/adaptive PS.
4742 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
4743 * Use ultra low latency level to benefit for gaming/voice
4744 * application via constraint scan/roaming/adaptive PS.
4745 */
4746enum qca_wlan_vendor_attr_config_latency_level {
4747 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
4748 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
4749 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
4750 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
4751 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
4752
4753 /* keep last */
4754 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
4755 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
4756 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
4757};
4758
9cc8303d
SD
4759/**
4760 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
4761 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4762 */
4763enum qca_wlan_vendor_attr_mac {
4764 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
4765
4766 /* MAC mode info list which has an array of nested values as
4767 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
4768 */
4769 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
4770
4771 /* keep last */
4772 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
4773 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
4774 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
4775};
4776
4777/**
4778 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
4779 * Wi-Fi netdev interface on a respective MAC.
4780 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
4781 */
4782enum qca_wlan_vendor_attr_mac_iface_info {
4783 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
4784 /* Wi-Fi netdev's interface index (u32) */
4785 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
4786 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
4787 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
4788
4789 /* keep last */
4790 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
4791 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
4792 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
4793};
4794
4795/**
4796 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
4797 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
4798 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4799 */
4800enum qca_wlan_vendor_attr_mac_info {
4801 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
4802 /* Hardware MAC ID associated for the MAC (u32) */
4803 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
4804 /* Band supported by the MAC at a given point.
4805 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
4806 * nl80211_band.
4807 */
4808 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
4809 /* Refers to list of WLAN netdev interfaces associated with this MAC.
4810 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
4811 */
4812 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
4813
4814 /* keep last */
4815 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
4816 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
4817 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
4818};
4819
a7769f6d
SS
4820/**
4821 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
4822 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
4823 */
4824enum qca_wlan_vendor_attr_get_logger_features {
4825 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4826 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
4827 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4828 /* keep last */
4829 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4830 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4831 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4832};
4833
4834/**
4835 * enum wifi_logger_supported_features - Values for supported logger features
4836 */
4837enum wifi_logger_supported_features {
4838 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
4839 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
4840 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
4841 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
4842 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
4843 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
4844 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
4845 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
4846 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
4847};
4848
4849/**
4850 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
4851 * capabilities features
4852 */
6965705b 4853enum qca_wlan_tdls_caps_features_supported {
a7769f6d
SS
4854 WIFI_TDLS_SUPPORT = (1 << (0)),
4855 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
4856 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
4857};
4858
4859/**
4860 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
4861 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
4862 */
6965705b 4863enum qca_wlan_vendor_attr_tdls_get_capabilities {
a7769f6d
SS
4864 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
4865 /* Indicates the max concurrent sessions */
4866 /* Unsigned 32-bit value */
4867 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
4868 /* Indicates the support for features */
4869 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
4870 */
4871 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
4872
4873 /* keep last */
4874 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
4875 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
4876 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
4877};
4878
4879/**
4880 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
4881 * command used as value for the attribute
4882 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
4883 */
6965705b 4884enum qca_wlan_offloaded_packets_sending_control {
a7769f6d
SS
4885 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
4886 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
4887 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
4888};
4889
4890/**
4891 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4892 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
4893 */
4894enum qca_wlan_vendor_attr_offloaded_packets {
4895 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
4896 /* Takes valid value from the enum
4897 * qca_wlan_offloaded_packets_sending_control
4898 * Unsigned 32-bit value
4899 */
4900 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
4901 /* Unsigned 32-bit value */
4902 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
4903 /* array of u8 len: Max packet size */
4904 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
4905 /* 6-byte MAC address used to represent source MAC address */
4906 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
4907 /* 6-byte MAC address used to represent destination MAC address */
4908 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
4909 /* Unsigned 32-bit value, in milli seconds */
4910 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
d939a8cb
AKK
4911 /* This optional unsigned 16-bit attribute is used for specifying
4912 * ethernet protocol type. If not specified ethertype defaults to IPv4.
4913 */
4914 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
a7769f6d
SS
4915
4916 /* keep last */
4917 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4918 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4919 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4920};
4921
4922/**
4923 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
4924 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
4925 */
4926enum qca_wlan_rssi_monitoring_control {
4927 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4928 QCA_WLAN_RSSI_MONITORING_START,
4929 QCA_WLAN_RSSI_MONITORING_STOP,
4930};
4931
4932/**
4933 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
4934 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
4935 */
4936enum qca_wlan_vendor_attr_rssi_monitoring {
4937 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4938 /* Takes valid value from the enum
4939 * qca_wlan_rssi_monitoring_control
4940 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
4941 */
4942 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4943 /* Unsigned 32-bit value */
4944 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4945 /* Signed 8-bit value in dBm */
4946 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4947 /* Signed 8-bit value in dBm */
4948 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4949 /* attributes to be used/received in callback */
4950 /* 6-byte MAC address used to represent current BSSID MAC address */
4951 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4952 /* Signed 8-bit value indicating the current RSSI */
4953 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4954 /* keep last */
4955 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
4956 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
4957 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
4958};
4959
4960/**
4961 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4962 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4963 */
4964enum qca_wlan_vendor_attr_ndp_params {
4965 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
4966 /* Unsigned 32-bit value
4967 * enum of sub commands values in qca_wlan_ndp_sub_cmd
4968 */
4969 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
4970 /* Unsigned 16-bit value */
4971 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
4972 /* NL attributes for data used NDP SUB cmds */
4973 /* Unsigned 32-bit value indicating a service info */
4974 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
4975 /* Unsigned 32-bit value; channel frequency in MHz */
4976 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
4977 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
4978 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
4979 /* Interface name on which NDP is being created */
4980 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
4981 /* Unsigned 32-bit value for security */
4982 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
4983 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
4984 /* Unsigned 32-bit value for QoS */
4985 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
4986 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
4987 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
4988 /* Unsigned 32-bit value for NDP instance Id */
4989 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
4990 /* Array of instance Ids */
4991 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
4992 /* Unsigned 32-bit value for initiator/responder NDP response code
6965705b
JJ
4993 * accept/reject
4994 */
a7769f6d
SS
4995 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
4996 /* NDI MAC address. An array of 6 Unsigned int8 */
4997 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
4998 /* Unsigned 32-bit value errors types returned by driver
4999 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
5000 * NanStatusType includes these values.
5001 */
5002 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
5003 /* Unsigned 32-bit value error values returned by driver
5004 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
5005 * NanInternalStatusType includes these values.
5006 */
5007 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
5008 /* Unsigned 32-bit value for Channel setup configuration
5009 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
5010 * NanDataPathChannelCfg includes these values.
5011 */
5012 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
5013 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
5014 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
5015 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
5016 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
5017 /* Security Context Identifier that contains the PMKID
5018 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
5019 */
5020 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
5021 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
5022 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
5023 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
5024 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
2cc2a0a7
SS
5025 /* Unsigned 32-bit bitmap indicating schedule update
5026 * BIT_0: NSS Update
5027 * BIT_1: Channel list update
5028 */
5029 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
5030 /* Unsigned 32-bit value for NSS */
5031 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
5032 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
5033 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
5034 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
5035 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
5036 */
5037 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
5038 /* Array of channel/band width */
5039 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
4e47eec5
NR
5040 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
5041 * This attribute is used and optional for ndp request, ndp response,
5042 * ndp indication, and ndp confirm.
5043 */
5044 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5045 /* Unsigned 16-bit value indicating transport port used by NDP.
5046 * This attribute is used and optional for ndp response, ndp indication,
5047 * and ndp confirm.
5048 */
5049 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5050 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
5051 * the Internet Assigned Numbers Authority (IANA) as per:
5052 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5053 * This attribute is used and optional for ndp response, ndp indication,
5054 * and ndp confirm.
5055 */
5056 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
2f186d59
PX
5057 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
5058 * 1:support 0:not support
5059 */
5060 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
2cc2a0a7 5061
a7769f6d
SS
5062 /* keep last */
5063 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5064 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5065 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5066};
5067
5068enum qca_wlan_ndp_sub_cmd {
5069 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5070 /* Command to create a NAN data path interface */
5071 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5072 /* Command to delete a NAN data path interface */
5073 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5074 /* Command to initiate a NAN data path session */
5075 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5076 /* Command to notify if the NAN data path session was sent */
5077 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5078 /* Command to respond to NAN data path session */
5079 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5080 /* Command to notify on the responder about the response */
5081 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5082 /* Command to initiate a NAN data path end */
5083 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5084 /* Command to notify the if end request was sent */
5085 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5086 /* Command to notify the peer about the end request */
5087 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5088 /* Command to confirm the NAN data path session is complete */
5089 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5090 /* Command to indicate the peer about the end request being received */
2cc2a0a7
SS
5091 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5092 /* Command to indicate the peer of schedule update */
5093 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
a7769f6d
SS
5094};
5095
5096/**
5097 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
5098 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
5099 */
5100enum qca_wlan_vendor_attr_nd_offload {
5101 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
5102 /* Flag to set Neighbour Discovery offload */
5103 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
5104 /* Keep last */
5105 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
5106 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
5107 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
5108};
5109
5110/**
a4016163 5111 * enum packet_filter_sub_cmd - Packet filter sub commands
a7769f6d
SS
5112 */
5113enum packet_filter_sub_cmd {
a4016163
VK
5114 /**
5115 * Write packet filter program and/or data. The driver/firmware should
5116 * disable APF before writing into local buffer and re-enable APF after
5117 * writing is done.
5118 */
a7769f6d 5119 QCA_WLAN_SET_PACKET_FILTER = 1,
a4016163 5120 /* Get packet filter feature capabilities from driver */
a7769f6d 5121 QCA_WLAN_GET_PACKET_FILTER = 2,
a4016163
VK
5122 /**
5123 * Write packet filter program and/or data. User space will send the
5124 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
5125 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
5126 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
5127 * enable/disable is given to user space with this command. Also,
5128 * user space sends the length of program portion in the buffer within
5129 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
5130 */
5131 QCA_WLAN_WRITE_PACKET_FILTER = 3,
5132 /* Read packet filter program and/or data */
5133 QCA_WLAN_READ_PACKET_FILTER = 4,
5134 /* Enable APF feature */
5135 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5136 /* Disable APF feature */
5137 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
a7769f6d
SS
5138};
5139
5140/**
5141 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
5142 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
5143 */
5144enum qca_wlan_vendor_attr_packet_filter {
5145 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5146 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
5147 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
5148 /* Unsigned 32-bit value indicating the packet filter version */
5149 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5150 /* Unsigned 32-bit value indicating the packet filter id */
5151 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
a4016163
VK
5152 /**
5153 * Unsigned 32-bit value indicating the packet filter size including
5154 * program + data.
5155 */
a7769f6d
SS
5156 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5157 /* Unsigned 32-bit value indicating the packet filter current offset */
5158 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
a4016163 5159 /* Program and/or data in bytes */
a7769f6d 5160 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
a4016163
VK
5161 /* Unsigned 32-bit value of the length of the program section in packet
5162 * filter buffer.
5163 */
5164 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
5165
a7769f6d
SS
5166 /* keep last */
5167 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5168 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5169 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5170};
5171
5172/**
5173 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
5174 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
5175 */
5176enum qca_wlan_vendor_drv_info {
5177 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5178 /* Maximum Message size info between firmware & HOST
5179 * Unsigned 32-bit value
5180 */
5181 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5182 /* keep last */
5183 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5184 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5185 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5186};
5187
5188/**
5189 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5190 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5191 */
5192enum qca_wlan_vendor_attr_wake_stats {
5193 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5194 /* Unsigned 32-bit value indicating the total count of wake event */
5195 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5196 /* Array of individual wake count, each index representing wake reason
5197 */
5198 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5199 /* Unsigned 32-bit value representing wake count array */
5200 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5201 /* Unsigned 32-bit total wake count value of driver/fw */
5202 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5203 /* Array of wake stats of driver/fw */
5204 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5205 /* Unsigned 32-bit total wake count value of driver/fw */
5206 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5207 /* Unsigned 32-bit total wake count value of packets received */
5208 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5209 /* Unsigned 32-bit wake count value unicast packets received */
5210 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5211 /* Unsigned 32-bit wake count value multicast packets received */
5212 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5213 /* Unsigned 32-bit wake count value broadcast packets received */
5214 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5215 /* Unsigned 32-bit wake count value of ICMP packets */
5216 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5217 /* Unsigned 32-bit wake count value of ICMP6 packets */
5218 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5219 /* Unsigned 32-bit value ICMP6 router advertisement */
5220 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5221 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
5222 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5223 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
5224 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5225 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5226 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5227 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5228 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5229 /* Unsigned 32-bit wake count value of receive side multicast */
5230 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5231 /* Unsigned 32-bit wake count value of a given RSSI breach */
5232 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5233 /* Unsigned 32-bit wake count value of low RSSI */
5234 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5235 /* Unsigned 32-bit value GSCAN count */
5236 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5237 /* Unsigned 32-bit value PNO complete count */
5238 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5239 /* Unsigned 32-bit value PNO match count */
5240 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5241 /* keep last */
5242 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5243 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5244 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5245};
5246
8678b14f
GY
5247/**
5248 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5249 * cmd value. Used for NL attributes for data used by
5250 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5251 */
5252enum qca_wlan_vendor_attr_thermal_cmd {
5253 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5254 /* The value of command, driver will implement different operations
5255 * according to this value. It uses values defined in
5256 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5257 * u32 attribute.
5258 */
5259 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5260
5261 /* keep last */
5262 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5263 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5264 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5265};
5266
5267/**
5268 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5269 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5270 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5271 * thermal command types sent to driver.
5272 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5273 * get thermal shutdown configuration parameters for display. Parameters
5274 * responded from driver are defined in
5275 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5276 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5277 * get temperature. Host should respond with a temperature data. It is defined
5278 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5279 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5280 * suspend action.
5281 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5282 * resume action.
5283 */
5284enum qca_wlan_vendor_attr_thermal_cmd_type {
5285 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5286 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5287 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5288 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5289};
5290
5291/**
5292 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5293 * to get chip temperature by user.
5294 * enum values are used for NL attributes for data used by
5295 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5296 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5297 */
5298enum qca_wlan_vendor_attr_thermal_get_temperature {
5299 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5300 /* Temperature value (degree Celsius) from driver.
5301 * u32 attribute.
5302 */
5303 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5304
5305 /* keep last */
5306 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5307 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5308 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5309};
5310
5311/**
5312 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
5313 * to get configuration parameters of thermal shutdown feature. Enum values are
5314 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
5315 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5316 */
5317enum qca_wlan_vendor_attr_get_thermal_params_rsp {
5318 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
5319 /* Indicate if the thermal shutdown feature is enabled.
5320 * NLA_FLAG attribute.
5321 */
5322 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
5323 /* Indicate if the auto mode is enabled.
5324 * Enable: Driver triggers the suspend/resume action.
5325 * Disable: User space triggers the suspend/resume action.
5326 * NLA_FLAG attribute.
5327 */
5328 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
5329 /* Thermal resume threshold (degree Celsius). Issue the resume command
5330 * if the temperature value is lower than this threshold.
5331 * u16 attribute.
5332 */
5333 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
5334 /* Thermal warning threshold (degree Celsius). FW reports temperature
5335 * to driver if it's higher than this threshold.
5336 * u16 attribute.
5337 */
5338 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
5339 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
5340 * if the temperature value is higher than this threshold.
5341 * u16 attribute.
5342 */
5343 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
5344 /* FW reports temperature data periodically at this interval (ms).
5345 * u16 attribute.
5346 */
5347 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
5348
5349 /* keep last */
5350 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
5351 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
5352 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
5353};
5354
5355/**
5356 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5357 * report thermal events from driver to user space.
5358 * enum values are used for NL attributes for data used by
5359 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5360 */
5361enum qca_wlan_vendor_attr_thermal_event {
5362 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5363 /* Temperature value (degree Celsius) from driver.
5364 * u32 attribute.
5365 */
5366 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5367 /* Indication of resume completion from power save mode.
5368 * NLA_FLAG attribute.
5369 */
5370 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5371
5372 /* keep last */
5373 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5374 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5375 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5376};
5377
5ac43464
KKL
5378/**
5379 * enum he_fragmentation_val - HE fragmentation support values
5380 * Indicates level of dynamic fragmentation that is supported by
5381 * a STA as a recipient.
5382 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
5383 * (HE MAC Capabilities Information field) and are used in HE Capabilities
5384 * element to advertise the support. These values are validated in the driver
5385 * to check the device capability and advertised in the HE Capabilities
5386 * element. These values are used to configure testbed device to allow the
5387 * advertised hardware capabilities to be downgraded for testing purposes.
5388 *
5389 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
5390 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
6965705b
JJ
5391 * contained within an MPDU or S-MPDU, no support for dynamic fragments
5392 * within an A-MPDU that is not an S-MPDU.
5ac43464 5393 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
6965705b
JJ
5394 * contained within an MPDU or S-MPDU and support for up to one dynamic
5395 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
5396 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
5397 * MPDU or S-MPDU.
5ac43464 5398 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
6965705b
JJ
5399 * contained within an MPDU or S-MPDU and support for multiple dynamic
5400 * fragments for each MSDU and for each A-MSDU if supported by the
5401 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
5402 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
5ac43464
KKL
5403 */
5404enum he_fragmentation_val {
5405 HE_FRAG_DISABLE,
5406 HE_FRAG_LEVEL1,
5407 HE_FRAG_LEVEL2,
5408 HE_FRAG_LEVEL3,
5409};
5410
5411/**
5412 * enum he_mcs_config - HE MCS support configuration
5413 *
5414 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
5415 * These values are used in driver to configure the HE MCS map to advertise
5416 * Tx/Rx MCS map in HE capability and these values are applied for all the
5417 * streams supported by the device. To configure MCS for different bandwidths,
5418 * vendor command needs to be sent using this attribute with appropriate value.
5419 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
5420 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
5421 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
5422 * These values are used to configure testbed device to allow the advertised
5423 * hardware capabilities to be downgraded for testing purposes. The enum values
5424 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
5425 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
5426 * These values are validated in the driver before setting the MCS map and
5427 * driver returns error if the input is other than these enum values.
5428 *
5429 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
5430 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
5431 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
5432 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
5433 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
5434 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
5435 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
5436 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
5437 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
5438 */
5439enum he_mcs_config {
5440 HE_80_MCS0_7 = 0,
5441 HE_80_MCS0_9 = 1,
5442 HE_80_MCS0_11 = 2,
5443 HE_160_MCS0_7 = 4,
5444 HE_160_MCS0_9 = 5,
5445 HE_160_MCS0_11 = 6,
5446 HE_80P80_MCS0_7 = 8,
5447 HE_80P80_MCS0_9 = 9,
5448 HE_80P80_MCS0_11 = 10,
5449};
5450
01542e65
KKL
5451/**
5452 * enum qca_wlan_ba_session_config - BA session configuration
5453 *
5454 * Indicates the configuration values for BA session configuration attribute.
5455 *
5456 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
5457 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
5458 */
5459enum qca_wlan_ba_session_config {
5460 QCA_WLAN_ADD_BA = 1,
5461 QCA_WLAN_DELETE_BA = 2,
5462};
5463
5464/**
5465 * enum qca_wlan_ac_type - Access category type
5466 *
5467 * Indicates the access category type value.
5468 *
5469 * @QCA_WLAN_AC_BE: BE access category
5470 * @QCA_WLAN_AC_BK: BK access category
5471 * @QCA_WLAN_AC_VI: VI access category
5472 * @QCA_WLAN_AC_VO: VO access category
5473 * @QCA_WLAN_AC_ALL: All ACs
5474 */
5475enum qca_wlan_ac_type {
5476 QCA_WLAN_AC_BE = 0,
5477 QCA_WLAN_AC_BK = 1,
5478 QCA_WLAN_AC_VI = 2,
5479 QCA_WLAN_AC_VO = 3,
5480 QCA_WLAN_AC_ALL = 4,
5481};
5482
26e0ada4
KKL
5483/**
5484 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
5485 *
5486 * Indicates the HE LTF configuration value.
5487 *
5488 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
5489 * based on the GI setting
5490 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
5491 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
5492 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
5493 */
5494enum qca_wlan_he_ltf_cfg {
5495 QCA_WLAN_HE_LTF_AUTO = 0,
5496 QCA_WLAN_HE_LTF_1X = 1,
5497 QCA_WLAN_HE_LTF_2X = 2,
5498 QCA_WLAN_HE_LTF_4X = 3,
5499};
5500
420b5dd8
KKL
5501/**
5502 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
5503 *
5504 * Indicates the HE trigger frame MAC padding duration value.
5505 *
5506 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
5507 * process the trigger frame.
5508 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
5509 * trigger frame.
5510 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
5511 * trigger frame.
5512 */
5513enum qca_wlan_he_mac_padding_dur {
5514 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
5515 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
5516 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
5517};
5518
292bce08
KKL
5519/**
5520 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
5521 *
5522 * Indicates the HE Operating mode control channel width setting value.
5523 *
5524 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
5525 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
5526 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
5527 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
5528 */
5529enum qca_wlan_he_om_ctrl_ch_bw {
5530 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
5531 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
5532 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
5533 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
5534};
5535
166ab0b7
KKL
5536/**
5537 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
5538 * HE operating mode control transmit request. These attributes are
5539 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
5540 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5541 *
5542 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
5543 * indicates the maximum number of spatial streams, NSS, that the STA
5544 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
5545 * and is set to NSS - 1.
5546 *
5547 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
5548 * indicates the operating channel width supported by the STA for both
5549 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
5550 *
5551 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
5552 * indicates the all trigger based UL MU operations by the STA.
5553 * 0 - UL MU operations are enabled by the STA.
5554 * 1 - All triggered UL MU transmissions are suspended by the STA.
5555 *
5556 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
5557 * indicates the maximum number of space-time streams, NSTS, that
5558 * the STA supports in transmission and is set to NSTS - 1.
5559 */
5560enum qca_wlan_vendor_attr_he_omi_tx {
5561 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
5562 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
5563 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
5564 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
5565 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
5566
5567 /* keep last */
5568 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
5569 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
5570 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
5571};
5572
5ac43464
KKL
5573/* Attributes for data used by
5574 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
5575 */
5576enum qca_wlan_vendor_attr_wifi_test_config {
5577 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
5578 /* 8-bit unsigned value to configure the driver to enable/disable
5579 * WMM feature. This attribute is used to configure testbed device.
5580 * 1-enable, 0-disable
5581 */
5582 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
5583
5584 /* 8-bit unsigned value to configure the driver to accept/reject
5585 * the addba request from peer. This attribute is used to configure
5586 * the testbed device.
5587 * 1-accept addba, 0-reject addba
5588 */
5589 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
5590
5591 /* 8-bit unsigned value to configure the driver to send or not to
5592 * send the addba request to peer.
5593 * This attribute is used to configure the testbed device.
5594 * 1-send addba, 0-do not send addba
5595 */
5596 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
5597
5598 /* 8-bit unsigned value to indicate the HE fragmentation support.
5599 * Uses enum he_fragmentation_val values.
5600 * This attribute is used to configure the testbed device to
5601 * allow the advertised hardware capabilities to be downgraded
5602 * for testing purposes.
5603 */
5604 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
5605
5606 /* 8-bit unsigned value to indicate the HE MCS support.
5607 * Uses enum he_mcs_config values.
5608 * This attribute is used to configure the testbed device to
5609 * allow the advertised hardware capabilities to be downgraded
5610 * for testing purposes.
5611 */
5612 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
5613
ba608044
KKL
5614 /* 8-bit unsigned value to configure the driver to allow or not to
5615 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
5616 * This attribute is used to configure the testbed device.
5617 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
5618 */
5619 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
5620
01542e65
KKL
5621 /* 8-bit unsigned value to configure the driver to add a
5622 * new BA session or delete the existing BA session for
5623 * given TID. ADDBA command uses the buffer size and TID
5624 * configuration if user specifies the values else default
5625 * value for buffer size is used for all TIDs if the TID
5626 * also not specified. For DEL_BA command TID value is
5627 * required to process the command.
5628 * Uses enum qca_wlan_ba_session_config values.
5629 * This attribute is used to configure the testbed device.
5630 */
5631 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
5632
1bac151e 5633 /* 16-bit unsigned value to configure the buffer size in addba
01542e65
KKL
5634 * request and response frames.
5635 * This attribute is used to configure the testbed device.
1bac151e 5636 * The range of the value is 0 to 256.
01542e65
KKL
5637 */
5638 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
5639
5640 /* 8-bit unsigned value to configure the buffer size in addba
5641 * request and response frames.
5642 * This attribute is used to configure the testbed device.
5643 */
5644 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
5645
5646 /* 8-bit unsigned value to configure the no ack policy.
5647 * To configure no ack policy, access category value is
5648 * required to process the command.
5649 * This attribute is used to configure the testbed device.
5650 * 1 - enable no ack, 0 - disable no ack.
5651 */
5652 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
5653
5654 /* 8-bit unsigned value to configure the AC for no ack policy
5655 * This attribute is used to configure the testbed device.
5656 * Uses the enum qca_wlan_ac_type values.
5657 */
5658 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
5659
26e0ada4
KKL
5660 /* 8-bit unsigned value to configure the HE LTF
5661 * This attribute is used to configure the testbed device.
5662 * Uses the enum qca_wlan_he_ltf_cfg values.
5663 */
5664 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
5665
38f60142
KKL
5666 /* 8-bit unsigned value to configure the tx beamformee.
5667 * This attribute is used to configure the testbed device.
5668 * 1-enable, 0-disable.
5669 */
5670 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
5671
6cc77193
KKL
5672 /* 8-bit unsigned value to configure the tx beamformee number
5673 * of space-time streams.
5674 * This attribute is used to configure the testbed device.
5675 * The range of the value is 0 to 8.
5676 */
5677 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
5678
7bf86e44
KKL
5679 /* 8-bit unsigned value to configure the MU EDCA params for given AC
5680 * This attribute is used to configure the testbed device.
5681 * Uses the enum qca_wlan_ac_type values.
5682 */
5683 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
5684
5685 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
5686 * To configure MU EDCA AIFSN value, MU EDCA access category value
5687 * is required to process the command.
5688 * This attribute is used to configure the testbed device.
5689 */
5690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
5691
5692 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
5693 * given AC.
5694 * To configure MU EDCA ECW min value, MU EDCA access category value
5695 * is required to process the command.
5696 * This attribute is used to configure the testbed device.
5697 */
5698 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
5699
5700 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
5701 * given AC.
5702 * To configure MU EDCA ECW max value, MU EDCA access category value
5703 * is required to process the command.
5704 * This attribute is used to configure the testbed device.
5705 */
5706 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
5707
5708 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
5709 * To configure MU EDCA timer value, MU EDCA access category value
5710 * is required to process the command.
5711 * This attribute is used to configure the testbed device.
5712 */
5713 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
5714
420b5dd8
KKL
5715 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
5716 * duration.
5717 * This attribute is used to configure the testbed device.
5718 * Uses the enum qca_wlan_he_mac_padding_dur values.
5719 */
5720 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
5721
cbdf5a49
KKL
5722 /* 8-bit unsigned value to override the MU EDCA params to defaults
5723 * regardless of the AP beacon MU EDCA params. If it is enabled use
5724 * the default values else use the MU EDCA params from AP beacon.
5725 * This attribute is used to configure the testbed device.
5726 * 1-enable, 0-disable.
5727 */
5728 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
5729
13dd13fc
KKL
5730 /* 8-bit unsigned value to configure the support for receiving
5731 * an MPDU that contains an operating mode control subfield.
5732 * This attribute is used to configure the testbed device.
5733 * 1-enable, 0-disable.
5734 */
5735 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
5736
60377efc
VRY
5737 /* Nested attribute values required to setup the TWT session.
5738 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
5739 * information to set up the session. It contains broadcast flags,
5740 * set_up flags, trigger value, flow type, flow ID, wake interval
5741 * exponent, protection, target wake time, wake duration, wake interval
5742 * mantissa. These nested attributes are used to setup a host triggered
5743 * TWT session.
5744 */
5745 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
5746
5747 /* This nested attribute is used to terminate the current TWT session.
5748 * It does not currently carry any attributes.
5749 */
5750 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
5751
5752 /* This nested attribute is used to suspend the current TWT session.
5753 * It does not currently carry any attributes.
5754 */
5755 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
5756
5757 /* Nested attribute values to indicate the request for resume.
5758 * This attribute is used to resume the TWT session.
5759 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
5760 * parameters required to resume the TWT session.
5761 */
5762 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
5763
292bce08
KKL
5764 /* 8-bit unsigned value to set the HE operating mode control
5765 * (OM CTRL) Channel Width subfield.
5766 * The Channel Width subfield indicates the operating channel width
5767 * supported by the STA for both reception and transmission.
5768 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
5769 * This setting is cleared with the
5770 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5771 * flag attribute to reset defaults.
5772 * This attribute is used to configure the testbed device.
5773 */
5774 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
5775
5776 /* 8-bit unsigned value to configure the number of spatial
5777 * streams in HE operating mode control field.
5778 * This setting is cleared with the
5779 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5780 * flag attribute to reset defaults.
5781 * This attribute is used to configure the testbed device.
5782 */
5783 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
5784
5785 /* Flag attribute to configure the UL MU disable bit in
5786 * HE operating mode control field.
5787 * This setting is cleared with the
5788 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5789 * flag attribute to reset defaults.
5790 * This attribute is used to configure the testbed device.
5791 */
5792 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
5793
5794 /* Flag attribute to clear the previously set HE operating mode
5795 * control field configuration.
5796 * This attribute is used to configure the testbed device to reset
5797 * defaults to clear any previously set HE operating mode control
5798 * field configuration.
5799 */
5800 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
5801
a94aab6d
KKL
5802 /* 8-bit unsigned value to configure HE single user PPDU
5803 * transmission. By default this setting is disabled and it
5804 * is disabled in the reset defaults of the device configuration.
5805 * This attribute is used to configure the testbed device.
5806 * 1-enable, 0-disable
5807 */
5808 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
5809
5d332a13
KKL
5810 /* 8-bit unsigned value to configure action frame transmission
5811 * in HE trigger based PPDU transmission.
5812 * By default this setting is disabled and it is disabled in
5813 * the reset defaults of the device configuration.
5814 * This attribute is used to configure the testbed device.
5815 * 1-enable, 0-disable
5816 */
5817 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
5818
166ab0b7
KKL
5819 /* Nested attribute to indicate HE operating mode control field
5820 * transmission. It contains operating mode control field Nss,
5821 * channel bandwidth, Tx Nsts and UL MU disable attributes.
5822 * These nested attributes are used to send HE operating mode control
5823 * with configured values.
5824 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
5825 * This attribute is used to configure the testbed device.
5826 */
5827 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
5828
5829 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
5830 * support for the reception of a frame that carries an HE variant
5831 * HT Control field.
5832 * This attribute is used to configure the testbed device.
5833 * 1-enable, 0-disable
5834 */
5835 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
5836
5ac43464
KKL
5837 /* keep last */
5838 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
5839 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
5840 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
5841};
5842
6b21df0b
KP
5843/**
5844 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
5845 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5846 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
5847 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
5848 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
5849 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
5850 * statistics of an unassociated station by specifying the MAC address in
5851 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
5852 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
5853 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
5854 * the statistics of all unassociated stations by specifying the Broadcast MAC
5855 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
5856 * above procedure. In the response, driver shall specify statistics
5857 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
5858 */
5859enum qca_wlan_vendor_attr_bss_filter {
5860 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
5861 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
5862 /* Other BSS filter type, unsigned 8 bit value. One of the values
5863 * in enum qca_wlan_vendor_bss_filter_type.
5864 */
5865 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
5866 /* Other BSS filter action, unsigned 8 bit value. One of the values
5867 * in enum qca_wlan_vendor_bss_filter_action.
5868 */
5869 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
5870 /* Array of nested attributes where each entry is the statistics
5871 * information of the specified station that belong to another BSS.
5872 * Attributes for each entry are taken from enum
5873 * qca_wlan_vendor_bss_filter_sta_stats.
5874 * Other BSS station configured in
5875 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
5876 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
5877 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
5878 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
5879 */
5880 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
5881
5882 /* keep last */
5883 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
5884 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
5885 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
5886};
5887
5888/**
5889 * enum qca_wlan_vendor_bss_filter_type - Type of
5890 * filter used in other BSS filter operations. Used by the vendor command
5891 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5892 *
5893 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
5894 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
5895 */
5896enum qca_wlan_vendor_bss_filter_type {
5897 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
5898 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
5899};
5900
5901/**
5902 * enum qca_wlan_vendor_bss_filter_action - Type of
5903 * action in other BSS filter operations. Used by the vendor command
5904 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5905 *
5906 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
5907 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
5908 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
5909 */
5910enum qca_wlan_vendor_bss_filter_action {
5911 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
5912 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
5913 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
5914};
5915
5916/**
5917 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
5918 * the statistics of a specific unassociated station belonging to another BSS.
5919 * The statistics provides information of the unassociated station
5920 * filtered by other BSS operation - such as MAC, signal value.
5921 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5922 *
5923 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
5924 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
5925 * of the station. Unsigned 8 bit number containing RSSI.
5926 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
5927 * driver for the last received RSSI. Unsigned 64 bit number containing
5928 * nanoseconds from the boottime.
5929 */
5930enum qca_wlan_vendor_bss_filter_sta_stats {
5931 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
5932 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
5933 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
5934 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
5935
5936 /* keep last */
5937 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
5938 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
5939 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
5940};
5941
495aebd3
NK
5942/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
5943 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
5944 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5945 */
5946enum qca_wlan_nan_ext_subcmd_type {
5947 /* Subcmd of type NAN Enable Request */
5948 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
5949 /* Subcmd of type NAN Disable Request */
5950 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
5951};
5952
5953/**
5954 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
5955 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5956 */
5957enum qca_wlan_vendor_attr_nan_params {
5958 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
5959 /* Carries NAN command for firmware component. Every vendor command
5960 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
5961 * payload containing the NAN command. NLA_BINARY attribute.
5962 */
5963 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
5964 /* Indicates the type of NAN command sent with
5965 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
5966 * describes the possible range of values. This attribute is mandatory
5967 * if the command being issued is either
5968 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
5969 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
5970 */
5971 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
5972 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
5973 * band. This attribute is mandatory when command type is
5974 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
5975 */
5976 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
5977 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
5978 * band. This attribute is optional and should be included when command
5979 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
5980 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
5981 */
5982 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
5983
5984 /* keep last */
5985 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
5986 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
5987 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
5988};
5989
60377efc
VRY
5990/**
5991 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
5992 * TWT (Target Wake Time) setup request. These attributes are sent as part of
5993 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
5994 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5995 *
5996 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
5997 * Disable (flag attribute not present) - Individual TWT
5998 * Enable (flag attribute present) - Broadcast TWT.
5999 * Individual means the session is between the STA and the AP.
6000 * This session is established using a separate negotiation between
6001 * STA and AP.
6002 * Broadcast means the session is across multiple STAs and an AP. The
6003 * configuration parameters are announced in Beacon frames by the AP.
6004 *
6005 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
6006 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
6007 * specify the TWT request type
6008 *
6009 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
6010 * Enable (flag attribute present) - TWT with trigger support.
6011 * Disable (flag attribute not present) - TWT without trigger support.
6012 * Trigger means the AP will send the trigger frame to allow STA to send data.
6013 * Without trigger, the STA will wait for the MU EDCA timer before
6014 * transmitting the data.
6015 *
6016 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
6017 * 0 - Announced TWT - In this mode, STA may skip few service periods to
6018 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
6019 * NULL frame to AP.
6020 * 1 - Unannounced TWT - The STA will wakeup during every SP.
6021 *
6022 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
6023 * Flow ID is the unique identifier for each TWT session.
6024 * Currently this is not required and dialog ID will be set to zero.
6025 *
6026 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
6027 * This attribute (exp) is used along with the mantissa to derive the
6028 * wake interval using the following formula:
6029 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
6030 * Wake interval is the interval between 2 successive SP.
6031 *
6032 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
6033 * Enable (flag attribute present) - Protection required.
6034 * Disable (flag attribute not present) - Protection not required.
6035 * If protection is enabled, then the AP will use protection
6036 * mechanism using RTS/CTS to self to reserve the airtime.
6037 *
6038 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
6039 * This attribute is used as the SP offset which is the offset from
6040 * TSF after which the wake happens. The units are in microseconds. If
6041 * this attribute is not provided, then the value will be set to zero.
6042 *
6043 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
6044 * This is the duration of the service period. The units are in TU.
6045 *
6046 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
6047 * This attribute is used to configure wake interval mantissa.
6048 * The units are in TU.
6049 */
6050enum qca_wlan_vendor_attr_twt_setup {
6051 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
6052 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
6053 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
6054 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
6055 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
6056 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
6057 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
6058 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
6059 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
6060 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
6061 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
6062
6063 /* keep last */
6064 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
6065 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
6066 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
6067};
6068
6069/**
6070 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
6071 * TWT (Target Wake Time) resume request. These attributes are sent as part of
6072 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
6073 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
6074 *
6075 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
6076 * This attribute is used as the SP offset which is the offset from
6077 * TSF after which the wake happens. The units are in microseconds.
6078 * If this attribute is not provided, then the value will be set to
6079 * zero.
6080 *
6081 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
6082 * This attribute represents the next TWT subfield size.
6083 */
6084enum qca_wlan_vendor_attr_twt_resume {
6085 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
6086 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
6087 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
6088
6089 /* keep last */
6090 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
6091 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
6092 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
6093};
6094
6095/**
6096 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
6097 * Represents the setup type being requested for TWT.
6098 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
6099 * parameters but relying on AP to fill the parameters during the negotiation.
6100 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
6101 * values which the AP may accept or AP may provide alternative parameters
6102 * which the STA may accept.
6103 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
6104 * alternate parameters than the requested ones.
6105 */
6106enum qca_wlan_vendor_twt_setup_req_type {
6107 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
6108 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
6109 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
6110};
6111
edb509d4 6112/**
6113 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
6114 *
6115 * Indicates the type of roam scan event sent by firmware/driver.
6116 *
6117 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
6118 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
6119 */
6120enum qca_wlan_roam_scan_event_type {
6121 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
6122 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
6123};
6124
6125/**
6126 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
6127 *
6128 * Indicates the reason for triggering roam scan by firmware/driver.
6129 *
6130 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
6131 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
6132 */
6133enum qca_wlan_roam_scan_trigger_reason {
6134 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
6135 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
6136};
6137
6138/**
6139 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
6140 * roam scan related details from driver/firmware to user space. enum values
6141 * are used for NL attributes sent with
6142 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
6143 */
6144enum qca_wlan_vendor_attr_roam_scan {
6145 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
6146 /* Encapsulates type of roam scan event being reported. enum
6147 * qca_wlan_roam_scan_event_type describes the possible range of
6148 * values. u32 attribute.
6149 */
6150 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
6151 /* Encapsulates reason for triggering roam scan. enum
6152 * qca_wlan_roam_scan_trigger_reason describes the possible range of
6153 * values. u32 attribute.
6154 */
6155 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
6156
6157 /* keep last */
6158 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
6159 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
6160 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
6161};
6162
77fcd747
VT
6163/**
6164 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
6165 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
6166 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
6167 */
6168enum qca_wlan_vendor_cfr_method {
6169 /* CFR method using QOS Null frame */
6170 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
6171};
6172
6173/**
6174 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
6175 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
6176 * Channel Frequency Response capture parameters and enable periodic CFR
6177 * capture.
6178 */
6179enum qca_wlan_vendor_peer_cfr_capture_attr {
6180 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
6181 /* 6-byte MAC address of the peer.
6182 * This attribute is mandatory.
6183 */
6184 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
6185 /* Enable peer CFR Capture, flag attribute.
6186 * This attribute is mandatory to enable peer CFR capture.
6187 * If this attribute is not present, peer CFR capture is disabled.
6188 */
6189 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
6190 /* BW of measurement, attribute uses the values in enum nl80211_chan_width
6191 * Supported values: 20, 40, 80, 80+80, 160.
6192 * Note that all targets may not support all bandwidths.
6193 * u8 attribute. This attribute is mandatory if attribute
6194 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6195 */
6196 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
6197 /* Periodicity of CFR measurement in msec.
6198 * Periodicity should be a multiple of Base timer.
6199 * Current Base timer value supported is 10 msecs (default).
6200 * 0 for one shot capture. u32 attribute.
6201 * This attribute is mandatory if attribute
6202 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6203 */
6204 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
6205 /* Method used to capture Channel Frequency Response.
6206 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
6207 * u8 attribute. This attribute is mandatory if attribute
6208 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6209 */
6210 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
6211 /* Enable periodic CFR capture, flag attribute.
6212 * This attribute is mandatory to enable Periodic CFR capture.
6213 * If this attribute is not present, periodic CFR capture is disabled.
6214 */
6215 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
6216
6217 /* Keep last */
6218 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
6219 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
6220 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
6221};
6222
a626fb10 6223/**
6224 * enum qca_wlan_throughput_level - Current throughput level
6225 *
6226 * Indicates the current level of throughput calculated by the driver. The
6227 * driver may choose different thresholds to decide whether the throughput level
6228 * is low or medium or high based on variety of parameters like physical link
6229 * capacity of the current connection, the number of packets being dispatched
6230 * per second, etc. The throughput level events might not be consistent with the
6231 * actual current throughput value being observed.
6232 *
6233 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
6234 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
6235 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
6236 */
6237enum qca_wlan_throughput_level {
6238 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
6239 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
6240 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
6241};
6242
6243/**
6244 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
6245 * report throughput changes from the driver to user space. enum values are used
6246 * for netlink attributes sent with
6247 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
6248 */
6249enum qca_wlan_vendor_attr_throughput_change {
6250 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
6251 /* Indicates the direction of throughput in which the change is being
6252 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
6253 */
6254 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
6255 /* Indicates the newly observed throughput level. enum
6256 * qca_wlan_throughput_level describes the possible range of values.
6257 * u8 attribute.
6258 */
6259 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
6260 /* Indicates the driver's guidance on the new value to be set to
6261 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
6262 * driver may optionally include this attribute.
6263 */
6264 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
6265 /* Indicates the driver's guidance on the new value to be set to
6266 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
6267 * values are from -31 to 31. The driver may optionally include this
6268 * attribute.
6269 */
6270 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
6271 /* Indicates the driver's guidance on the new value to be set to
6272 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
6273 * optionally include this attribute.
6274 */
6275 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
6276
6277 /* keep last */
6278 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
6279 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
6280 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
6281};
6282
d5544021
SA
6283/**
6284 * enum qca_coex_config_profiles - This enum defines different types of
6285 * traffic streams that can be prioritized one over the other during coex
6286 * scenarios.
6287 * The types defined in this enum are categorized in the below manner.
6288 * 0 - 31 values corresponds to WLAN
6289 * 32 - 63 values corresponds to BT
6290 * 64 - 95 values corresponds to Zigbee
6291 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
6292 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
6293 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
6294 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
6295 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
6296 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
6297 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
6298 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
6299 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
6300 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
6301 * @QCA_BT_A2DP: Prioritize BT A2DP
6302 * @QCA_BT_BLE: Prioritize BT BLE
6303 * @QCA_BT_SCO: Prioritize BT SCO
6304 * @QCA_ZB_LOW: Prioritize Zigbee Low
6305 * @QCA_ZB_HIGH: Prioritize Zigbee High
6306 */
6307enum qca_coex_config_profiles {
6308 /* 0 - 31 corresponds to WLAN */
6309 QCA_WIFI_STA_DISCOVERY = 0,
6310 QCA_WIFI_STA_CONNECTION = 1,
6311 QCA_WIFI_STA_CLASS_3_MGMT = 2,
6312 QCA_WIFI_STA_DATA = 3,
6313 QCA_WIFI_STA_ALL = 4,
6314 QCA_WIFI_SAP_DISCOVERY = 5,
6315 QCA_WIFI_SAP_CONNECTION = 6,
6316 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
6317 QCA_WIFI_SAP_DATA = 8,
6318 QCA_WIFI_SAP_ALL = 9,
23979401 6319 QCA_WIFI_CASE_MAX = 31,
d5544021
SA
6320 /* 32 - 63 corresponds to BT */
6321 QCA_BT_A2DP = 32,
6322 QCA_BT_BLE = 33,
6323 QCA_BT_SCO = 34,
23979401 6324 QCA_BT_CASE_MAX = 63,
d5544021
SA
6325 /* 64 - 95 corresponds to Zigbee */
6326 QCA_ZB_LOW = 64,
23979401
JL
6327 QCA_ZB_HIGH = 65,
6328 QCA_ZB_CASE_MAX = 95,
6329 /* 0xff is default value if the u8 profile value is not set. */
6330 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
6331};
6332
6333/**
6334 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
6335 * This enum defines the valid set of values of coex configuration types. These
6336 * values may used by attribute
6337 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
6338 *
6339 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
6340 * weights to default values.
6341 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
6342 * weights with configurability value.
6343 */
6344enum qca_vendor_attr_coex_config_types {
6345 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
6346 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
6347 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
d5544021
SA
6348};
6349
6350/**
6351 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
6352 *
6353 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
6354 * length array of 8-bit values from enum qca_coex_config_profiles.
6355 * FW will prioritize the profiles in the order given in the array encapsulated
6356 * in this attribute.
6357 * For example:
6358 * -----------------------------------------------------------------------
6359 * | 1 | 34 | 32 | 65 |
6360 * -----------------------------------------------------------------------
6361 * If the attribute contains the values defined in above array then it means
6362 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
6363 * 2) BT_SCO has priority over BT_A2DP.
6364 * 3) BT_A2DP has priority over ZIGBEE HIGH.
6365 * Profiles which are not listed in this array shall not be preferred over the
6366 * profiles which are listed in the array as a part of this attribute.
6367 */
6368enum qca_vendor_attr_coex_config {
6369 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
6370 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
6371
6372 /* Keep last */
6373 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
6374 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
6375 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
6376};
6377
23979401
JL
6378/**
6379 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
6380 * attributes
6381 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
6382 *
6383 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
6384 * Indicate config type.
6385 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
6386 *
6387 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
6388 * Indicate the Priority 1 profiles.
6389 * The profiles are 8-bit values from enum qca_coex_config_profiles.
6390 * In same priority level, maximum to 4 profiles can be set here.
6391 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
6392 * Indicate the Priority 2 profiles.
6393 * The profiles are 8-bit values from enum qca_coex_config_profiles.
6394 * In same priority level, maximum to 4 profiles can be set here.
6395 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
6396 * Indicate the Priority 3 profiles.
6397 * The profiles are 8-bit values from enum qca_coex_config_profiles.
6398 * In same priority level, maximum to 4 profiles can be set here.
6399 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
6400 * Indicate the Priority 4 profiles.
6401 * The profiles are 8-bit values from enum qca_coex_config_profiles.
6402 * In same priority level, maximum to 4 profiles can be set here.
6403 * NOTE:
6404 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
6405 * arrangement:
6406 * 1: In the same u32 attribute (priority x), the profiles enum values own
6407 * same priority level.
6408 * 2: 0xff is default value if the u8 profile value is not set.
6409 * 3: max to 4 rules/profiles in same priority level.
6410 * 4: max to 4 priority level (priority 1 - priority 4)
6411 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
6412 * hybrid rules not support.
6413 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
6414 * remain blank to reset all parameters.
6415 * For example:
6416 *
6417 * If the attributes as follow:
6418 * priority 1:
6419 * ------------------------------------
6420 * | 0xff | 0 | 1 | 2 |
6421 * ------------------------------------
6422 * priority 2:
6423 * -------------------------------------
6424 * | 0xff | 0xff | 0xff | 32 |
6425 * -------------------------------------
6426 * priority 3:
6427 * -------------------------------------
6428 * | 0xff | 0xff | 0xff | 65 |
6429 * -------------------------------------
6430 * then it means:
6431 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
6432 * owns same priority level.
6433 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
6434 * has priority over BT_A2DP and ZB_HIGH.
6435 * 3: BT_A2DP has priority over ZB_HIGH.
6436 */
6437
6438enum qca_vendor_attr_coex_config_three_way {
6439 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
6440 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
6441 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
6442 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
6443 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
6444 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
6445
6446 /* Keep last */
6447 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
6448 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
6449 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
6450};
6451
acecac4c
SD
6452/**
6453 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
6454 *
6455 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
6456 * (STA/AP) for the connected link.
6457 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
6458 * &struct nl80211_sta_flag_update for the respective connected link. MAC
6459 * address of the peer represented by
6460 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
6461 */
6462enum qca_wlan_vendor_attr_link_properties {
6463 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
6464 /* 1 - 3 are reserved */
6465 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
6466 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
6467
6468 /* Keep last */
6469 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
6470 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
6471 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
6472};
6473
1682c623 6474#endif /* QCA_VENDOR_H */