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