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