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