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