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