2 * Qualcomm Atheros OUI and vendor specific assignments
3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
4 * Copyright (c) 2018, The Linux Foundation
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
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.
20 #define OUI_QCA 0x001374
23 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
25 enum qca_radiotap_vendor_ids
{
26 QCA_RADIOTAP_VID_WLANTEST
= 0,
30 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
32 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
34 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
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.
43 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
44 * ranges to avoid to reduce issues due to interference or internal
45 * co-existence information in the driver. The event data structure is
46 * defined in struct qca_avoid_freq_list.
48 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52 * NAN Request/Response and NAN Indication messages. These messages are
53 * interpreted between the framework and the firmware component. While
54 * sending the command from userspace to the driver, payload is not
55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56 * is used when receiving vendor events in userspace from the driver.
58 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
59 * used to configure PMK to the driver even when not connected. This can
60 * be used to request offloading of key management operations. Only used
61 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
63 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
64 * NL80211_CMD_ROAM event with optional attributes including information
65 * from offloaded key management operation. Uses
66 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
67 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
69 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
70 * invoke the ACS function in device and pass selected channels to
73 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
74 * supported by the driver. enum qca_wlan_vendor_features defines
75 * the possible features.
77 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
78 * which supports DFS offloading, to indicate a channel availability check
81 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
82 * which supports DFS offloading, to indicate a channel availability check
85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
86 * which supports DFS offloading, to indicate that the channel availability
87 * check aborted, no change to the channel status.
89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
90 * driver, which supports DFS offloading, to indicate that the
91 * Non-Occupancy Period for this channel is over, channel becomes usable.
93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
94 * which supports DFS offloading, to indicate a radar pattern has been
95 * detected. The channel is now unusable.
97 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
98 * based on enum wifi_logger_supported_features. Attributes defined in
99 * enum qca_wlan_vendor_attr_get_logger_features.
101 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
102 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
103 * attribute for this command. Attributes defined in
104 * enum qca_wlan_vendor_attr_wifi_logger_start.
106 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
107 * capabilities of the driver, parameters includes the attributes defined
108 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
110 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
111 * sending of certain periodic IP packet to firmware, attributes defined in
112 * enum qca_wlan_vendor_attr_offloaded_packets.
114 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
115 * monitoring, defines min and max RSSI which are configured for RSSI
116 * monitoring. Also used to notify the RSSI breach and provides the BSSID
117 * and RSSI value that was breached. Attributes defined in
118 * enum qca_wlan_vendor_attr_rssi_monitoring.
120 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
121 * Data Path (NDP) related operations, attributes defined in
122 * enum qca_wlan_vendor_attr_ndp_params.
124 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
125 * Neighbour Discovery offload, attributes defined in
126 * enum qca_wlan_vendor_attr_nd_offload.
128 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
129 * configuration parameter for BPF packet filter, attributes defined in
130 * enum qca_wlan_vendor_attr_packet_filter.
132 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
133 * maximum supported size, attributes defined in
134 * enum qca_wlan_vendor_drv_info.
136 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
137 * data about wake reasons and datapath IP statistics, attributes defined
138 * in enum qca_wlan_vendor_attr_wake_stats.
140 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
141 * for IEEE 802.11 communicating outside the context of a basic service
142 * set, called OCB command. Uses the attributes defines in
143 * enum qca_wlan_vendor_attr_ocb_set_config.
145 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
146 * UTC time. Use the attributes defines in
147 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
149 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
150 * sending OCB timing advert frames. Uses the attributes defines in
151 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
153 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
154 * OCB timing advert. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
158 * timer value. Uses the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
161 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
162 * start the P2P Listen offload function in device and pass the listen
163 * channel, period, interval, count, device types, and vendor specific
164 * information elements to the device driver and firmware.
165 * Uses the attributes defines in
166 * enum qca_wlan_vendor_attr_p2p_listen_offload.
168 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
169 * indicate stop request/response of the P2P Listen offload function in
170 * device. As an event, it indicates either the feature stopped after it
171 * was already running or feature has actually failed to start. Uses the
172 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
174 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
175 * beaconing, this sub command provides the driver, the frequencies on the
176 * 5 GHz band to check for any radar activity. Driver selects one channel
177 * from this priority list provided through
178 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
179 * to check for radar activity on it. If no radar activity is detected
180 * during the channel availability check period, driver internally switches
181 * to the selected frequency of operation. If the frequency is zero, driver
182 * internally selects a channel. The status of this conditional switch is
183 * indicated through an event using the same sub command through
184 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
185 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
187 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
188 * attributes defined in enum qca_wlan_gpio_attr.
190 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
191 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
192 * capabilities are to be fetched and other
193 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
194 * requested capabilities.
196 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
197 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
200 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
201 * indoor location features. Capabilities are reported in
202 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
204 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
205 * (fine timing measurement) session with one or more peers.
206 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
207 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
208 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
209 * events will be reported, followed by
210 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
212 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
214 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
215 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
216 * status code indicating session was aborted.
218 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
219 * results for one peer. Results are reported in
220 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
222 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
223 * FTM session is finished, either successfully or aborted by
226 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
227 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
228 * to enable or disable the responder. LCI/LCR reports can be
229 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
230 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
231 * times to update the LCI/LCR reports.
233 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
234 * arrival) measurement with a single peer. Specify peer MAC address in
235 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
236 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
237 * scan results cache and use the frequency from there).
238 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
239 * Measurement result is reported in
240 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
242 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
243 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
245 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
246 * the AOA measurement result.
247 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
248 * success/failure status is reported in
249 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
250 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
251 * The antenna array(s) used in the measurement are reported in
252 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
254 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
255 * data as per the given parameters.
257 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
260 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
261 * configuration for a DMG RF sector. Specify sector index in
262 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
263 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
264 * to return sector information for in
265 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
266 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
267 * exact time where information was captured in
268 * QCA_WLAN_VENDOR_ATTR_TSF.
270 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
271 * configuration for a DMG RF sector. Specify sector index in
272 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
273 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
274 * for one or more DMG RF modules in
275 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
277 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
278 * DMG RF sector for a station. This is the sector that the HW
279 * will use to communicate with the station. Specify the MAC address
280 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
281 * needed for unassociated station). Specify sector type to return in
282 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
283 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
284 * Also return the exact time where the information was captured
285 * in QCA_WLAN_VENDOR_ATTR_TSF.
287 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
288 * selected DMG RF sector for a station. This is the sector that
289 * the HW will use to communicate with the station.
290 * Specify the MAC address of associated station/AP/PCP in
291 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
292 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
293 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
294 * The selected sector will be locked such that it will not be
295 * modified like it normally does (for example when station
296 * moves around). To unlock the selected sector for a station
297 * pass the special value 0xFFFF in the sector index. To unlock
298 * all connected stations also pass a broadcast MAC address.
300 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
301 * in the host driver. The different TDLS configurations are defined
302 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
304 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
305 * capabilities. The response uses the attributes defined in
306 * enum qca_wlan_vendor_attr_get_he_capabilities.
308 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
309 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
310 * carries the scan cookie of the corresponding scan request. The scan
311 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
313 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
314 * Absorption Rate (SAR) power limits. A critical regulation for
315 * FCC compliance, OEMs require methods to set SAR limits on TX
316 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
317 * attributes are used with this command.
319 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
320 * host driver for offloading the implementation of Auto Channel Selection
321 * (ACS) to an external user space entity. This interface is used as the
322 * event from the host driver to the user space entity and also as the
323 * request from the user space entity to the host driver. The event from
324 * the host driver is used by the user space entity as an indication to
325 * start the ACS functionality. The attributes used by this event are
326 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
327 * User space entity uses the same interface to inform the host driver with
328 * selected channels after the ACS operation using the attributes defined
329 * by enum qca_wlan_vendor_attr_external_acs_channels.
331 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
332 * requisite information leading to a power save failure. The information
333 * carried as part of this event is represented by the
334 * enum qca_attr_chip_power_save_failure attributes.
336 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
337 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
339 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
340 * statistics are represented by the enum qca_attr_nud_stats_get
343 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
344 * the BSS transition status, whether accept or reject, for a list of
345 * candidate BSSIDs provided by the userspace. This uses the vendor
346 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
347 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
348 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
349 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
350 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
351 * the driver shall specify array of
352 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
353 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
354 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
356 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
357 * specific QCA module. The trace levels are represented by
358 * enum qca_attr_trace_level attributes.
360 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
361 * Protocol antenna limit in different modes. See enum
362 * qca_wlan_vendor_attr_brp_ant_limit_mode.
364 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
365 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
366 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
367 * identifying the operation in success case.
369 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
370 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
371 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
374 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
375 * specific interface. This can be used to modify some of the low level
376 * scan parameters (off channel dwell time, home channel time) in the
377 * driver/firmware. These parameters are maintained within the host driver.
378 * This command is valid only when the interface is in the connected state.
379 * These scan parameters shall be reset by the driver/firmware once
380 * disconnected. The attributes used with this command are defined in
381 * enum qca_wlan_vendor_attr_active_tos.
383 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
384 * driver has detected an internal failure. This event carries the
385 * information indicating the reason that triggered this detection. The
386 * attributes for this command are defined in
387 * enum qca_wlan_vendor_attr_hang.
389 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
390 * of spectral parameters used. The spectral scan parameters are specified
391 * by enum qca_wlan_vendor_attr_spectral_scan.
393 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
394 * for spectral scan functionality. The debug stats are specified by
395 * enum qca_wlan_vendor_attr_spectral_diag_stats.
397 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
398 * scan system capabilities. The capabilities are specified
399 * by enum qca_wlan_vendor_attr_spectral_cap.
401 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
402 * status of spectral scan. The status values are specified
403 * by enum qca_wlan_vendor_attr_spectral_scan_status.
405 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
406 * peer pending packets. Specify the peer MAC address in
407 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
408 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
409 * in enum qca_wlan_vendor_attr_flush_pending.
411 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
412 * RF Operating Parameter (RROP) information. The attributes for this
413 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
414 * intended for use by external Auto Channel Selection applications.
416 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
417 * (SAR) power limits. This is a companion to the command
418 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
419 * settings currently in use. The attributes returned by this command are
420 * defined by enum qca_vendor_attr_sar_limits.
422 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
423 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
424 * information attached to the respective MAC.
425 * This works both as a query (user space asks the current mode) or event
426 * interface (driver advertising the current mode to the user space).
427 * Driver does not trigger this event for temporary hardware mode changes.
428 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
429 * channel change, etc.) are updated with this event. Attributes for this
430 * interface are defined in enum qca_wlan_vendor_attr_mac.
432 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
433 * per peer per TID. Attributes for this command are define in
434 * enum qca_wlan_set_qdepth_thresh_attr.
435 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
436 * guide for WLAN driver. Request to suspend of driver and FW if the
437 * temperature is higher than the suspend threshold; resume action is
438 * requested to driver if the temperature is lower than the resume
439 * threshold. In user poll mode, request temperature data by user. For test
440 * purpose, getting thermal shutdown configuration parameters is needed.
441 * Attributes for this interface are defined in
442 * enum qca_wlan_vendor_attr_thermal_cmd.
443 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
444 * driver. Thermal temperature and indication of resume completion are
445 * reported as thermal events. The attributes for this command are defined
446 * in enum qca_wlan_vendor_attr_thermal_event.
448 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
449 * test configuration. Attributes for this command are defined in
450 * enum qca_wlan_vendor_attr_wifi_test_config.
452 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
453 * RX filter to receive frames from stations that are active on the
454 * operating channel, but not associated with the local device (e.g., STAs
455 * associated with other APs). Filtering is done based on a list of BSSIDs
456 * and STA MAC addresses added by the user. This command is also used to
457 * fetch the statistics of unassociated stations. The attributes used with
458 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
460 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
461 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
462 * carried a payload which was a binary blob of data. The command was not
463 * extendable to send more information. The newer version carries the
464 * legacy blob encapsulated within an attribute and can be extended with
465 * additional vendor attributes that can enhance the NAN command interface.
466 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
467 * or stopped within driver/firmware in order to initiate roaming. The
468 * attributes used with this event are defined in enum
469 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
470 * in few cases, e.g., if the host processor is sleeping when this event
471 * is generated in firmware.
473 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
474 * configure parameters per peer to capture Channel Frequency Response
475 * (CFR) and enable Periodic CFR capture. The attributes for this command
476 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
478 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
479 * in throughput dynamically. The driver estimates the throughput based on
480 * number of packets being transmitted/received per second and indicates
481 * the changes in throughput to user space. Userspace tools can use this
482 * information to configure kernel's TCP parameters in order to achieve
483 * peak throughput. Optionally, the driver will also send guidance on
484 * modifications to kernel's TCP parameters which can be referred by
485 * userspace tools. The attributes used with this event are defined in enum
486 * qca_wlan_vendor_attr_throughput_change.
488 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
489 * priorities among different types of traffic during coex scenarios.
490 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
491 * profiles mentioned in enum qca_coex_config_profiles. The associated
492 * attributes used with this command are defined in enum
493 * qca_vendor_attr_coex_config.
495 * Based on the config provided, FW will boost the weight and prioritize
496 * the traffic for that subsystem (WLAN/BT/Zigbee).
498 enum qca_nl80211_vendor_subcmds
{
499 QCA_NL80211_VENDOR_SUBCMD_UNSPEC
= 0,
500 QCA_NL80211_VENDOR_SUBCMD_TEST
= 1,
501 /* subcmds 2..8 not yet allocated */
502 QCA_NL80211_VENDOR_SUBCMD_ROAMING
= 9,
503 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY
= 10,
504 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY
= 11,
505 QCA_NL80211_VENDOR_SUBCMD_NAN
= 12,
506 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT
= 13,
507 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET
= 14,
508 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET
= 15,
509 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR
= 16,
510 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS
= 17,
511 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS
= 18,
512 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS
= 19,
513 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START
= 20,
514 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP
= 21,
515 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS
= 22,
516 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES
= 23,
517 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS
= 24,
518 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE
= 25,
519 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT
= 26,
520 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT
= 27,
521 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND
= 28,
522 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST
= 29,
523 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST
= 30,
524 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE
= 31,
525 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE
= 32,
526 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE
= 33,
527 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE
= 34,
528 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE
= 35,
529 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
= 36,
530 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE
= 37,
531 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES
= 38,
532 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI
= 39,
533 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG
= 40,
534 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST
= 41,
535 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX
= 42,
536 /* 43..49 - reserved for QCA */
537 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY
= 50,
538 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH
= 51,
539 QCA_NL80211_VENDOR_SUBCMD_APFIND
= 52,
540 /* 53 - reserved - was used by QCA, but not in use anymore */
541 QCA_NL80211_VENDOR_SUBCMD_DO_ACS
= 54,
542 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
= 55,
543 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED
= 56,
544 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED
= 57,
545 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED
= 58,
546 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED
= 59,
547 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED
= 60,
548 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO
= 61,
549 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START
= 62,
550 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP
= 63,
551 QCA_NL80211_VENDOR_SUBCMD_ROAM
= 64,
552 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST
= 65,
553 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST
= 66,
554 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND
= 67,
555 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST
= 68,
556 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST
= 69,
557 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST
= 70,
558 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST
= 71,
559 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND
= 72,
560 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND
= 73,
561 /* Wi-Fi configuration subcommands */
562 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION
= 74,
563 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION
= 75,
564 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET
= 76,
565 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA
= 77,
566 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES
= 78,
567 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS
= 79,
568 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI
= 80,
569 QCA_NL80211_VENDOR_SUBCMD_NDP
= 81,
570 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD
= 82,
571 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER
= 83,
572 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE
= 84,
573 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS
= 85,
574 /* 86-90 - reserved for QCA */
575 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD
= 91,
576 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG
= 92,
577 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME
= 93,
578 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT
= 94,
579 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT
= 95,
580 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER
= 96,
581 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS
= 97,
582 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS
= 98,
583 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL
= 99,
584 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT
= 100,
585 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES
= 101,
586 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG
= 102,
587 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST
= 103,
588 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL
= 104,
589 QCA_NL80211_VENDOR_SUBCMD_SETBAND
= 105,
590 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN
= 106,
591 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE
= 107,
592 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
= 108,
593 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE
= 109,
594 /* 110..114 - reserved for QCA */
595 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB
= 115,
596 /* 116..117 - reserved for QCA */
597 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG
= 118,
598 QCA_NL80211_VENDOR_SUBCMD_TSF
= 119,
599 QCA_NL80211_VENDOR_SUBCMD_WISA
= 120,
600 /* 121 - reserved for QCA */
601 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START
= 122,
602 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP
= 123,
603 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH
= 124,
604 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND
= 125,
605 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY
= 126,
606 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT
= 127,
607 /* FTM/indoor location subcommands */
608 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA
= 128,
609 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
= 129,
610 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION
= 130,
611 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
= 131,
612 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE
= 132,
613 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
= 133,
614 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
= 134,
615 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS
= 135,
616 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
= 136,
617 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST
= 137,
618 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI
= 138,
619 /* DMG low level RF sector operations */
620 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG
= 139,
621 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
= 140,
622 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR
= 141,
623 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR
= 142,
624 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS
= 143,
625 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES
= 144,
626 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN
= 145,
627 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
= 146,
628 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
= 147,
629 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE
= 148,
630 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET
= 149,
631 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET
= 150,
632 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS
= 151,
633 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL
= 152,
634 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT
= 153,
635 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
= 154,
636 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP
= 155,
637 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS
= 156,
638 QCA_NL80211_VENDOR_SUBCMD_HANG
= 157,
639 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG
= 158,
640 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS
= 159,
641 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO
= 160,
642 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS
= 161,
643 /* Flush peer pending data */
644 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING
= 162,
645 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO
= 163,
646 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS
= 164,
647 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO
= 165,
648 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
= 166,
649 /* Thermal shutdown commands to protect wifi chip */
650 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD
= 167,
651 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT
= 168,
652 /* Wi-Fi test configuration subcommand */
653 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
= 169,
654 /* Frame filter operations for other BSSs/unassociated STAs */
655 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
= 170,
656 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT
= 171,
657 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT
= 172,
658 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG
= 173,
659 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT
= 174,
660 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
= 175,
663 enum qca_wlan_vendor_attr
{
664 QCA_WLAN_VENDOR_ATTR_INVALID
= 0,
665 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
666 QCA_WLAN_VENDOR_ATTR_DFS
= 1,
667 /* Used only when driver sends vendor events to the userspace under the
668 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
669 * commands to the driver.
671 QCA_WLAN_VENDOR_ATTR_NAN
= 2,
672 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
673 QCA_WLAN_VENDOR_ATTR_STATS_EXT
= 3,
674 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
675 QCA_WLAN_VENDOR_ATTR_IFINDEX
= 4,
676 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
677 * by enum qca_roaming_policy.
679 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY
= 5,
680 QCA_WLAN_VENDOR_ATTR_MAC_ADDR
= 6,
681 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
682 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS
= 7,
683 QCA_WLAN_VENDOR_ATTR_TEST
= 8,
684 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
685 /* Unsigned 32-bit value. */
686 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA
= 9,
687 /* Unsigned 32-bit value */
688 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND
= 10,
689 /* Unsigned 32-bit value */
690 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND
= 11,
691 /* Unsigned 32-bit value from enum qca_set_band. */
692 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
= 12,
693 /* Dummy (NOP) attribute for 64 bit padding */
694 QCA_WLAN_VENDOR_ATTR_PAD
= 13,
695 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
696 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
697 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
698 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
700 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE
= 14,
701 /* Indoor location capabilities, returned by
702 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
703 * see enum qca_wlan_vendor_attr_loc_capa.
705 QCA_WLAN_VENDOR_ATTR_LOC_CAPA
= 15,
706 /* Array of nested attributes containing information about each peer
707 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
708 * for supported attributes for each peer.
710 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS
= 16,
711 /* Array of nested attributes containing measurement results for
712 * one or more peers, reported by the
713 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
714 * See enum qca_wlan_vendor_attr_peer_result for list of supported
717 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS
= 17,
718 /* Flag attribute for enabling or disabling responder functionality. */
719 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE
= 18,
720 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
721 * command to specify the LCI report that will be sent by
722 * the responder during a measurement exchange. The format is
723 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
725 QCA_WLAN_VENDOR_ATTR_FTM_LCI
= 19,
726 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
727 * command to specify the location civic report that will
728 * be sent by the responder during a measurement exchange.
729 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
731 QCA_WLAN_VENDOR_ATTR_FTM_LCR
= 20,
732 /* Session/measurement completion status code,
733 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
734 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
735 * see enum qca_vendor_attr_loc_session_status.
737 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS
= 21,
738 /* Initial dialog token used by responder (0 if not specified),
739 * unsigned 8 bit value.
741 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN
= 22,
742 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
743 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
744 * AOA measurements are needed as part of an FTM session.
745 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
746 * enum qca_wlan_vendor_attr_aoa_type.
748 QCA_WLAN_VENDOR_ATTR_AOA_TYPE
= 23,
749 /* A bit mask (unsigned 32 bit value) of antenna arrays used
750 * by indoor location measurements. Refers to the antenna
751 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
753 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK
= 24,
754 /* AOA measurement data. Its contents depends on the AOA measurement
755 * type and antenna array mask:
756 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
757 * phase of the strongest CIR path for each antenna in the measured
759 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
760 * values, phase and amplitude of the strongest CIR path for each
761 * antenna in the measured array(s).
763 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT
= 25,
764 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
765 * to specify the chain number (unsigned 32 bit value) to inquire
766 * the corresponding antenna RSSI value
768 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX
= 26,
769 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
770 * to report the specific antenna RSSI value (unsigned 32 bit value)
772 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI
= 27,
773 /* Frequency in MHz, various uses. Unsigned 32 bit value */
774 QCA_WLAN_VENDOR_ATTR_FREQ
= 28,
775 /* TSF timer value, unsigned 64 bit value.
776 * May be returned by various commands.
778 QCA_WLAN_VENDOR_ATTR_TSF
= 29,
779 /* DMG RF sector index, unsigned 16 bit number. Valid values are
780 * 0..127 for sector indices or 65535 as special value used to
781 * unlock sector selection in
782 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
784 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX
= 30,
785 /* DMG RF sector type, unsigned 8 bit value. One of the values
786 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
788 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE
= 31,
789 /* Bitmask of DMG RF modules for which information is requested. Each
790 * bit corresponds to an RF module with the same index as the bit
791 * number. Unsigned 32 bit number but only low 8 bits can be set since
792 * all DMG chips currently have up to 8 RF modules.
794 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK
= 32,
795 /* Array of nested attributes where each entry is DMG RF sector
796 * configuration for a single RF module.
797 * Attributes for each entry are taken from enum
798 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
799 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
800 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
802 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG
= 33,
803 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
804 * to report frame aggregation statistics to userspace.
806 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM
= 34,
807 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO
= 35,
808 /* Unsigned 8-bit value representing MBO transition reason code as
809 * provided by the AP used by subcommand
810 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
811 * specified by the userspace in the request to the driver.
813 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON
= 36,
814 /* Array of nested attributes, BSSID and status code, used by subcommand
815 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
816 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
817 * The userspace space specifies the list/array of candidate BSSIDs in
818 * the order of preference in the request. The driver specifies the
819 * status code, for each BSSID in the list, in the response. The
820 * acceptable candidates are listed in the order preferred by the
823 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO
= 37,
824 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
825 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
827 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE
= 38,
828 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
829 * to define the number of antennas to use for BRP.
830 * different purpose in each ANT_LIMIT_MODE:
832 * EFFECTIVE - upper limit to number of antennas to be used
833 * FORCE - exact number of antennas to be used
834 * unsigned 8 bit value
836 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT
= 39,
837 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
838 * to report the corresponding antenna index to the chain RSSI value
840 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO
= 40,
843 QCA_WLAN_VENDOR_ATTR_AFTER_LAST
,
844 QCA_WLAN_VENDOR_ATTR_MAX
= QCA_WLAN_VENDOR_ATTR_AFTER_LAST
- 1,
847 enum qca_roaming_policy
{
848 QCA_ROAMING_NOT_ALLOWED
,
849 QCA_ROAMING_ALLOWED_WITHIN_ESS
,
852 enum qca_wlan_vendor_attr_roam_auth
{
853 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID
= 0,
854 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID
,
855 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE
,
856 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE
,
857 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED
,
858 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR
,
859 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK
,
860 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK
,
861 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS
,
862 /* Indicates the status of re-association requested by user space for
863 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
865 * Represents the status code from AP. Use
866 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
867 * real status code for failures.
869 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS
,
870 /* This attribute indicates that the old association was maintained when
871 * a re-association is requested by user space and that re-association
872 * attempt fails (i.e., cannot connect to the requested BSS, but can
873 * remain associated with the BSS with which the association was in
874 * place when being requested to roam). Used along with
875 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
876 * re-association status. Type flag.
877 * This attribute is applicable only for re-association failure cases.
879 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION
,
880 /* This attribute specifies the PMK if one was newly generated during
881 * FILS roaming. This is added to the PMKSA cache and is used in
882 * subsequent connections with PMKSA caching.
884 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK
= 11,
885 /* This attribute specifies the PMKID used/generated for the current
886 * FILS roam. This is used in subsequent connections with PMKSA caching.
888 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID
= 12,
889 /* A 16-bit unsigned value specifying the next sequence number to use
890 * in ERP message in the currently associated realm. This is used in
891 * doing subsequent ERP based connections in the same realm.
893 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM
= 13,
895 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST
,
896 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX
=
897 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST
- 1
900 enum qca_wlan_vendor_attr_p2p_listen_offload
{
901 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID
= 0,
902 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
903 * of the social channels.
905 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL
,
906 /* A 32-bit unsigned value; the P2P listen offload period (ms).
908 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD
,
909 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
911 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL
,
912 /* A 32-bit unsigned value; number of interval times the firmware needs
913 * to run the offloaded P2P listen operation before it stops.
915 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT
,
916 /* An array of arbitrary binary data with one or more 8-byte values.
917 * The device types include both primary and secondary device types.
919 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES
,
920 /* An array of unsigned 8-bit characters; vendor information elements.
922 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE
,
923 /* A 32-bit unsigned value; a control flag to indicate whether listen
924 * results need to be flushed to wpa_supplicant.
926 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG
,
927 /* A 8-bit unsigned value; reason code for P2P listen offload stop
930 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON
,
932 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST
,
933 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX
=
934 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST
- 1
937 enum qca_wlan_vendor_attr_acs_offload
{
938 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID
= 0,
939 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
,
940 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL
,
941 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE
,
942 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED
,
943 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED
,
944 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED
,
945 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH
,
946 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST
,
947 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL
,
948 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL
,
949 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST
,
951 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST
,
952 QCA_WLAN_VENDOR_ATTR_ACS_MAX
=
953 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST
- 1
956 enum qca_wlan_vendor_acs_hw_mode
{
957 QCA_ACS_MODE_IEEE80211B
,
958 QCA_ACS_MODE_IEEE80211G
,
959 QCA_ACS_MODE_IEEE80211A
,
960 QCA_ACS_MODE_IEEE80211AD
,
961 QCA_ACS_MODE_IEEE80211ANY
,
965 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
967 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
968 * management offload, a mechanism where the station's firmware
969 * does the exchange with the AP to establish the temporal keys
970 * after roaming, rather than having the user space wpa_supplicant do it.
971 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
972 * band selection based on channel selection results.
973 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
974 * simultaneous off-channel operations.
975 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
976 * Listen offload; a mechanism where the station's firmware takes care of
977 * responding to incoming Probe Request frames received from other P2P
978 * Devices whilst in Listen state, rather than having the user space
979 * wpa_supplicant do it. Information from received P2P requests are
980 * forwarded from firmware to host whenever the host processor wakes up.
981 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
983 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
985 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
986 * specific features only. If a Device sets this bit but not the
987 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
988 * this Device may not support all OCE AP functionalities but can support
989 * only OCE STA-CFON functionalities.
990 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
991 * managed regulatory.
992 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
994 enum qca_wlan_vendor_features
{
995 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD
= 0,
996 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY
= 1,
997 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS
= 2,
998 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD
= 3,
999 QCA_WLAN_VENDOR_FEATURE_OCE_STA
= 4,
1000 QCA_WLAN_VENDOR_FEATURE_OCE_AP
= 5,
1001 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON
= 6,
1002 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY
= 7,
1003 NUM_QCA_WLAN_VENDOR_FEATURES
/* keep last */
1007 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1009 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1010 * the offloaded data.
1011 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1013 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1016 enum qca_wlan_vendor_attr_data_offload_ind
{
1017 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID
= 0,
1018 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION
,
1019 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL
,
1020 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT
,
1023 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST
,
1024 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX
=
1025 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST
- 1
1029 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1032 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1034 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1035 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1036 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1038 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1040 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1041 * active state configuration
1042 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1043 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1044 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1045 * use in the case that a packet is sent without a TX control header
1046 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1047 * last TA received that the local time set by TA is synchronous to other
1048 * communicating OCB STAs.
1050 enum qca_wlan_vendor_attr_ocb_set_config
{
1051 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID
= 0,
1052 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT
= 1,
1053 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE
= 2,
1054 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY
= 3,
1055 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY
= 4,
1056 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY
= 5,
1057 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY
= 6,
1058 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS
= 7,
1059 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM
= 8,
1060 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION
= 9,
1061 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST
,
1062 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX
=
1063 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST
- 1
1067 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1070 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1072 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1075 enum qca_wlan_vendor_attr_ocb_set_utc_time
{
1076 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID
= 0,
1077 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE
= 1,
1078 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR
= 2,
1079 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST
,
1080 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX
=
1081 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST
- 1
1085 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1086 * to start sending timing advert frames
1088 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1089 * on which to send the frames
1090 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1091 * the frame is sent in 5 seconds
1093 enum qca_wlan_vendor_attr_ocb_start_timing_advert
{
1094 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID
= 0,
1095 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ
= 1,
1096 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE
= 2,
1097 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST
,
1098 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX
=
1099 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST
- 1
1103 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1104 * to stop timing advert
1106 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1107 * frequency on which to stop the timing advert
1109 enum qca_wlan_vendor_attr_ocb_stop_timing_advert
{
1110 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID
= 0,
1111 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ
= 1,
1112 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST
,
1113 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX
=
1114 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST
- 1
1118 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1119 * get TSF timer value
1121 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1123 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1125 enum qca_wlan_vendor_attr_ocb_get_tsf_resp
{
1126 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID
= 0,
1127 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH
= 1,
1128 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW
= 2,
1129 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST
,
1130 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX
=
1131 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST
- 1
1134 enum qca_vendor_attr_get_preferred_freq_list
{
1135 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID
,
1136 /* A 32-unsigned value; the interface type/mode for which the preferred
1137 * frequency list is requested (see enum qca_iface_type for possible
1138 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1139 * kernel and in the kernel response back to user-space.
1141 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE
,
1142 /* An array of 32-unsigned values; values are frequency (MHz); sent
1143 * from kernel space to user space.
1145 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST
,
1146 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1147 * attribute. Each element contains frequency (MHz), weight, and flag
1148 * bit mask indicating how the frequency should be used in P2P
1149 * negotiation; sent from kernel space to user space.
1151 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL
,
1153 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST
,
1154 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX
=
1155 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST
- 1
1158 enum qca_vendor_attr_probable_oper_channel
{
1159 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID
,
1160 /* 32-bit unsigned value; indicates the connection/iface type likely to
1161 * come on this channel (see enum qca_iface_type).
1163 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE
,
1164 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1165 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ
,
1167 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST
,
1168 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX
=
1169 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST
- 1
1172 enum qca_iface_type
{
1175 QCA_IFACE_TYPE_P2P_CLIENT
,
1176 QCA_IFACE_TYPE_P2P_GO
,
1177 QCA_IFACE_TYPE_IBSS
,
1178 QCA_IFACE_TYPE_TDLS
,
1188 * enum qca_access_policy - Access control policy
1190 * Access control policy is applied on the configured IE
1191 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1192 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1194 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1195 * the specific configuration (IE) set, i.e., allow all the
1196 * connections which do not match the configuration.
1197 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1198 * the specific configuration (IE) set, i.e., deny all the
1199 * connections which do not match the configuration.
1201 enum qca_access_policy
{
1202 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED
,
1203 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED
,
1207 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1208 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1209 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1210 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1211 * SOC timer value at TSF capture
1213 enum qca_vendor_attr_tsf_cmd
{
1214 QCA_WLAN_VENDOR_ATTR_TSF_INVALID
= 0,
1215 QCA_WLAN_VENDOR_ATTR_TSF_CMD
,
1216 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE
,
1217 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE
,
1218 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST
,
1219 QCA_WLAN_VENDOR_ATTR_TSF_MAX
=
1220 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST
- 1
1224 * enum qca_tsf_operation: TSF driver commands
1225 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1226 * @QCA_TSF_GET: Get TSF capture value
1227 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1236 * enum qca_vendor_attr_wisa_cmd
1237 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1238 * WISA setup vendor commands
1240 enum qca_vendor_attr_wisa_cmd
{
1241 QCA_WLAN_VENDOR_ATTR_WISA_INVALID
= 0,
1242 QCA_WLAN_VENDOR_ATTR_WISA_MODE
,
1243 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST
,
1244 QCA_WLAN_VENDOR_ATTR_WISA_MAX
=
1245 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST
- 1
1248 /* IEEE 802.11 Vendor Specific elements */
1251 * enum qca_vendor_element_id - QCA Vendor Specific element types
1253 * These values are used to identify QCA Vendor Specific elements. The
1254 * payload of the element starts with the three octet OUI (OUI_QCA) and
1255 * is followed by a single octet type which is defined by this enum.
1257 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1258 * This element can be used to specify preference order for supported
1259 * channels. The channels in this list are in preference order (the first
1260 * one has the highest preference) and are described as a pair of
1261 * (global) Operating Class and Channel Number (each one octet) fields.
1263 * This extends the standard P2P functionality by providing option to have
1264 * more than one preferred operating channel. When this element is present,
1265 * it replaces the preference indicated in the Operating Channel attribute.
1266 * For supporting other implementations, the Operating Channel attribute is
1267 * expected to be used with the highest preference channel. Similarly, all
1268 * the channels included in this Preferred channel list element are
1269 * expected to be included in the Channel List attribute.
1271 * This vendor element may be included in GO Negotiation Request, P2P
1272 * Invitation Request, and Provision Discovery Request frames.
1274 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1275 * This element can be used for pre-standard publication testing of HE
1276 * before P802.11ax draft assigns the element ID. The payload of this
1277 * vendor specific element is defined by the latest P802.11ax draft.
1278 * Please note that the draft is still work in progress and this element
1279 * payload is subject to change.
1281 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1282 * This element can be used for pre-standard publication testing of HE
1283 * before P802.11ax draft assigns the element ID. The payload of this
1284 * vendor specific element is defined by the latest P802.11ax draft.
1285 * Please note that the draft is still work in progress and this element
1286 * payload is subject to change.
1288 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1290 * This element can be used for pre-standard publication testing of HE
1291 * before P802.11ax draft assigns the element ID extension. The payload of
1292 * this vendor specific element is defined by the latest P802.11ax draft
1293 * (not including the Element ID Extension field). Please note that the
1294 * draft is still work in progress and this element payload is subject to
1297 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1298 * This element can be used for pre-standard publication testing of HE
1299 * before P802.11ax draft assigns the element ID extension. The payload of
1300 * this vendor specific element is defined by the latest P802.11ax draft
1301 * (not including the Element ID Extension field). Please note that the
1302 * draft is still work in progress and this element payload is subject to
1305 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1306 * This element can be used for pre-standard publication testing of HE
1307 * before P802.11ax draft assigns the element ID extension. The payload of
1308 * this vendor specific element is defined by the latest P802.11ax draft
1309 * (not including the Element ID Extension field). Please note that the
1310 * draft is still work in progress and this element payload is subject to
1313 enum qca_vendor_element_id
{
1314 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST
= 0,
1315 QCA_VENDOR_ELEM_HE_CAPAB
= 1,
1316 QCA_VENDOR_ELEM_HE_OPER
= 2,
1317 QCA_VENDOR_ELEM_RAPS
= 3,
1318 QCA_VENDOR_ELEM_MU_EDCA_PARAMS
= 4,
1319 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE
= 5,
1323 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1325 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1326 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1327 * with frequencies to be scanned (in MHz)
1328 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1329 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1330 * rates to be included
1331 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1332 * at non CCK rate in 2GHz band
1333 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1334 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1335 * driver for the specific scan request
1336 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1337 * request decoded as in enum scan_status
1338 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1340 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1342 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1343 * specific BSSID to scan for.
1345 enum qca_wlan_vendor_attr_scan
{
1346 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM
= 0,
1347 QCA_WLAN_VENDOR_ATTR_SCAN_IE
= 1,
1348 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES
= 2,
1349 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS
= 3,
1350 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES
= 4,
1351 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE
= 5,
1352 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS
= 6,
1353 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE
= 7,
1354 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS
= 8,
1355 QCA_WLAN_VENDOR_ATTR_SCAN_MAC
= 9,
1356 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK
= 10,
1357 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID
= 11,
1358 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST
,
1359 QCA_WLAN_VENDOR_ATTR_SCAN_MAX
=
1360 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST
- 1
1364 * enum scan_status - Specifies the valid values the vendor scan attribute
1365 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1367 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1369 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1372 VENDOR_SCAN_STATUS_NEW_RESULTS
,
1373 VENDOR_SCAN_STATUS_ABORTED
,
1374 VENDOR_SCAN_STATUS_MAX
,
1378 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1379 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1380 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1382 enum qca_vendor_attr_ota_test
{
1383 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID
,
1384 /* 8-bit unsigned value to indicate if OTA test is enabled */
1385 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE
,
1387 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST
,
1388 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX
=
1389 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST
- 1
1393 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1395 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1397 enum qca_vendor_attr_txpower_scale
{
1398 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID
,
1399 /* 8-bit unsigned value to indicate the scaling of tx power */
1400 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE
,
1402 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST
,
1403 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX
=
1404 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST
- 1
1408 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1410 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1412 enum qca_vendor_attr_txpower_decr_db
{
1413 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID
,
1414 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
1415 * a virtual interface.
1417 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB
,
1419 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST
,
1420 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX
=
1421 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST
- 1
1424 /* Attributes for data used by
1425 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1426 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
1428 enum qca_wlan_vendor_attr_config
{
1429 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID
= 0,
1430 /* Unsigned 32-bit value to set the DTIM period.
1431 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1432 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1435 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM
= 1,
1436 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1437 * used to calculate statistics like average the TSF offset or average
1438 * number of frame leaked.
1439 * For instance, upon Beacon frame reception:
1440 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1441 * For instance, when evaluating leaky APs:
1442 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1444 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR
= 2,
1445 /* Unsigned 32-bit value to configure guard time, i.e., when
1446 * implementing IEEE power management based on frame control PM bit, how
1447 * long the driver waits before shutting down the radio and after
1448 * receiving an ACK frame for a Data frame with PM bit set.
1450 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME
= 3,
1451 /* Unsigned 32-bit value to change the FTM capability dynamically */
1452 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT
= 4,
1453 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
1454 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE
= 5,
1455 /* Unsigned 32-bit value to configure the number of continuous
1456 * Beacon Miss which shall be used by the firmware to penalize
1459 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS
= 6,
1460 /* Unsigned 8-bit value to configure the channel avoidance indication
1461 * behavior. Firmware to send only one indication and ignore duplicate
1462 * indications when set to avoid multiple Apps wakeups.
1464 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND
= 7,
1465 /* 8-bit unsigned value to configure the maximum TX MPDU for
1468 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION
= 8,
1469 /* 8-bit unsigned value to configure the maximum RX MPDU for
1472 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION
= 9,
1473 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
1474 * retry threshold (0 disable, 31 max).
1476 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY
= 10,
1477 /* 8-bit unsigned value to configure the aggregrate sw
1478 * retry threshold (0 disable, 31 max).
1480 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY
= 11,
1481 /* 8-bit unsigned value to configure the MGMT frame
1482 * retry threshold (0 disable, 31 max).
1484 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY
= 12,
1485 /* 8-bit unsigned value to configure the CTRL frame
1486 * retry threshold (0 disable, 31 max).
1488 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY
= 13,
1489 /* 8-bit unsigned value to configure the propagation delay for
1490 * 2G/5G band (0~63, units in us)
1492 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY
= 14,
1493 /* Unsigned 32-bit value to configure the number of unicast TX fail
1494 * packet count. The peer is disconnected once this threshold is
1497 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT
= 15,
1498 /* Attribute used to set scan default IEs to the driver.
1500 * These IEs can be used by scan operations that will be initiated by
1501 * the driver/firmware.
1503 * For further scan requests coming to the driver, these IEs should be
1504 * merged with the IEs received along with scan request coming to the
1505 * driver. If a particular IE is present in the scan default IEs but not
1506 * present in the scan request, then that IE should be added to the IEs
1507 * sent in the Probe Request frames for that scan request.
1509 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES
= 16,
1510 /* Unsigned 32-bit attribute for generic commands */
1511 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND
= 17,
1512 /* Unsigned 32-bit value attribute for generic commands */
1513 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE
= 18,
1514 /* Unsigned 32-bit data attribute for generic command response */
1515 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
= 19,
1516 /* Unsigned 32-bit length attribute for
1517 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1519 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH
= 20,
1520 /* Unsigned 32-bit flags attribute for
1521 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1523 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS
= 21,
1524 /* Unsigned 32-bit, defining the access policy.
1525 * See enum qca_access_policy. Used with
1526 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1528 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY
= 22,
1529 /* Sets the list of full set of IEs for which a specific access policy
1530 * has to be applied. Used along with
1531 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
1532 * Zero length payload can be used to clear this access constraint.
1534 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST
= 23,
1535 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1536 * corresponding configurations are applied. If the interface index is
1537 * not specified, the configurations are attributed to the respective
1540 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX
= 24,
1541 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
1542 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER
= 25,
1543 /* 8-bit unsigned value to configure the driver and below layers to
1544 * ignore the assoc disallowed set by APs while connecting
1545 * 1-Ignore, 0-Don't ignore
1547 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED
= 26,
1548 /* 32-bit unsigned value to trigger antenna diversity features:
1549 * 1-Enable, 0-Disable
1551 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA
= 27,
1552 /* 32-bit unsigned value to configure specific chain antenna */
1553 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN
= 28,
1554 /* 32-bit unsigned value to trigger cycle selftest
1555 * 1-Enable, 0-Disable
1557 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST
= 29,
1558 /* 32-bit unsigned to configure the cycle time of selftest
1559 * the unit is micro-second
1561 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL
= 30,
1562 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1563 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE
= 31,
1564 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1565 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO
= 32,
1566 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1567 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT
= 33,
1568 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1569 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND
= 34,
1570 /* 6-byte MAC address to point out the specific peer */
1571 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC
= 35,
1572 /* 32-bit unsigned value to set window size for specific peer */
1573 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT
= 36,
1574 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1575 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24
= 37,
1576 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1577 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5
= 38,
1578 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1579 * station device while in disconnect state. The attribute use the
1580 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1581 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1582 * 10 MHz channel width, the station will not connect to a BSS using 20
1583 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
1584 * clear this constraint.
1586 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH
= 39,
1587 /* 32-bit unsigned value to configure the propagation absolute delay
1588 * for 2G/5G band (units in us)
1590 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY
= 40,
1591 /* 32-bit unsigned value to set probe period */
1592 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD
= 41,
1593 /* 32-bit unsigned value to set stay period */
1594 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD
= 42,
1595 /* 32-bit unsigned value to set snr diff */
1596 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF
= 43,
1597 /* 32-bit unsigned value to set probe dwell time */
1598 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME
= 44,
1599 /* 32-bit unsigned value to set mgmt snr weight */
1600 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT
= 45,
1601 /* 32-bit unsigned value to set data snr weight */
1602 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT
= 46,
1603 /* 32-bit unsigned value to set ack snr weight */
1604 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT
= 47,
1605 /* 32-bit unsigned value to configure the listen interval.
1606 * This is in units of beacon intervals. This configuration alters
1607 * the negotiated listen interval with the AP during the connection.
1608 * It is highly recommended to configure a value less than or equal to
1609 * the one negotiated during the association. Configuring any greater
1610 * value can have adverse effects (frame loss, AP disassociating STA,
1613 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL
= 48,
1615 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1616 * disable operations that would cause the AP/GO to leave its operating
1619 * This will restrict the scans to the AP/GO operating channel and the
1620 * channels of the other band, if DBS is supported.A STA/CLI interface
1621 * brought up after this setting is enabled, will be restricted to
1622 * connecting to devices only on the AP/GO interface's operating channel
1623 * or on the other band in DBS case. P2P supported channel list is
1624 * modified, to only include AP interface's operating-channel and the
1625 * channels of the other band if DBS is supported.
1627 * These restrictions are only applicable as long as the AP/GO interface
1628 * is alive. If the AP/GO interface is brought down then this
1629 * setting/restriction is forgotten.
1631 * If this variable is set on an AP/GO interface while a multi-channel
1632 * concurrent session is active, it has no effect on the operation of
1633 * the current interfaces, other than restricting the scan to the AP/GO
1634 * operating channel and the other band channels if DBS is supported.
1635 * However, if the STA is brought down and restarted then the new STA
1636 * connection will either be formed on the AP/GO channel or on the
1637 * other band in a DBS case. This is because of the scan being
1638 * restricted on these channels as mentioned above.
1640 * 1-Restrict / 0-Don't restrict offchannel operations.
1642 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL
= 49,
1644 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1646 * 1 - Enable, 0 - Disable.
1648 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO
= 50,
1651 * 8 bit unsigned value to globally enable/disable scan
1652 * 1 - Enable, 0 - Disable.
1654 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE
= 51,
1656 /* 8-bit unsigned value to set the total beacon miss count
1657 * This parameter will set the total beacon miss count.
1659 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT
= 52,
1661 /* Unsigned 32-bit value to configure the number of continuous
1662 * Beacon Miss which shall be used by the firmware to penalize
1665 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC
= 53,
1667 /* 8-bit unsigned value to configure the driver and below layers to
1668 * enable/disable all FILS features.
1669 * 0-enable, 1-disable
1671 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS
= 54,
1673 /* 16-bit unsigned value to configure the level of WLAN latency
1674 * module. See enum qca_wlan_vendor_attr_config_latency_level.
1676 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL
= 55,
1678 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
1679 * the connect interface. Exclusively used for the scenarios where the
1680 * device is used as a test bed device with special functionality and
1681 * not recommended for production. This helps driver to not validate the
1682 * RSNE passed from user space and thus allow arbitrary IE data to be
1683 * used for testing purposes.
1684 * 1-enable, 0-disable.
1685 * Applications set/reset this configuration. If not reset, this
1686 * parameter remains in use until the driver is unloaded.
1688 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE
= 56,
1690 /* 8-bit unsigned value to trigger green Tx power saving.
1691 * 1-Enable, 0-Disable
1693 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX
= 57,
1696 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST
,
1697 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX
=
1698 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST
- 1,
1702 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1704 enum qca_wlan_vendor_attr_sap_config
{
1705 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID
= 0,
1706 /* 1 - reserved for QCA */
1707 /* List of frequencies on which AP is expected to operate.
1708 * This is irrespective of ACS configuration. This list is a priority
1709 * based one and is looked for before the AP is created to ensure the
1710 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1713 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST
= 2,
1715 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST
,
1716 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX
=
1717 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST
- 1,
1721 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1722 * conditional channel switch
1724 enum qca_wlan_vendor_attr_sap_conditional_chan_switch
{
1725 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID
= 0,
1726 /* Priority based frequency list (an array of u32 values in host byte
1729 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST
= 1,
1730 /* Status of the conditional switch (u32).
1731 * 0: Success, Non-zero: Failure
1733 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS
= 2,
1735 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST
,
1736 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX
=
1737 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST
- 1,
1741 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1743 enum qca_wlan_gpio_attr
{
1744 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID
= 0,
1745 /* Unsigned 32-bit attribute for GPIO command */
1746 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND
,
1747 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1748 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM
,
1749 /* Unsigned 32-bit attribute for GPIO value to configure */
1750 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE
,
1751 /* Unsigned 32-bit attribute for GPIO pull type */
1752 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE
,
1753 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1754 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE
,
1757 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST
,
1758 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX
=
1759 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST
- 1
1763 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
1764 * MSDUQ depth threshold per peer per tid in the target
1766 * Associated Vendor Command:
1767 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
1769 enum qca_wlan_set_qdepth_thresh_attr
{
1770 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID
= 0,
1771 /* 6-byte MAC address */
1772 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR
,
1773 /* Unsigned 32-bit attribute for holding the TID */
1774 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID
,
1775 /* Unsigned 32-bit attribute for holding the update mask
1776 * bit 0 - Update high priority msdu qdepth threshold
1777 * bit 1 - Update low priority msdu qdepth threshold
1778 * bit 2 - Update UDP msdu qdepth threshold
1779 * bit 3 - Update Non UDP msdu qdepth threshold
1780 * rest of bits are reserved
1782 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK
,
1783 /* Unsigned 32-bit attribute for holding the threshold value */
1784 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE
,
1787 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST
,
1788 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX
=
1789 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST
- 1,
1793 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1795 enum qca_wlan_vendor_attr_get_hw_capability
{
1796 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID
,
1797 /* Antenna isolation
1798 * An attribute used in the response.
1799 * The content of this attribute is encoded in a byte array. Each byte
1800 * value is an antenna isolation value. The array length is the number
1803 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION
,
1804 /* Request HW capability
1805 * An attribute used in the request.
1806 * The content of this attribute is a u32 array for one or more of
1807 * hardware capabilities (attribute IDs) that are being requested. Each
1808 * u32 value has a value from this
1809 * enum qca_wlan_vendor_attr_get_hw_capability
1810 * identifying which capabilities are requested.
1812 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY
,
1815 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST
,
1816 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX
=
1817 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST
- 1,
1821 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1822 * offload which is an extension for LL_STATS.
1823 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1824 * If MAC counters do not exceed the threshold, FW will report monitored
1825 * link layer counters periodically as this setting. The first report is
1826 * always triggered by this timer.
1827 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1828 * For each MAC layer counter, FW holds two copies. One is the current value.
1829 * The other is the last report. Once a current counter's increment is larger
1830 * than the threshold, FW will indicate that counter to host even if the
1831 * monitoring timer does not expire.
1832 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1833 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1834 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1836 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1837 * 1: TX packet discarded
1840 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1842 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1843 * Threshold for all monitored parameters. If per counter dedicated threshold
1844 * is not enabled, this threshold will take effect.
1845 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1846 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1848 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1849 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1850 * Bit0: TX counter unit in MSDU
1851 * Bit1: TX counter unit in MPDU
1852 * Bit2: TX counter unit in PPDU
1853 * Bit3: TX counter unit in byte
1854 * Bit4: Dropped MSDUs
1855 * Bit5: Dropped Bytes
1856 * Bit6: MPDU retry counter
1857 * Bit7: MPDU failure counter
1858 * Bit8: PPDU failure counter
1859 * Bit9: MPDU aggregation counter
1860 * Bit10: MCS counter for ACKed MPDUs
1861 * Bit11: MCS counter for Failed MPDUs
1862 * Bit12: TX Delay counter
1863 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1864 * Bit0: MAC RX counter unit in MPDU
1865 * Bit1: MAC RX counter unit in byte
1866 * Bit2: PHY RX counter unit in PPDU
1867 * Bit3: PHY RX counter unit in byte
1868 * Bit4: Disorder counter
1869 * Bit5: Retry counter
1870 * Bit6: Duplication counter
1871 * Bit7: Discard counter
1872 * Bit8: MPDU aggregation size counter
1874 * Bit10: Peer STA power state change (wake to sleep) counter
1875 * Bit11: Peer STA power save counter, total time in PS mode
1876 * Bit12: Probe request counter
1877 * Bit13: Other management frames counter
1878 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1881 * Bit2: time RX in current bss
1882 * Bit3: Out of current bss time
1883 * Bit4: Wireless medium busy time
1884 * Bit5: RX in bad condition time
1885 * Bit6: TX in bad condition time
1886 * Bit7: time wlan card not available
1887 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1888 * Bit0: Per channel SNR counter
1889 * Bit1: Per channel noise floor counter
1890 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1891 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1892 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1894 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1896 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1898 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1900 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1902 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1903 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1904 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1905 * aggregation stats buffer length
1906 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1907 * buffer for ACKed MPDUs.
1908 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1909 * buffer for failed MPDUs.
1910 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1911 * length of delay stats array.
1912 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1913 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1914 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1915 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1916 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1917 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1918 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1919 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1920 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1921 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1922 * flagged as retransmissions
1923 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1924 * flagged as duplicated
1925 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1927 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1929 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1931 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1932 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1933 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1934 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1935 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1937 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1939 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1940 * there is no TX, nor RX, nor interference.
1941 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1942 * transmitting packets.
1943 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1945 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1946 * interference detected.
1947 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1948 * receiving packets with errors.
1949 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1951 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1952 * the chip is unable to work in normal conditions.
1953 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1954 * receiving packets in current BSS.
1955 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1956 * receiving packets not in current BSS.
1957 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1958 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1959 * This is a container for per antenna signal stats.
1960 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1961 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1962 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1963 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
1964 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
1965 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
1966 * message, user layer APP could call gettimeofday to get another
1967 * timestamp and calculate transfer delay for the message.
1968 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
1969 * Real period for this measurement, unit in us.
1971 enum qca_wlan_vendor_attr_ll_stats_ext
{
1972 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID
= 0,
1974 /* Attributes for configurations */
1975 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD
,
1976 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD
,
1978 /* Peer STA power state change */
1979 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG
,
1981 /* TX failure event */
1982 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID
,
1983 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU
,
1984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS
,
1986 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE
,
1987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS
,
1990 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL
,
1991 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE
,
1992 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID
,
1993 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID
,
1994 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP
,
1995 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP
,
1996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP
,
1997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP
,
1998 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM
,
1999 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM
,
2000 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS
,
2001 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER
,
2003 /* Sub-attributes for PEER_AC_TX */
2004 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU
,
2005 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU
,
2006 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU
,
2007 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES
,
2008 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP
,
2009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES
,
2010 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY
,
2011 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK
,
2012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK
,
2013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM
,
2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM
,
2015 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM
,
2016 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR
,
2017 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS
,
2018 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS
,
2019 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE
,
2020 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY
,
2022 /* Sub-attributes for PEER_AC_RX */
2023 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU
,
2024 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES
,
2025 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU
,
2026 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES
,
2027 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST
,
2028 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY
,
2029 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP
,
2030 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD
,
2031 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM
,
2032 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM
,
2033 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS
,
2034 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR
,
2035 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES
,
2036 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION
,
2037 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ
,
2038 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT
,
2040 /* Sub-attributes for CCA_BSS */
2041 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME
,
2042 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME
,
2043 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME
,
2044 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY
,
2045 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD
,
2046 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD
,
2047 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL
,
2049 /* sub-attribute for BSS_RX_TIME */
2050 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME
,
2051 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME
,
2053 /* Sub-attributes for PEER_SIGNAL */
2054 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM
,
2055 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL
,
2056 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR
,
2057 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF
,
2059 /* Sub-attributes for IFACE_BSS */
2060 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON
,
2061 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON
,
2063 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME
,
2064 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME
,
2066 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST
,
2067 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX
=
2068 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST
- 1
2071 /* Attributes for FTM commands and events */
2074 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2076 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2077 * enum qca_wlan_vendor_attr_loc_capa_flags.
2078 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2079 * of measurement sessions that can run concurrently.
2080 * Default is one session (no session concurrency).
2081 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2082 * peers that are supported in running sessions. For example,
2083 * if the value is 8 and maximum number of sessions is 2, you can
2084 * have one session with 8 unique peers, or 2 sessions with 4 unique
2085 * peers each, and so on.
2086 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2087 * of bursts per peer, as an exponent (2^value). Default is 0,
2088 * meaning no multi-burst support.
2089 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2090 * of measurement exchanges allowed in a single burst.
2091 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2092 * types. A bit mask (unsigned 32 bit value), each bit corresponds
2093 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2095 enum qca_wlan_vendor_attr_loc_capa
{
2096 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID
,
2097 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS
,
2098 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS
,
2099 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS
,
2100 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP
,
2101 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST
,
2102 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES
,
2104 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST
,
2105 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX
=
2106 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST
- 1,
2110 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2112 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2113 * can be configured as an FTM responder (for example, an AP that
2114 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2115 * will be supported if set.
2116 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2117 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2118 * will be supported if set.
2119 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
2120 * supports immediate (ASAP) response.
2121 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2122 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2123 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2124 * requesting AOA measurements as part of an FTM session.
2126 enum qca_wlan_vendor_attr_loc_capa_flags
{
2127 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER
= 1 << 0,
2128 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR
= 1 << 1,
2129 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP
= 1 << 2,
2130 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA
= 1 << 3,
2131 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM
= 1 << 4,
2135 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2136 * a single peer in a measurement session.
2138 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2139 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2140 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
2141 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
2142 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2143 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2144 * list of supported attributes.
2145 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2146 * secure measurement.
2147 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2148 * measurement every <value> bursts. If 0 or not specified,
2149 * AOA measurements will be disabled for this peer.
2150 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2151 * the measurement frames are exchanged. Optional; if not
2152 * specified, try to locate the peer in the kernel scan
2153 * results cache and use frequency from there.
2155 enum qca_wlan_vendor_attr_ftm_peer_info
{
2156 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID
,
2157 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR
,
2158 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS
,
2159 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS
,
2160 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID
,
2161 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD
,
2162 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ
,
2164 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST
,
2165 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX
=
2166 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST
- 1,
2170 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2173 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2174 * immediate (ASAP) response from peer.
2175 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2176 * LCI report from peer. The LCI report includes the absolute
2177 * location of the peer in "official" coordinates (similar to GPS).
2178 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2179 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2180 * Location civic report from peer. The LCR includes the location
2181 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2182 * 11.24.6.7 for more information.
2183 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2184 * request a secure measurement.
2185 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2187 enum qca_wlan_vendor_attr_ftm_peer_meas_flags
{
2188 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP
= 1 << 0,
2189 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI
= 1 << 1,
2190 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR
= 1 << 2,
2191 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE
= 1 << 3,
2195 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2197 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2198 * to perform in a single burst.
2199 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2200 * perform, specified as an exponent (2^value).
2201 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2202 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2203 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2204 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2205 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2207 enum qca_wlan_vendor_attr_ftm_meas_param
{
2208 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID
,
2209 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST
,
2210 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP
,
2211 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION
,
2212 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD
,
2214 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST
,
2215 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX
=
2216 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST
- 1,
2220 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2222 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2224 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2225 * request for this peer.
2226 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2227 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2228 * to measurement results for this peer.
2229 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2230 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2231 * request failed and peer requested not to send an additional request
2232 * for this number of seconds.
2233 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2234 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2236 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2237 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2239 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2240 * overridden some measurement request parameters. See
2241 * enum qca_wlan_vendor_attr_ftm_meas_param.
2242 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2243 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2244 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2245 * results. Each entry is a nested attribute defined
2246 * by enum qca_wlan_vendor_attr_ftm_meas.
2248 enum qca_wlan_vendor_attr_ftm_peer_result
{
2249 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID
,
2250 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR
,
2251 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS
,
2252 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS
,
2253 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
,
2254 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI
,
2255 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR
,
2256 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS
,
2257 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS
,
2258 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS
,
2260 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST
,
2261 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX
=
2262 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST
- 1,
2266 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2268 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2269 * will be provided. Peer may have overridden some measurement parameters,
2270 * in which case overridden parameters will be report by
2271 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2272 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2273 * of performing the measurement request. No more results will be sent
2274 * for this peer in this session.
2275 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2276 * failed, and requested not to send an additional request for number
2277 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2279 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2280 * failed. Request was not sent over the air.
2282 enum qca_wlan_vendor_attr_ftm_peer_result_status
{
2283 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK
,
2284 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE
,
2285 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED
,
2286 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID
,
2290 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2291 * for measurement result, per-peer
2293 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2294 * measurement completed for this peer. No more results will be reported
2295 * for this peer in this session.
2297 enum qca_wlan_vendor_attr_ftm_peer_result_flags
{
2298 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE
= 1 << 0,
2302 * enum qca_vendor_attr_loc_session_status: Session completion status code
2304 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2306 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2308 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2309 * was invalid and was not started.
2310 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2311 * and did not complete normally (for example out of resources).
2313 enum qca_vendor_attr_loc_session_status
{
2314 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK
,
2315 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED
,
2316 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID
,
2317 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED
,
2321 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2323 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2324 * recorded by responder, in picoseconds.
2325 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2326 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2327 * initiator, in picoseconds.
2328 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2329 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2330 * initiator, in picoseconds.
2331 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2332 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2333 * responder, in picoseconds.
2334 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2335 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2336 * during this measurement exchange. Optional and will be provided if
2337 * the hardware can measure it.
2338 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2339 * responder. Not always provided.
2340 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2341 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2342 * responder. Not always provided.
2343 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2344 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2345 * initiator. Not always provided.
2346 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2347 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2348 * initiator. Not always provided.
2349 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2350 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2352 enum qca_wlan_vendor_attr_ftm_meas
{
2353 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID
,
2354 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1
,
2355 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2
,
2356 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3
,
2357 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4
,
2358 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI
,
2359 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR
,
2360 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR
,
2361 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR
,
2362 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR
,
2363 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD
,
2365 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST
,
2366 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX
=
2367 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST
- 1,
2371 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2373 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2374 * CIR (channel impulse response) path for each antenna.
2375 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2376 * of the strongest CIR path for each antenna.
2378 enum qca_wlan_vendor_attr_aoa_type
{
2379 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE
,
2380 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP
,
2381 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2385 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2386 * validate encryption engine
2388 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2389 * This will be included if the request is for decryption; if not included,
2390 * the request is treated as a request for encryption by default.
2391 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2392 * indicating the key cipher suite. Takes same values as
2393 * NL80211_ATTR_KEY_CIPHER.
2394 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2395 * Key Id to be used for encryption
2396 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2397 * Key (TK) to be used for encryption/decryption
2398 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2399 * Packet number to be specified for encryption/decryption
2400 * 6 bytes for TKIP/CCMP/GCMP.
2401 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2402 * representing the 802.11 packet (header + payload + FCS) that
2403 * needs to be encrypted/decrypted.
2404 * Encrypted/decrypted response from the driver will also be sent
2405 * to userspace with the same attribute.
2407 enum qca_wlan_vendor_attr_encryption_test
{
2408 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID
= 0,
2409 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION
,
2410 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER
,
2411 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID
,
2412 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK
,
2413 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN
,
2414 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA
,
2417 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST
,
2418 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX
=
2419 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST
- 1
2423 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2424 * sector for DMG RF sector operations.
2426 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2427 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2429 enum qca_wlan_vendor_attr_dmg_rf_sector_type
{
2430 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX
,
2431 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX
,
2432 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2436 * BRP antenna limit mode
2438 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2439 * antenna limit, BRP will be performed as usual.
2440 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2441 * antennas limit. the hardware may use less antennas than the
2443 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2444 * use exactly the specified number of antennas for BRP.
2446 enum qca_wlan_vendor_attr_brp_ant_limit_mode
{
2447 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE
,
2448 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE
,
2449 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE
,
2450 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2454 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2455 * DMG RF sector configuration for a single RF module.
2456 * The values are defined in a compact way which closely matches
2457 * the way it is stored in HW registers.
2458 * The configuration provides values for 32 antennas and 8 distribution
2459 * amplifiers, and together describes the characteristics of the RF
2460 * sector - such as a beam in some direction with some gain.
2462 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2463 * of RF module for this configuration.
2464 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2465 * amplifier gain index. Unsigned 32 bit number containing
2466 * bits for all 32 antennas.
2467 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2468 * amplifier gain index. Unsigned 32 bit number containing
2469 * bits for all 32 antennas.
2470 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2471 * amplifier gain index. Unsigned 32 bit number containing
2472 * bits for all 32 antennas.
2473 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2474 * for first 16 antennas, 2 bits per antenna.
2475 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2476 * for last 16 antennas, 2 bits per antenna.
2477 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2478 * DTYPE values (3 bits) for each distribution amplifier, followed
2479 * by X16 switch bits for each distribution amplifier. There are
2480 * total of 8 distribution amplifiers.
2482 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg
{
2483 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID
= 0,
2484 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX
= 1,
2485 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0
= 2,
2486 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1
= 3,
2487 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2
= 4,
2488 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI
= 5,
2489 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO
= 6,
2490 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16
= 7,
2493 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST
,
2494 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX
=
2495 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST
- 1
2498 enum qca_wlan_vendor_attr_ll_stats_set
{
2499 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID
= 0,
2500 /* Unsigned 32-bit value */
2501 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD
= 1,
2502 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING
= 2,
2504 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST
,
2505 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX
=
2506 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST
- 1,
2509 enum qca_wlan_vendor_attr_ll_stats_clr
{
2510 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID
= 0,
2511 /* Unsigned 32bit bitmap for clearing statistics
2512 * All radio statistics 0x00000001
2513 * cca_busy_time (within radio statistics) 0x00000002
2514 * All channel stats (within radio statistics) 0x00000004
2515 * All scan statistics (within radio statistics) 0x00000008
2516 * All interface statistics 0x00000010
2517 * All tx rate statistics (within interface statistics) 0x00000020
2518 * All ac statistics (with in interface statistics) 0x00000040
2519 * All contention (min, max, avg) statistics (within ac statisctics)
2522 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK
= 1,
2523 /* Unsigned 8 bit value: Request to stop statistics collection */
2524 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ
= 2,
2526 /* Unsigned 32 bit bitmap: Response from the driver
2527 * for the cleared statistics
2529 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK
= 3,
2530 /* Unsigned 8 bit value: Response from driver/firmware
2531 * for the stop request
2533 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP
= 4,
2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST
,
2536 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX
=
2537 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST
- 1,
2540 enum qca_wlan_vendor_attr_ll_stats_get
{
2541 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID
= 0,
2542 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2543 * command. When reporting the stats results, the driver uses the same
2544 * value to indicate which GET request the results correspond to.
2546 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID
= 1,
2547 /* Unsigned 32 bit value - bit mask to identify what statistics are
2548 * requested for retrieval.
2549 * Radio Statistics 0x00000001
2550 * Interface Statistics 0x00000020
2551 * All Peer Statistics 0x00000040
2552 * Peer Statistics 0x00000080
2554 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK
= 2,
2556 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST
,
2557 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX
=
2558 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST
- 1,
2561 enum qca_wlan_vendor_attr_ll_stats_results
{
2562 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID
= 0,
2563 /* Unsigned 32bit value. Used by the driver; must match the request id
2564 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2566 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID
= 1,
2568 /* Unsigned 32 bit value */
2569 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX
= 2,
2570 /* Unsigned 32 bit value */
2571 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX
= 3,
2572 /* Unsigned 32 bit value */
2573 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX
= 4,
2574 /* Unsigned 32 bit value */
2575 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX
= 5,
2576 /* Signed 32 bit value */
2577 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT
= 6,
2578 /* Signed 32 bit value */
2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA
= 7,
2580 /* Signed 32 bit value */
2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK
= 8,
2583 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2584 * nested within the interface stats.
2587 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2588 * Type = enum wifi_interface_mode.
2590 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE
= 9,
2591 /* Interface MAC address. An array of 6 Unsigned int8 */
2592 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR
= 10,
2593 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2594 * AUTHENTICATING, etc. valid for STA, CLI only.
2596 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE
= 11,
2597 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2599 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING
= 12,
2600 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2601 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES
= 13,
2602 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2603 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID
= 14,
2604 /* BSSID. An array of 6 unsigned 8 bit values */
2605 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID
= 15,
2606 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2609 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR
= 16,
2610 /* Country string for this association. An array of 3 unsigned 8 bit
2613 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR
= 17,
2615 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2616 * be nested within the interface stats.
2619 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2620 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC
= 18,
2621 /* Unsigned int 32 value corresponding to respective AC */
2622 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU
= 19,
2623 /* Unsigned int 32 value corresponding to respective AC */
2624 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU
= 20,
2625 /* Unsigned int 32 value corresponding to respective AC */
2626 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST
= 21,
2627 /* Unsigned int 32 value corresponding to respective AC */
2628 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST
= 22,
2629 /* Unsigned int 32 value corresponding to respective AC */
2630 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU
= 23,
2631 /* Unsigned int 32 value corresponding to respective AC */
2632 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU
= 24,
2633 /* Unsigned int 32 value corresponding to respective AC */
2634 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST
= 25,
2635 /* Unsigned int 32 value corresponding to respective AC */
2636 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES
= 26,
2637 /* Unsigned int 32 value corresponding to respective AC */
2638 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT
= 27,
2639 /* Unsigned int 32 values corresponding to respective AC */
2640 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG
= 28,
2641 /* Unsigned int 32 values corresponding to respective AC */
2642 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN
= 29,
2643 /* Unsigned int 32 values corresponding to respective AC */
2644 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX
= 30,
2645 /* Unsigned int 32 values corresponding to respective AC */
2646 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG
= 31,
2647 /* Unsigned int 32 values corresponding to respective AC */
2648 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES
= 32,
2649 /* Unsigned 32 bit value. Number of peers */
2650 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS
= 33,
2652 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2653 * nested within the interface stats.
2656 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2657 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE
= 34,
2658 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2661 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS
= 35,
2662 /* Unsigned int 32 bit value representing capabilities corresponding
2663 * to respective peer.
2665 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES
= 36,
2666 /* Unsigned 32 bit value. Number of rates */
2667 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES
= 37,
2669 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2670 * are nested within the rate stat.
2673 /* Wi-Fi Rate - separate attributes defined for individual fields */
2675 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2676 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE
= 38,
2677 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2678 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS
= 39,
2679 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2680 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW
= 40,
2681 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2682 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2684 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX
= 41,
2686 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2687 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE
= 42,
2689 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2690 * nested within the peer info stats.
2693 /* Unsigned int 32 bit value. Number of successfully transmitted data
2694 * packets, i.e., with ACK received corresponding to the respective
2697 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU
= 43,
2698 /* Unsigned int 32 bit value. Number of received data packets
2699 * corresponding to the respective rate.
2701 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU
= 44,
2702 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2703 * received corresponding to the respective rate.
2705 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST
= 45,
2706 /* Unsigned int 32 bit value. Total number of data packet retries for
2707 * the respective rate.
2709 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES
= 46,
2710 /* Unsigned int 32 bit value. Total number of short data packet retries
2711 * for the respective rate.
2713 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT
= 47,
2714 /* Unsigned int 32 bit value. Total number of long data packet retries
2715 * for the respective rate.
2717 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG
= 48,
2719 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID
= 49,
2720 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2721 * accruing over time.
2723 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME
= 50,
2724 /* Unsigned 32 bit value. Total number of msecs the radio is
2725 * transmitting accruing over time.
2727 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME
= 51,
2728 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2729 * receive accruing over time.
2731 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME
= 52,
2732 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2733 * to all scan accruing over time.
2735 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN
= 53,
2736 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2737 * to NAN accruing over time.
2739 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD
= 54,
2740 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2741 * to GSCAN accruing over time.
2743 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN
= 55,
2744 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2745 * to roam scan accruing over time.
2747 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN
= 56,
2748 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2749 * to PNO scan accruing over time.
2751 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN
= 57,
2752 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2753 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2755 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20
= 58,
2756 /* Unsigned 32 bit value. Number of channels. */
2757 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS
= 59,
2759 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2760 * be nested within the channel stats.
2763 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2764 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH
= 60,
2765 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2766 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ
= 61,
2767 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2768 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0
= 62,
2769 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2770 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1
= 63,
2772 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2773 * nested within the radio stats.
2776 /* Unsigned int 32 bit value representing total number of msecs the
2777 * radio is awake on that channel accruing over time, corresponding to
2778 * the respective channel.
2780 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME
= 64,
2781 /* Unsigned int 32 bit value representing total number of msecs the CCA
2782 * register is busy accruing over time corresponding to the respective
2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME
= 65,
2787 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS
= 66,
2789 /* Signifies the nested list of channel attributes
2790 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2792 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO
= 67,
2794 /* Signifies the nested list of peer info attributes
2795 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2797 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO
= 68,
2799 /* Signifies the nested list of rate info attributes
2800 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2802 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO
= 69,
2804 /* Signifies the nested list of wmm info attributes
2805 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2807 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO
= 70,
2809 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2810 * that more stats, e.g., peers or radio, are to follow in the next
2811 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2812 * Otherwise, it is set to 0.
2814 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA
= 71,
2816 /* Unsigned 64 bit value */
2817 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET
= 72,
2819 /* Unsigned 32 bit value */
2820 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED
= 73,
2822 /* Unsigned 32 bit value */
2823 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED
= 74,
2825 /* Unsigned 32 bit value */
2826 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME
= 75,
2828 /* Unsigned 32 bit value */
2829 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE
= 76,
2831 /* Unsigned 32 bit value */
2832 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS
= 77,
2834 /* Number of msecs the radio spent in transmitting for each power level
2836 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL
= 78,
2838 /* Unsigned 32 bit value */
2839 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT
= 79,
2840 /* Unsigned 32 bit value */
2841 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT
= 80,
2842 /* Unsigned 32 bit value */
2843 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT
= 81,
2844 /* Unsigned 32 bit value */
2845 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT
= 82,
2847 /* Unsigned int 32 value.
2848 * Pending MSDUs corresponding to respective AC.
2850 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU
= 83,
2853 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST
,
2854 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX
=
2855 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST
- 1,
2858 enum qca_wlan_vendor_attr_ll_stats_type
{
2859 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID
= 0,
2860 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO
= 1,
2861 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE
= 2,
2862 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS
= 3,
2865 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST
,
2866 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX
=
2867 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST
- 1,
2871 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2872 * TDLS configuration to the host driver.
2874 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2875 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2876 * represents the different TDLS trigger modes.
2877 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2878 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2879 * of packets shall meet the criteria for implicit TDLS setup.
2880 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2881 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2882 * to initiate a TDLS setup.
2883 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2884 * a TDLS Discovery to the peer.
2885 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2886 * discovery attempts to know the TDLS capability of the peer. A peer is
2887 * marked as TDLS not capable if there is no response for all the attempts.
2888 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2889 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2890 * number of TX / RX frames meet the criteria for TDLS teardown.
2891 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2892 * of Tx/Rx packets within a duration
2893 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2894 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2895 * corresponding to the RSSI of the peer below which a TDLS setup is
2897 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2898 * corresponding to the RSSI of the peer above which a TDLS teardown is
2901 enum qca_wlan_vendor_attr_tdls_configuration
{
2902 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID
= 0,
2903 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE
= 1,
2905 /* Attributes configuring the TDLS Implicit Trigger */
2906 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
= 2,
2907 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD
= 3,
2908 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD
= 4,
2909 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT
= 5,
2910 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT
= 6,
2911 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
= 7,
2912 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD
= 8,
2913 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD
= 9,
2916 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST
,
2917 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX
=
2918 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST
- 1
2922 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2925 * The following are the different values for
2926 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2928 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2929 * the TDLS connection to a respective peer comes from the user space.
2930 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2931 * TDLS_DISCOVER to do this.
2932 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2933 * setup/teardown to the eligible peer once the configured criteria
2934 * (such as TX/RX threshold, RSSI) is met. The attributes
2935 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2936 * the different configuration criteria for the TDLS trigger from the
2938 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2939 * the TDLS setup / teardown through the implicit mode only to the
2940 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2941 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2942 * External mode works on top of the implicit mode. Thus the host driver
2943 * is expected to configure in TDLS Implicit mode too to operate in
2945 * Configuring External mode alone without Implicit mode is invalid.
2947 * All the above implementations work as expected only when the host driver
2948 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2949 * that the TDLS message exchange is not internal to the host driver, but
2950 * depends on wpa_supplicant to do the message exchange.
2952 enum qca_wlan_vendor_tdls_trigger_mode
{
2953 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT
= 1 << 0,
2954 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT
= 1 << 1,
2955 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL
= 1 << 2,
2959 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
2960 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
2961 * that is hard-coded in the Board Data File (BDF).
2962 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
2963 * that is hard-coded in the Board Data File (BDF).
2964 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
2965 * that is hard-coded in the Board Data File (BDF).
2966 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
2967 * that is hard-coded in the Board Data File (BDF).
2968 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
2969 * that is hard-coded in the Board Data File (BDF).
2970 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
2971 * source of SAR power limits, thereby disabling the SAR power
2973 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
2974 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
2975 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
2976 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
2978 * This enumerates the valid set of values that may be supplied for
2979 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
2980 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
2981 * the response to an instance of the
2982 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
2984 enum qca_vendor_attr_sar_limits_selections
{
2985 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0
= 0,
2986 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1
= 1,
2987 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2
= 2,
2988 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3
= 3,
2989 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4
= 4,
2990 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE
= 5,
2991 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER
= 6,
2992 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0
= 7,
2996 * enum qca_vendor_attr_sar_limits_spec_modulations -
2997 * SAR limits specification modulation
2998 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3000 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3003 * This enumerates the valid set of values that may be supplied for
3004 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3005 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3006 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
3007 * command or in the response to an instance of the
3008 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
3010 enum qca_vendor_attr_sar_limits_spec_modulations
{
3011 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK
= 0,
3012 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM
= 1,
3016 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3018 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
3019 * select which SAR power limit table should be used. Valid
3020 * values are enumerated in enum
3021 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3022 * power limit selection is unchanged if this attribute is not
3025 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3026 * which specifies the number of SAR power limit specifications
3027 * which will follow.
3029 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3030 * limit specifications. The number of specifications is
3031 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3032 * specification contains a set of
3033 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3034 * specification is uniquely identified by the attributes
3035 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3036 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3037 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3038 * contains as a payload the attribute
3039 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3040 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3041 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3042 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3043 * needed based upon the value of
3044 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
3046 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3047 * indicate for which band this specification applies. Valid
3048 * values are enumerated in enum %nl80211_band (although not all
3049 * bands may be supported by a given device). If the attribute is
3050 * not supplied then the specification will be applied to all
3053 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3054 * to indicate for which antenna chain this specification
3055 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3056 * attribute is not supplied then the specification will be
3057 * applied to all chains.
3059 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3060 * value to indicate for which modulation scheme this
3061 * specification applies. Valid values are enumerated in enum
3062 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3063 * is not supplied then the specification will be applied to all
3064 * modulation schemes.
3066 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3067 * value to specify the actual power limit value in units of 0.5
3068 * dBm (i.e., a value of 11 represents 5.5 dBm).
3069 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3070 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
3072 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3073 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3074 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3075 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
3077 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3078 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
3080 enum qca_vendor_attr_sar_limits
{
3081 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID
= 0,
3082 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE
= 1,
3083 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS
= 2,
3084 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC
= 3,
3085 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND
= 4,
3086 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN
= 5,
3087 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION
= 6,
3088 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT
= 7,
3089 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX
= 8,
3091 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST
,
3092 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX
=
3093 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST
- 1
3097 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3098 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
3100 enum qca_wlan_vendor_attr_get_wifi_info
{
3101 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID
= 0,
3102 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION
= 1,
3103 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION
= 2,
3106 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST
,
3107 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX
=
3108 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST
- 1,
3112 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3113 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3115 enum qca_wlan_vendor_attr_wifi_logger_start
{
3116 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID
= 0,
3117 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID
= 1,
3118 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL
= 2,
3119 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS
= 3,
3122 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST
,
3123 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX
=
3124 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST
- 1,
3127 enum qca_wlan_vendor_attr_logger_results
{
3128 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID
= 0,
3130 /* Unsigned 32-bit value; must match the request Id supplied by
3131 * Wi-Fi HAL in the corresponding subcmd NL msg.
3133 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID
= 1,
3135 /* Unsigned 32-bit value; used to indicate the size of memory
3136 * dump to be allocated.
3138 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE
= 2,
3141 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST
,
3142 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX
=
3143 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST
- 1,
3146 enum qca_wlan_vendor_attr_roaming_config_params
{
3147 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID
= 0,
3149 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD
= 1,
3150 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID
= 2,
3152 /* Attributes for wifi_set_ssid_white_list */
3153 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS
= 3,
3154 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST
= 4,
3155 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
= 5,
3157 /* Attributes for set_roam_params */
3158 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD
= 6,
3159 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD
= 7,
3160 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR
= 8,
3161 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR
= 9,
3162 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST
= 10,
3163 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS
= 11,
3164 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER
= 12,
3166 /* Attribute for set_lazy_roam */
3167 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
= 13,
3169 /* Attribute for set_lazy_roam with preferences */
3170 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS
= 14,
3171 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID
= 15,
3172 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID
= 16,
3173 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER
= 17,
3175 /* Attribute for set_blacklist bssid params */
3176 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS
= 18,
3177 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID
= 19,
3178 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID
= 20,
3181 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST
,
3182 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX
=
3183 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST
- 1,
3187 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
3188 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3190 enum qca_wlan_vendor_attr_roam_subcmd
{
3191 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID
= 0,
3192 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST
= 1,
3193 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS
= 2,
3194 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM
= 3,
3195 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS
= 4,
3196 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS
= 5,
3197 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID
= 6,
3200 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST
,
3201 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX
=
3202 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST
- 1,
3205 enum qca_wlan_vendor_attr_gscan_config_params
{
3206 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID
= 0,
3208 /* Unsigned 32-bit value */
3209 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID
= 1,
3211 /* Attributes for data used by
3212 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
3214 /* Unsigned 32-bit value */
3215 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
3217 /* Unsigned 32-bit value */
3218 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
3221 /* Attributes for input params used by
3222 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
3225 /* Unsigned 32-bit value; channel frequency */
3226 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL
= 4,
3227 /* Unsigned 32-bit value; dwell time in ms. */
3228 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME
= 5,
3229 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
3230 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE
= 6,
3231 /* Unsigned 8-bit value; channel class */
3232 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS
= 7,
3234 /* Unsigned 8-bit value; bucket index, 0 based */
3235 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX
= 8,
3236 /* Unsigned 8-bit value; band. */
3237 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND
= 9,
3238 /* Unsigned 32-bit value; desired period, in ms. */
3239 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD
= 10,
3240 /* Unsigned 8-bit value; report events semantics. */
3241 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS
= 11,
3242 /* Unsigned 32-bit value. Followed by a nested array of
3243 * GSCAN_CHANNEL_SPEC_* attributes.
3245 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
= 12,
3247 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
3248 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3250 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC
= 13,
3252 /* Unsigned 32-bit value; base timer period in ms. */
3253 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD
= 14,
3254 /* Unsigned 32-bit value; number of APs to store in each scan in the
3255 * BSSID/RSSI history buffer (keep the highest RSSI APs).
3257 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN
= 15,
3258 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
3261 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
3264 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
3265 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
3266 * of the array is determined by NUM_BUCKETS.
3268 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
= 17,
3270 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
3271 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
3273 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC
= 18,
3275 /* Unsigned 8-bit value */
3276 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
3278 /* Unsigned 32-bit value; maximum number of results to be returned. */
3279 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
3282 /* An array of 6 x unsigned 8-bit value */
3283 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID
= 21,
3284 /* Signed 32-bit value */
3285 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW
= 22,
3286 /* Signed 32-bit value */
3287 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH
= 23,
3288 /* Unsigned 32-bit value */
3289 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL
= 24,
3291 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
3292 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
3293 * array is determined by NUM_AP.
3295 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP
= 25,
3297 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
3298 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3300 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM
= 26,
3302 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
3303 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
3305 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3306 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
3308 /* Unsigned 32-bit value; number of APs breaching threshold. */
3309 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING
= 29,
3310 /* Unsigned 32-bit value; number of APs. Followed by an array of
3311 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
3313 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP
= 30,
3314 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3315 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
3317 /* Unsigned 32-bit value. If max_period is non zero or different than
3318 * period, then this bucket is an exponential backoff bucket.
3320 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD
= 32,
3321 /* Unsigned 32-bit value. */
3322 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE
= 33,
3323 /* Unsigned 32-bit value. For exponential back off bucket, number of
3324 * scans to perform for a given period.
3326 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT
= 34,
3327 /* Unsigned 8-bit value; in number of scans, wake up AP after these
3330 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
3333 /* Attributes for data used by
3334 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
3336 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
3337 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
3339 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
3340 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
3341 * size of the array is determined by NUM_SSID.
3343 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
= 37,
3344 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
3346 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
3348 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM
= 38,
3350 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3351 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID
= 39,
3352 /* Unsigned 8-bit value */
3353 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND
= 40,
3354 /* Signed 32-bit value */
3355 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW
= 41,
3356 /* Signed 32-bit value */
3357 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH
= 42,
3358 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
3360 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS
= 43,
3363 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST
,
3364 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX
=
3365 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST
- 1,
3368 enum qca_wlan_vendor_attr_gscan_results
{
3369 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID
= 0,
3371 /* Unsigned 32-bit value; must match the request Id supplied by
3372 * Wi-Fi HAL in the corresponding subcmd NL msg.
3374 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID
= 1,
3376 /* Unsigned 32-bit value; used to indicate the status response from
3377 * firmware/driver for the vendor sub-command.
3379 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS
= 2,
3381 /* GSCAN Valid Channels attributes */
3382 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3383 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS
= 3,
3384 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
3385 * representing channel numbers.
3387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS
= 4,
3389 /* GSCAN Capabilities attributes */
3390 /* Unsigned 32-bit value */
3391 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE
= 5,
3392 /* Unsigned 32-bit value */
3393 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS
= 6,
3394 /* Unsigned 32-bit value */
3395 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3397 /* Unsigned 32-bit value */
3398 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3400 /* Signed 32-bit value */
3401 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3403 /* Unsigned 32-bit value */
3404 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS
= 10,
3405 /* Unsigned 32-bit value */
3406 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3408 /* Unsigned 32-bit value */
3409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3412 /* GSCAN Attributes used with
3413 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3416 /* Unsigned 32-bit value */
3417 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
= 13,
3419 /* GSCAN attributes used with
3420 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3423 /* An array of NUM_RESULTS_AVAILABLE x
3424 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3426 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST
= 14,
3428 /* Unsigned 64-bit value; age of sample at the time of retrieval */
3429 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP
= 15,
3430 /* 33 x unsigned 8-bit value; NULL terminated SSID */
3431 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID
= 16,
3432 /* An array of 6 x unsigned 8-bit value */
3433 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID
= 17,
3434 /* Unsigned 32-bit value; channel frequency in MHz */
3435 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL
= 18,
3436 /* Signed 32-bit value */
3437 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI
= 19,
3438 /* Unsigned 32-bit value */
3439 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT
= 20,
3440 /* Unsigned 32-bit value */
3441 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD
= 21,
3442 /* Unsigned 16-bit value */
3443 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD
= 22,
3444 /* Unsigned 16-bit value */
3445 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY
= 23,
3446 /* Unsigned 32-bit value; size of the IE DATA blob */
3447 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH
= 24,
3448 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3449 * information elements found in the beacon; this data should be a
3450 * packed list of wifi_information_element objects, one after the
3453 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA
= 25,
3455 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3458 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA
= 26,
3460 /* GSCAN attributes for
3461 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3463 /* Unsigned 8-bit value */
3464 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE
= 27,
3465 /* Unsigned 32-bit value */
3466 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS
= 28,
3468 /* GSCAN attributes for
3469 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3471 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3472 * to indicate number of results.
3473 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3477 /* GSCAN attributes for
3478 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3480 /* An array of 6 x unsigned 8-bit value */
3481 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID
= 29,
3482 /* Unsigned 32-bit value */
3483 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3485 /* Unsigned 32-bit value. */
3486 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3488 /* A nested array of signed 32-bit RSSI values. Size of the array is
3489 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3491 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3494 /* GSCAN attributes used with
3495 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3497 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3498 * to indicate number of gscan cached results returned.
3499 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3500 * the list of gscan cached results.
3503 /* An array of NUM_RESULTS_AVAILABLE x
3504 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3506 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST
= 33,
3507 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3508 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID
= 34,
3509 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3511 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS
= 35,
3512 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3513 * to indicate number of wifi scan results/bssids retrieved by the scan.
3514 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3515 * list of wifi scan results returned for each cached result block.
3518 /* GSCAN attributes for
3519 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3521 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3522 * number of results.
3523 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3524 * list of wifi scan results returned for each
3525 * wifi_passpoint_match_result block.
3526 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3529 /* GSCAN attributes for
3530 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3532 /* Unsigned 32-bit value */
3533 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3535 /* A nested array of
3536 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3537 * attributes. Array size =
3538 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3540 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST
= 37,
3542 /* Unsigned 32-bit value; network block id for the matched network */
3543 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID
= 38,
3544 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3545 * list of wifi scan results returned for each
3546 * wifi_passpoint_match_result block.
3548 /* Unsigned 32-bit value */
3549 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN
= 39,
3550 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3551 * ANQP data in the information_element format.
3553 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP
= 40,
3555 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3556 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS
= 41,
3557 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3558 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS
= 42,
3559 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3560 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3562 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3563 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3566 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED
= 45,
3568 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
3569 * This is used to limit the maximum number of BSSIDs while sending
3570 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with attributes
3571 * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID and
3572 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
3574 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID
= 46,
3577 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST
,
3578 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX
=
3579 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST
- 1,
3582 enum qca_wlan_vendor_attr_pno_config_params
{
3583 QCA_WLAN_VENDOR_ATTR_PNO_INVALID
= 0,
3584 /* Attributes for data used by
3585 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3587 /* Unsigned 32-bit value */
3588 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM
= 1,
3589 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3590 * attributes. Array size =
3591 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3593 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY
= 2,
3595 /* Unsigned 32-bit value */
3596 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID
= 3,
3597 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3598 * realm, 0 if unspecified.
3600 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM
= 4,
3601 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3602 * match, 0 if unspecified.
3604 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID
= 5,
3605 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3608 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN
= 6,
3610 /* Attributes for data used by
3611 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3613 /* Unsigned 32-bit value */
3614 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
= 7,
3616 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3617 * attributes. Array size =
3618 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3620 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST
= 8,
3621 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3622 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID
= 9,
3623 /* Signed 8-bit value; threshold for considering this SSID as found,
3624 * required granularity for this threshold is 4 dBm to 8 dBm.
3626 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3628 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3629 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS
= 11,
3630 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3631 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT
= 12,
3632 /* Unsigned 8-bit to indicate ePNO type;
3633 * It takes values from qca_wlan_epno_type
3635 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
= 13,
3637 /* Nested attribute to send the channel list */
3638 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
= 14,
3640 /* Unsigned 32-bit value; indicates the interval between PNO scan
3643 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
= 15,
3644 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
= 16,
3645 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
= 17,
3646 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
= 18,
3647 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
= 19,
3648 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
= 20,
3649 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
= 21,
3650 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
= 22,
3651 /* Unsigned 32-bit value, representing the PNO Request ID */
3652 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
= 23,
3655 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST
,
3656 QCA_WLAN_VENDOR_ATTR_PNO_MAX
=
3657 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST
- 1,
3661 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3662 * the ACS has to be triggered. These values are used by
3663 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3664 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3666 enum qca_wlan_vendor_acs_select_reason
{
3667 /* Represents the reason that the ACS triggered during the AP start */
3668 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT
,
3669 /* Represents the reason that DFS found with the current channel */
3670 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS
,
3671 /* Represents the reason that LTE co-exist in the current band. */
3672 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX
,
3676 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3677 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3678 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3679 * external ACS policies to select the channels w.r.t. the PCL weights.
3680 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3681 * their PCL weights.)
3682 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3683 * select a channel with non-zero PCL weight.
3684 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3685 * channel with non-zero PCL weight.
3688 enum qca_wlan_vendor_attr_external_acs_policy
{
3689 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED
,
3690 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY
,
3694 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3695 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3697 enum qca_wlan_vendor_channel_prop_flags
{
3698 /* Bits 0, 1, 2, and 3 are reserved */
3701 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO
= 1 << 4,
3703 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK
= 1 << 5,
3705 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM
= 1 << 6,
3706 /* 2.4 GHz spectrum channel. */
3707 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ
= 1 << 7,
3708 /* 5 GHz spectrum channel */
3709 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ
= 1 << 8,
3710 /* Only passive scan allowed */
3711 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE
= 1 << 9,
3712 /* Dynamic CCK-OFDM channel */
3713 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN
= 1 << 10,
3714 /* GFSK channel (FHSS PHY) */
3715 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK
= 1 << 11,
3716 /* Radar found on channel */
3717 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR
= 1 << 12,
3718 /* 11a static turbo channel only */
3719 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO
= 1 << 13,
3720 /* Half rate channel */
3721 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF
= 1 << 14,
3722 /* Quarter rate channel */
3723 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER
= 1 << 15,
3725 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20
= 1 << 16,
3726 /* HT 40 with extension channel above */
3727 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS
= 1 << 17,
3728 /* HT 40 with extension channel below */
3729 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS
= 1 << 18,
3730 /* HT 40 intolerant */
3731 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL
= 1 << 19,
3732 /* VHT 20 channel */
3733 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20
= 1 << 20,
3734 /* VHT 40 with extension channel above */
3735 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS
= 1 << 21,
3736 /* VHT 40 with extension channel below */
3737 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS
= 1 << 22,
3738 /* VHT 80 channel */
3739 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80
= 1 << 23,
3740 /* HT 40 intolerant mark bit for ACS use */
3741 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK
= 1 << 24,
3742 /* Channel temporarily blocked due to noise */
3743 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED
= 1 << 25,
3744 /* VHT 160 channel */
3745 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160
= 1 << 26,
3746 /* VHT 80+80 channel */
3747 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80
= 1 << 27,
3749 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20
= 1 << 28,
3750 /* HE 40 with extension channel above */
3751 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS
= 1 << 29,
3752 /* HE 40 with extension channel below */
3753 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS
= 1 << 30,
3754 /* HE 40 intolerant */
3755 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL
= 1 << 31,
3759 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3760 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3761 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3763 enum qca_wlan_vendor_channel_prop_flags_2
{
3764 /* HE 40 intolerant mark bit for ACS use */
3765 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK
= 1 << 0,
3767 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80
= 1 << 1,
3768 /* HE 160 channel */
3769 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160
= 1 << 2,
3770 /* HE 80+80 channel */
3771 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80
= 1 << 3,
3775 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3776 * each channel. This is used by
3777 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3779 enum qca_wlan_vendor_channel_prop_flags_ext
{
3780 /* Radar found on channel */
3781 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND
= 1 << 0,
3782 /* DFS required on channel */
3783 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS
= 1 << 1,
3784 /* DFS required on channel for 2nd band of 80+80 */
3785 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2
= 1 << 2,
3786 /* If channel has been checked for DFS */
3787 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR
= 1 << 3,
3788 /* Excluded in 802.11d */
3789 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED
= 1 << 4,
3790 /* Channel Switch Announcement received on this channel */
3791 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED
= 1 << 5,
3792 /* Ad-hoc is not allowed */
3793 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC
= 1 << 6,
3794 /* Station only channel */
3795 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP
= 1 << 7,
3796 /* DFS radar history for slave device (STA mode) */
3797 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR
= 1 << 8,
3798 /* DFS CAC valid for slave device (STA mode) */
3799 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID
= 1 << 9,
3803 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3804 * information. These attributes are sent as part of
3805 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3806 * attributes correspond to a single channel.
3808 enum qca_wlan_vendor_external_acs_event_chan_info_attr
{
3809 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID
= 0,
3811 /* A bitmask (u32) with flags specified in
3812 * enum qca_wlan_vendor_channel_prop_flags.
3814 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS
= 1,
3815 /* A bitmask (u32) with flags specified in
3816 * enum qca_wlan_vendor_channel_prop_flags_ext.
3818 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT
= 2,
3819 /* frequency in MHz (u32) */
3820 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ
= 3,
3821 /* maximum regulatory transmission power (u32) */
3822 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER
= 4,
3823 /* maximum transmission power (u32) */
3824 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER
= 5,
3825 /* minimum transmission power (u32) */
3826 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER
= 6,
3827 /* regulatory class id (u8) */
3828 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID
= 7,
3829 /* maximum antenna gain in (u8) */
3830 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN
= 8,
3831 /* VHT segment 0 (u8) */
3832 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
= 9,
3833 /* VHT segment 1 (u8) */
3834 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
= 10,
3835 /* A bitmask (u32) with flags specified in
3836 * enum qca_wlan_vendor_channel_prop_flags_2.
3838 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2
= 11,
3841 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST
,
3842 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX
=
3843 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST
- 1,
3847 * qca_wlan_vendor_attr_pcl: Represents attributes for
3848 * preferred channel list (PCL). These attributes are sent as part of
3849 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
3850 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
3852 enum qca_wlan_vendor_attr_pcl
{
3853 QCA_WLAN_VENDOR_ATTR_PCL_INVALID
= 0,
3855 /* Channel number (u8) */
3856 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL
= 1,
3857 /* Channel weightage (u8) */
3858 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT
= 2,
3859 /* Channel frequency (u32) in MHz */
3860 QCA_WLAN_VENDOR_ATTR_PCL_FREQ
= 3,
3861 /* Channel flags (u32)
3862 * bit 0 set: channel to be used for GO role,
3863 * bit 1 set: channel to be used on CLI role,
3864 * bit 2 set: channel must be considered for operating channel
3865 * selection & peer chosen operating channel should be
3866 * one of the channels with this flag set,
3867 * bit 3 set: channel should be excluded in GO negotiation
3869 QCA_WLAN_VENDOR_ATTR_PCL_FLAG
= 4,
3873 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3874 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3877 enum qca_wlan_vendor_attr_external_acs_event
{
3878 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID
= 0,
3880 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3881 * This helps ACS module to understand why ACS needs to be started.
3883 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON
= 1,
3884 /* Flag attribute to indicate if driver supports spectral scanning */
3885 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED
= 2,
3886 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3887 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED
= 3,
3888 /* Flag attribute to indicate if driver provides additional channel
3889 * capability as part of scan operation
3891 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT
= 4,
3892 /* Flag attribute to indicate interface status is UP */
3893 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP
= 5,
3894 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
3897 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE
= 6,
3898 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3899 * This is the upper bound of channel width. ACS logic should try to get
3900 * a channel with the specified width and if not found, look for lower
3903 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH
= 7,
3904 /* This (u8) will hold values of one of enum nl80211_bands */
3905 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND
= 8,
3906 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
3909 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE
= 9,
3910 /* Array of (u32) supported frequency list among which ACS should choose
3913 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST
= 10,
3914 /* Preferred channel list by the driver which will have array of nested
3915 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3917 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL
= 11,
3918 /* Array of nested attribute for each channel. It takes attr as defined
3919 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3921 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO
= 12,
3922 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
3923 * It uses values defined in enum
3924 * qca_wlan_vendor_attr_external_acs_policy.
3926 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY
= 13,
3927 /* Reference RF Operating Parameter (RROP) availability information
3928 * (u16). It uses values defined in enum
3929 * qca_wlan_vendor_attr_rropavail_info.
3931 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO
= 14,
3934 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST
,
3935 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX
=
3936 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST
- 1,
3940 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3941 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3942 * in priority order as decided after ACS operation in userspace.
3944 enum qca_wlan_vendor_attr_external_acs_channels
{
3945 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID
= 0,
3947 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3949 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
= 1,
3951 /* Array of nested values for each channel with following attributes:
3952 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3953 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3954 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3955 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3956 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3957 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
3959 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
= 2,
3960 /* This (u8) will hold values of one of enum nl80211_bands */
3961 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND
= 3,
3962 /* Primary channel (u8) */
3963 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
= 4,
3964 /* Secondary channel (u8) used for HT 40 MHz channels */
3965 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
= 5,
3966 /* VHT seg0 channel (u8) */
3967 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
= 6,
3968 /* VHT seg1 channel (u8) */
3969 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
= 7,
3970 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
3971 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
= 8,
3974 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST
,
3975 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX
=
3976 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST
- 1
3979 enum qca_chip_power_save_failure_reason
{
3980 /* Indicates if the reason for the failure is due to a protocol
3983 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL
= 0,
3984 /* Indicates if the reason for the failure is due to a hardware issue.
3986 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE
= 1,
3990 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
3991 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
3992 * information leading to the power save failure.
3994 enum qca_attr_chip_power_save_failure
{
3995 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID
= 0,
3996 /* Reason to cause the power save failure.
3997 * These reasons are represented by
3998 * enum qca_chip_power_save_failure_reason.
4000 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON
= 1,
4003 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST
,
4004 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX
=
4005 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST
- 1,
4009 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4010 * data types for which the stats have to get collected.
4012 enum qca_wlan_vendor_nud_stats_data_pkt_flags
{
4013 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP
= 1 << 0,
4014 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS
= 1 << 1,
4015 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE
= 1 << 2,
4016 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4
= 1 << 3,
4017 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6
= 1 << 4,
4018 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4019 * to represent the stats of respective data type.
4021 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN
= 1 << 5,
4022 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK
= 1 << 6,
4023 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK
= 1 << 7,
4026 enum qca_wlan_vendor_nud_stats_set_data_pkt_info
{
4027 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID
= 0,
4028 /* Represents the data packet type to be monitored (u32).
4029 * Host driver tracks the stats corresponding to each data frame
4030 * represented by these flags.
4031 * These data packets are represented by
4032 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
4034 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE
= 1,
4035 /* Name corresponding to the DNS frame for which the respective DNS
4036 * stats have to get monitored (string). Max string length 255.
4038 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME
= 2,
4039 /* source port on which the respective proto stats have to get
4042 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT
= 3,
4043 /* destination port on which the respective proto stats have to get
4046 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT
= 4,
4047 /* IPv4 address for which the destined data packets have to be
4048 * monitored. (in network byte order), u32.
4050 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4
= 5,
4051 /* IPv6 address for which the destined data packets have to be
4052 * monitored. (in network byte order), 16 bytes array.
4054 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6
= 6,
4056 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST
,
4057 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX
=
4058 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST
- 1,
4062 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4063 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4064 * information to start/stop the NUD statistics collection.
4066 enum qca_attr_nud_stats_set
{
4067 QCA_ATTR_NUD_STATS_SET_INVALID
= 0,
4069 /* Flag to start/stop the NUD statistics collection.
4070 * Start - If included, Stop - If not included
4072 QCA_ATTR_NUD_STATS_SET_START
= 1,
4073 /* IPv4 address of the default gateway (in network byte order), u32 */
4074 QCA_ATTR_NUD_STATS_GW_IPV4
= 2,
4075 /* Represents the list of data packet types to be monitored.
4076 * Host driver tracks the stats corresponding to each data frame
4077 * represented by these flags.
4078 * These data packets are represented by
4079 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
4081 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO
= 3,
4084 QCA_ATTR_NUD_STATS_SET_LAST
,
4085 QCA_ATTR_NUD_STATS_SET_MAX
=
4086 QCA_ATTR_NUD_STATS_SET_LAST
- 1,
4089 enum qca_attr_nud_data_stats
{
4090 QCA_ATTR_NUD_DATA_STATS_INVALID
= 0,
4091 /* Data packet type for which the stats are collected (u32).
4092 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4094 QCA_ATTR_NUD_STATS_PKT_TYPE
= 1,
4095 /* Name corresponding to the DNS frame for which the respective DNS
4096 * stats are monitored (string). Max string length 255.
4098 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME
= 2,
4099 /* source port on which the respective proto stats are collected (u32).
4101 QCA_ATTR_NUD_STATS_PKT_SRC_PORT
= 3,
4102 /* destination port on which the respective proto stats are collected
4105 QCA_ATTR_NUD_STATS_PKT_DEST_PORT
= 4,
4106 /* IPv4 address for which the destined data packets have to be
4107 * monitored. (in network byte order), u32.
4109 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4
= 5,
4110 /* IPv6 address for which the destined data packets have to be
4111 * monitored. (in network byte order), 16 bytes array.
4113 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6
= 6,
4114 /* Data packet Request count received from netdev (u32). */
4115 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV
= 7,
4116 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
4117 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC
= 8,
4118 /* Data packet Request count received by lower MAC from upper MAC
4121 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC
= 9,
4122 /* Data packet Request count successfully transmitted by the device
4125 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS
= 10,
4126 /* Data packet Response count received by lower MAC (u32) */
4127 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC
= 11,
4128 /* Data packet Response count received by upper MAC (u32) */
4129 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC
= 12,
4130 /* Data packet Response count delivered to netdev (u32) */
4131 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV
= 13,
4132 /* Data Packet Response count that are dropped out of order (u32) */
4133 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP
= 14,
4136 QCA_ATTR_NUD_DATA_STATS_LAST
,
4137 QCA_ATTR_NUD_DATA_STATS_MAX
=
4138 QCA_ATTR_NUD_DATA_STATS_LAST
- 1,
4142 * qca_attr_nud_stats_get: Attributes to vendor subcmd
4143 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4144 * NUD statistics collected when queried.
4146 enum qca_attr_nud_stats_get
{
4147 QCA_ATTR_NUD_STATS_GET_INVALID
= 0,
4148 /* ARP Request count from netdev (u32) */
4149 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV
= 1,
4150 /* ARP Request count sent to lower MAC from upper MAC (u32) */
4151 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC
= 2,
4152 /* ARP Request count received by lower MAC from upper MAC (u32) */
4153 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC
= 3,
4154 /* ARP Request count successfully transmitted by the device (u32) */
4155 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS
= 4,
4156 /* ARP Response count received by lower MAC (u32) */
4157 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC
= 5,
4158 /* ARP Response count received by upper MAC (u32) */
4159 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC
= 6,
4160 /* ARP Response count delivered to netdev (u32) */
4161 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV
= 7,
4162 /* ARP Response count dropped due to out of order reception (u32) */
4163 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP
= 8,
4164 /* Flag indicating if the station's link to the AP is active.
4165 * Active Link - If included, Inactive link - If not included
4167 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE
= 9,
4168 /* Flag indicating if there is any duplicate address detected (DAD).
4169 * Yes - If detected, No - If not detected.
4171 QCA_ATTR_NUD_STATS_IS_DAD
= 10,
4172 /* List of Data packet types for which the stats are requested.
4173 * This list does not carry ARP stats as they are done by the
4174 * above attributes. Represented by enum qca_attr_nud_data_stats.
4176 QCA_ATTR_NUD_STATS_DATA_PKT_STATS
= 11,
4179 QCA_ATTR_NUD_STATS_GET_LAST
,
4180 QCA_ATTR_NUD_STATS_GET_MAX
=
4181 QCA_ATTR_NUD_STATS_GET_LAST
- 1,
4184 enum qca_wlan_btm_candidate_status
{
4185 QCA_STATUS_ACCEPT
= 0,
4186 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED
= 1,
4187 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED
= 2,
4188 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY
= 3,
4189 QCA_STATUS_REJECT_LOW_RSSI
= 4,
4190 QCA_STATUS_REJECT_HIGH_INTERFERENCE
= 5,
4191 QCA_STATUS_REJECT_UNKNOWN
= 6,
4194 enum qca_wlan_vendor_attr_btm_candidate_info
{
4195 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID
= 0,
4197 /* 6-byte MAC address representing the BSSID of transition candidate */
4198 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID
= 1,
4199 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4200 * returned by the driver. It says whether the BSSID provided in
4201 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4202 * the driver, if not it specifies the reason for rejection.
4203 * Note that the user-space can overwrite the transition reject reason
4204 * codes provided by driver based on more information.
4206 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS
= 2,
4209 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST
,
4210 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX
=
4211 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST
- 1,
4214 enum qca_attr_trace_level
{
4215 QCA_ATTR_TRACE_LEVEL_INVALID
= 0,
4217 * Nested array of the following attributes:
4218 * QCA_ATTR_TRACE_LEVEL_MODULE,
4219 * QCA_ATTR_TRACE_LEVEL_MASK.
4221 QCA_ATTR_TRACE_LEVEL_PARAM
= 1,
4223 * Specific QCA host driver module. Please refer to the QCA host
4224 * driver implementation to get the specific module ID.
4226 QCA_ATTR_TRACE_LEVEL_MODULE
= 2,
4227 /* Different trace level masks represented in the QCA host driver. */
4228 QCA_ATTR_TRACE_LEVEL_MASK
= 3,
4231 QCA_ATTR_TRACE_LEVEL_AFTER_LAST
,
4232 QCA_ATTR_TRACE_LEVEL_MAX
=
4233 QCA_ATTR_TRACE_LEVEL_AFTER_LAST
- 1,
4237 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
4239 enum qca_wlan_vendor_attr_get_he_capabilities
{
4240 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID
= 0,
4241 /* Whether HE capabilities is supported
4242 * (u8 attribute: 0 = not supported, 1 = supported)
4244 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED
= 1,
4245 /* HE PHY capabilities, array of 3 u32 values */
4246 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB
= 2,
4247 /* HE MAC capabilities (u32 attribute) */
4248 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB
= 3,
4249 /* HE MCS map (u32 attribute) */
4250 QCA_WLAN_VENDOR_ATTR_HE_MCS
= 4,
4251 /* Number of SS (u32 attribute) */
4252 QCA_WLAN_VENDOR_ATTR_NUM_SS
= 5,
4253 /* RU count (u32 attribute) */
4254 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK
= 6,
4255 /* PPE threshold data, array of 8 u32 values */
4256 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD
= 7,
4259 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST
,
4260 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX
=
4261 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST
- 1,
4265 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
4267 enum qca_wlan_vendor_attr_spectral_scan
{
4268 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID
= 0,
4269 /* Number of times the chip enters spectral scan mode before
4270 * deactivating spectral scans. When set to 0, chip will enter spectral
4271 * scan mode continuously. u32 attribute.
4273 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT
= 1,
4274 /* Spectral scan period. Period increment resolution is 256*Tclk,
4275 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
4277 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD
= 2,
4278 /* Spectral scan priority. u32 attribute. */
4279 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY
= 3,
4280 /* Number of FFT data points to compute. u32 attribute. */
4281 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE
= 4,
4282 /* Enable targeted gain change before starting the spectral scan FFT.
4285 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA
= 5,
4286 /* Restart a queued spectral scan. u32 attribute. */
4287 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA
= 6,
4288 /* Noise floor reference number for the calculation of bin power.
4291 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF
= 7,
4292 /* Disallow spectral scan triggers after TX/RX packets by setting
4293 * this delay value to roughly SIFS time period or greater.
4296 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY
= 8,
4297 /* Number of strong bins (inclusive) per sub-channel, below
4298 * which a signal is declared a narrow band tone. u32 attribute.
4300 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR
= 9,
4301 /* Specify the threshold over which a bin is declared strong (for
4302 * scan bandwidth analysis). u32 attribute.
4304 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR
= 10,
4305 /* Spectral scan report mode. u32 attribute. */
4306 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE
= 11,
4307 /* RSSI report mode, if the ADC RSSI is below
4308 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
4309 * then FFTs will not trigger, but timestamps and summaries get
4310 * reported. u32 attribute.
4312 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE
= 12,
4313 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
4314 * to ensure spectral scan reporting with normal error code.
4317 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR
= 13,
4318 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
4319 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
4322 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT
= 14,
4323 /* Format of FFT report to software for spectral scan triggered FFTs.
4324 * 0: No FFT report (only spectral scan summary report)
4325 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
4327 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
4328 * bins (in-band) per FFT + spectral scan summary report
4329 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
4330 * bins (all) per FFT + spectral scan summary report
4333 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE
= 15,
4334 /* Number of LSBs to shift out in order to scale the FFT bins.
4337 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE
= 16,
4338 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
4339 * in dBm power. u32 attribute.
4341 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ
= 17,
4342 /* Per chain enable mask to select input ADC for search FFT.
4345 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK
= 18,
4346 /* An unsigned 64-bit integer provided by host driver to identify the
4347 * spectral scan request. This attribute is included in the scan
4348 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
4349 * and used as an attribute in
4350 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
4351 * specific scan to be stopped.
4353 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE
= 19,
4354 /* Skip interval for FFT reports. u32 attribute */
4355 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD
= 20,
4356 /* Set to report only one set of FFT results.
4359 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT
= 21,
4360 /* Debug level for spectral module in driver.
4361 * 0 : Verbosity level 0
4362 * 1 : Verbosity level 1
4363 * 2 : Verbosity level 2
4364 * 3 : Matched filterID display
4365 * 4 : One time dump of FFT report
4368 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL
= 22,
4369 /* Type of spectral scan request. u32 attribute.
4370 * It uses values defined in enum
4371 * qca_wlan_vendor_attr_spectral_scan_request_type.
4373 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE
= 23,
4375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST
,
4376 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX
=
4377 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST
- 1,
4381 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
4382 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
4384 enum qca_wlan_vendor_attr_spectral_diag_stats
{
4385 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID
= 0,
4386 /* Number of spectral TLV signature mismatches.
4389 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH
= 1,
4390 /* Number of spectral phyerror events with insufficient length when
4391 * parsing for secondary 80 search FFT report. u64 attribute.
4393 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN
= 2,
4394 /* Number of spectral phyerror events without secondary 80
4395 * search FFT report. u64 attribute.
4397 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT
= 3,
4398 /* Number of spectral phyerror events with vht operation segment 1 id
4399 * mismatches in search fft report. u64 attribute.
4401 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH
= 4,
4402 /* Number of spectral phyerror events with vht operation segment 2 id
4403 * mismatches in search fft report. u64 attribute.
4405 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH
= 5,
4407 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST
,
4408 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX
=
4409 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST
- 1,
4413 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
4414 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
4416 enum qca_wlan_vendor_attr_spectral_cap
{
4417 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID
= 0,
4418 /* Flag attribute to indicate phydiag capability */
4419 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG
= 1,
4420 /* Flag attribute to indicate radar detection capability */
4421 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR
= 2,
4422 /* Flag attribute to indicate spectral capability */
4423 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL
= 3,
4424 /* Flag attribute to indicate advanced spectral capability */
4425 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL
= 4,
4426 /* Spectral hardware generation. u32 attribute.
4427 * It uses values defined in enum
4428 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
4430 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN
= 5,
4432 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST
,
4433 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX
=
4434 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST
- 1,
4438 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
4439 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
4441 enum qca_wlan_vendor_attr_spectral_scan_status
{
4442 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID
= 0,
4443 /* Flag attribute to indicate whether spectral scan is enabled */
4444 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED
= 1,
4445 /* Flag attribute to indicate whether spectral scan is in progress*/
4446 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE
= 2,
4448 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST
,
4449 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX
=
4450 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST
- 1,
4454 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
4455 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
4456 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
4457 * spectral scan request types.
4458 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
4459 * set the spectral parameters and start scan.
4460 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
4461 * only set the spectral parameters.
4462 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
4463 * only start the spectral scan.
4465 enum qca_wlan_vendor_attr_spectral_scan_request_type
{
4466 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG
,
4467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN
,
4468 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG
,
4472 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
4473 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
4474 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4475 * spectral hardware generation.
4476 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
4477 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
4478 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
4480 enum qca_wlan_vendor_spectral_scan_cap_hw_gen
{
4481 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1
= 0,
4482 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2
= 1,
4483 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3
= 2,
4486 enum qca_wlan_vendor_tos
{
4487 QCA_WLAN_VENDOR_TOS_BK
= 0,
4488 QCA_WLAN_VENDOR_TOS_BE
= 1,
4489 QCA_WLAN_VENDOR_TOS_VI
= 2,
4490 QCA_WLAN_VENDOR_TOS_VO
= 3,
4494 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
4495 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
4497 enum qca_wlan_vendor_attr_active_tos
{
4498 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID
= 0,
4499 /* Type Of Service - Represented by qca_wlan_vendor_tos */
4500 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS
= 1,
4501 /* Flag attribute representing the start (attribute included) or stop
4502 * (attribute not included) of the respective TOS.
4504 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START
= 2,
4507 enum qca_wlan_vendor_hang_reason
{
4508 /* Unspecified reason */
4509 QCA_WLAN_HANG_REASON_UNSPECIFIED
= 0,
4510 /* No Map for the MAC entry for the received frame */
4511 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND
= 1,
4512 /* Peer deletion timeout happened */
4513 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT
= 2,
4514 /* Peer unmap timeout */
4515 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT
= 3,
4516 /* Scan request timed out */
4517 QCA_WLAN_HANG_SCAN_REQ_EXPIRED
= 4,
4518 /* Consecutive Scan attempt failures */
4519 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES
= 5,
4520 /* Unable to get the message buffer */
4521 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE
= 6,
4522 /* Current command processing is timedout */
4523 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT
= 7,
4524 /* Timeout for an ACK from FW for suspend request */
4525 QCA_WLAN_HANG_SUSPEND_TIMEOUT
= 8,
4526 /* Timeout for an ACK from FW for resume request */
4527 QCA_WLAN_HANG_RESUME_TIMEOUT
= 9,
4528 /* Transmission timeout for consecutive data frames */
4529 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT
= 10,
4530 /* Timeout for the TX completion status of data frame */
4531 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT
= 11,
4532 /* DXE failure for TX/RX, DXE resource unavailability */
4533 QCA_WLAN_HANG_DXE_FAILURE
= 12,
4534 /* WMI pending commands exceed the maximum count */
4535 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS
= 13,
4539 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
4540 * QCA_NL80211_VENDOR_SUBCMD_HANG.
4542 enum qca_wlan_vendor_attr_hang
{
4543 QCA_WLAN_VENDOR_ATTR_HANG_INVALID
= 0,
4544 /* Reason for the hang - u32 attribute with a value from enum
4545 * qca_wlan_vendor_hang_reason.
4547 QCA_WLAN_VENDOR_ATTR_HANG_REASON
= 1,
4549 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST
,
4550 QCA_WLAN_VENDOR_ATTR_HANG_MAX
=
4551 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST
- 1,
4555 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
4556 * flushing pending traffic in firmware.
4558 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
4559 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
4560 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
4561 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
4562 * flush packets with access category.
4564 enum qca_wlan_vendor_attr_flush_pending
{
4565 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID
= 0,
4566 QCA_WLAN_VENDOR_ATTR_PEER_ADDR
= 1,
4567 QCA_WLAN_VENDOR_ATTR_AC
= 2,
4570 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST
,
4571 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX
=
4572 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST
- 1,
4576 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
4577 * RF Operating Parameter (RROP) information is available, and if so, at which
4578 * point in the application-driver interaction sequence it can be retrieved by
4579 * the application from the driver. This point may vary by architecture and
4580 * other factors. This is a u16 value.
4582 enum qca_wlan_vendor_attr_rropavail_info
{
4583 /* RROP information is unavailable. */
4584 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE
,
4585 /* RROP information is available and the application can retrieve the
4586 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
4587 * event from the driver.
4589 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START
,
4590 /* RROP information is available only after a vendor specific scan
4591 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
4592 * successfully completed. The application can retrieve the information
4593 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
4596 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END
,
4600 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
4601 * Representative RF Operating Parameter (RROP) information. It is sent for the
4602 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
4603 * intended for use by external Auto Channel Selection applications. It provides
4604 * guidance values for some RF parameters that are used by the system during
4605 * operation. These values could vary by channel, band, radio, and so on.
4607 enum qca_wlan_vendor_attr_rrop_info
{
4608 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID
= 0,
4610 /* Representative Tx Power List (RTPL) which has an array of nested
4611 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
4613 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL
= 1,
4615 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST
,
4616 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX
=
4617 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST
- 1
4621 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
4622 * entry instances in the Representative Tx Power List (RTPL). It provides
4623 * simplified power values intended for helping external Auto channel Selection
4624 * applications compare potential Tx power performance between channels, other
4625 * operating conditions remaining identical. These values are not necessarily
4626 * the actual Tx power values that will be used by the system. They are also not
4627 * necessarily the max or average values that will be used. Instead, they are
4628 * relative, summarized keys for algorithmic use computed by the driver or
4629 * underlying firmware considering a number of vendor specific factors.
4631 enum qca_wlan_vendor_attr_rtplinst
{
4632 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID
= 0,
4634 /* Primary channel number (u8) */
4635 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY
= 1,
4636 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
4637 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT
= 2,
4638 /* Representative Tx power in dBm (s32) with emphasis on range. */
4639 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE
= 3,
4641 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST
,
4642 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX
=
4643 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST
- 1,
4647 * enum qca_wlan_vendor_attr_config_latency_level - Level for
4648 * wlan latency module.
4650 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
4651 * power saving which would causing data exchange out of service, this
4652 * would be a big impact on latency. For latency sensitive applications over
4653 * Wi-Fi are intolerant to such operations and thus would configure them
4654 * to meet their respective needs. It is well understood by such applications
4655 * that altering the default behavior would degrade the Wi-Fi functionality
4656 * w.r.t the above pointed WLAN operations.
4658 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
4659 * Default WLAN operation level which throughput orientated.
4660 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
4661 * Use moderate level to improve latency by limit scan duration.
4662 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
4663 * Use low latency level to benifit application like concurrent
4664 * downloading or video streaming via constraint scan/adaptive PS.
4665 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
4666 * Use ultra low latency level to benefit for gaming/voice
4667 * application via constraint scan/roaming/adaptive PS.
4669 enum qca_wlan_vendor_attr_config_latency_level
{
4670 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID
= 0,
4671 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL
= 1,
4672 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE
= 2,
4673 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW
= 3,
4674 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW
= 4,
4677 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST
,
4678 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX
=
4679 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST
- 1,
4683 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
4684 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4686 enum qca_wlan_vendor_attr_mac
{
4687 QCA_WLAN_VENDOR_ATTR_MAC_INVALID
= 0,
4689 /* MAC mode info list which has an array of nested values as
4690 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
4692 QCA_WLAN_VENDOR_ATTR_MAC_INFO
= 1,
4695 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST
,
4696 QCA_WLAN_VENDOR_ATTR_MAC_MAX
=
4697 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST
- 1,
4701 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
4702 * Wi-Fi netdev interface on a respective MAC.
4703 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
4705 enum qca_wlan_vendor_attr_mac_iface_info
{
4706 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID
= 0,
4707 /* Wi-Fi netdev's interface index (u32) */
4708 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX
= 1,
4709 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
4710 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ
= 2,
4713 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST
,
4714 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX
=
4715 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST
- 1,
4719 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
4720 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
4721 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4723 enum qca_wlan_vendor_attr_mac_info
{
4724 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID
= 0,
4725 /* Hardware MAC ID associated for the MAC (u32) */
4726 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID
= 1,
4727 /* Band supported by the MAC at a given point.
4728 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
4731 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND
= 2,
4732 /* Refers to list of WLAN netdev interfaces associated with this MAC.
4733 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
4735 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO
= 3,
4738 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST
,
4739 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX
=
4740 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST
- 1,
4744 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
4745 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
4747 enum qca_wlan_vendor_attr_get_logger_features
{
4748 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID
= 0,
4749 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
4750 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED
= 1,
4752 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST
,
4753 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX
=
4754 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST
- 1,
4758 * enum wifi_logger_supported_features - Values for supported logger features
4760 enum wifi_logger_supported_features
{
4761 WIFI_LOGGER_MEMORY_DUMP_FEATURE
= (1 << (0)),
4762 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE
= (1 << (1)),
4763 WIFI_LOGGER_CONNECT_EVENT_FEATURE
= (1 << (2)),
4764 WIFI_LOGGER_POWER_EVENT_FEATURE
= (1 << (3)),
4765 WIFI_LOGGER_WAKE_LOCK_FEATURE
= (1 << (4)),
4766 WIFI_LOGGER_VERBOSE_FEATURE
= (1 << (5)),
4767 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE
= (1 << (6)),
4768 WIFI_LOGGER_DRIVER_DUMP_FEATURE
= (1 << (7)),
4769 WIFI_LOGGER_PACKET_FATE_FEATURE
= (1 << (8)),
4773 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
4774 * capabilities features
4776 enum qca_wlan_tdls_caps_features_supported
{
4777 WIFI_TDLS_SUPPORT
= (1 << (0)),
4778 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT
= (1 << (1)),
4779 WIFI_TDLS_OFFCHANNEL_SUPPORT
= (1 << (2))
4783 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
4784 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
4786 enum qca_wlan_vendor_attr_tdls_get_capabilities
{
4787 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID
= 0,
4788 /* Indicates the max concurrent sessions */
4789 /* Unsigned 32-bit value */
4790 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS
,
4791 /* Indicates the support for features */
4792 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
4794 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED
,
4797 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST
,
4798 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX
=
4799 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST
- 1,
4803 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
4804 * command used as value for the attribute
4805 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
4807 enum qca_wlan_offloaded_packets_sending_control
{
4808 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID
= 0,
4809 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START
,
4810 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
4814 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4815 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
4817 enum qca_wlan_vendor_attr_offloaded_packets
{
4818 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID
= 0,
4819 /* Takes valid value from the enum
4820 * qca_wlan_offloaded_packets_sending_control
4821 * Unsigned 32-bit value
4823 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL
,
4824 /* Unsigned 32-bit value */
4825 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID
,
4826 /* array of u8 len: Max packet size */
4827 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA
,
4828 /* 6-byte MAC address used to represent source MAC address */
4829 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR
,
4830 /* 6-byte MAC address used to represent destination MAC address */
4831 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR
,
4832 /* Unsigned 32-bit value, in milli seconds */
4833 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD
,
4836 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST
,
4837 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX
=
4838 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST
- 1,
4842 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
4843 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
4845 enum qca_wlan_rssi_monitoring_control
{
4846 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID
= 0,
4847 QCA_WLAN_RSSI_MONITORING_START
,
4848 QCA_WLAN_RSSI_MONITORING_STOP
,
4852 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
4853 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
4855 enum qca_wlan_vendor_attr_rssi_monitoring
{
4856 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID
= 0,
4857 /* Takes valid value from the enum
4858 * qca_wlan_rssi_monitoring_control
4859 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
4861 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL
,
4862 /* Unsigned 32-bit value */
4863 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID
,
4864 /* Signed 8-bit value in dBm */
4865 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI
,
4866 /* Signed 8-bit value in dBm */
4867 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI
,
4868 /* attributes to be used/received in callback */
4869 /* 6-byte MAC address used to represent current BSSID MAC address */
4870 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID
,
4871 /* Signed 8-bit value indicating the current RSSI */
4872 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI
,
4874 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST
,
4875 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX
=
4876 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST
- 1,
4880 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4881 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4883 enum qca_wlan_vendor_attr_ndp_params
{
4884 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
= 0,
4885 /* Unsigned 32-bit value
4886 * enum of sub commands values in qca_wlan_ndp_sub_cmd
4888 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD
,
4889 /* Unsigned 16-bit value */
4890 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID
,
4891 /* NL attributes for data used NDP SUB cmds */
4892 /* Unsigned 32-bit value indicating a service info */
4893 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID
,
4894 /* Unsigned 32-bit value; channel frequency in MHz */
4895 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL
,
4896 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
4897 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR
,
4898 /* Interface name on which NDP is being created */
4899 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR
,
4900 /* Unsigned 32-bit value for security */
4901 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
4902 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY
,
4903 /* Unsigned 32-bit value for QoS */
4904 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS
,
4905 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
4906 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO
,
4907 /* Unsigned 32-bit value for NDP instance Id */
4908 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID
,
4909 /* Array of instance Ids */
4910 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY
,
4911 /* Unsigned 32-bit value for initiator/responder NDP response code
4914 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE
,
4915 /* NDI MAC address. An array of 6 Unsigned int8 */
4916 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR
,
4917 /* Unsigned 32-bit value errors types returned by driver
4918 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
4919 * NanStatusType includes these values.
4921 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE
,
4922 /* Unsigned 32-bit value error values returned by driver
4923 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
4924 * NanInternalStatusType includes these values.
4926 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE
,
4927 /* Unsigned 32-bit value for Channel setup configuration
4928 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
4929 * NanDataPathChannelCfg includes these values.
4931 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG
,
4932 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
4933 QCA_WLAN_VENDOR_ATTR_NDP_CSID
,
4934 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
4935 QCA_WLAN_VENDOR_ATTR_NDP_PMK
,
4936 /* Security Context Identifier that contains the PMKID
4937 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
4939 QCA_WLAN_VENDOR_ATTR_NDP_SCID
,
4940 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
4941 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE
,
4942 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
4943 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME
,
4944 /* Unsigned 32-bit bitmap indicating schedule update
4946 * BIT_1: Channel list update
4948 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON
,
4949 /* Unsigned 32-bit value for NSS */
4950 QCA_WLAN_VENDOR_ATTR_NDP_NSS
,
4951 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
4952 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS
,
4953 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
4954 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
4956 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH
,
4957 /* Array of channel/band width */
4958 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO
,
4959 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
4960 * This attribute is used and optional for ndp request, ndp response,
4961 * ndp indication, and ndp confirm.
4963 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR
= 27,
4964 /* Unsigned 16-bit value indicating transport port used by NDP.
4965 * This attribute is used and optional for ndp response, ndp indication,
4968 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT
= 28,
4969 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
4970 * the Internet Assigned Numbers Authority (IANA) as per:
4971 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
4972 * This attribute is used and optional for ndp response, ndp indication,
4975 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL
= 29,
4976 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
4977 * 1:support 0:not support
4979 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT
= 30,
4982 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST
,
4983 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX
=
4984 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST
- 1,
4987 enum qca_wlan_ndp_sub_cmd
{
4988 QCA_WLAN_VENDOR_ATTR_NDP_INVALID
= 0,
4989 /* Command to create a NAN data path interface */
4990 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE
= 1,
4991 /* Command to delete a NAN data path interface */
4992 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE
= 2,
4993 /* Command to initiate a NAN data path session */
4994 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST
= 3,
4995 /* Command to notify if the NAN data path session was sent */
4996 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE
= 4,
4997 /* Command to respond to NAN data path session */
4998 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST
= 5,
4999 /* Command to notify on the responder about the response */
5000 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE
= 6,
5001 /* Command to initiate a NAN data path end */
5002 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST
= 7,
5003 /* Command to notify the if end request was sent */
5004 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE
= 8,
5005 /* Command to notify the peer about the end request */
5006 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND
= 9,
5007 /* Command to confirm the NAN data path session is complete */
5008 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND
= 10,
5009 /* Command to indicate the peer about the end request being received */
5010 QCA_WLAN_VENDOR_ATTR_NDP_END_IND
= 11,
5011 /* Command to indicate the peer of schedule update */
5012 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND
= 12
5016 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
5017 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
5019 enum qca_wlan_vendor_attr_nd_offload
{
5020 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID
= 0,
5021 /* Flag to set Neighbour Discovery offload */
5022 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG
,
5024 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST
,
5025 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX
=
5026 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST
- 1,
5030 * enum packet_filter_sub_cmd - Packet filter sub commands
5032 enum packet_filter_sub_cmd
{
5034 * Write packet filter program and/or data. The driver/firmware should
5035 * disable APF before writing into local buffer and re-enable APF after
5038 QCA_WLAN_SET_PACKET_FILTER
= 1,
5039 /* Get packet filter feature capabilities from driver */
5040 QCA_WLAN_GET_PACKET_FILTER
= 2,
5042 * Write packet filter program and/or data. User space will send the
5043 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
5044 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
5045 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
5046 * enable/disable is given to user space with this command. Also,
5047 * user space sends the length of program portion in the buffer within
5048 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
5050 QCA_WLAN_WRITE_PACKET_FILTER
= 3,
5051 /* Read packet filter program and/or data */
5052 QCA_WLAN_READ_PACKET_FILTER
= 4,
5053 /* Enable APF feature */
5054 QCA_WLAN_ENABLE_PACKET_FILTER
= 5,
5055 /* Disable APF feature */
5056 QCA_WLAN_DISABLE_PACKET_FILTER
= 6,
5060 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
5061 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
5063 enum qca_wlan_vendor_attr_packet_filter
{
5064 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID
= 0,
5065 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
5066 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD
,
5067 /* Unsigned 32-bit value indicating the packet filter version */
5068 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION
,
5069 /* Unsigned 32-bit value indicating the packet filter id */
5070 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID
,
5072 * Unsigned 32-bit value indicating the packet filter size including
5075 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE
,
5076 /* Unsigned 32-bit value indicating the packet filter current offset */
5077 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET
,
5078 /* Program and/or data in bytes */
5079 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM
,
5080 /* Unsigned 32-bit value of the length of the program section in packet
5083 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH
= 7,
5086 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST
,
5087 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX
=
5088 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST
- 1,
5092 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
5093 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
5095 enum qca_wlan_vendor_drv_info
{
5096 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID
= 0,
5097 /* Maximum Message size info between firmware & HOST
5098 * Unsigned 32-bit value
5100 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE
,
5102 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST
,
5103 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX
=
5104 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST
- 1,
5108 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5109 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5111 enum qca_wlan_vendor_attr_wake_stats
{
5112 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID
= 0,
5113 /* Unsigned 32-bit value indicating the total count of wake event */
5114 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE
,
5115 /* Array of individual wake count, each index representing wake reason
5117 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR
,
5118 /* Unsigned 32-bit value representing wake count array */
5119 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ
,
5120 /* Unsigned 32-bit total wake count value of driver/fw */
5121 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE
,
5122 /* Array of wake stats of driver/fw */
5123 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR
,
5124 /* Unsigned 32-bit total wake count value of driver/fw */
5125 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ
,
5126 /* Unsigned 32-bit total wake count value of packets received */
5127 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE
,
5128 /* Unsigned 32-bit wake count value unicast packets received */
5129 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT
,
5130 /* Unsigned 32-bit wake count value multicast packets received */
5131 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT
,
5132 /* Unsigned 32-bit wake count value broadcast packets received */
5133 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT
,
5134 /* Unsigned 32-bit wake count value of ICMP packets */
5135 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT
,
5136 /* Unsigned 32-bit wake count value of ICMP6 packets */
5137 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT
,
5138 /* Unsigned 32-bit value ICMP6 router advertisement */
5139 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA
,
5140 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
5141 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA
,
5142 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
5143 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS
,
5144 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5145 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT
,
5146 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5147 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT
,
5148 /* Unsigned 32-bit wake count value of receive side multicast */
5149 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT
,
5150 /* Unsigned 32-bit wake count value of a given RSSI breach */
5151 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT
,
5152 /* Unsigned 32-bit wake count value of low RSSI */
5153 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT
,
5154 /* Unsigned 32-bit value GSCAN count */
5155 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT
,
5156 /* Unsigned 32-bit value PNO complete count */
5157 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT
,
5158 /* Unsigned 32-bit value PNO match count */
5159 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT
,
5161 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST
,
5162 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX
=
5163 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST
- 1,
5167 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5168 * cmd value. Used for NL attributes for data used by
5169 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5171 enum qca_wlan_vendor_attr_thermal_cmd
{
5172 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID
= 0,
5173 /* The value of command, driver will implement different operations
5174 * according to this value. It uses values defined in
5175 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5178 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE
= 1,
5181 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST
,
5182 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX
=
5183 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST
- 1
5187 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5188 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5189 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5190 * thermal command types sent to driver.
5191 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5192 * get thermal shutdown configuration parameters for display. Parameters
5193 * responded from driver are defined in
5194 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5195 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5196 * get temperature. Host should respond with a temperature data. It is defined
5197 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5198 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5200 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5203 enum qca_wlan_vendor_attr_thermal_cmd_type
{
5204 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS
,
5205 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE
,
5206 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND
,
5207 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME
,
5211 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5212 * to get chip temperature by user.
5213 * enum values are used for NL attributes for data used by
5214 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5215 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5217 enum qca_wlan_vendor_attr_thermal_get_temperature
{
5218 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID
= 0,
5219 /* Temperature value (degree Celsius) from driver.
5222 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA
,
5225 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST
,
5226 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX
=
5227 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST
- 1,
5231 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
5232 * to get configuration parameters of thermal shutdown feature. Enum values are
5233 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
5234 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5236 enum qca_wlan_vendor_attr_get_thermal_params_rsp
{
5237 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID
= 0,
5238 /* Indicate if the thermal shutdown feature is enabled.
5239 * NLA_FLAG attribute.
5241 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN
,
5242 /* Indicate if the auto mode is enabled.
5243 * Enable: Driver triggers the suspend/resume action.
5244 * Disable: User space triggers the suspend/resume action.
5245 * NLA_FLAG attribute.
5247 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN
,
5248 /* Thermal resume threshold (degree Celsius). Issue the resume command
5249 * if the temperature value is lower than this threshold.
5252 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH
,
5253 /* Thermal warning threshold (degree Celsius). FW reports temperature
5254 * to driver if it's higher than this threshold.
5257 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH
,
5258 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
5259 * if the temperature value is higher than this threshold.
5262 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH
,
5263 /* FW reports temperature data periodically at this interval (ms).
5266 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE
,
5269 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST
,
5270 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX
=
5271 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST
- 1,
5275 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5276 * report thermal events from driver to user space.
5277 * enum values are used for NL attributes for data used by
5278 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5280 enum qca_wlan_vendor_attr_thermal_event
{
5281 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID
= 0,
5282 /* Temperature value (degree Celsius) from driver.
5285 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE
,
5286 /* Indication of resume completion from power save mode.
5287 * NLA_FLAG attribute.
5289 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE
,
5292 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST
,
5293 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX
=
5294 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST
- 1,
5298 * enum he_fragmentation_val - HE fragmentation support values
5299 * Indicates level of dynamic fragmentation that is supported by
5300 * a STA as a recipient.
5301 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
5302 * (HE MAC Capabilities Information field) and are used in HE Capabilities
5303 * element to advertise the support. These values are validated in the driver
5304 * to check the device capability and advertised in the HE Capabilities
5305 * element. These values are used to configure testbed device to allow the
5306 * advertised hardware capabilities to be downgraded for testing purposes.
5308 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
5309 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
5310 * contained within an MPDU or S-MPDU, no support for dynamic fragments
5311 * within an A-MPDU that is not an S-MPDU.
5312 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
5313 * contained within an MPDU or S-MPDU and support for up to one dynamic
5314 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
5315 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
5317 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
5318 * contained within an MPDU or S-MPDU and support for multiple dynamic
5319 * fragments for each MSDU and for each A-MSDU if supported by the
5320 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
5321 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
5323 enum he_fragmentation_val
{
5331 * enum he_mcs_config - HE MCS support configuration
5333 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
5334 * These values are used in driver to configure the HE MCS map to advertise
5335 * Tx/Rx MCS map in HE capability and these values are applied for all the
5336 * streams supported by the device. To configure MCS for different bandwidths,
5337 * vendor command needs to be sent using this attribute with appropriate value.
5338 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
5339 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
5340 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
5341 * These values are used to configure testbed device to allow the advertised
5342 * hardware capabilities to be downgraded for testing purposes. The enum values
5343 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
5344 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
5345 * These values are validated in the driver before setting the MCS map and
5346 * driver returns error if the input is other than these enum values.
5348 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
5349 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
5350 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
5351 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
5352 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
5353 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
5354 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
5355 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
5356 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
5358 enum he_mcs_config
{
5365 HE_80P80_MCS0_7
= 8,
5366 HE_80P80_MCS0_9
= 9,
5367 HE_80P80_MCS0_11
= 10,
5371 * enum qca_wlan_ba_session_config - BA session configuration
5373 * Indicates the configuration values for BA session configuration attribute.
5375 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
5376 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
5378 enum qca_wlan_ba_session_config
{
5379 QCA_WLAN_ADD_BA
= 1,
5380 QCA_WLAN_DELETE_BA
= 2,
5384 * enum qca_wlan_ac_type - Access category type
5386 * Indicates the access category type value.
5388 * @QCA_WLAN_AC_BE: BE access category
5389 * @QCA_WLAN_AC_BK: BK access category
5390 * @QCA_WLAN_AC_VI: VI access category
5391 * @QCA_WLAN_AC_VO: VO access category
5392 * @QCA_WLAN_AC_ALL: All ACs
5394 enum qca_wlan_ac_type
{
5399 QCA_WLAN_AC_ALL
= 4,
5403 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
5405 * Indicates the HE LTF configuration value.
5407 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
5408 * based on the GI setting
5409 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
5410 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
5411 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
5413 enum qca_wlan_he_ltf_cfg
{
5414 QCA_WLAN_HE_LTF_AUTO
= 0,
5415 QCA_WLAN_HE_LTF_1X
= 1,
5416 QCA_WLAN_HE_LTF_2X
= 2,
5417 QCA_WLAN_HE_LTF_4X
= 3,
5421 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
5423 * Indicates the HE trigger frame MAC padding duration value.
5425 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
5426 * process the trigger frame.
5427 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
5429 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
5432 enum qca_wlan_he_mac_padding_dur
{
5433 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME
= 0,
5434 QCA_WLAN_HE_8US_OF_PROCESS_TIME
= 1,
5435 QCA_WLAN_HE_16US_OF_PROCESS_TIME
= 2,
5439 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
5441 * Indicates the HE Operating mode control channel width setting value.
5443 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
5444 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
5445 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
5446 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
5448 enum qca_wlan_he_om_ctrl_ch_bw
{
5449 QCA_WLAN_HE_OM_CTRL_BW_20M
= 0,
5450 QCA_WLAN_HE_OM_CTRL_BW_40M
= 1,
5451 QCA_WLAN_HE_OM_CTRL_BW_80M
= 2,
5452 QCA_WLAN_HE_OM_CTRL_BW_160M
= 3,
5455 /* Attributes for data used by
5456 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
5458 enum qca_wlan_vendor_attr_wifi_test_config
{
5459 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID
= 0,
5460 /* 8-bit unsigned value to configure the driver to enable/disable
5461 * WMM feature. This attribute is used to configure testbed device.
5462 * 1-enable, 0-disable
5464 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE
= 1,
5466 /* 8-bit unsigned value to configure the driver to accept/reject
5467 * the addba request from peer. This attribute is used to configure
5468 * the testbed device.
5469 * 1-accept addba, 0-reject addba
5471 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ
= 2,
5473 /* 8-bit unsigned value to configure the driver to send or not to
5474 * send the addba request to peer.
5475 * This attribute is used to configure the testbed device.
5476 * 1-send addba, 0-do not send addba
5478 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ
= 3,
5480 /* 8-bit unsigned value to indicate the HE fragmentation support.
5481 * Uses enum he_fragmentation_val values.
5482 * This attribute is used to configure the testbed device to
5483 * allow the advertised hardware capabilities to be downgraded
5484 * for testing purposes.
5486 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION
= 4,
5488 /* 8-bit unsigned value to indicate the HE MCS support.
5489 * Uses enum he_mcs_config values.
5490 * This attribute is used to configure the testbed device to
5491 * allow the advertised hardware capabilities to be downgraded
5492 * for testing purposes.
5494 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS
= 5,
5496 /* 8-bit unsigned value to configure the driver to allow or not to
5497 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
5498 * This attribute is used to configure the testbed device.
5499 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
5501 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE
= 6,
5503 /* 8-bit unsigned value to configure the driver to add a
5504 * new BA session or delete the existing BA session for
5505 * given TID. ADDBA command uses the buffer size and TID
5506 * configuration if user specifies the values else default
5507 * value for buffer size is used for all TIDs if the TID
5508 * also not specified. For DEL_BA command TID value is
5509 * required to process the command.
5510 * Uses enum qca_wlan_ba_session_config values.
5511 * This attribute is used to configure the testbed device.
5513 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION
= 7,
5515 /* 16-bit unsigned value to configure the buffer size in addba
5516 * request and response frames.
5517 * This attribute is used to configure the testbed device.
5518 * The range of the value is 0 to 256.
5520 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE
= 8,
5522 /* 8-bit unsigned value to configure the buffer size in addba
5523 * request and response frames.
5524 * This attribute is used to configure the testbed device.
5526 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID
= 9,
5528 /* 8-bit unsigned value to configure the no ack policy.
5529 * To configure no ack policy, access category value is
5530 * required to process the command.
5531 * This attribute is used to configure the testbed device.
5532 * 1 - enable no ack, 0 - disable no ack.
5534 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK
= 10,
5536 /* 8-bit unsigned value to configure the AC for no ack policy
5537 * This attribute is used to configure the testbed device.
5538 * Uses the enum qca_wlan_ac_type values.
5540 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC
= 11,
5542 /* 8-bit unsigned value to configure the HE LTF
5543 * This attribute is used to configure the testbed device.
5544 * Uses the enum qca_wlan_he_ltf_cfg values.
5546 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF
= 12,
5548 /* 8-bit unsigned value to configure the tx beamformee.
5549 * This attribute is used to configure the testbed device.
5550 * 1-enable, 0-disable.
5552 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE
= 13,
5554 /* 8-bit unsigned value to configure the tx beamformee number
5555 * of space-time streams.
5556 * This attribute is used to configure the testbed device.
5557 * The range of the value is 0 to 8.
5559 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS
= 14,
5561 /* 8-bit unsigned value to configure the MU EDCA params for given AC
5562 * This attribute is used to configure the testbed device.
5563 * Uses the enum qca_wlan_ac_type values.
5565 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC
= 15,
5567 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
5568 * To configure MU EDCA AIFSN value, MU EDCA access category value
5569 * is required to process the command.
5570 * This attribute is used to configure the testbed device.
5572 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN
= 16,
5574 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
5576 * To configure MU EDCA ECW min value, MU EDCA access category value
5577 * is required to process the command.
5578 * This attribute is used to configure the testbed device.
5580 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN
= 17,
5582 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
5584 * To configure MU EDCA ECW max value, MU EDCA access category value
5585 * is required to process the command.
5586 * This attribute is used to configure the testbed device.
5588 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX
= 18,
5590 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
5591 * To configure MU EDCA timer value, MU EDCA access category value
5592 * is required to process the command.
5593 * This attribute is used to configure the testbed device.
5595 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER
= 19,
5597 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
5599 * This attribute is used to configure the testbed device.
5600 * Uses the enum qca_wlan_he_mac_padding_dur values.
5602 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR
= 20,
5604 /* 8-bit unsigned value to override the MU EDCA params to defaults
5605 * regardless of the AP beacon MU EDCA params. If it is enabled use
5606 * the default values else use the MU EDCA params from AP beacon.
5607 * This attribute is used to configure the testbed device.
5608 * 1-enable, 0-disable.
5610 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA
= 21,
5612 /* 8-bit unsigned value to configure the support for receiving
5613 * an MPDU that contains an operating mode control subfield.
5614 * This attribute is used to configure the testbed device.
5615 * 1-enable, 0-disable.
5617 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP
= 22,
5619 /* Nested attribute values required to setup the TWT session.
5620 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
5621 * information to set up the session. It contains broadcast flags,
5622 * set_up flags, trigger value, flow type, flow ID, wake interval
5623 * exponent, protection, target wake time, wake duration, wake interval
5624 * mantissa. These nested attributes are used to setup a host triggered
5627 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP
= 23,
5629 /* This nested attribute is used to terminate the current TWT session.
5630 * It does not currently carry any attributes.
5632 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE
= 24,
5634 /* This nested attribute is used to suspend the current TWT session.
5635 * It does not currently carry any attributes.
5637 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND
= 25,
5639 /* Nested attribute values to indicate the request for resume.
5640 * This attribute is used to resume the TWT session.
5641 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
5642 * parameters required to resume the TWT session.
5644 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME
= 26,
5646 /* 8-bit unsigned value to set the HE operating mode control
5647 * (OM CTRL) Channel Width subfield.
5648 * The Channel Width subfield indicates the operating channel width
5649 * supported by the STA for both reception and transmission.
5650 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
5651 * This setting is cleared with the
5652 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5653 * flag attribute to reset defaults.
5654 * This attribute is used to configure the testbed device.
5656 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW
= 27,
5658 /* 8-bit unsigned value to configure the number of spatial
5659 * streams in HE operating mode control field.
5660 * This setting is cleared with the
5661 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5662 * flag attribute to reset defaults.
5663 * This attribute is used to configure the testbed device.
5665 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS
= 28,
5667 /* Flag attribute to configure the UL MU disable bit in
5668 * HE operating mode control field.
5669 * This setting is cleared with the
5670 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
5671 * flag attribute to reset defaults.
5672 * This attribute is used to configure the testbed device.
5674 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE
= 29,
5676 /* Flag attribute to clear the previously set HE operating mode
5677 * control field configuration.
5678 * This attribute is used to configure the testbed device to reset
5679 * defaults to clear any previously set HE operating mode control
5680 * field configuration.
5682 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
= 30,
5684 /* 8-bit unsigned value to configure HE single user PPDU
5685 * transmission. By default this setting is disabled and it
5686 * is disabled in the reset defaults of the device configuration.
5687 * This attribute is used to configure the testbed device.
5688 * 1-enable, 0-disable
5690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU
= 31,
5692 /* 8-bit unsigned value to configure action frame transmission
5693 * in HE trigger based PPDU transmission.
5694 * By default this setting is disabled and it is disabled in
5695 * the reset defaults of the device configuration.
5696 * This attribute is used to configure the testbed device.
5697 * 1-enable, 0-disable
5699 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU
= 32,
5702 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST
,
5703 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX
=
5704 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST
- 1,
5708 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
5709 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5710 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
5711 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
5712 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
5713 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
5714 * statistics of an unassociated station by specifying the MAC address in
5715 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
5716 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
5717 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
5718 * the statistics of all unassociated stations by specifying the Broadcast MAC
5719 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
5720 * above procedure. In the response, driver shall specify statistics
5721 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
5723 enum qca_wlan_vendor_attr_bss_filter
{
5724 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID
= 0,
5725 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR
= 1,
5726 /* Other BSS filter type, unsigned 8 bit value. One of the values
5727 * in enum qca_wlan_vendor_bss_filter_type.
5729 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE
= 2,
5730 /* Other BSS filter action, unsigned 8 bit value. One of the values
5731 * in enum qca_wlan_vendor_bss_filter_action.
5733 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION
= 3,
5734 /* Array of nested attributes where each entry is the statistics
5735 * information of the specified station that belong to another BSS.
5736 * Attributes for each entry are taken from enum
5737 * qca_wlan_vendor_bss_filter_sta_stats.
5738 * Other BSS station configured in
5739 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
5740 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
5741 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
5742 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
5744 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS
= 4,
5747 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST
,
5748 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX
=
5749 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST
- 1,
5753 * enum qca_wlan_vendor_bss_filter_type - Type of
5754 * filter used in other BSS filter operations. Used by the vendor command
5755 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5757 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
5758 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
5760 enum qca_wlan_vendor_bss_filter_type
{
5761 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID
,
5762 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA
,
5766 * enum qca_wlan_vendor_bss_filter_action - Type of
5767 * action in other BSS filter operations. Used by the vendor command
5768 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5770 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
5771 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
5772 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
5774 enum qca_wlan_vendor_bss_filter_action
{
5775 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD
,
5776 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL
,
5777 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET
,
5781 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
5782 * the statistics of a specific unassociated station belonging to another BSS.
5783 * The statistics provides information of the unassociated station
5784 * filtered by other BSS operation - such as MAC, signal value.
5785 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5787 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
5788 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
5789 * of the station. Unsigned 8 bit number containing RSSI.
5790 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
5791 * driver for the last received RSSI. Unsigned 64 bit number containing
5792 * nanoseconds from the boottime.
5794 enum qca_wlan_vendor_bss_filter_sta_stats
{
5795 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID
= 0,
5796 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC
= 1,
5797 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI
= 2,
5798 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS
= 3,
5801 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST
,
5802 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX
=
5803 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST
- 1
5806 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
5807 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
5808 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5810 enum qca_wlan_nan_ext_subcmd_type
{
5811 /* Subcmd of type NAN Enable Request */
5812 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ
= 1,
5813 /* Subcmd of type NAN Disable Request */
5814 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ
= 2,
5818 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
5819 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5821 enum qca_wlan_vendor_attr_nan_params
{
5822 QCA_WLAN_VENDOR_ATTR_NAN_INVALID
= 0,
5823 /* Carries NAN command for firmware component. Every vendor command
5824 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
5825 * payload containing the NAN command. NLA_BINARY attribute.
5827 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA
= 1,
5828 /* Indicates the type of NAN command sent with
5829 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
5830 * describes the possible range of values. This attribute is mandatory
5831 * if the command being issued is either
5832 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
5833 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
5835 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE
= 2,
5836 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
5837 * band. This attribute is mandatory when command type is
5838 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
5840 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ
= 3,
5841 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
5842 * band. This attribute is optional and should be included when command
5843 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
5844 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
5846 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ
= 4,
5849 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST
,
5850 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX
=
5851 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST
- 1
5855 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
5856 * TWT (Target Wake Time) setup request. These attributes are sent as part of
5857 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
5858 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5860 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
5861 * Disable (flag attribute not present) - Individual TWT
5862 * Enable (flag attribute present) - Broadcast TWT.
5863 * Individual means the session is between the STA and the AP.
5864 * This session is established using a separate negotiation between
5866 * Broadcast means the session is across multiple STAs and an AP. The
5867 * configuration parameters are announced in Beacon frames by the AP.
5869 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
5870 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
5871 * specify the TWT request type
5873 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
5874 * Enable (flag attribute present) - TWT with trigger support.
5875 * Disable (flag attribute not present) - TWT without trigger support.
5876 * Trigger means the AP will send the trigger frame to allow STA to send data.
5877 * Without trigger, the STA will wait for the MU EDCA timer before
5878 * transmitting the data.
5880 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
5881 * 0 - Announced TWT - In this mode, STA may skip few service periods to
5882 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
5884 * 1 - Unannounced TWT - The STA will wakeup during every SP.
5886 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
5887 * Flow ID is the unique identifier for each TWT session.
5888 * Currently this is not required and dialog ID will be set to zero.
5890 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
5891 * This attribute (exp) is used along with the mantissa to derive the
5892 * wake interval using the following formula:
5893 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
5894 * Wake interval is the interval between 2 successive SP.
5896 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
5897 * Enable (flag attribute present) - Protection required.
5898 * Disable (flag attribute not present) - Protection not required.
5899 * If protection is enabled, then the AP will use protection
5900 * mechanism using RTS/CTS to self to reserve the airtime.
5902 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
5903 * This attribute is used as the SP offset which is the offset from
5904 * TSF after which the wake happens. The units are in microseconds. If
5905 * this attribute is not provided, then the value will be set to zero.
5907 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
5908 * This is the duration of the service period. The units are in TU.
5910 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
5911 * This attribute is used to configure wake interval mantissa.
5912 * The units are in TU.
5914 enum qca_wlan_vendor_attr_twt_setup
{
5915 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID
= 0,
5916 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST
= 1,
5917 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE
= 2,
5918 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER
= 3,
5919 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE
= 4,
5920 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID
= 5,
5921 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP
= 6,
5922 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION
= 7,
5923 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME
= 8,
5924 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION
= 9,
5925 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA
= 10,
5928 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST
,
5929 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX
=
5930 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST
- 1,
5934 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
5935 * TWT (Target Wake Time) resume request. These attributes are sent as part of
5936 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
5937 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5939 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
5940 * This attribute is used as the SP offset which is the offset from
5941 * TSF after which the wake happens. The units are in microseconds.
5942 * If this attribute is not provided, then the value will be set to
5945 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
5946 * This attribute represents the next TWT subfield size.
5948 enum qca_wlan_vendor_attr_twt_resume
{
5949 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID
= 0,
5950 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT
= 1,
5951 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE
= 2,
5954 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST
,
5955 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX
=
5956 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST
- 1,
5960 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
5961 * Represents the setup type being requested for TWT.
5962 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
5963 * parameters but relying on AP to fill the parameters during the negotiation.
5964 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
5965 * values which the AP may accept or AP may provide alternative parameters
5966 * which the STA may accept.
5967 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
5968 * alternate parameters than the requested ones.
5970 enum qca_wlan_vendor_twt_setup_req_type
{
5971 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST
= 1,
5972 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST
= 2,
5973 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND
= 3,
5977 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
5979 * Indicates the type of roam scan event sent by firmware/driver.
5981 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
5982 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
5984 enum qca_wlan_roam_scan_event_type
{
5985 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT
= 0,
5986 QCA_WLAN_ROAM_SCAN_STOP_EVENT
= 1,
5990 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
5992 * Indicates the reason for triggering roam scan by firmware/driver.
5994 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
5995 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
5997 enum qca_wlan_roam_scan_trigger_reason
{
5998 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI
= 0,
5999 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER
= 1,
6003 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
6004 * roam scan related details from driver/firmware to user space. enum values
6005 * are used for NL attributes sent with
6006 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
6008 enum qca_wlan_vendor_attr_roam_scan
{
6009 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID
= 0,
6010 /* Encapsulates type of roam scan event being reported. enum
6011 * qca_wlan_roam_scan_event_type describes the possible range of
6012 * values. u32 attribute.
6014 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE
= 1,
6015 /* Encapsulates reason for triggering roam scan. enum
6016 * qca_wlan_roam_scan_trigger_reason describes the possible range of
6017 * values. u32 attribute.
6019 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON
= 2,
6022 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST
,
6023 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX
=
6024 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST
- 1,
6028 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
6029 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
6030 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
6032 enum qca_wlan_vendor_cfr_method
{
6033 /* CFR method using QOS Null frame */
6034 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL
= 0,
6038 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
6039 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
6040 * Channel Frequency Response capture parameters and enable periodic CFR
6043 enum qca_wlan_vendor_peer_cfr_capture_attr
{
6044 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID
= 0,
6045 /* 6-byte MAC address of the peer.
6046 * This attribute is mandatory.
6048 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR
= 1,
6049 /* Enable peer CFR Capture, flag attribute.
6050 * This attribute is mandatory to enable peer CFR capture.
6051 * If this attribute is not present, peer CFR capture is disabled.
6053 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE
= 2,
6054 /* BW of measurement, attribute uses the values in enum nl80211_chan_width
6055 * Supported values: 20, 40, 80, 80+80, 160.
6056 * Note that all targets may not support all bandwidths.
6057 * u8 attribute. This attribute is mandatory if attribute
6058 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6060 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH
= 3,
6061 /* Periodicity of CFR measurement in msec.
6062 * Periodicity should be a multiple of Base timer.
6063 * Current Base timer value supported is 10 msecs (default).
6064 * 0 for one shot capture. u32 attribute.
6065 * This attribute is mandatory if attribute
6066 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6068 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY
= 4,
6069 /* Method used to capture Channel Frequency Response.
6070 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
6071 * u8 attribute. This attribute is mandatory if attribute
6072 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6074 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD
= 5,
6075 /* Enable periodic CFR capture, flag attribute.
6076 * This attribute is mandatory to enable Periodic CFR capture.
6077 * If this attribute is not present, periodic CFR capture is disabled.
6079 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE
= 6,
6082 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST
,
6083 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX
=
6084 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST
- 1,
6088 * enum qca_wlan_throughput_level - Current throughput level
6090 * Indicates the current level of throughput calculated by the driver. The
6091 * driver may choose different thresholds to decide whether the throughput level
6092 * is low or medium or high based on variety of parameters like physical link
6093 * capacity of the current connection, the number of packets being dispatched
6094 * per second, etc. The throughput level events might not be consistent with the
6095 * actual current throughput value being observed.
6097 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
6098 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
6099 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
6101 enum qca_wlan_throughput_level
{
6102 QCA_WLAN_THROUGHPUT_LEVEL_LOW
= 0,
6103 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM
= 1,
6104 QCA_WLAN_THROUGHPUT_LEVEL_HIGH
= 2,
6108 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
6109 * report throughput changes from the driver to user space. enum values are used
6110 * for netlink attributes sent with
6111 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
6113 enum qca_wlan_vendor_attr_throughput_change
{
6114 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID
= 0,
6115 /* Indicates the direction of throughput in which the change is being
6116 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
6118 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION
= 1,
6119 /* Indicates the newly observed throughput level. enum
6120 * qca_wlan_throughput_level describes the possible range of values.
6123 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL
= 2,
6124 /* Indicates the driver's guidance on the new value to be set to
6125 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
6126 * driver may optionally include this attribute.
6128 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES
= 3,
6129 /* Indicates the driver's guidance on the new value to be set to
6130 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
6131 * values are from -31 to 31. The driver may optionally include this
6134 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE
= 4,
6135 /* Indicates the driver's guidance on the new value to be set to
6136 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
6137 * optionally include this attribute.
6139 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG
= 5,
6142 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST
,
6143 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX
=
6144 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST
- 1,
6148 * enum qca_coex_config_profiles - This enum defines different types of
6149 * traffic streams that can be prioritized one over the other during coex
6151 * The types defined in this enum are categorized in the below manner.
6152 * 0 - 31 values corresponds to WLAN
6153 * 32 - 63 values corresponds to BT
6154 * 64 - 95 values corresponds to Zigbee
6155 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
6156 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
6157 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
6158 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
6159 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
6160 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
6161 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
6162 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
6163 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
6164 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
6165 * @QCA_BT_A2DP: Prioritize BT A2DP
6166 * @QCA_BT_BLE: Prioritize BT BLE
6167 * @QCA_BT_SCO: Prioritize BT SCO
6168 * @QCA_ZB_LOW: Prioritize Zigbee Low
6169 * @QCA_ZB_HIGH: Prioritize Zigbee High
6171 enum qca_coex_config_profiles
{
6172 /* 0 - 31 corresponds to WLAN */
6173 QCA_WIFI_STA_DISCOVERY
= 0,
6174 QCA_WIFI_STA_CONNECTION
= 1,
6175 QCA_WIFI_STA_CLASS_3_MGMT
= 2,
6176 QCA_WIFI_STA_DATA
= 3,
6177 QCA_WIFI_STA_ALL
= 4,
6178 QCA_WIFI_SAP_DISCOVERY
= 5,
6179 QCA_WIFI_SAP_CONNECTION
= 6,
6180 QCA_WIFI_SAP_CLASS_3_MGMT
= 7,
6181 QCA_WIFI_SAP_DATA
= 8,
6182 QCA_WIFI_SAP_ALL
= 9,
6183 /* 32 - 63 corresponds to BT */
6187 /* 64 - 95 corresponds to Zigbee */
6193 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
6195 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
6196 * length array of 8-bit values from enum qca_coex_config_profiles.
6197 * FW will prioritize the profiles in the order given in the array encapsulated
6198 * in this attribute.
6200 * -----------------------------------------------------------------------
6201 * | 1 | 34 | 32 | 65 |
6202 * -----------------------------------------------------------------------
6203 * If the attribute contains the values defined in above array then it means
6204 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
6205 * 2) BT_SCO has priority over BT_A2DP.
6206 * 3) BT_A2DP has priority over ZIGBEE HIGH.
6207 * Profiles which are not listed in this array shall not be preferred over the
6208 * profiles which are listed in the array as a part of this attribute.
6210 enum qca_vendor_attr_coex_config
{
6211 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID
= 0,
6212 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES
= 1,
6215 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST
,
6216 QCA_VENDOR_ATTR_COEX_CONFIG_MAX
=
6217 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST
- 1,
6220 #endif /* QCA_VENDOR_H */