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