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