blob: 215ba9186db1ea366ea0a759f703138734295f8a [file] [log] [blame]
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001/*
2 * Qualcomm Atheros OUI and vendor specific assignments
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08003 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
Hai Shalom899fcc72020-10-19 14:38:18 -07004 * Copyright (c) 2018-2020, The Linux Foundation
Sunil Ravi89eba102022-09-13 21:04:37 -07005 * Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08006 *
7 * This software may be distributed under the terms of the BSD license.
8 * See README for more details.
9 */
10
11#ifndef QCA_VENDOR_H
12#define QCA_VENDOR_H
13
14/*
15 * This file is a registry of identifier assignments from the Qualcomm Atheros
16 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
17 * can be assigned through normal review process for changes to the upstream
18 * hostap.git repository.
19 */
20
21#define OUI_QCA 0x001374
22
Hai Shalomfdcde762020-04-02 11:19:20 -070023#ifndef BIT
24#define BIT(x) (1U << (x))
25#endif
26
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080027/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070028 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
29 */
30enum qca_radiotap_vendor_ids {
31 QCA_RADIOTAP_VID_WLANTEST = 0,
32};
33
34/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080035 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
36 *
37 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
38 *
39 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
40 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -070041 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
42 * internal BSS-selection. This command uses
43 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
44 * for the current connection (i.e., changes policy set by the nl80211
45 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
46 * included to indicate which BSS to use in case roaming is disabled.
47 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080048 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
49 * ranges to avoid to reduce issues due to interference or internal
Hai Shalom74f70d42019-02-11 14:42:39 -080050 * co-existence information in the driver. These frequencies aim to
51 * minimize the traffic but not to totally avoid the traffic. That said
52 * for a P2P use case, these frequencies are allowed for the P2P
53 * discovery/negotiation but avoid the group to get formed on these
54 * frequencies. The event data structure is defined in
55 * struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070056 *
57 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
58 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -070059 *
60 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
61 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -070062 * interpreted between the framework and the firmware component. While
63 * sending the command from userspace to the driver, payload is not
64 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
65 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080066 *
67 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
68 * used to configure PMK to the driver even when not connected. This can
69 * be used to request offloading of key management operations. Only used
70 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
71 *
72 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
73 * NL80211_CMD_ROAM event with optional attributes including information
74 * from offloaded key management operation. Uses
75 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
76 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
77 *
78 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
79 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -070080 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080081 *
82 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
83 * supported by the driver. enum qca_wlan_vendor_features defines
84 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080085 *
86 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
87 * which supports DFS offloading, to indicate a channel availability check
88 * start.
89 *
90 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
91 * which supports DFS offloading, to indicate a channel availability check
92 * completion.
93 *
94 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
95 * which supports DFS offloading, to indicate that the channel availability
96 * check aborted, no change to the channel status.
97 *
98 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
99 * driver, which supports DFS offloading, to indicate that the
100 * Non-Occupancy Period for this channel is over, channel becomes usable.
101 *
102 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
103 * which supports DFS offloading, to indicate a radar pattern has been
104 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700105 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700106 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
107 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
108 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700109 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
110 * based on enum wifi_logger_supported_features. Attributes defined in
111 * enum qca_wlan_vendor_attr_get_logger_features.
112 *
113 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
114 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
115 * attribute for this command. Attributes defined in
116 * enum qca_wlan_vendor_attr_wifi_logger_start.
117 *
118 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
119 * capabilities of the driver, parameters includes the attributes defined
120 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
121 *
122 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
123 * sending of certain periodic IP packet to firmware, attributes defined in
124 * enum qca_wlan_vendor_attr_offloaded_packets.
125 *
126 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
127 * monitoring, defines min and max RSSI which are configured for RSSI
128 * monitoring. Also used to notify the RSSI breach and provides the BSSID
129 * and RSSI value that was breached. Attributes defined in
130 * enum qca_wlan_vendor_attr_rssi_monitoring.
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
133 * Data Path (NDP) related operations, attributes defined in
134 * enum qca_wlan_vendor_attr_ndp_params.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
137 * Neighbour Discovery offload, attributes defined in
138 * enum qca_wlan_vendor_attr_nd_offload.
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
141 * configuration parameter for BPF packet filter, attributes defined in
142 * enum qca_wlan_vendor_attr_packet_filter.
143 *
144 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
145 * maximum supported size, attributes defined in
146 * enum qca_wlan_vendor_drv_info.
147 *
148 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
149 * data about wake reasons and datapath IP statistics, attributes defined
150 * in enum qca_wlan_vendor_attr_wake_stats.
151 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700152 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
153 * for IEEE 802.11 communicating outside the context of a basic service
154 * set, called OCB command. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_set_config.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
158 * UTC time. Use the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
160 *
161 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
162 * sending OCB timing advert frames. Uses the attributes defines in
163 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
164 *
165 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
166 * OCB timing advert. Uses the attributes defines in
167 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
168 *
169 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
170 * timer value. Uses the attributes defines in
171 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
172 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800173 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
174 * link properties of the respective interface. As an event, is used
175 * to notify the connected station's status. The attributes for this
176 * command are defined in enum qca_wlan_vendor_attr_link_properties.
177 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700178 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
179 * to the driver. This command sets the band(s) through either the
180 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
181 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
182 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
183 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
184 * bit unsigned bitmask values. The allowed values for
185 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
186 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
187 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
188 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
189 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
190 * are included for backwards compatibility, the configurations through
191 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
192 * that support both attributes.
193 *
Hai Shalomc3565922019-10-28 11:58:20 -0700194 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
195 * DFS policy and channel hint for ACS operation. This command uses the
196 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
197 * enum qca_acs_dfs_mode.
198 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700199 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
200 * start the P2P Listen offload function in device and pass the listen
201 * channel, period, interval, count, device types, and vendor specific
202 * information elements to the device driver and firmware.
203 * Uses the attributes defines in
204 * enum qca_wlan_vendor_attr_p2p_listen_offload.
205 *
206 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
207 * indicate stop request/response of the P2P Listen offload function in
208 * device. As an event, it indicates either the feature stopped after it
209 * was already running or feature has actually failed to start. Uses the
210 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
211 *
212 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
213 * beaconing, this sub command provides the driver, the frequencies on the
214 * 5 GHz band to check for any radar activity. Driver selects one channel
215 * from this priority list provided through
216 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
217 * to check for radar activity on it. If no radar activity is detected
218 * during the channel availability check period, driver internally switches
219 * to the selected frequency of operation. If the frequency is zero, driver
220 * internally selects a channel. The status of this conditional switch is
221 * indicated through an event using the same sub command through
222 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
223 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700224 *
225 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
226 * attributes defined in enum qca_wlan_gpio_attr.
227 *
228 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
229 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
230 * capabilities are to be fetched and other
231 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
232 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700233 *
234 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
235 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
236 * command and event.
237 *
238 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
239 * indoor location features. Capabilities are reported in
240 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
241 *
242 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
243 * (fine timing measurement) session with one or more peers.
244 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
245 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
246 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
247 * events will be reported, followed by
248 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
249 * end of session.
250 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
251 *
252 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
253 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
254 * status code indicating session was aborted.
255 *
256 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
257 * results for one peer. Results are reported in
258 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
259 *
260 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
261 * FTM session is finished, either successfully or aborted by
262 * request.
263 *
264 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
265 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
266 * to enable or disable the responder. LCI/LCR reports can be
267 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
268 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
269 * times to update the LCI/LCR reports.
270 *
271 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
272 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800273 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
274 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
275 * scan results cache and use the frequency from there).
276 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
277 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700278 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
279 *
280 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
281 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
282 *
283 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
284 * the AOA measurement result.
285 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
286 * success/failure status is reported in
287 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
288 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
289 * The antenna array(s) used in the measurement are reported in
290 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700291 *
292 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
293 * data as per the given parameters.
294 *
295 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
296 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800297 *
298 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
299 * configuration for a DMG RF sector. Specify sector index in
300 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
301 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
302 * to return sector information for in
303 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
304 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
305 * exact time where information was captured in
306 * QCA_WLAN_VENDOR_ATTR_TSF.
307 *
308 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
309 * configuration for a DMG RF sector. Specify sector index in
310 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
311 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
312 * for one or more DMG RF modules in
313 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
314 *
315 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
316 * DMG RF sector for a station. This is the sector that the HW
317 * will use to communicate with the station. Specify the MAC address
318 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
319 * needed for unassociated station). Specify sector type to return in
320 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
321 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
322 * Also return the exact time where the information was captured
323 * in QCA_WLAN_VENDOR_ATTR_TSF.
324 *
325 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
326 * selected DMG RF sector for a station. This is the sector that
327 * the HW will use to communicate with the station.
328 * Specify the MAC address of associated station/AP/PCP in
329 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
330 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
331 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
332 * The selected sector will be locked such that it will not be
333 * modified like it normally does (for example when station
334 * moves around). To unlock the selected sector for a station
335 * pass the special value 0xFFFF in the sector index. To unlock
336 * all connected stations also pass a broadcast MAC address.
337 *
338 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
339 * in the host driver. The different TDLS configurations are defined
340 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800341 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800342 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
343 * capabilities. The response uses the attributes defined in
344 * enum qca_wlan_vendor_attr_get_he_capabilities.
345 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800346 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
347 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
348 * carries the scan cookie of the corresponding scan request. The scan
349 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800350 *
351 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
352 * Absorption Rate (SAR) power limits. A critical regulation for
353 * FCC compliance, OEMs require methods to set SAR limits on TX
354 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
355 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800356 *
357 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
358 * host driver for offloading the implementation of Auto Channel Selection
359 * (ACS) to an external user space entity. This interface is used as the
360 * event from the host driver to the user space entity and also as the
361 * request from the user space entity to the host driver. The event from
362 * the host driver is used by the user space entity as an indication to
363 * start the ACS functionality. The attributes used by this event are
364 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
365 * User space entity uses the same interface to inform the host driver with
366 * selected channels after the ACS operation using the attributes defined
367 * by enum qca_wlan_vendor_attr_external_acs_channels.
368 *
369 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
370 * requisite information leading to a power save failure. The information
371 * carried as part of this event is represented by the
372 * enum qca_attr_chip_power_save_failure attributes.
373 *
374 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
375 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
376 *
377 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
378 * statistics are represented by the enum qca_attr_nud_stats_get
379 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800380 *
381 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
382 * the BSS transition status, whether accept or reject, for a list of
383 * candidate BSSIDs provided by the userspace. This uses the vendor
384 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
385 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
386 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
387 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
388 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
389 * the driver shall specify array of
390 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
391 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
392 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
393 *
394 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
395 * specific QCA module. The trace levels are represented by
396 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700397 *
398 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
399 * Protocol antenna limit in different modes. See enum
400 * qca_wlan_vendor_attr_brp_ant_limit_mode.
401 *
402 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
403 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
404 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700405 * identifying the operation in success case. In failure cases an
406 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
407 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700408 *
409 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
410 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
411 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
412 * be stopped.
413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
415 * specific interface. This can be used to modify some of the low level
416 * scan parameters (off channel dwell time, home channel time) in the
417 * driver/firmware. These parameters are maintained within the host driver.
418 * This command is valid only when the interface is in the connected state.
419 * These scan parameters shall be reset by the driver/firmware once
420 * disconnected. The attributes used with this command are defined in
421 * enum qca_wlan_vendor_attr_active_tos.
422 *
423 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
424 * driver has detected an internal failure. This event carries the
425 * information indicating the reason that triggered this detection. The
426 * attributes for this command are defined in
427 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700428 *
429 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
430 * of spectral parameters used. The spectral scan parameters are specified
431 * by enum qca_wlan_vendor_attr_spectral_scan.
432 *
433 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
434 * for spectral scan functionality. The debug stats are specified by
435 * enum qca_wlan_vendor_attr_spectral_diag_stats.
436 *
437 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
438 * scan system capabilities. The capabilities are specified
439 * by enum qca_wlan_vendor_attr_spectral_cap.
440 *
441 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
442 * status of spectral scan. The status values are specified
443 * by enum qca_wlan_vendor_attr_spectral_scan_status.
444 *
445 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
446 * peer pending packets. Specify the peer MAC address in
447 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
448 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
449 * in enum qca_wlan_vendor_attr_flush_pending.
450 *
451 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
452 * RF Operating Parameter (RROP) information. The attributes for this
453 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
454 * intended for use by external Auto Channel Selection applications.
455 *
456 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
457 * (SAR) power limits. This is a companion to the command
458 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
459 * settings currently in use. The attributes returned by this command are
460 * defined by enum qca_vendor_attr_sar_limits.
461 *
462 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
463 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
464 * information attached to the respective MAC.
465 * This works both as a query (user space asks the current mode) or event
466 * interface (driver advertising the current mode to the user space).
467 * Driver does not trigger this event for temporary hardware mode changes.
468 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
469 * channel change, etc.) are updated with this event. Attributes for this
470 * interface are defined in enum qca_wlan_vendor_attr_mac.
471 *
472 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
473 * per peer per TID. Attributes for this command are define in
474 * enum qca_wlan_set_qdepth_thresh_attr.
475 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
476 * guide for WLAN driver. Request to suspend of driver and FW if the
477 * temperature is higher than the suspend threshold; resume action is
478 * requested to driver if the temperature is lower than the resume
479 * threshold. In user poll mode, request temperature data by user. For test
480 * purpose, getting thermal shutdown configuration parameters is needed.
481 * Attributes for this interface are defined in
482 * enum qca_wlan_vendor_attr_thermal_cmd.
483 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
484 * driver. Thermal temperature and indication of resume completion are
485 * reported as thermal events. The attributes for this command are defined
486 * in enum qca_wlan_vendor_attr_thermal_event.
487 *
488 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
489 * test configuration. Attributes for this command are defined in
490 * enum qca_wlan_vendor_attr_wifi_test_config.
491 *
492 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
493 * RX filter to receive frames from stations that are active on the
494 * operating channel, but not associated with the local device (e.g., STAs
495 * associated with other APs). Filtering is done based on a list of BSSIDs
496 * and STA MAC addresses added by the user. This command is also used to
497 * fetch the statistics of unassociated stations. The attributes used with
498 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700499 *
500 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
501 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
502 * carried a payload which was a binary blob of data. The command was not
503 * extendable to send more information. The newer version carries the
504 * legacy blob encapsulated within an attribute and can be extended with
505 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800506 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
507 * or stopped within driver/firmware in order to initiate roaming. The
508 * attributes used with this event are defined in enum
509 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
510 * in few cases, e.g., if the host processor is sleeping when this event
511 * is generated in firmware.
512 *
513 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
514 * configure parameters per peer to capture Channel Frequency Response
515 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800516 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
517 * can also be used to send CFR data from the driver to userspace when
518 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800519 *
520 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
521 * in throughput dynamically. The driver estimates the throughput based on
522 * number of packets being transmitted/received per second and indicates
523 * the changes in throughput to user space. Userspace tools can use this
524 * information to configure kernel's TCP parameters in order to achieve
525 * peak throughput. Optionally, the driver will also send guidance on
526 * modifications to kernel's TCP parameters which can be referred by
527 * userspace tools. The attributes used with this event are defined in enum
528 * qca_wlan_vendor_attr_throughput_change.
529 *
530 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
531 * priorities among different types of traffic during coex scenarios.
532 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
533 * profiles mentioned in enum qca_coex_config_profiles. The associated
534 * attributes used with this command are defined in enum
535 * qca_vendor_attr_coex_config.
536 *
537 * Based on the config provided, FW will boost the weight and prioritize
538 * the traffic for that subsystem (WLAN/BT/Zigbee).
539 *
540 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
541 * the supported AKM suite selectorss from the driver. It returns the list
542 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700543 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
544 * state from the driver. It returns the firmware state in the attribute
545 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
546 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
547 * is used by the driver to flush per-peer cached statistics to user space
548 * application. This interface is used as an event from the driver to
549 * user space application. Attributes for this event are specified in
550 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
551 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
552 * sent in the event.
553 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
554 * improve the success rate of Zigbee joining network.
555 * Due to PTA master limitation, Zigbee joining network success rate is
556 * low while WLAN is working. The WLAN driver needs to configure some
557 * parameters including Zigbee state and specific WLAN periods to enhance
558 * PTA master. All these parameters are delivered by the attributes
559 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700560 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
561 * implement Beacon frame reporting feature.
562 *
563 * Userspace can request the driver/firmware to periodically report
564 * received Beacon frames whose BSSID is same as the current connected
565 * BSS's MAC address.
566 *
567 * In case the STA seamlessly (without sending disconnect indication to
568 * userspace) roams to a different BSS, Beacon frame reporting will be
569 * automatically enabled for the Beacon frames whose BSSID is same as the
570 * MAC address of the new BSS. Beacon reporting will be stopped when the
571 * STA is disconnected (when the disconnect indication is sent to
572 * userspace) and need to be explicitly enabled by userspace for next
573 * connection.
574 *
575 * When a Beacon frame matching configured conditions is received, and if
576 * userspace has requested to send asynchronous beacon reports, the
577 * driver/firmware will encapsulate the details of the Beacon frame in an
578 * event and send it to userspace along with updating the BSS information
579 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
580 * scan cache with the information from the received Beacon frame but will
581 * not send any active report to userspace.
582 *
583 * The userspace can request the driver/firmware to stop reporting Beacon
584 * frames. If the driver/firmware is not able to receive Beacon frames due
585 * to other Wi-Fi operations such as off-channel activities, etc., the
586 * driver/firmware will send a pause event to userspace and stop reporting
587 * Beacon frames. Whether the beacon reporting will be automatically
588 * resumed or not by the driver/firmware later will be reported to
589 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
590 * flag. The beacon reporting shall be resumed for all the cases except
591 * either when userspace sets
592 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
593 * which triggered the current beacon reporting or during any disconnection
594 * case as indicated by setting
595 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
596 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
597 * driver.
598 *
599 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
600 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
601 * flag not set, the next first
602 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
603 * shall be considered as un-pause event.
604 *
605 * All the attributes used with this command are defined in
606 * enum qca_wlan_vendor_attr_beacon_reporting_params.
607 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
608 * interop issues with the DUT. This sub command is used to transfer the
609 * AP info between the driver and user space. This works both as a command
610 * and an event. As a command, it configures the stored list of APs from
611 * user space to firmware; as an event, it indicates the AP info detected
612 * by the firmware to user space for persistent storage. The attributes
613 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
614 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700615 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
616 * send/receive OEM data binary blobs to/from application/service to/from
617 * firmware. The attributes defined in enum
618 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
619 * parameters.
620 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
621 * to send/receive avoid frequency data using
622 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
623 * This new command is alternative to existing command
624 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
625 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800626 * attributes. User space sends unsafe frequency ranges to the driver using
627 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
628 * reception of this command, the driver shall check if an interface is
629 * operating on an unsafe frequency and the driver shall try to move to a
630 * safe channel when needed. If the driver is not able to find a safe
631 * channel the interface can keep operating on an unsafe channel with the
632 * TX power limit derived based on internal configurations like
633 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700634 *
635 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
636 * add the STA node details in driver/firmware. Attributes for this event
637 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
638 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
639 * coex chain mode from application/service.
640 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
641 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800642 *
643 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
644 * get information of a station from driver to userspace. This command can
645 * be used in both STA and AP modes. For STA mode, it provides information
646 * of the current association when in connected state or the last
647 * association when in disconnected state. For AP mode, only information
648 * of the currently connected stations is available. This command uses
649 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700650 *
651 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
652 * Host drivers can request the user space entity to set the SAR power
653 * limits with this event. Accordingly, the user space entity is expected
654 * to set the SAR power limits. Host drivers can retry this event to the
655 * user space for the SAR power limits configuration from user space. If
656 * the driver does not get the SAR power limits from user space for all
657 * the retried attempts, it can configure a default SAR power limit.
658 *
659 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
660 * is used to update the information about the station from the driver to
661 * userspace. Uses attributes from enum
662 * qca_wlan_vendor_attr_update_sta_info.
663 *
664 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
665 * The host driver initiates the disconnection for scenarios such as beacon
666 * miss, NUD failure, peer kick out, etc. The disconnection indication
667 * through cfg80211_disconnected() expects the reason codes from enum
668 * ieee80211_reasoncode which does not signify these various reasons why
669 * the driver has triggered the disconnection. This event will be used to
670 * send the driver specific reason codes by the host driver to userspace.
671 * Host drivers should trigger this event and pass the respective reason
672 * code immediately prior to triggering cfg80211_disconnected(). The
673 * attributes used with this event are defined in enum
674 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700675 *
676 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
677 * add/delete TSPEC for each AC. One command is for one specific AC only.
678 * This command can only be used in STA mode and the STA must be
679 * associated with an AP when the command is issued. Uses attributes
680 * defined in enum qca_wlan_vendor_attr_config_tspec.
681 *
682 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
683 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
684 *
685 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
686 * the driver. The band configurations obtained are referred through
687 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
688 *
689 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
690 * assessment.
691 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
692 *
693 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
694 * used to update SSID information in hostapd when it is updated in the
695 * driver. Uses the attribute NL80211_ATTR_SSID.
696 *
697 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
698 * the driver to send opaque data from the firmware to userspace. The
699 * driver sends an event to userspace whenever such data is received from
700 * the firmware.
701 *
702 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
703 * send this opaque data for this event.
704 *
705 * The format of the opaque data is specific to the particular firmware
706 * version and there is no guarantee of the format remaining same.
707 *
708 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
709 * The host driver selects Tx VDEV, and notifies user. The attributes
710 * used with this event are defined in enum
711 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800712 * This event contains Tx VDEV group information, other VDEVs
713 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700714 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000715 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
716 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800717 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000718 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800719 *
720 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
721 * to query usable channels for different interface types such as STA,
722 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
723 * channels in the response based on country code, different static
724 * configurations, concurrency combinations, etc. The attributes used
725 * with this command are defined in
726 * enum qca_wlan_vendor_attr_usable_channels.
727 *
728 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
729 * to get DFS radar history from the driver to userspace. The driver
730 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
731 * array of nested entries.
732 *
733 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
734 * enable/disable mDNS offload to the firmware. The attributes used with
735 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
736 *
737 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
738 * to set packet monitor mode that aims to send the specified set of TX and
739 * RX frames on the current client interface to an active monitor
740 * interface. If this monitor mode is set, the driver will send the
741 * configured frames, from the interface on which the command is issued, to
742 * an active monitor interface. The attributes used with this command are
743 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
744 *
745 * Though the monitor mode is configured for the respective
746 * Data/Management/Control frames, it is up to the respective WLAN
747 * driver/firmware/hardware designs to consider the possibility of sending
748 * these frames over the monitor interface. For example, the Control frames
749 * are handled within the hardware and thus passing such frames over the
750 * monitor interface is left to the respective designs.
751 *
752 * Also, this monitor mode is governed to behave accordingly in
753 * suspend/resume states. If the firmware handles any of such frames in
754 * suspend state without waking up the host and if the monitor mode is
755 * configured to notify all such frames, the firmware is expected to resume
756 * the host and forward the respective frames to the monitor interface.
757 * Please note that such a request to get the frames over the monitor
758 * interface will have a definite power implication.
759 *
760 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
761 * as a request to set the driver/firmware with the parameters to trigger
762 * the roaming events, and also used by the driver/firmware to pass on the
763 * various roam events to userspace.
764 * Applicable only for the STA mode. The attributes used with this command
765 * are defined in enum qca_wlan_vendor_attr_roam_events.
766 *
767 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
768 * rate mask config for a list of PHY types. Userspace shall provide an
769 * array of the vendor attributes defined in
770 * enum qca_wlan_vendor_attr_ratemask_params.
771 *
772 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
773 * when two interfaces are active on the same band, using two different
774 * home channels, and only supported by a single radio. In this scenario
775 * the device must split the use of the radio between the two interfaces.
776 * The percentage of time allocated to a given interface is the quota.
777 * Depending on the configuration, the quota can either be fixed or
778 * dynamic.
779 *
780 * When used as an event, the device will report the quota type, and for
781 * all interfaces operating in MCC it will report the current quota.
782 * When used as a command, the device can be configured for a specific
783 * quota type, and in the case of a fixed quota, the quota to apply to one
784 * of the interfaces.
785 *
786 * Applications can use the event to do TX bitrate control based on the
787 * information, and can use the command to explicitly set the quota to
788 * enhance performance in specific scenarios.
789 *
790 * The attributes used with this command are defined in
791 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000792 *
793 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
794 * get the WLAN radio combinations matrix supported by the device which
795 * provides the device simultaneous radio configurations such as
796 * standalone, dual band simultaneous, and single band simultaneous.
797 *
798 * The attributes used with this command are defined in
799 * enum qca_wlan_vendor_attr_radio_combination_matrix.
800 *
801 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
802 * that the driver is ready for operations again after recovering from
803 * internal failures. This occurs following a failure that was indicated by
804 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
805 *
806 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
807 * security negotiation and key generation to user space.
808 *
809 * When used as an event, the driver requests userspace to trigger the PASN
810 * authentication or dropping of a PTKSA for the indicated peer devices.
811 * When used as a command response, userspace indicates a consolidated
812 * status report for all the peers that were requested for.
813 *
814 * The attributes used with this command are defined in
815 * enum qca_wlan_vendor_attr_pasn.
816 *
817 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
818 * secure ranging context such as TK and LTF keyseed for each peer
819 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
820 *
821 * The attributes used with this command are defined in
822 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700823 *
824 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
825 * enable/disable offload processing in firmware during system/runtime
826 * suspend for CoAP messages (see RFC7252: The Constrained Application
827 * Protocol) and fetch information of the CoAP messages cached during
828 * offload processing.
829 *
830 * The attributes used with this command are defined in
831 * enum qca_wlan_vendor_attr_coap_offload.
832 *
833 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
834 * (add, remove, or change) a Stream Classification Service (SCS) rule.
835 *
836 * The attributes used with this event are defined in
837 * enum qca_wlan_vendor_attr_scs_rule_config.
838 *
839 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
840 * supported by the WLAN firmware.
841 *
842 * The attributes used with this command are defined in
843 * enum qca_wlan_vendor_attr_sar_capability.
844 *
845 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
846 * (SR) feature. This command is used by userspace to configure SR
847 * parameters to the driver and to get the SR related parameters and
848 * statistics with synchronous responses from the driver.
849 * The driver also uses this command to send asynchronous events to
850 * userspace to indicate suspend/resume of SR feature and changes
851 * in SR parameters.
852 *
853 * The attributes used with this command are defined in
854 * enum qca_wlan_vendor_attr_sr.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800855 */
856enum qca_nl80211_vendor_subcmds {
857 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
858 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700859 /* subcmds 2..8 not yet allocated */
860 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800861 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700862 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700863 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800864 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800865 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
866 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
867 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
868 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
869 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
870 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
871 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
872 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
873 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
874 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
875 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
876 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
877 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
878 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
879 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
880 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
881 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
882 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
883 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
884 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
885 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
886 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
887 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
888 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
889 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
890 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
891 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
892 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
893 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
894 /* 43..49 - reserved for QCA */
895 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
896 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
897 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700898 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800899 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
900 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800901 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
902 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
903 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
904 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
905 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800906 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
907 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
908 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
909 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
910 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
911 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
912 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
913 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
914 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
915 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
916 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
917 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
918 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700919 /* Wi-Fi configuration subcommands */
920 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
921 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700922 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
923 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
924 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
925 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
926 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
927 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
928 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
929 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
930 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
931 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
932 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700933 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700934 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
935 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
936 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
937 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
938 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
939 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
940 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
941 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
942 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700943 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700944 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
945 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
946 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
947 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800948 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
949 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
950 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
951 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
952 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800953 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700954 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
955 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700956 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700957 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
958 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700959 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700960 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
961 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
962 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700963 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
964 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700965 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
966 /* FTM/indoor location subcommands */
967 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
968 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
969 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
970 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
971 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
972 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
973 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
974 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
975 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700976 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
977 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800978 /* DMG low level RF sector operations */
979 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
980 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
981 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
982 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
983 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800984 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800985 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800986 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800987 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
988 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
989 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
990 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800991 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
992 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700993 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
994 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
995 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
996 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
997 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700998 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
999 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1000 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1001 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1002 /* Flush peer pending data */
1003 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1004 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1005 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1006 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1007 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1008 /* Thermal shutdown commands to protect wifi chip */
1009 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1010 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1011 /* Wi-Fi test configuration subcommand */
1012 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1013 /* Frame filter operations for other BSSs/unassociated STAs */
1014 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001015 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001016 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1017 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001018 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1019 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1020 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001021 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1022 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1023 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001024 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1025 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001026 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1027 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1028 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1029 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001030 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001031 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1032 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1033 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001034 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1035 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1036 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1037 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1038 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1039 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1040 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001041 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001042 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1043 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1044 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1045 /* 201 - reserved for QCA */
1046 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1047 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1048 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1049 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001050 /* 206..212 - reserved for QCA */
1051 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1052 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1053 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1054 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001055 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1056 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1057 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1058 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001059};
1060
Sunil8cd6f4d2022-06-28 18:40:46 +00001061/* Compatibility defines for previously used subcmd names.
1062 * These values should not be used in any new implementation.
1063 */
1064#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1065 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1066
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001067enum qca_wlan_vendor_attr {
1068 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1069 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1070 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001071 /* Used only when driver sends vendor events to the userspace under the
1072 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1073 * commands to the driver.
1074 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001075 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001076 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1077 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001078 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1079 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001080 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001081 * by enum qca_roaming_policy.
1082 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001083 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1084 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001085 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1086 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001087 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001088 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1089 /* Unsigned 32-bit value. */
1090 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1091 /* Unsigned 32-bit value */
1092 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1093 /* Unsigned 32-bit value */
1094 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001095 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1096 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1097 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1098 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1099 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001100 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001101 /* Dummy (NOP) attribute for 64 bit padding */
1102 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1103 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1104 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1105 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1106 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1107 */
1108 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1109 /* Indoor location capabilities, returned by
1110 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1111 * see enum qca_wlan_vendor_attr_loc_capa.
1112 */
1113 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1114 /* Array of nested attributes containing information about each peer
1115 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1116 * for supported attributes for each peer.
1117 */
1118 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1119 /* Array of nested attributes containing measurement results for
1120 * one or more peers, reported by the
1121 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1122 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1123 * attributes.
1124 */
1125 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1126 /* Flag attribute for enabling or disabling responder functionality. */
1127 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1128 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1129 * command to specify the LCI report that will be sent by
1130 * the responder during a measurement exchange. The format is
1131 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1132 */
1133 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1134 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1135 * command to specify the location civic report that will
1136 * be sent by the responder during a measurement exchange.
1137 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1138 */
1139 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1140 /* Session/measurement completion status code,
1141 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1142 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1143 * see enum qca_vendor_attr_loc_session_status.
1144 */
1145 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1146 /* Initial dialog token used by responder (0 if not specified),
1147 * unsigned 8 bit value.
1148 */
1149 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1150 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1151 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1152 * AOA measurements are needed as part of an FTM session.
1153 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1154 * enum qca_wlan_vendor_attr_aoa_type.
1155 */
1156 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1157 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1158 * by indoor location measurements. Refers to the antenna
1159 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1160 */
1161 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1162 /* AOA measurement data. Its contents depends on the AOA measurement
1163 * type and antenna array mask:
1164 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1165 * phase of the strongest CIR path for each antenna in the measured
1166 * array(s).
1167 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1168 * values, phase and amplitude of the strongest CIR path for each
1169 * antenna in the measured array(s).
1170 */
1171 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001172 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1173 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001174 * the corresponding antenna RSSI value
1175 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001176 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1177 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001178 * to report the specific antenna RSSI value (unsigned 32 bit value)
1179 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001180 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001181 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1182 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1183 /* TSF timer value, unsigned 64 bit value.
1184 * May be returned by various commands.
1185 */
1186 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1187 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1188 * 0..127 for sector indices or 65535 as special value used to
1189 * unlock sector selection in
1190 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1191 */
1192 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1193 /* DMG RF sector type, unsigned 8 bit value. One of the values
1194 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1195 */
1196 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1197 /* Bitmask of DMG RF modules for which information is requested. Each
1198 * bit corresponds to an RF module with the same index as the bit
1199 * number. Unsigned 32 bit number but only low 8 bits can be set since
1200 * all DMG chips currently have up to 8 RF modules.
1201 */
1202 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1203 /* Array of nested attributes where each entry is DMG RF sector
1204 * configuration for a single RF module.
1205 * Attributes for each entry are taken from enum
1206 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1207 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1208 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1209 */
1210 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1211 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1212 * to report frame aggregation statistics to userspace.
1213 */
1214 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1215 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001216 /* Unsigned 8-bit value representing MBO transition reason code as
1217 * provided by the AP used by subcommand
1218 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1219 * specified by the userspace in the request to the driver.
1220 */
1221 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1222 /* Array of nested attributes, BSSID and status code, used by subcommand
1223 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1224 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1225 * The userspace space specifies the list/array of candidate BSSIDs in
1226 * the order of preference in the request. The driver specifies the
1227 * status code, for each BSSID in the list, in the response. The
1228 * acceptable candidates are listed in the order preferred by the
1229 * driver.
1230 */
1231 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001232 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1233 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1234 */
1235 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1236 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1237 * to define the number of antennas to use for BRP.
1238 * different purpose in each ANT_LIMIT_MODE:
1239 * DISABLE - ignored
1240 * EFFECTIVE - upper limit to number of antennas to be used
1241 * FORCE - exact number of antennas to be used
1242 * unsigned 8 bit value
1243 */
1244 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1245 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001246 * to report the corresponding antenna index to the chain RSSI value
1247 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001248 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001249 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1250 * the specific antenna EVM value (unsigned 32 bit value). With a
1251 * determinate group of antennas, the driver specifies the EVM value
1252 * for each antenna ID, and application extract them in user space.
1253 */
1254 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001255 /*
1256 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1257 * wlan firmware current state. FW state is an unsigned 8 bit value,
1258 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1259 */
1260 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001261
Hai Shalom899fcc72020-10-19 14:38:18 -07001262 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1263 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1264 * of single values from enum qca_set_band are valid. This attribute
1265 * uses bitmask combinations to define the respective allowed band
1266 * combinations and this attributes takes precedence over
1267 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1268 */
1269 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1270
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001271 /* keep last */
1272 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1273 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1274};
1275
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001276enum qca_roaming_policy {
1277 QCA_ROAMING_NOT_ALLOWED,
1278 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1279};
1280
Hai Shalom021b0b52019-04-10 11:17:58 -07001281/**
1282 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1283 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1284 *
1285 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1286 * reasons.
1287 *
1288 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1289 * the configured threshold.
1290 *
1291 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1292 * beacon misses from the then connected AP.
1293 *
1294 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1295 * by the connected AP.
1296 *
1297 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1298 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1299 *
1300 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1301 * or environment being very noisy or congested.
1302 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001303 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001304 * from the user (user space).
1305 *
1306 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1307 * the connected AP.
1308 *
1309 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1310 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001311 *
1312 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1313 * transition request.
1314 *
1315 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1316 * data activity with the AP and the current RSSI falls below a certain
1317 * threshold.
1318 *
1319 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1320 * Disassociation frames received from the connected AP.
1321 *
1322 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1323 * that happens when there is no candidate AP found during the poor RSSI scan
1324 * trigger.
1325 *
1326 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1327 * obtained from an external scan (not aimed at roaming).
1328 *
1329 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1330 * established when the station is connected in the 2.4 GHz band.
Hai Shalom021b0b52019-04-10 11:17:58 -07001331 */
1332enum qca_roam_reason {
1333 QCA_ROAM_REASON_UNKNOWN,
1334 QCA_ROAM_REASON_PER,
1335 QCA_ROAM_REASON_BEACON_MISS,
1336 QCA_ROAM_REASON_POOR_RSSI,
1337 QCA_ROAM_REASON_BETTER_RSSI,
1338 QCA_ROAM_REASON_CONGESTION,
1339 QCA_ROAM_REASON_USER_TRIGGER,
1340 QCA_ROAM_REASON_BTM,
1341 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001342 QCA_ROAM_REASON_WTC,
1343 QCA_ROAM_REASON_IDLE,
1344 QCA_ROAM_REASON_DISCONNECTION,
1345 QCA_ROAM_REASON_PERIODIC_TIMER,
1346 QCA_ROAM_REASON_BACKGROUND_SCAN,
1347 QCA_ROAM_REASON_BT_ACTIVITY,
Hai Shalom021b0b52019-04-10 11:17:58 -07001348};
1349
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001350enum qca_wlan_vendor_attr_roam_auth {
1351 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001352 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1353 * of the roamed AP for MLO roaming.
1354 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001355 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1356 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1357 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1358 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1359 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1360 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1361 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001362 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001363 /* Indicates the status of re-association requested by user space for
1364 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1365 * Type u16.
1366 * Represents the status code from AP. Use
1367 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1368 * real status code for failures.
1369 */
1370 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1371 /* This attribute indicates that the old association was maintained when
1372 * a re-association is requested by user space and that re-association
1373 * attempt fails (i.e., cannot connect to the requested BSS, but can
1374 * remain associated with the BSS with which the association was in
1375 * place when being requested to roam). Used along with
1376 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1377 * re-association status. Type flag.
1378 * This attribute is applicable only for re-association failure cases.
1379 */
1380 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1381 /* This attribute specifies the PMK if one was newly generated during
1382 * FILS roaming. This is added to the PMKSA cache and is used in
1383 * subsequent connections with PMKSA caching.
1384 */
1385 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1386 /* This attribute specifies the PMKID used/generated for the current
1387 * FILS roam. This is used in subsequent connections with PMKSA caching.
1388 */
1389 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1390 /* A 16-bit unsigned value specifying the next sequence number to use
1391 * in ERP message in the currently associated realm. This is used in
1392 * doing subsequent ERP based connections in the same realm.
1393 */
1394 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001395 /* A 16-bit unsigned value representing the reasons for the roaming.
1396 * Defined by enum qca_roam_reason.
1397 */
1398 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001399 /* A nested attribute containing per-link information of all the links
1400 * of MLO connection done while roaming. The attributes used inside this
1401 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1402 */
1403 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001404
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001405 /* keep last */
1406 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1407 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1408 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1409};
1410
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001411enum qca_wlan_vendor_attr_p2p_listen_offload {
1412 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1413 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1414 * of the social channels.
1415 */
1416 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1417 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1418 */
1419 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1420 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1421 */
1422 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1423 /* A 32-bit unsigned value; number of interval times the firmware needs
1424 * to run the offloaded P2P listen operation before it stops.
1425 */
1426 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1427 /* An array of arbitrary binary data with one or more 8-byte values.
1428 * The device types include both primary and secondary device types.
1429 */
1430 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1431 /* An array of unsigned 8-bit characters; vendor information elements.
1432 */
1433 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1434 /* A 32-bit unsigned value; a control flag to indicate whether listen
1435 * results need to be flushed to wpa_supplicant.
1436 */
1437 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1438 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1439 * event.
1440 */
1441 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1442 /* keep last */
1443 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1444 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1445 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1446};
1447
Hai Shalomc3565922019-10-28 11:58:20 -07001448/**
1449 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1450 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1451 *
1452 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1453 * Used with event to notify the primary channel number selected in ACS
1454 * operation.
1455 * Note: If both the driver and user-space application supports the 6 GHz band,
1456 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1457 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1458 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1459 * is still used if either of the driver or user space application doesn't
1460 * support the 6 GHz band.
1461 *
1462 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1463 * Used with event to notify the secondary channel number selected in ACS
1464 * operation.
1465 * Note: If both the driver and user-space application supports the 6 GHz band,
1466 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1467 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1468 * To maintain backward compatibility,
1469 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1470 * the driver or user space application doesn't support 6 GHz band.
1471 *
1472 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1473 * (a) Used with command to configure hw_mode from
1474 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1475 * (b) Also used with event to notify the hw_mode of selected primary channel
1476 * in ACS operation.
1477 *
1478 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1479 * Used with command to configure ACS operation for HT mode.
1480 * Disable (flag attribute not present) - HT disabled and
1481 * Enable (flag attribute present) - HT enabled.
1482 *
1483 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1484 * Used with command to configure ACS operation for HT40 mode.
1485 * Disable (flag attribute not present) - HT40 disabled and
1486 * Enable (flag attribute present) - HT40 enabled.
1487 *
1488 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1489 * Used with command to configure ACS operation for VHT mode.
1490 * Disable (flag attribute not present) - VHT disabled and
1491 * Enable (flag attribute present) - VHT enabled.
1492 *
1493 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1494 * mandatory with event.
1495 * If specified in command path, ACS operation is configured with the given
1496 * channel width (in MHz).
1497 * In event path, specifies the channel width of the primary channel selected.
1498 *
1499 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1500 * Used with command to configure channel list using an array of
1501 * channel numbers (u8).
1502 * Note: If both the driver and user-space application supports the 6 GHz band,
1503 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1504 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1505 *
1506 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1507 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001508 * ACS operation. The value is the index of the channel center frequency for
1509 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1510 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001511 * Note: If both the driver and user-space application supports the 6 GHz band,
1512 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1513 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1514 * To maintain backward compatibility,
1515 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1516 * the driver or user space application doesn't support the 6 GHz band.
1517 *
1518 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1519 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001520 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1521 * The value is the index of the channel center frequency for 160 MHz channels
1522 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1523 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001524 * Note: If both the driver and user-space application supports the 6 GHz band,
1525 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1526 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1527 * To maintain backward compatibility,
1528 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1529 * the driver or user space application doesn't support the 6 GHz band.
1530 *
1531 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1532 * Used with command to configure the channel list using an array of channel
1533 * center frequencies in MHz (u32).
1534 * Note: If both the driver and user-space application supports the 6 GHz band,
1535 * the driver first parses the frequency list and if it fails to get a frequency
1536 * list, parses the channel list specified using
1537 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1538 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1539 *
1540 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1541 * Used with event to notify the primary channel center frequency (MHz) selected
1542 * in ACS operation.
1543 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1544 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1545 *
1546 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1547 * Used with event to notify the secondary channel center frequency (MHz)
1548 * selected in ACS operation.
1549 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1550 * includes this attribute along with
1551 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1552 *
1553 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1554 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1555 * selected in ACS operation.
1556 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1557 * includes this attribute along with
1558 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1559 *
1560 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1561 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1562 * selected in ACS operation.
1563 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1564 * includes this attribute along with
1565 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001566 *
1567 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1568 * Used with command to notify the driver of EDMG request for ACS
1569 * operation.
1570 *
1571 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1572 * Used with event to notify the EDMG channel number selected in ACS
1573 * operation.
1574 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001575 *
1576 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1577 * Used with event to notify the puncture pattern selected in ACS operation.
1578 * Encoding for this attribute will follow the convention used in the Disabled
1579 * Subchannel Bitmap field of the EHT Operation IE.
1580 *
1581 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1582 * Used with command to configure ACS operation for EHT mode.
1583 * Disable (flag attribute not present) - EHT disabled and
1584 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001585 *
1586 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1587 * Used with command to configure how older scan can be considered for ACS
1588 * scoring. In case scan was performed on a partial set of channels configured
1589 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1590 * (in ms), scan only the remaining channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001591 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001592enum qca_wlan_vendor_attr_acs_offload {
1593 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001594 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1595 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1596 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1597 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1598 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1599 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1600 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1601 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1602 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1603 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1604 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1605 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1606 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1607 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1608 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001609 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1610 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001611 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1612 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001613 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Hai Shalomc3565922019-10-28 11:58:20 -07001614
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001615 /* keep last */
1616 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1617 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1618 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1619};
1620
Hai Shalomc3565922019-10-28 11:58:20 -07001621/**
1622 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1623 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1624 *
1625 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1626 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1627 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1628 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1629 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1630 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1631 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001632enum qca_wlan_vendor_acs_hw_mode {
1633 QCA_ACS_MODE_IEEE80211B,
1634 QCA_ACS_MODE_IEEE80211G,
1635 QCA_ACS_MODE_IEEE80211A,
1636 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001637 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001638 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001639};
1640
1641/**
1642 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1643 *
1644 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1645 * management offload, a mechanism where the station's firmware
1646 * does the exchange with the AP to establish the temporal keys
1647 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001648 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1649 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001650 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001651 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001652 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1653 * Listen offload; a mechanism where the station's firmware takes care of
1654 * responding to incoming Probe Request frames received from other P2P
1655 * Devices whilst in Listen state, rather than having the user space
1656 * wpa_supplicant do it. Information from received P2P requests are
1657 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001658 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1659 * specific features.
1660 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1661 * features.
1662 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1663 * specific features only. If a Device sets this bit but not the
1664 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1665 * this Device may not support all OCE AP functionalities but can support
1666 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001667 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1668 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001669 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001670 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1671 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001672 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1673 * and applying thermal configuration through
1674 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1675 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1676 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001677 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1678 * With Adaptive 11r feature, access points advertise the vendor
1679 * specific IEs and MDE but do not include FT AKM in the RSNE.
1680 * The Adaptive 11r supported stations are expected to identify
1681 * such vendor specific IEs and connect to the AP in FT mode though
1682 * the profile is configured in non-FT mode.
1683 * The driver-based SME cases also need to have this support for
1684 * Adaptive 11r to handle the connection and roaming scenarios.
1685 * This flag indicates the support for the same to the user space.
1686 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1687 * concurrent network sessions on different Wi-Fi bands. This feature
1688 * capability is attributed to the hardware's capability to support
1689 * the same (e.g., DBS).
1690 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1691 * responses for the respective TWT operations are asynchronous (separate
1692 * event message) from the driver. If not specified, the responses are
1693 * synchronous (in vendor command reply) to the request. Each TWT
1694 * operation is specifically mentioned (against its respective
1695 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001696 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001697 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001698 * generic nl80211 commands for NDP interface create/delete and to
1699 * register/unregister the netdev instead of creating/deleting the NDP
1700 * interface using the vendor commands
1701 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1702 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001703 * (5.12 version onward), interface creation/deletion is not allowed using
1704 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1705 * during the register/unregister of netdev. Create and delete NDP
1706 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1707 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07001708 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1709 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1710 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1711 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1712 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1713 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1714 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1715 * station mode supports secure RTT measurement exchange. If
1716 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1717 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1718 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1719 * mode supports secure RTT measurement exchange. If
1720 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1721 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1722 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1723 * the device in station mode supports protection of range negotiation and
1724 * measurement management frames. If
1725 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1726 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1727 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1728 * the device in AP mode supports protection of range negotiation and
1729 * measurement management frames. If
1730 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1731 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001732 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1733 */
1734enum qca_wlan_vendor_features {
1735 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001736 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001737 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001738 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001739 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1740 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1741 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001742 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00001743 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001744 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1745 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001746 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001747 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1748 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1749 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07001750 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07001751 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
1752 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
1753 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
1754 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
1755 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
1756 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001757 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1758};
1759
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001760/**
1761 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1762 *
1763 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1764 * the offloaded data.
1765 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1766 * data.
1767 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1768 * indication.
1769 */
1770enum qca_wlan_vendor_attr_data_offload_ind {
1771 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1772 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1773 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1774 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1775
1776 /* keep last */
1777 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1778 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1779 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1780};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001781
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001782/**
1783 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1784 * OCB config
1785 *
1786 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1787 * configuration
1788 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1789 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1790 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1791 * scheduled
1792 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1793 * information
1794 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1795 * active state configuration
1796 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1797 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1798 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1799 * use in the case that a packet is sent without a TX control header
1800 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1801 * last TA received that the local time set by TA is synchronous to other
1802 * communicating OCB STAs.
1803 */
1804enum qca_wlan_vendor_attr_ocb_set_config {
1805 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1806 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1807 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1808 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1809 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1810 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1811 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1812 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1813 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1814 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1815 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1816 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1817 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1818};
1819
1820/**
1821 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1822 * UTC time
1823 *
1824 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1825 * 10 bytes
1826 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1827 * 5 bytes
1828 */
1829enum qca_wlan_vendor_attr_ocb_set_utc_time {
1830 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1831 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1832 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1833 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1834 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1835 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1836};
1837
1838/**
1839 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1840 * to start sending timing advert frames
1841 *
1842 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1843 * on which to send the frames
1844 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1845 * the frame is sent in 5 seconds
1846 */
1847enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1848 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1849 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1850 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1851 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1852 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1853 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1854};
1855
1856/**
1857 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1858 * to stop timing advert
1859 *
1860 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1861 * frequency on which to stop the timing advert
1862 */
1863enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1864 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1865 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1866 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1867 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1868 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1869};
1870
1871/**
1872 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1873 * get TSF timer value
1874 *
1875 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1876 * timer
1877 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1878 */
1879enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1880 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1881 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1882 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1883 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1884 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1885 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1886};
1887
Ravi Joshie6ccb162015-07-16 17:45:41 -07001888enum qca_vendor_attr_get_preferred_freq_list {
1889 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1890 /* A 32-unsigned value; the interface type/mode for which the preferred
1891 * frequency list is requested (see enum qca_iface_type for possible
1892 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1893 * kernel and in the kernel response back to user-space.
1894 */
1895 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1896 /* An array of 32-unsigned values; values are frequency (MHz); sent
1897 * from kernel space to user space.
1898 */
1899 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001900 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1901 * attribute. Each element contains frequency (MHz), weight, and flag
1902 * bit mask indicating how the frequency should be used in P2P
1903 * negotiation; sent from kernel space to user space.
1904 */
1905 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001906 /* keep last */
1907 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1908 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1909 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1910};
1911
1912enum qca_vendor_attr_probable_oper_channel {
1913 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1914 /* 32-bit unsigned value; indicates the connection/iface type likely to
1915 * come on this channel (see enum qca_iface_type).
1916 */
1917 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1918 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1919 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1920 /* keep last */
1921 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1922 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1923 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1924};
1925
1926enum qca_iface_type {
1927 QCA_IFACE_TYPE_STA,
1928 QCA_IFACE_TYPE_AP,
1929 QCA_IFACE_TYPE_P2P_CLIENT,
1930 QCA_IFACE_TYPE_P2P_GO,
1931 QCA_IFACE_TYPE_IBSS,
1932 QCA_IFACE_TYPE_TDLS,
1933};
1934
1935enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001936 QCA_SETBAND_AUTO = 0,
1937 QCA_SETBAND_5G = BIT(0),
1938 QCA_SETBAND_2G = BIT(1),
1939 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001940};
1941
Dmitry Shmidt17022322016-04-06 13:28:42 -07001942/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001943 * enum qca_access_policy - Access control policy
1944 *
1945 * Access control policy is applied on the configured IE
1946 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1947 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1948 *
1949 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1950 * the specific configuration (IE) set, i.e., allow all the
1951 * connections which do not match the configuration.
1952 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1953 * the specific configuration (IE) set, i.e., deny all the
1954 * connections which do not match the configuration.
1955 */
1956enum qca_access_policy {
1957 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1958 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1959};
1960
1961/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001962 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
1963 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
1964 * Specify the TSF command. Possible values are defined in
1965 * &enum qca_tsf_cmd.
1966 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
1967 * This attribute contains TSF timer value. This attribute is only available
1968 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1969 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
1970 * This attribute contains SOC timer value at TSF capture. This attribute is
1971 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1972 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
1973 * This attribute is used to provide TSF sync interval and only applicable when
1974 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
1975 * driver will use the default value. Time unit is in milliseconds.
Dmitry Shmidt17022322016-04-06 13:28:42 -07001976 */
1977enum qca_vendor_attr_tsf_cmd {
1978 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1979 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1980 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1981 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001982 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001983 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1984 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1985 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1986};
1987
1988/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001989 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07001990 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1991 * @QCA_TSF_GET: Get TSF capture value
1992 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08001993 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
1994 * will automatically send TSF report to the host. To query
1995 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
1996 * initiated first.
1997 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
1998 * will not automatically send TSF report to the host. If
1999 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2000 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2001 * operation needs to be initiated.
2002 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2003 * fetches TSF and host time mapping from the firmware with interval configured
2004 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2005 * interval value is not provided the driver will use the default value. The
2006 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2007 * command.
2008 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002009 */
2010enum qca_tsf_cmd {
2011 QCA_TSF_CAPTURE,
2012 QCA_TSF_GET,
2013 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002014 QCA_TSF_AUTO_REPORT_ENABLE,
2015 QCA_TSF_AUTO_REPORT_DISABLE,
2016 QCA_TSF_SYNC_START,
2017 QCA_TSF_SYNC_STOP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002018};
2019
2020/**
2021 * enum qca_vendor_attr_wisa_cmd
2022 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2023 * WISA setup vendor commands
2024 */
2025enum qca_vendor_attr_wisa_cmd {
2026 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2027 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2028 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2029 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2030 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2031};
2032
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002033/* IEEE 802.11 Vendor Specific elements */
2034
2035/**
2036 * enum qca_vendor_element_id - QCA Vendor Specific element types
2037 *
2038 * These values are used to identify QCA Vendor Specific elements. The
2039 * payload of the element starts with the three octet OUI (OUI_QCA) and
2040 * is followed by a single octet type which is defined by this enum.
2041 *
2042 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2043 * This element can be used to specify preference order for supported
2044 * channels. The channels in this list are in preference order (the first
2045 * one has the highest preference) and are described as a pair of
2046 * (global) Operating Class and Channel Number (each one octet) fields.
2047 *
2048 * This extends the standard P2P functionality by providing option to have
2049 * more than one preferred operating channel. When this element is present,
2050 * it replaces the preference indicated in the Operating Channel attribute.
2051 * For supporting other implementations, the Operating Channel attribute is
2052 * expected to be used with the highest preference channel. Similarly, all
2053 * the channels included in this Preferred channel list element are
2054 * expected to be included in the Channel List attribute.
2055 *
2056 * This vendor element may be included in GO Negotiation Request, P2P
2057 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002058 *
2059 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2060 * This element can be used for pre-standard publication testing of HE
2061 * before P802.11ax draft assigns the element ID. The payload of this
2062 * vendor specific element is defined by the latest P802.11ax draft.
2063 * Please note that the draft is still work in progress and this element
2064 * payload is subject to change.
2065 *
2066 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2067 * This element can be used for pre-standard publication testing of HE
2068 * before P802.11ax draft assigns the element ID. The payload of this
2069 * vendor specific element is defined by the latest P802.11ax draft.
2070 * Please note that the draft is still work in progress and this element
2071 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002072 *
2073 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2074 * element).
2075 * This element can be used for pre-standard publication testing of HE
2076 * before P802.11ax draft assigns the element ID extension. The payload of
2077 * this vendor specific element is defined by the latest P802.11ax draft
2078 * (not including the Element ID Extension field). Please note that the
2079 * draft is still work in progress and this element payload is subject to
2080 * change.
2081 *
2082 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2083 * This element can be used for pre-standard publication testing of HE
2084 * before P802.11ax draft assigns the element ID extension. The payload of
2085 * this vendor specific element is defined by the latest P802.11ax draft
2086 * (not including the Element ID Extension field). Please note that the
2087 * draft is still work in progress and this element payload is subject to
2088 * change.
2089 *
2090 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2091 * This element can be used for pre-standard publication testing of HE
2092 * before P802.11ax draft assigns the element ID extension. The payload of
2093 * this vendor specific element is defined by the latest P802.11ax draft
2094 * (not including the Element ID Extension field). Please note that the
2095 * draft is still work in progress and this element payload is subject to
2096 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002097 *
2098 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002099 */
2100enum qca_vendor_element_id {
2101 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002102 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2103 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002104 QCA_VENDOR_ELEM_RAPS = 3,
2105 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2106 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002107 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002108};
2109
2110/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002111 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2112 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2113 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2114 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2115 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2116 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2117 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2118 */
2119enum qca_wlan_vendor_scan_priority {
2120 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2121 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2122 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2123 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2124 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2125};
2126
2127/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002128 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2129 *
2130 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2131 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2132 * with frequencies to be scanned (in MHz)
2133 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2134 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2135 * rates to be included
2136 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002137 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002138 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2139 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002140 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002141 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002142 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002143 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002144 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002145 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002146 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002147 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2148 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002149 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2150 * microseconds. This is a common value which applies across all
2151 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002152 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2153 * other scan requests. It is a u32 attribute and takes values from enum
2154 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2155 * If this attribute is not configured, the driver shall use
2156 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002157 */
2158enum qca_wlan_vendor_attr_scan {
2159 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002160 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2161 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2162 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2163 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2164 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2165 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2166 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2167 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2168 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2169 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2170 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002171 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002172 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002173 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2174 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2175 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2176};
2177
2178/**
2179 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002180 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002181 *
2182 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002183 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002184 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2185 */
2186enum scan_status {
2187 VENDOR_SCAN_STATUS_NEW_RESULTS,
2188 VENDOR_SCAN_STATUS_ABORTED,
2189 VENDOR_SCAN_STATUS_MAX,
2190};
2191
2192/**
2193 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2194 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2195 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2196 */
2197enum qca_vendor_attr_ota_test {
2198 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2199 /* 8-bit unsigned value to indicate if OTA test is enabled */
2200 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2201 /* keep last */
2202 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2203 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2204 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2205};
2206
2207/**
2208 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2209 *
2210 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2211 */
2212enum qca_vendor_attr_txpower_scale {
2213 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2214 /* 8-bit unsigned value to indicate the scaling of tx power */
2215 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2216 /* keep last */
2217 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2218 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2219 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2220};
2221
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002222/**
2223 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2224 *
2225 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2226 */
2227enum qca_vendor_attr_txpower_decr_db {
2228 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2229 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002230 * a virtual interface.
2231 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002232 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2233 /* keep last */
2234 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2235 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2236 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2237};
2238
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002239/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002240 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2241 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002242 */
2243enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002244 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002245 /* Unsigned 32-bit value to set the DTIM period.
2246 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2247 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2248 * DTIM beacons.
2249 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002250 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002251 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2252 * used to calculate statistics like average the TSF offset or average
2253 * number of frame leaked.
2254 * For instance, upon Beacon frame reception:
2255 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2256 * For instance, when evaluating leaky APs:
2257 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2258 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002259 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002260 /* Unsigned 32-bit value to configure guard time, i.e., when
2261 * implementing IEEE power management based on frame control PM bit, how
2262 * long the driver waits before shutting down the radio and after
2263 * receiving an ACK frame for a Data frame with PM bit set.
2264 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002265 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002266 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002267 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002268 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002269 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002270 /* Unsigned 32-bit value to configure the number of continuous
2271 * Beacon Miss which shall be used by the firmware to penalize
2272 * the RSSI.
2273 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002274 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002275 /* Unsigned 8-bit value to configure the channel avoidance indication
2276 * behavior. Firmware to send only one indication and ignore duplicate
2277 * indications when set to avoid multiple Apps wakeups.
2278 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002279 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002280 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002281 * aggregation.
2282 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002283 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002284 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002285 * aggregation.
2286 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002287 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002288 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002289 * retry threshold (0 disable, 31 max).
2290 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002291 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002292 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002293 * retry threshold (0 disable, 31 max).
2294 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002295 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002296 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002297 * retry threshold (0 disable, 31 max).
2298 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002299 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002300 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002301 * retry threshold (0 disable, 31 max).
2302 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002303 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002304 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002305 * 2G/5G band (0~63, units in us)
2306 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002307 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002308 /* Unsigned 32-bit value to configure the number of unicast TX fail
2309 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002310 * reached.
2311 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002312 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002313 /* Attribute used to set scan default IEs to the driver.
2314 *
2315 * These IEs can be used by scan operations that will be initiated by
2316 * the driver/firmware.
2317 *
2318 * For further scan requests coming to the driver, these IEs should be
2319 * merged with the IEs received along with scan request coming to the
2320 * driver. If a particular IE is present in the scan default IEs but not
2321 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002322 * sent in the Probe Request frames for that scan request.
2323 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002324 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002325 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002326 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002327 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002328 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002329 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002330 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002331 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002332 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2333 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002334 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002335 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002336 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2337 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002338 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002339 /* Unsigned 32-bit, defining the access policy.
2340 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002341 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2342 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002343 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002344 /* Sets the list of full set of IEs for which a specific access policy
2345 * has to be applied. Used along with
2346 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002347 * Zero length payload can be used to clear this access constraint.
2348 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002349 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002350 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2351 * corresponding configurations are applied. If the interface index is
2352 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002353 * wiphy.
2354 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002355 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002356 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002357 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002358 /* 8-bit unsigned value to configure the driver and below layers to
2359 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002360 * 1-Ignore, 0-Don't ignore
2361 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002362 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002363 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002364 * 1-Enable, 0-Disable
2365 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002366 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002367 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002368 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002369 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002370 * 1-Enable, 0-Disable
2371 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002372 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002373 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002374 * the unit is micro-second
2375 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002376 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2377 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2378 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2379 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2380 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2381 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2382 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2383 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2384 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2385 /* 6-byte MAC address to point out the specific peer */
2386 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2387 /* 32-bit unsigned value to set window size for specific peer */
2388 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002389 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2390 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2391 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2392 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002393 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2394 * station device while in disconnect state. The attribute use the
2395 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2396 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2397 * 10 MHz channel width, the station will not connect to a BSS using 20
2398 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002399 * clear this constraint.
2400 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002401 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2402 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002403 * for 2G/5G band (units in us)
2404 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002405 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2406 /* 32-bit unsigned value to set probe period */
2407 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2408 /* 32-bit unsigned value to set stay period */
2409 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2410 /* 32-bit unsigned value to set snr diff */
2411 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2412 /* 32-bit unsigned value to set probe dwell time */
2413 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2414 /* 32-bit unsigned value to set mgmt snr weight */
2415 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2416 /* 32-bit unsigned value to set data snr weight */
2417 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2418 /* 32-bit unsigned value to set ack snr weight */
2419 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2420 /* 32-bit unsigned value to configure the listen interval.
2421 * This is in units of beacon intervals. This configuration alters
2422 * the negotiated listen interval with the AP during the connection.
2423 * It is highly recommended to configure a value less than or equal to
2424 * the one negotiated during the association. Configuring any greater
2425 * value can have adverse effects (frame loss, AP disassociating STA,
2426 * etc.).
2427 */
2428 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2429 /*
2430 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2431 * disable operations that would cause the AP/GO to leave its operating
2432 * channel.
2433 *
2434 * This will restrict the scans to the AP/GO operating channel and the
2435 * channels of the other band, if DBS is supported.A STA/CLI interface
2436 * brought up after this setting is enabled, will be restricted to
2437 * connecting to devices only on the AP/GO interface's operating channel
2438 * or on the other band in DBS case. P2P supported channel list is
2439 * modified, to only include AP interface's operating-channel and the
2440 * channels of the other band if DBS is supported.
2441 *
2442 * These restrictions are only applicable as long as the AP/GO interface
2443 * is alive. If the AP/GO interface is brought down then this
2444 * setting/restriction is forgotten.
2445 *
2446 * If this variable is set on an AP/GO interface while a multi-channel
2447 * concurrent session is active, it has no effect on the operation of
2448 * the current interfaces, other than restricting the scan to the AP/GO
2449 * operating channel and the other band channels if DBS is supported.
2450 * However, if the STA is brought down and restarted then the new STA
2451 * connection will either be formed on the AP/GO channel or on the
2452 * other band in a DBS case. This is because of the scan being
2453 * restricted on these channels as mentioned above.
2454 *
2455 * 1-Restrict / 0-Don't restrict offchannel operations.
2456 */
2457 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2458 /*
2459 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2460 * on an interface.
2461 * 1 - Enable, 0 - Disable.
2462 */
2463 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2464
2465 /*
2466 * 8 bit unsigned value to globally enable/disable scan
2467 * 1 - Enable, 0 - Disable.
2468 */
2469 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2470
2471 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002472 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002473 */
2474 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2475
2476 /* Unsigned 32-bit value to configure the number of continuous
2477 * Beacon Miss which shall be used by the firmware to penalize
2478 * the RSSI for BTC.
2479 */
2480 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2481
2482 /* 8-bit unsigned value to configure the driver and below layers to
2483 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002484 * 0-enable, 1-disable
2485 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002486 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002487
Roshan Pius3a1667e2018-07-03 15:17:14 -07002488 /* 16-bit unsigned value to configure the level of WLAN latency
2489 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2490 */
2491 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2492
2493 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2494 * the connect interface. Exclusively used for the scenarios where the
2495 * device is used as a test bed device with special functionality and
2496 * not recommended for production. This helps driver to not validate the
2497 * RSNE passed from user space and thus allow arbitrary IE data to be
2498 * used for testing purposes.
2499 * 1-enable, 0-disable.
2500 * Applications set/reset this configuration. If not reset, this
2501 * parameter remains in use until the driver is unloaded.
2502 */
2503 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2504
2505 /* 8-bit unsigned value to trigger green Tx power saving.
2506 * 1-Enable, 0-Disable
2507 */
2508 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2509
Hai Shalomc3565922019-10-28 11:58:20 -07002510 /* Attribute to configure disconnect IEs to the driver.
2511 * This carries an array of unsigned 8-bit characters.
2512 *
2513 * If this is configured, driver shall fill the IEs in disassoc/deauth
2514 * frame.
2515 * These IEs are expected to be considered only for the next
2516 * immediate disconnection (disassoc/deauth frame) originated by
2517 * the DUT, irrespective of the entity (user space/driver/firmware)
2518 * triggering the disconnection.
2519 * The host drivers are not expected to use the IEs set through
2520 * this interface for further disconnections after the first immediate
2521 * disconnection initiated post the configuration.
2522 * If the IEs are also updated through cfg80211 interface (after the
2523 * enhancement to cfg80211_disconnect), host driver is expected to
2524 * take the union of IEs from both of these interfaces and send in
2525 * further disassoc/deauth frames.
2526 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002527 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002528
2529 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002530 * 0 - Disable eLNA bypass.
2531 * 1 - Enable eLNA bypass.
2532 * 2 - Reset eLNA bypass configuration, the driver should
2533 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002534 */
2535 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2536
Hai Shalomfdcde762020-04-02 11:19:20 -07002537 /* 8-bit unsigned value. This attribute enables/disables the host driver
2538 * to send the Beacon Report Response with failure reason for the
2539 * scenarios where STA cannot honor the Beacon Report Request from AP.
2540 * 1-Enable, 0-Disable.
2541 */
2542 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2543
2544 /* 8-bit unsigned value. This attribute enables/disables the host driver
2545 * to send roam reason information in the Reassociation Request frame to
2546 * the target AP when roaming within the same ESS.
2547 * 1-Enable, 0-Disable.
2548 */
2549 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2550
Hai Shalom899fcc72020-10-19 14:38:18 -07002551 /* 32-bit unsigned value to configure different PHY modes to the
2552 * driver/firmware. The possible values are defined in
2553 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2554 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2555 * the driver.
2556 */
2557 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2558
2559 /* 8-bit unsigned value to configure the maximum supported channel width
2560 * for STA mode. If this value is configured when STA is in connected
2561 * state, it should not exceed the negotiated channel width. If it is
2562 * configured when STA is in disconnected state, the configured value
2563 * will take effect for the next immediate connection.
2564 * Possible values are:
2565 * NL80211_CHAN_WIDTH_20
2566 * NL80211_CHAN_WIDTH_40
2567 * NL80211_CHAN_WIDTH_80
2568 * NL80211_CHAN_WIDTH_80P80
2569 * NL80211_CHAN_WIDTH_160
2570 */
2571 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2572
2573 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2574 * This attribute is only applicable for STA mode. When dynamic
2575 * bandwidth adjustment is disabled, STA will use static channel width
2576 * the value of which is negotiated during connection.
2577 * 1-enable (default), 0-disable
2578 */
2579 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2580
2581 /* 8-bit unsigned value to configure the maximum number of subframes of
2582 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2583 * it is decided by the hardware.
2584 */
2585 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2586
2587 /* 8-bit unsigned value to configure the maximum number of subframes of
2588 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2589 * it is decided by the hardware.
2590 */
2591 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2592
2593 /* 8-bit unsigned value. This attribute is used to dynamically
2594 * enable/disable the LDPC capability of the device. When configured in
2595 * the disconnected state, the updated configuration will be considered
2596 * for the immediately following connection attempt. If this
2597 * configuration is modified while the device is in the connected state,
2598 * the LDPC TX will be updated with this configuration immediately,
2599 * while the LDPC RX configuration update will take place starting from
2600 * the subsequent association attempt.
2601 * 1-Enable, 0-Disable.
2602 */
2603 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2604
2605 /* 8-bit unsigned value. This attribute is used to dynamically
2606 * enable/disable the TX STBC capability of the device. When configured
2607 * in the disconnected state, the updated configuration will be
2608 * considered for the immediately following connection attempt. If the
2609 * connection is formed with TX STBC enabled and if this configuration
2610 * is disabled during that association, the TX will be impacted
2611 * immediately. Further connection attempts will disable TX STBC.
2612 * However, enabling the TX STBC for a connected session with disabled
2613 * capability is not allowed and will fail.
2614 * 1-Enable, 0-Disable.
2615 */
2616 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2617
2618 /* 8-bit unsigned value. This attribute is used to dynamically
2619 * enable/disable the RX STBC capability of the device. When configured
2620 * in the disconnected state, the updated configuration will be
2621 * considered for the immediately following connection attempt. If the
2622 * configuration is modified in the connected state, there will be no
2623 * impact for the current association, but further connection attempts
2624 * will use the updated configuration.
2625 * 1-Enable, 0-Disable.
2626 */
2627 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2628
2629 /* 8-bit unsigned value. This attribute is used to dynamically configure
2630 * the number of spatial streams. When configured in the disconnected
2631 * state, the updated configuration will be considered for the
2632 * immediately following connection attempt. If the NSS is updated after
2633 * the connection, the updated NSS value is notified to the peer using
2634 * the Operating Mode Notification/Spatial Multiplexing Power Save
2635 * frame. The updated NSS value after the connection shall not be
2636 * greater than the one negotiated during the connection. Any such
2637 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002638 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2639 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2640 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2641 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002642 */
2643 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2644 /* 8-bit unsigned value to trigger Optimized Power Management:
2645 * 1-Enable, 0-Disable
2646 */
2647 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2648
2649 /* 8-bit unsigned value. This attribute takes the QoS/access category
2650 * value represented by the enum qca_wlan_ac_type and expects the driver
2651 * to upgrade the UDP frames to this access category. The value of
2652 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2653 * DSCP value configured in the frame with the intention to only upgrade
2654 * the access category. That said, it is not intended to downgrade the
2655 * access category for the frames.
2656 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2657 * disabled, as BK is of the lowest priority and an upgrade to it does
2658 * not result in any changes for the frames.
2659 */
2660 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2661
2662 /* 8-bit unsigned value. This attribute is used to dynamically configure
2663 * the number of chains to be used for transmitting data. This
2664 * configuration is allowed only when in connected state and will be
2665 * effective until disconnected. The driver rejects this configuration
2666 * if the number of spatial streams being used in the current connection
2667 * cannot be supported by this configuration.
2668 */
2669 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2670 /* 8-bit unsigned value. This attribute is used to dynamically configure
2671 * the number of chains to be used for receiving data. This
2672 * configuration is allowed only when in connected state and will be
2673 * effective until disconnected. The driver rejects this configuration
2674 * if the number of spatial streams being used in the current connection
2675 * cannot be supported by this configuration.
2676 */
2677 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2678
2679 /* 8-bit unsigned value to configure ANI setting type.
2680 * See &enum qca_wlan_ani_setting for possible values.
2681 */
2682 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2683 /* 32-bit signed value to configure ANI level. This is used when
2684 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2685 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2686 * is invalid, the driver will return a failure.
2687 */
2688 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2689
Hai Shalom60840252021-02-19 19:02:11 -08002690 /* 8-bit unsigned value. This attribute is used to dynamically configure
2691 * the number of spatial streams used for transmitting the data. When
2692 * configured in the disconnected state, the configured value will
2693 * be considered for the following connection attempt.
2694 * If the NSS is updated after the connection, the updated NSS value
2695 * is notified to the peer using the Operating Mode Notification/Spatial
2696 * Multiplexing Power Save frame.
2697 * The TX NSS value configured after the connection shall not be greater
2698 * than the value negotiated during the connection. Any such higher
2699 * value configuration shall be treated as invalid configuration by
2700 * the driver. This attribute shall be configured along with
2701 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2702 * configuration (such as 2X2 or 1X1) or the asymmetric
2703 * configuration (such as 1X2).
2704 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2705 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2706 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2707 */
2708 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2709
2710 /* 8-bit unsigned value. This attribute is used to dynamically configure
2711 * the number of spatial streams used for receiving the data. When
2712 * configured in the disconnected state, the configured value will
2713 * be considered for the following connection attempt.
2714 * If the NSS is updated after the connection, the updated NSS value
2715 * is notified to the peer using the Operating Mode Notification/Spatial
2716 * Multiplexing Power Save frame.
2717 * The RX NSS value configured after the connection shall not be greater
2718 * than the value negotiated during the connection. Any such higher
2719 * value configuration shall be treated as invalid configuration by
2720 * the driver. This attribute shall be configured along with
2721 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2722 * configuration (such as 2X2 or 1X1) or the asymmetric
2723 * configuration (such as 1X2).
2724 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2725 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2726 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2727 */
2728 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2729
Hai Shaloma20dcd72022-02-04 13:43:00 -08002730 /*
2731 * 8-bit unsigned value. This attribute, when set, indicates whether the
2732 * specified interface is the primary STA interface when there are more
2733 * than one STA interfaces concurrently active.
2734 *
2735 * This configuration helps the firmware/hardware to support certain
2736 * features (e.g., roaming) on this primary interface, if the same
2737 * cannot be supported on the concurrent STA interfaces simultaneously.
2738 *
2739 * This configuration is only applicable for a single STA interface on
2740 * a device and gives the priority for it only over other concurrent STA
2741 * interfaces.
2742 *
2743 * If the device is a multi wiphy/soc, this configuration applies to a
2744 * single STA interface across the wiphys.
2745 *
2746 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2747 */
2748 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2749
2750 /*
2751 * 8-bit unsigned value. This attribute can be used to configure the
2752 * driver to enable/disable FT-over-DS feature. Possible values for
2753 * this attribute are 1-Enable and 0-Disable.
2754 */
2755 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2756
2757 /*
2758 * 8-bit unsigned value. This attribute can be used to configure the
2759 * firmware to enable/disable ARP/NS offload feature. Possible values
2760 * for this attribute are 0-Disable and 1-Enable.
2761 *
2762 * This attribute is only applicable for STA/P2P-Client interface,
2763 * and is optional, default behavior is ARP/NS offload enabled.
2764 *
2765 * This attribute can be set in disconnected and connected state, and
2766 * will restore to the default behavior if the interface is closed.
2767 */
2768 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2769
Sunil8cd6f4d2022-06-28 18:40:46 +00002770 /*
2771 * 8-bit unsigned value. This attribute can be used to configure the
2772 * data path mode to be followed for audio traffic. Possible values
2773 * are defined in enum qca_wlan_audio_data_path.
2774 */
2775 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2776
Sunil Ravi89eba102022-09-13 21:04:37 -07002777 /*
2778 * 8-bit unsigned value. This attribute can be used to configure the
2779 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
2780 * this attribute are defined in the enum qca_wlan_dbam_config.
2781 */
2782 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
2783
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002784 /* keep last */
2785 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2786 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2787 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2788};
2789
Hai Shalomfdcde762020-04-02 11:19:20 -07002790/* Compatibility defines for previously used incorrect enum
2791 * qca_wlan_vendor_attr_config names. These values should not be used in any
2792 * new implementation. */
2793#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2794 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2795#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2796 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2797
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002798/**
Sunil Ravi89eba102022-09-13 21:04:37 -07002799 * enum qca_dbam_config - Specifies DBAM config mode
2800 * @QCA_DBAM_DISABLE: Firmware disables DBAM
2801 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
2802 * internal criteria are met.
2803 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
2804 */
2805enum qca_dbam_config {
2806 QCA_DBAM_DISABLE = 0,
2807 QCA_DBAM_ENABLE = 1,
2808 QCA_DBAM_FORCE_ENABLE = 2,
2809};
2810
2811/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002812 * enum qca_wlan_ani_setting - ANI setting type
2813 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2814 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2815 */
2816enum qca_wlan_ani_setting {
2817 QCA_WLAN_ANI_SETTING_AUTO = 0,
2818 QCA_WLAN_ANI_SETTING_FIXED = 1,
2819};
2820
2821/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002822 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002823 *
2824 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2825 * Channel number on which Access Point should restart.
2826 * Note: If both the driver and user space application supports the 6 GHz band,
2827 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2828 * should be used.
2829 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2830 * is still used if either of the driver or user space application doesn't
2831 * support the 6 GHz band.
2832 *
2833 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2834 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002835 */
2836enum qca_wlan_vendor_attr_sap_config {
2837 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002838 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2839
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002840 /* List of frequencies on which AP is expected to operate.
2841 * This is irrespective of ACS configuration. This list is a priority
2842 * based one and is looked for before the AP is created to ensure the
2843 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2844 * the system.
2845 */
2846 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002847 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002848
2849 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2850 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2851 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2852};
2853
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002854/**
2855 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2856 * conditional channel switch
2857 */
2858enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2859 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2860 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002861 * order)
2862 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002863 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2864 /* Status of the conditional switch (u32).
2865 * 0: Success, Non-zero: Failure
2866 */
2867 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2868
2869 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2870 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2871 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2872};
2873
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002874/**
2875 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07002876 *
2877 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2878 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2879 * for the available values.
2880 *
2881 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2882 * value to specify the GPIO number.
2883 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2884 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2885 *
2886 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
2887 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
2888 * for the available values.
2889 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2890 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2891 *
Hai Shalom60840252021-02-19 19:02:11 -08002892 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002893 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
2894 * for the available values.
2895 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002896 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2897 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2898 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2899 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002900 *
Hai Shalom60840252021-02-19 19:02:11 -08002901 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002902 * value to specify the GPIO interrupt mode. Please refer to enum
2903 * qca_gpio_interrupt_mode for the available values.
2904 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002905 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2906 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2907 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2908 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002909 *
Hai Shalom60840252021-02-19 19:02:11 -08002910 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002911 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
2912 * for the available values.
2913 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002914 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2915 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2916 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2917 * attribute is present.
2918 *
2919 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
2920 * Value to specify the mux config. Meaning of a given value is dependent
2921 * on the target chipset and GPIO pin. Must be of the range 0-15.
2922 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2923 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
2924 *
2925 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
2926 * Value to specify the drive, refer to enum qca_gpio_drive.
2927 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2928 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
2929 *
2930 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
2931 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2932 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
2933 * other parameters for the given GPIO will be obtained from internal
2934 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
2935 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002936 */
2937enum qca_wlan_gpio_attr {
2938 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2939 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07002940 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002941 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002942 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002943 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002944 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002945 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07002946 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002947 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07002948 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
2949 /* Unsigned 32-bit attribute for GPIO direction to configure */
2950 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08002951 /* Unsigned 32-bit attribute for GPIO mux config */
2952 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
2953 /* Unsigned 32-bit attribute for GPIO drive */
2954 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
2955 /* Flag attribute for using internal GPIO configuration */
2956 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002957
2958 /* keep last */
2959 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2960 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2961 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2962};
2963
2964/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002965 * enum gpio_cmd_type - GPIO configuration command type
2966 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
2967 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
2968 */
2969enum qca_gpio_cmd_type {
2970 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
2971 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
2972};
2973
2974/**
2975 * enum qca_gpio_pull_type - GPIO pull type
2976 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
2977 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
2978 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
2979 */
2980enum qca_gpio_pull_type {
2981 QCA_WLAN_GPIO_PULL_NONE = 0,
2982 QCA_WLAN_GPIO_PULL_UP = 1,
2983 QCA_WLAN_GPIO_PULL_DOWN = 2,
2984 QCA_WLAN_GPIO_PULL_MAX,
2985};
2986
2987/**
2988 * enum qca_gpio_direction - GPIO direction
2989 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
2990 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
2991 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
2992 */
2993enum qca_gpio_direction {
2994 QCA_WLAN_GPIO_INPUT = 0,
2995 QCA_WLAN_GPIO_OUTPUT = 1,
2996 QCA_WLAN_GPIO_DIR_MAX,
2997};
2998
2999/**
3000 * enum qca_gpio_value - GPIO Value
3001 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3002 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3003 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3004 */
3005enum qca_gpio_value {
3006 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3007 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3008 QCA_WLAN_GPIO_LEVEL_MAX,
3009};
3010
3011/**
3012 * enum gpio_interrupt_mode - GPIO interrupt mode
3013 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3014 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3015 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3016 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3017 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3018 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3019 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3020 */
3021enum qca_gpio_interrupt_mode {
3022 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3023 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3024 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3025 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3026 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3027 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3028 QCA_WLAN_GPIO_INTMODE_MAX,
3029};
3030
3031/**
Hai Shalom60840252021-02-19 19:02:11 -08003032 * enum qca_gpio_drive - GPIO drive
3033 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3034 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3035 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3036 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3037 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3038 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3039 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3040 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3041 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3042 */
3043enum qca_gpio_drive {
3044 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3045 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3046 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3047 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3048 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3049 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3050 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3051 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3052 QCA_WLAN_GPIO_DRIVE_MAX,
3053};
3054
3055/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003056 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3057 * MSDUQ depth threshold per peer per tid in the target
3058 *
3059 * Associated Vendor Command:
3060 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3061 */
3062enum qca_wlan_set_qdepth_thresh_attr {
3063 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3064 /* 6-byte MAC address */
3065 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3066 /* Unsigned 32-bit attribute for holding the TID */
3067 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3068 /* Unsigned 32-bit attribute for holding the update mask
3069 * bit 0 - Update high priority msdu qdepth threshold
3070 * bit 1 - Update low priority msdu qdepth threshold
3071 * bit 2 - Update UDP msdu qdepth threshold
3072 * bit 3 - Update Non UDP msdu qdepth threshold
3073 * rest of bits are reserved
3074 */
3075 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3076 /* Unsigned 32-bit attribute for holding the threshold value */
3077 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3078
3079 /* keep last */
3080 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3081 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3082 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3083};
3084
3085/**
Hai Shalomc3565922019-10-28 11:58:20 -07003086 * enum qca_acs_dfs_mode - Defines different types of DFS channel
3087 * configurations for ACS operation.
3088 *
3089 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3090 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3091 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3092 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3093 */
3094enum qca_acs_dfs_mode {
3095 QCA_ACS_DFS_MODE_NONE = 0,
3096 QCA_ACS_DFS_MODE_ENABLE = 1,
3097 QCA_ACS_DFS_MODE_DISABLE = 2,
3098 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3099};
3100
3101/**
3102 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3103 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3104 *
3105 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3106 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3107 *
3108 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3109 * channel number hint for ACS operation, if valid channel is specified then
3110 * ACS operation gives priority to this channel.
3111 * Note: If both the driver and user space application supports the 6 GHz band,
3112 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3113 * should be used.
3114 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3115 * is still used if either of the driver or user space application doesn't
3116 * support the 6 GHz band.
3117 *
3118 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3119 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3120 * frequency is specified, ACS operation gives priority to this channel.
3121 */
3122enum qca_wlan_vendor_attr_acs_config {
3123 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3124 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3125 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3126 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3127
3128 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3129 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3130 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3131};
3132
3133/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003134 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3135 */
3136enum qca_wlan_vendor_attr_get_hw_capability {
3137 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3138 /* Antenna isolation
3139 * An attribute used in the response.
3140 * The content of this attribute is encoded in a byte array. Each byte
3141 * value is an antenna isolation value. The array length is the number
3142 * of antennas.
3143 */
3144 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3145 /* Request HW capability
3146 * An attribute used in the request.
3147 * The content of this attribute is a u32 array for one or more of
3148 * hardware capabilities (attribute IDs) that are being requested. Each
3149 * u32 value has a value from this
3150 * enum qca_wlan_vendor_attr_get_hw_capability
3151 * identifying which capabilities are requested.
3152 */
3153 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3154
3155 /* keep last */
3156 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3157 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3158 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3159};
3160
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003161/**
3162 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3163 * offload which is an extension for LL_STATS.
3164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3165 * If MAC counters do not exceed the threshold, FW will report monitored
3166 * link layer counters periodically as this setting. The first report is
3167 * always triggered by this timer.
3168 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3169 * For each MAC layer counter, FW holds two copies. One is the current value.
3170 * The other is the last report. Once a current counter's increment is larger
3171 * than the threshold, FW will indicate that counter to host even if the
3172 * monitoring timer does not expire.
3173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3174 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3176 * failure code.
3177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3178 * 1: TX packet discarded
3179 * 2: No ACK
3180 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3182 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3184 * Threshold for all monitored parameters. If per counter dedicated threshold
3185 * is not enabled, this threshold will take effect.
3186 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3187 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3190 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3191 * Bit0: TX counter unit in MSDU
3192 * Bit1: TX counter unit in MPDU
3193 * Bit2: TX counter unit in PPDU
3194 * Bit3: TX counter unit in byte
3195 * Bit4: Dropped MSDUs
3196 * Bit5: Dropped Bytes
3197 * Bit6: MPDU retry counter
3198 * Bit7: MPDU failure counter
3199 * Bit8: PPDU failure counter
3200 * Bit9: MPDU aggregation counter
3201 * Bit10: MCS counter for ACKed MPDUs
3202 * Bit11: MCS counter for Failed MPDUs
3203 * Bit12: TX Delay counter
3204 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3205 * Bit0: MAC RX counter unit in MPDU
3206 * Bit1: MAC RX counter unit in byte
3207 * Bit2: PHY RX counter unit in PPDU
3208 * Bit3: PHY RX counter unit in byte
3209 * Bit4: Disorder counter
3210 * Bit5: Retry counter
3211 * Bit6: Duplication counter
3212 * Bit7: Discard counter
3213 * Bit8: MPDU aggregation size counter
3214 * Bit9: MCS counter
3215 * Bit10: Peer STA power state change (wake to sleep) counter
3216 * Bit11: Peer STA power save counter, total time in PS mode
3217 * Bit12: Probe request counter
3218 * Bit13: Other management frames counter
3219 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3220 * Bit0: Idle time
3221 * Bit1: TX time
3222 * Bit2: time RX in current bss
3223 * Bit3: Out of current bss time
3224 * Bit4: Wireless medium busy time
3225 * Bit5: RX in bad condition time
3226 * Bit6: TX in bad condition time
3227 * Bit7: time wlan card not available
3228 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3229 * Bit0: Per channel SNR counter
3230 * Bit1: Per channel noise floor counter
3231 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3232 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3233 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3234 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3235 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3236 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3237 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3238 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3239 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3240 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3241 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3242 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3243 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3244 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3245 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3246 * aggregation stats buffer length
3247 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3248 * buffer for ACKed MPDUs.
3249 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3250 * buffer for failed MPDUs.
3251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3252 * length of delay stats array.
3253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3254 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3255 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3256 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3257 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3258 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3261 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3262 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3263 * flagged as retransmissions
3264 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3265 * flagged as duplicated
3266 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3267 * packets discarded
3268 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3269 * stats buffer.
3270 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3271 * stats buffer.
3272 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3273 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3274 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3275 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3276 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3277 * requests received
3278 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3279 * frames received
3280 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3281 * there is no TX, nor RX, nor interference.
3282 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3283 * transmitting packets.
3284 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3285 * for receiving.
3286 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3287 * interference detected.
3288 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3289 * receiving packets with errors.
3290 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3291 * TX no-ACK.
3292 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3293 * the chip is unable to work in normal conditions.
3294 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3295 * receiving packets in current BSS.
3296 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3297 * receiving packets not in current BSS.
3298 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3299 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3300 * This is a container for per antenna signal stats.
3301 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3302 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3303 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3304 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003305 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3306 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3307 * message, user layer APP could call gettimeofday to get another
3308 * timestamp and calculate transfer delay for the message.
3309 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3310 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003311 */
3312enum qca_wlan_vendor_attr_ll_stats_ext {
3313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3314
3315 /* Attributes for configurations */
3316 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3317 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3318
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003319 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003320 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3321
3322 /* TX failure event */
3323 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3324 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3325 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3326
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003327 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3328 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3329
3330 /* MAC counters */
3331 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3332 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3333 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3334 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3335 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3336 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3337 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3338 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3339 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3340 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3341 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3342 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3343
3344 /* Sub-attributes for PEER_AC_TX */
3345 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3346 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3347 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3348 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3349 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3350 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3351 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3352 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3353 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3354 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3355 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3356 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3357 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3358 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3359 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3360 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3361 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3362
3363 /* Sub-attributes for PEER_AC_RX */
3364 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3365 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3366 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3367 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3368 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3369 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3370 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3371 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3372 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3373 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3374 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3375 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3376 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3377 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3378 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3379 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3380
3381 /* Sub-attributes for CCA_BSS */
3382 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3383 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3384 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3385 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3386 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3387 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3388 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3389
3390 /* sub-attribute for BSS_RX_TIME */
3391 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3392 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3393
3394 /* Sub-attributes for PEER_SIGNAL */
3395 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3396 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3397 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3398 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3399
3400 /* Sub-attributes for IFACE_BSS */
3401 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3402 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3403
Roshan Pius3a1667e2018-07-03 15:17:14 -07003404 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3405 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3406
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003407 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3408 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3409 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3410};
3411
3412/* Attributes for FTM commands and events */
3413
3414/**
3415 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3416 *
3417 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3418 * enum qca_wlan_vendor_attr_loc_capa_flags.
3419 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3420 * of measurement sessions that can run concurrently.
3421 * Default is one session (no session concurrency).
3422 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3423 * peers that are supported in running sessions. For example,
3424 * if the value is 8 and maximum number of sessions is 2, you can
3425 * have one session with 8 unique peers, or 2 sessions with 4 unique
3426 * peers each, and so on.
3427 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3428 * of bursts per peer, as an exponent (2^value). Default is 0,
3429 * meaning no multi-burst support.
3430 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3431 * of measurement exchanges allowed in a single burst.
3432 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3433 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3434 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3435 */
3436enum qca_wlan_vendor_attr_loc_capa {
3437 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3438 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3439 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3440 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3441 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3442 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3443 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3444 /* keep last */
3445 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3446 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3447 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3448};
3449
3450/**
3451 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3452 *
3453 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3454 * can be configured as an FTM responder (for example, an AP that
3455 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3456 * will be supported if set.
3457 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3458 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3459 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003460 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003461 * supports immediate (ASAP) response.
3462 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3463 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3464 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3465 * requesting AOA measurements as part of an FTM session.
3466 */
3467enum qca_wlan_vendor_attr_loc_capa_flags {
3468 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3469 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3470 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3471 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3472 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3473};
3474
3475/**
3476 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3477 * a single peer in a measurement session.
3478 *
3479 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3480 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3481 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003482 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003483 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3484 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3485 * list of supported attributes.
3486 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3487 * secure measurement.
3488 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3489 * measurement every <value> bursts. If 0 or not specified,
3490 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003491 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3492 * the measurement frames are exchanged. Optional; if not
3493 * specified, try to locate the peer in the kernel scan
3494 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003495 */
3496enum qca_wlan_vendor_attr_ftm_peer_info {
3497 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3498 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3499 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003500 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003501 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3502 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003503 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003504 /* keep last */
3505 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3506 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3507 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3508};
3509
3510/**
3511 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3512 * per-peer
3513 *
3514 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3515 * immediate (ASAP) response from peer.
3516 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3517 * LCI report from peer. The LCI report includes the absolute
3518 * location of the peer in "official" coordinates (similar to GPS).
3519 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3520 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3521 * Location civic report from peer. The LCR includes the location
3522 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3523 * 11.24.6.7 for more information.
3524 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3525 * request a secure measurement.
3526 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3527 */
3528enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3529 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3530 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3531 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3532 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3533};
3534
3535/**
3536 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3537 *
3538 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3539 * to perform in a single burst.
3540 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3541 * perform, specified as an exponent (2^value).
3542 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3543 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3544 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3545 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3546 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3547 */
3548enum qca_wlan_vendor_attr_ftm_meas_param {
3549 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3550 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3551 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3552 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3553 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3554 /* keep last */
3555 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3556 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3557 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3558};
3559
3560/**
3561 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3562 *
3563 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3564 * peer.
3565 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3566 * request for this peer.
3567 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3568 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3569 * to measurement results for this peer.
3570 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3571 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3572 * request failed and peer requested not to send an additional request
3573 * for this number of seconds.
3574 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3575 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3576 * 9.4.2.22.10.
3577 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3578 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3579 * 9.4.2.22.13.
3580 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3581 * overridden some measurement request parameters. See
3582 * enum qca_wlan_vendor_attr_ftm_meas_param.
3583 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3584 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3585 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3586 * results. Each entry is a nested attribute defined
3587 * by enum qca_wlan_vendor_attr_ftm_meas.
3588 */
3589enum qca_wlan_vendor_attr_ftm_peer_result {
3590 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3591 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3592 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3593 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3594 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3595 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3596 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3597 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3598 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3599 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3600 /* keep last */
3601 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3602 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3603 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3604};
3605
3606/**
3607 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3608 *
3609 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3610 * will be provided. Peer may have overridden some measurement parameters,
3611 * in which case overridden parameters will be report by
3612 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3613 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3614 * of performing the measurement request. No more results will be sent
3615 * for this peer in this session.
3616 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3617 * failed, and requested not to send an additional request for number
3618 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3619 * attribute.
3620 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3621 * failed. Request was not sent over the air.
3622 */
3623enum qca_wlan_vendor_attr_ftm_peer_result_status {
3624 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3625 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3626 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3627 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3628};
3629
3630/**
3631 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3632 * for measurement result, per-peer
3633 *
3634 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3635 * measurement completed for this peer. No more results will be reported
3636 * for this peer in this session.
3637 */
3638enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3639 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3640};
3641
3642/**
3643 * enum qca_vendor_attr_loc_session_status: Session completion status code
3644 *
3645 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3646 * successfully.
3647 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3648 * by request.
3649 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3650 * was invalid and was not started.
3651 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3652 * and did not complete normally (for example out of resources).
3653 */
3654enum qca_vendor_attr_loc_session_status {
3655 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3656 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3657 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3658 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3659};
3660
3661/**
3662 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3663 *
3664 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3665 * recorded by responder, in picoseconds.
3666 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3667 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3668 * initiator, in picoseconds.
3669 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3670 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3671 * initiator, in picoseconds.
3672 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3673 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3674 * responder, in picoseconds.
3675 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3676 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3677 * during this measurement exchange. Optional and will be provided if
3678 * the hardware can measure it.
3679 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3680 * responder. Not always provided.
3681 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3682 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3683 * responder. Not always provided.
3684 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3685 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3686 * initiator. Not always provided.
3687 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3688 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3689 * initiator. Not always provided.
3690 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3691 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3692 */
3693enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003694 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003695 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3696 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3697 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3698 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3699 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3700 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3701 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3702 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3703 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3704 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3705 /* keep last */
3706 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3707 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3708 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3709};
3710
3711/**
3712 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3713 *
3714 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3715 * CIR (channel impulse response) path for each antenna.
3716 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3717 * of the strongest CIR path for each antenna.
3718 */
3719enum qca_wlan_vendor_attr_aoa_type {
3720 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3721 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3722 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3723};
3724
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003725/**
3726 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3727 * validate encryption engine
3728 *
3729 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3730 * This will be included if the request is for decryption; if not included,
3731 * the request is treated as a request for encryption by default.
3732 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3733 * indicating the key cipher suite. Takes same values as
3734 * NL80211_ATTR_KEY_CIPHER.
3735 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3736 * Key Id to be used for encryption
3737 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3738 * Key (TK) to be used for encryption/decryption
3739 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3740 * Packet number to be specified for encryption/decryption
3741 * 6 bytes for TKIP/CCMP/GCMP.
3742 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3743 * representing the 802.11 packet (header + payload + FCS) that
3744 * needs to be encrypted/decrypted.
3745 * Encrypted/decrypted response from the driver will also be sent
3746 * to userspace with the same attribute.
3747 */
3748enum qca_wlan_vendor_attr_encryption_test {
3749 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3750 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3751 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3752 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3753 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3754 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3755 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3756
3757 /* keep last */
3758 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3759 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3760 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3761};
3762
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003763/**
3764 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3765 * sector for DMG RF sector operations.
3766 *
3767 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3768 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3769 */
3770enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3771 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3772 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3773 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3774};
3775
3776/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003777 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3778 *
3779 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3780 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3781 */
3782enum qca_wlan_vendor_attr_fw_state {
3783 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3784 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3785 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3786};
3787
3788/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003789 * BRP antenna limit mode
3790 *
3791 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3792 * antenna limit, BRP will be performed as usual.
3793 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3794 * antennas limit. the hardware may use less antennas than the
3795 * maximum limit.
3796 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3797 * use exactly the specified number of antennas for BRP.
3798 */
3799enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3800 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3801 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3802 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3803 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3804};
3805
3806/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003807 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3808 * DMG RF sector configuration for a single RF module.
3809 * The values are defined in a compact way which closely matches
3810 * the way it is stored in HW registers.
3811 * The configuration provides values for 32 antennas and 8 distribution
3812 * amplifiers, and together describes the characteristics of the RF
3813 * sector - such as a beam in some direction with some gain.
3814 *
3815 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3816 * of RF module for this configuration.
3817 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3818 * amplifier gain index. Unsigned 32 bit number containing
3819 * bits for all 32 antennas.
3820 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3821 * amplifier gain index. Unsigned 32 bit number containing
3822 * bits for all 32 antennas.
3823 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3824 * amplifier gain index. Unsigned 32 bit number containing
3825 * bits for all 32 antennas.
3826 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3827 * for first 16 antennas, 2 bits per antenna.
3828 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3829 * for last 16 antennas, 2 bits per antenna.
3830 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3831 * DTYPE values (3 bits) for each distribution amplifier, followed
3832 * by X16 switch bits for each distribution amplifier. There are
3833 * total of 8 distribution amplifiers.
3834 */
3835enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3836 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3837 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3838 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3839 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3840 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3841 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3842 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3843 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3844
3845 /* keep last */
3846 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3847 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3848 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3849};
3850
3851enum qca_wlan_vendor_attr_ll_stats_set {
3852 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3853 /* Unsigned 32-bit value */
3854 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3855 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3856 /* keep last */
3857 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3858 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3859 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3860};
3861
3862enum qca_wlan_vendor_attr_ll_stats_clr {
3863 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3864 /* Unsigned 32bit bitmap for clearing statistics
3865 * All radio statistics 0x00000001
3866 * cca_busy_time (within radio statistics) 0x00000002
3867 * All channel stats (within radio statistics) 0x00000004
3868 * All scan statistics (within radio statistics) 0x00000008
3869 * All interface statistics 0x00000010
3870 * All tx rate statistics (within interface statistics) 0x00000020
3871 * All ac statistics (with in interface statistics) 0x00000040
3872 * All contention (min, max, avg) statistics (within ac statisctics)
3873 * 0x00000080.
3874 */
3875 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3876 /* Unsigned 8 bit value: Request to stop statistics collection */
3877 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3878
3879 /* Unsigned 32 bit bitmap: Response from the driver
3880 * for the cleared statistics
3881 */
3882 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3883 /* Unsigned 8 bit value: Response from driver/firmware
3884 * for the stop request
3885 */
3886 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
3887 /* keep last */
3888 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
3889 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
3890 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
3891};
3892
3893enum qca_wlan_vendor_attr_ll_stats_get {
3894 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
3895 /* Unsigned 32 bit value provided by the caller issuing the GET stats
3896 * command. When reporting the stats results, the driver uses the same
3897 * value to indicate which GET request the results correspond to.
3898 */
3899 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
3900 /* Unsigned 32 bit value - bit mask to identify what statistics are
3901 * requested for retrieval.
3902 * Radio Statistics 0x00000001
3903 * Interface Statistics 0x00000020
3904 * All Peer Statistics 0x00000040
3905 * Peer Statistics 0x00000080
3906 */
3907 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
3908 /* keep last */
3909 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
3910 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
3911 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
3912};
3913
3914enum qca_wlan_vendor_attr_ll_stats_results {
3915 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
3916 /* Unsigned 32bit value. Used by the driver; must match the request id
3917 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
3918 */
3919 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
3920
3921 /* Unsigned 32 bit value */
3922 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3923 /* Unsigned 32 bit value */
3924 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3925 /* Unsigned 32 bit value */
3926 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3927 /* Unsigned 32 bit value */
3928 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3929 /* Signed 32 bit value */
3930 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3931 /* Signed 32 bit value */
3932 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3933 /* Signed 32 bit value */
3934 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3935
3936 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3937 * nested within the interface stats.
3938 */
3939
3940 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3941 * Type = enum wifi_interface_mode.
3942 */
3943 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3944 /* Interface MAC address. An array of 6 Unsigned int8 */
3945 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3946 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3947 * AUTHENTICATING, etc. valid for STA, CLI only.
3948 */
3949 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3950 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3951 */
3952 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3953 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3954 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3955 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3956 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3957 /* BSSID. An array of 6 unsigned 8 bit values */
3958 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3959 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3960 * values.
3961 */
3962 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3963 /* Country string for this association. An array of 3 unsigned 8 bit
3964 * values.
3965 */
3966 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3967
3968 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3969 * be nested within the interface stats.
3970 */
3971
3972 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3973 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3974 /* Unsigned int 32 value corresponding to respective AC */
3975 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3976 /* Unsigned int 32 value corresponding to respective AC */
3977 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3978 /* Unsigned int 32 value corresponding to respective AC */
3979 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3980 /* Unsigned int 32 value corresponding to respective AC */
3981 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3982 /* Unsigned int 32 value corresponding to respective AC */
3983 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3984 /* Unsigned int 32 value corresponding to respective AC */
3985 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3986 /* Unsigned int 32 value corresponding to respective AC */
3987 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3988 /* Unsigned int 32 value corresponding to respective AC */
3989 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3990 /* Unsigned int 32 value corresponding to respective AC */
3991 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3992 /* Unsigned int 32 values corresponding to respective AC */
3993 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3994 /* Unsigned int 32 values corresponding to respective AC */
3995 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3996 /* Unsigned int 32 values corresponding to respective AC */
3997 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3998 /* Unsigned int 32 values corresponding to respective AC */
3999 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4000 /* Unsigned int 32 values corresponding to respective AC */
4001 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4002 /* Unsigned 32 bit value. Number of peers */
4003 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4004
4005 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4006 * nested within the interface stats.
4007 */
4008
4009 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4010 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4011 /* MAC addr corresponding to respective peer. An array of 6 unsigned
4012 * 8 bit values.
4013 */
4014 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4015 /* Unsigned int 32 bit value representing capabilities corresponding
4016 * to respective peer.
4017 */
4018 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4019 /* Unsigned 32 bit value. Number of rates */
4020 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4021
4022 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4023 * are nested within the rate stat.
4024 */
4025
4026 /* Wi-Fi Rate - separate attributes defined for individual fields */
4027
4028 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4029 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4030 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4031 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4032 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4033 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4034 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07004035 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4036 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004037 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4038
4039 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4040 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4041
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004042 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4043 * nested within the peer info stats.
4044 */
4045
4046 /* Unsigned int 32 bit value. Number of successfully transmitted data
4047 * packets, i.e., with ACK received corresponding to the respective
4048 * rate.
4049 */
4050 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4051 /* Unsigned int 32 bit value. Number of received data packets
4052 * corresponding to the respective rate.
4053 */
4054 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4055 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4056 * received corresponding to the respective rate.
4057 */
4058 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4059 /* Unsigned int 32 bit value. Total number of data packet retries for
4060 * the respective rate.
4061 */
4062 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4063 /* Unsigned int 32 bit value. Total number of short data packet retries
4064 * for the respective rate.
4065 */
4066 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4067 /* Unsigned int 32 bit value. Total number of long data packet retries
4068 * for the respective rate.
4069 */
4070 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4071
4072 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4073 /* Unsigned 32 bit value. Total number of msecs the radio is awake
4074 * accruing over time.
4075 */
4076 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4077 /* Unsigned 32 bit value. Total number of msecs the radio is
4078 * transmitting accruing over time.
4079 */
4080 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4081 /* Unsigned 32 bit value. Total number of msecs the radio is in active
4082 * receive accruing over time.
4083 */
4084 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4085 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4086 * to all scan accruing over time.
4087 */
4088 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4089 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4090 * to NAN accruing over time.
4091 */
4092 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4093 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4094 * to GSCAN accruing over time.
4095 */
4096 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4097 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4098 * to roam scan accruing over time.
4099 */
4100 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4101 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4102 * to PNO scan accruing over time.
4103 */
4104 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4105 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4106 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4107 */
4108 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4109 /* Unsigned 32 bit value. Number of channels. */
4110 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4111
4112 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4113 * be nested within the channel stats.
4114 */
4115
4116 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4117 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4118 /* Unsigned 32 bit value. Primary 20 MHz channel. */
4119 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4120 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4121 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4122 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4123 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4124
4125 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4126 * nested within the radio stats.
4127 */
4128
4129 /* Unsigned int 32 bit value representing total number of msecs the
4130 * radio is awake on that channel accruing over time, corresponding to
4131 * the respective channel.
4132 */
4133 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4134 /* Unsigned int 32 bit value representing total number of msecs the CCA
4135 * register is busy accruing over time corresponding to the respective
4136 * channel.
4137 */
4138 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4139
4140 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4141
4142 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004143 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004144 */
4145 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4146
4147 /* Signifies the nested list of peer info attributes
4148 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
4149 */
4150 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4151
4152 /* Signifies the nested list of rate info attributes
4153 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4154 */
4155 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4156
4157 /* Signifies the nested list of wmm info attributes
4158 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4159 */
4160 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4161
4162 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4163 * that more stats, e.g., peers or radio, are to follow in the next
4164 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4165 * Otherwise, it is set to 0.
4166 */
4167 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4168
4169 /* Unsigned 64 bit value */
4170 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4171
4172 /* Unsigned 32 bit value */
4173 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4174
4175 /* Unsigned 32 bit value */
4176 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4177
4178 /* Unsigned 32 bit value */
4179 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4180
4181 /* Unsigned 32 bit value */
4182 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4183
4184 /* Unsigned 32 bit value */
4185 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4186
4187 /* Number of msecs the radio spent in transmitting for each power level
4188 */
4189 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4190
4191 /* Unsigned 32 bit value */
4192 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4193 /* Unsigned 32 bit value */
4194 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4195 /* Unsigned 32 bit value */
4196 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4197 /* Unsigned 32 bit value */
4198 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4199
Roshan Pius3a1667e2018-07-03 15:17:14 -07004200 /* Unsigned int 32 value.
4201 * Pending MSDUs corresponding to respective AC.
4202 */
4203 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4204
Hai Shalom899fcc72020-10-19 14:38:18 -07004205 /* u32 value representing total time in milliseconds for which the radio
4206 * is transmitting on this channel. This attribute will be nested
4207 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4208 */
4209 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4210 /* u32 value representing total time in milliseconds for which the radio
4211 * is receiving all 802.11 frames intended for this device on this
4212 * channel. This attribute will be nested within
4213 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4214 */
4215 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004216 /* u8 value representing the channel load percentage. Possible values
4217 * are 0-100.
4218 */
4219 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4220 /* u8 value representing the time slicing duty cycle percentage.
4221 * Possible values are 0-100.
4222 */
4223 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07004224 /* Unsigned 32 bit value. The number of Beacon frames which are received
4225 * from the associated AP and indicate buffered unicast frame(s) for us
4226 * in the TIM element.
4227 */
4228 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4229 /* Unsigned 32 bit value. The total number of Beacon frames received
4230 * from the associated AP that have wrongly indicated buffered unicast
4231 * traffic in the TIM element for us.
4232 * Below scenarios will be considered as wrong TIM element beacon:
4233 * 1) The related TIM element is set in the beacon for STA but STA
4234 * doesn’t receive any unicast data after this beacon.
4235 * 2) The related TIM element is still set in the beacon for STA
4236 * after STA has indicated power save exit by QoS Null Data frame.
4237 */
4238 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
4239
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004240 /* keep last */
4241 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4242 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4243 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4244};
4245
Roshan Pius3a1667e2018-07-03 15:17:14 -07004246enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004247 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4248 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4249 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4250 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4251
4252 /* keep last */
4253 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4254 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4255 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4256};
4257
4258/**
4259 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4260 * TDLS configuration to the host driver.
4261 *
4262 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4263 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4264 * represents the different TDLS trigger modes.
4265 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4266 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4267 * of packets shall meet the criteria for implicit TDLS setup.
4268 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4269 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4270 * to initiate a TDLS setup.
4271 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4272 * a TDLS Discovery to the peer.
4273 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4274 * discovery attempts to know the TDLS capability of the peer. A peer is
4275 * marked as TDLS not capable if there is no response for all the attempts.
4276 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4277 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4278 * number of TX / RX frames meet the criteria for TDLS teardown.
4279 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4280 * of Tx/Rx packets within a duration
4281 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4282 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4283 * corresponding to the RSSI of the peer below which a TDLS setup is
4284 * triggered.
4285 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4286 * corresponding to the RSSI of the peer above which a TDLS teardown is
4287 * triggered.
4288 */
4289enum qca_wlan_vendor_attr_tdls_configuration {
4290 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4291 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4292
4293 /* Attributes configuring the TDLS Implicit Trigger */
4294 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4295 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4296 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4297 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4298 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4299 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4300 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4301 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4302
4303 /* keep last */
4304 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4305 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4306 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4307};
4308
4309/**
4310 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4311 * the driver
4312 *
4313 * The following are the different values for
4314 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4315 *
4316 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4317 * the TDLS connection to a respective peer comes from the user space.
4318 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4319 * TDLS_DISCOVER to do this.
4320 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4321 * setup/teardown to the eligible peer once the configured criteria
4322 * (such as TX/RX threshold, RSSI) is met. The attributes
4323 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4324 * the different configuration criteria for the TDLS trigger from the
4325 * host driver.
4326 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4327 * the TDLS setup / teardown through the implicit mode only to the
4328 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4329 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4330 * External mode works on top of the implicit mode. Thus the host driver
4331 * is expected to configure in TDLS Implicit mode too to operate in
4332 * External mode.
4333 * Configuring External mode alone without Implicit mode is invalid.
4334 *
4335 * All the above implementations work as expected only when the host driver
4336 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4337 * that the TDLS message exchange is not internal to the host driver, but
4338 * depends on wpa_supplicant to do the message exchange.
4339 */
4340enum qca_wlan_vendor_tdls_trigger_mode {
4341 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4342 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4343 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4344};
4345
Dmitry Shmidt29333592017-01-09 12:27:11 -08004346/**
4347 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4348 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4349 * that is hard-coded in the Board Data File (BDF).
4350 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4351 * that is hard-coded in the Board Data File (BDF).
4352 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4353 * that is hard-coded in the Board Data File (BDF).
4354 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4355 * that is hard-coded in the Board Data File (BDF).
4356 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4357 * that is hard-coded in the Board Data File (BDF).
4358 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4359 * source of SAR power limits, thereby disabling the SAR power
4360 * limit feature.
4361 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4362 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004363 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4364 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004365 *
4366 * This enumerates the valid set of values that may be supplied for
4367 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004368 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4369 * the response to an instance of the
4370 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004371 */
4372enum qca_vendor_attr_sar_limits_selections {
4373 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4374 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4375 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4376 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4377 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4378 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4379 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004380 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004381};
4382
4383/**
4384 * enum qca_vendor_attr_sar_limits_spec_modulations -
4385 * SAR limits specification modulation
4386 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4387 * CCK modulation
4388 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4389 * OFDM modulation
4390 *
4391 * This enumerates the valid set of values that may be supplied for
4392 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4393 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4394 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07004395 * command or in the response to an instance of the
4396 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004397 */
4398enum qca_vendor_attr_sar_limits_spec_modulations {
4399 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4400 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4401};
4402
4403/**
4404 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4405 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004406 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08004407 * select which SAR power limit table should be used. Valid
4408 * values are enumerated in enum
4409 * %qca_vendor_attr_sar_limits_selections. The existing SAR
4410 * power limit selection is unchanged if this attribute is not
4411 * present.
4412 *
4413 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4414 * which specifies the number of SAR power limit specifications
4415 * which will follow.
4416 *
4417 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4418 * limit specifications. The number of specifications is
4419 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4420 * specification contains a set of
4421 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4422 * specification is uniquely identified by the attributes
4423 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4424 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4425 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4426 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004427 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4428 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4429 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4430 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4431 * needed based upon the value of
4432 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004433 *
4434 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4435 * indicate for which band this specification applies. Valid
4436 * values are enumerated in enum %nl80211_band (although not all
4437 * bands may be supported by a given device). If the attribute is
4438 * not supplied then the specification will be applied to all
4439 * supported bands.
4440 *
4441 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4442 * to indicate for which antenna chain this specification
4443 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4444 * attribute is not supplied then the specification will be
4445 * applied to all chains.
4446 *
4447 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4448 * value to indicate for which modulation scheme this
4449 * specification applies. Valid values are enumerated in enum
4450 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4451 * is not supplied then the specification will be applied to all
4452 * modulation schemes.
4453 *
4454 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4455 * value to specify the actual power limit value in units of 0.5
4456 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004457 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4458 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004459 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004460 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4461 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4462 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4463 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4464 *
4465 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4466 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004467 */
4468enum qca_vendor_attr_sar_limits {
4469 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4470 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4471 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4472 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4473 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4474 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4475 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4476 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004477 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004478
4479 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4480 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4481 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4482};
4483
4484/**
4485 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4486 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004487 *
4488 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4489 * should be set to any U8 value to indicate that the driver version
4490 * should be returned. When enabled in this manner, in a response this
4491 * attribute will contain a string representation of the driver version.
4492 *
4493 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4494 * should be set to any U8 value to indicate that the firmware version
4495 * should be returned. When enabled in this manner, in a response this
4496 * attribute will contain a string representation of the firmware version.
4497 *
4498 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4499 * should be set to any U32 value to indicate that the current radio
4500 * index should be returned. When enabled in this manner, in a response
4501 * this attribute will contain a U32 radio index value.
4502 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004503 */
4504enum qca_wlan_vendor_attr_get_wifi_info {
4505 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4506 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4507 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004508 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004509
4510 /* keep last */
4511 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4512 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4513 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4514};
4515
4516/*
4517 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4518 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4519 */
4520enum qca_wlan_vendor_attr_wifi_logger_start {
4521 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4522 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4523 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4524 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4525
4526 /* keep last */
4527 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4528 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4529 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4530};
4531
4532enum qca_wlan_vendor_attr_logger_results {
4533 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4534
4535 /* Unsigned 32-bit value; must match the request Id supplied by
4536 * Wi-Fi HAL in the corresponding subcmd NL msg.
4537 */
4538 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4539
4540 /* Unsigned 32-bit value; used to indicate the size of memory
4541 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004542 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004543 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4544
4545 /* keep last */
4546 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4547 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4548 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4549};
4550
Hai Shalomc3565922019-10-28 11:58:20 -07004551/**
4552 * enum qca_scan_freq_list_type: Frequency list types
4553 *
4554 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4555 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4556 * a preferred frequency list for roaming.
4557 *
4558 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4559 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4560 * a specific frequency list for roaming.
4561 */
4562enum qca_scan_freq_list_type {
4563 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4564 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4565};
4566
4567/**
4568 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4569 *
4570 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4571 * List of frequencies in MHz to be considered for a roam scan.
4572 *
4573 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4574 * Type of frequency list scheme being configured/gotten as defined by the
4575 * enum qca_scan_freq_list_type.
4576 */
4577enum qca_vendor_attr_scan_freq_list_scheme {
4578 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4579 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4580
4581 /* keep last */
4582 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4583 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4584 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4585};
4586
Hai Shalom899fcc72020-10-19 14:38:18 -07004587/**
4588 * enum qca_roam_scan_scheme: Scan scheme
4589 *
4590 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4591 * Indicates the driver to not scan on a Roam Trigger scenario, but
4592 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4593 * disconnect from the current connected AP by notifying a failure
4594 * code in the BTM response.
4595 *
4596 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4597 * trigger partial frequency scans. These frequencies are the ones learned
4598 * or maintained by the driver based on the probability of finding the
4599 * BSSIDs in the ESS for which the roaming is triggered.
4600 *
4601 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4602 * trigger the scan on all the valid frequencies to find better
4603 * candidates to roam.
4604 */
4605enum qca_roam_scan_scheme {
4606 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4607 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4608 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4609};
4610
Hai Shalomc3565922019-10-28 11:58:20 -07004611/*
4612 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4613 *
4614 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4615 * a bad packet error rates (PER).
4616 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4617 * based on beacon misses from the connected AP.
4618 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4619 * due to poor RSSI of the connected AP.
4620 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4621 * upon finding a BSSID with a better RSSI than the connected BSSID.
4622 * Here the RSSI of the current BSSID need not be poor.
4623 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4624 * by triggering a periodic scan to find a better AP to roam.
4625 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4626 * when the connected channel environment is too noisy/congested.
4627 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4628 * when BTM Request frame is received from the connected AP.
4629 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4630 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004631 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4632 * based on the request from the user (space).
4633 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4634 * device receives Deauthentication/Disassociation frame from connected AP.
4635 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4636 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4637 * is determined to be a poor one.
4638 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4639 * based on continuous TX Data frame failures to the connected AP.
4640 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4641 * based on the scan results obtained from an external scan (not triggered
4642 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004643 *
4644 * Set the corresponding roam trigger reason bit to consider it for roam
4645 * trigger.
4646 * Userspace can set multiple bits and send to the driver. The driver shall
4647 * consider all of them to trigger/initiate a roam scan.
4648 */
4649enum qca_vendor_roam_triggers {
4650 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4651 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4652 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4653 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4654 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4655 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4656 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4657 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004658 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4659 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4660 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4661 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4662 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004663};
4664
Hai Shalom60840252021-02-19 19:02:11 -08004665/*
4666 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4667 * fail reasons. This enum value is used in
4668 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4669 *
4670 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4671 * able to trigger the scan.
4672 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4673 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4674 * scan.
4675 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4676 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4677 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4678 * status code.
4679 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4680 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4681 * frame.
4682 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4683 * with error status code.
4684 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4685 * received.
4686 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4687 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4688 * frame.
4689 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4690 * internally before transmission.
4691 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4692 * Request frame.
4693 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4694 * dropped internally.
4695 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4696 * times out.
4697 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4698 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4699 * internally.
4700 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4701 * M2 frame.
4702 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4703 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4704 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4705 * internally.
4706 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4707 * frame.
4708 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4709 * started for final beacon miss case.
4710 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4711 * received from the AP during roaming handoff.
4712 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4713 * or host is suspended and gives the indication of the last roamed AP only
4714 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4715 * progress, this ongoing roaming is aborted and the last roamed AP is
4716 * indicated to host.
4717 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4718 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4719 * out.
4720 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4721 */
4722enum qca_vendor_roam_fail_reasons {
4723 QCA_ROAM_FAIL_REASON_NONE = 0,
4724 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4725 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4726 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4727 QCA_ROAM_FAIL_REASON_HOST = 4,
4728 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4729 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4730 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4731 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4732 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4733 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4734 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4735 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4736 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4737 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4738 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4739 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4740 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4741 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4742 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4743 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4744 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4745 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4746 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4747 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4748 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4749 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4750 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4751 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4752 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4753};
4754
4755/*
4756 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4757 * invoke fail reasons. This enum value is used in
4758 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4759 *
4760 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4761 * in roam invoke command.
4762 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4763 * enabled.
4764 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4765 * length is invalid.
4766 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4767 * in progress.
4768 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4769 * of the AP in the roam invoke command to firmware. This reason is sent by the
4770 * firmware when the given AP is configured to be ignored or SSID/security
4771 * does not match.
4772 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4773 * firmware internal reasons.
4774 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4775 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4776 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4777 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4778 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4779 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4780 */
4781enum qca_vendor_roam_invoke_fail_reasons {
4782 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4783 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4784 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4785 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4786 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4787 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4788 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4789 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4790 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4791 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4792 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4793 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4794 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4795
4796};
4797
Hai Shalomc3565922019-10-28 11:58:20 -07004798/**
4799 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4800 *
4801 * Each attribute carries a weightage in percentage (%).
4802 *
4803 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4804 * Represents the weightage to be given for the RSSI selection
4805 * criteria among other parameters.
4806 *
4807 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4808 * Represents the weightage to be given for the rate selection
4809 * criteria among other parameters.
4810 *
4811 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4812 * Represents the weightage to be given for the band width selection
4813 * criteria among other parameters.
4814 *
4815 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4816 * Represents the weightage to be given for the band selection
4817 * criteria among other parameters.
4818 *
4819 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4820 * Represents the weightage to be given for the NSS selection
4821 * criteria among other parameters.
4822 *
4823 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4824 * Represents the weightage to be given for the channel congestion
4825 * selection criteria among other parameters.
4826 *
4827 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4828 * Represents the weightage to be given for the beamforming selection
4829 * criteria among other parameters.
4830 *
4831 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4832 * Represents the weightage to be given for the OCE selection
4833 * criteria among other parameters.
4834 */
4835enum qca_vendor_attr_roam_candidate_selection_criteria {
4836 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4837 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4838 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4839 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4840 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4841 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4842 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4843 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4844
4845 /* keep last */
4846 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4847 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4848 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4849};
4850
4851/**
4852 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00004853 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07004854 * configurations to/from the driver.
4855 * For the get, the attribute for the configuration to be queried shall
4856 * carry any of its acceptable values to the driver. In return, the driver
4857 * shall send the configured values within the same attribute to the user
4858 * space.
4859 *
4860 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4861 * Signifies to enable/disable roam control in driver.
4862 * 1-enable, 0-disable
4863 * Enable: Mandates the driver to do the further roams using the
4864 * configuration parameters set through
4865 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4866 * Disable: Disables the driver/firmware roaming triggered through
4867 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4868 * expected to continue with the default configurations.
4869 *
4870 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4871 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4872 * Roam control status is obtained through this attribute.
4873 *
4874 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4875 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4876 * is to be cleared in the driver.
4877 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4878 * and shall be ignored if used with other sub commands.
4879 * If this attribute is specified along with subcmd
4880 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4881 * all other attributes, if there are any.
4882 * If this attribute is not specified when the subcmd
4883 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4884 * clear the data corresponding to the attributes specified.
4885 *
4886 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
4887 * list of frequencies and its type, represented by
4888 * enum qca_vendor_attr_scan_freq_list_scheme.
4889 * Frequency list and its type are mandatory for this attribute to set
4890 * the frequencies.
4891 * Frequency type is mandatory for this attribute to get the frequencies
4892 * and the frequency list is obtained through
4893 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
4894 * Frequency list type is mandatory for this attribute to clear the
4895 * frequencies.
4896 *
4897 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
4898 * Carries the value of scan period in seconds to set.
4899 * The value of scan period is obtained with the same attribute for get.
4900 * Clears the scan period in the driver when specified with clear command.
4901 * Scan period is the idle time in seconds between each subsequent
4902 * channel scans.
4903 *
4904 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
4905 * Carries the value of full scan period in seconds to set.
4906 * The value of full scan period is obtained with the same attribute for
4907 * get.
4908 * Clears the full scan period in the driver when specified with clear
4909 * command. Full scan period is the idle period in seconds between two
4910 * successive full channel roam scans.
4911 *
4912 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
4913 * Carries a bitmap of the roam triggers specified in
4914 * enum qca_vendor_roam_triggers.
4915 * The driver shall enable roaming by enabling corresponding roam triggers
4916 * based on the trigger bits sent with this attribute.
4917 * If this attribute is not configured, the driver shall proceed with
4918 * default behavior.
4919 * The bitmap configured is obtained with the same attribute for get.
4920 * Clears the bitmap configured in driver when specified with clear
4921 * command.
4922 *
4923 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
4924 * weightage in percentage (%) to be given for each selection criteria.
4925 * Different roam candidate selection criteria are represented by
4926 * enum qca_vendor_attr_roam_candidate_selection_criteria.
4927 * The driver shall select the roam candidate based on corresponding
4928 * candidate selection scores sent.
4929 *
4930 * An empty nested attribute is used to indicate that no specific
4931 * preference score/criteria is configured (i.e., to disable this mechanism
4932 * in the set case and to show that the mechanism is disabled in the get
4933 * case).
4934 *
4935 * Userspace can send multiple attributes out of this enum to the driver.
4936 * Since this attribute represents the weight/percentage of preference for
4937 * the respective selection criteria, it is preferred to configure 100%
4938 * total weightage. The value in each attribute or cumulative weight of the
4939 * values in all the nested attributes should not exceed 100%. The driver
4940 * shall reject such configuration.
4941 *
4942 * If the weights configured through this attribute are less than 100%,
4943 * the driver shall honor the weights (x%) passed for the corresponding
4944 * selection criteria and choose/distribute rest of the weight (100-x)%
4945 * for the other selection criteria, based on its internal logic.
4946 *
4947 * The selection criteria configured is obtained with the same
4948 * attribute for get.
4949 *
4950 * Clears the selection criteria configured in the driver when specified
4951 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07004952 *
4953 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
4954 * Represents value of the scan frequency scheme from enum
4955 * qca_roam_scan_scheme.
4956 * It's an optional attribute. If this attribute is not configured, the
4957 * driver shall proceed with default behavior.
4958 *
4959 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4960 * signifying the RSSI threshold of the current connected AP, indicating
4961 * the driver to trigger roam only when the current connected AP's RSSI
4962 * is less than this threshold.
4963 *
4964 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4965 * signifying the RSSI threshold of the candidate AP, indicating
4966 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08004967 * better than this threshold. If RSSI thresholds for candidate APs found
4968 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
4969 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
4970 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
4971 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
4972 * take precedence over the value configured using the
4973 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07004974 *
4975 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
4976 * user defined reason code to be sent to the AP in response to AP's
4977 * request to trigger the roam if the roaming cannot be triggered.
4978 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
4979 *
4980 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
4981 * Carries a bitmap of the roam triggers specified in
4982 * enum qca_vendor_roam_triggers.
4983 * Represents the roam triggers for which the specific scan scheme from
4984 * enum qca_roam_scan_scheme has to be applied.
4985 * It's an optional attribute. If this attribute is not configured, but
4986 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
4987 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
4988 * all the roams.
4989 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
4990 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
4991 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08004992 *
4993 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
4994 * in dBm, signifying the RSSI threshold of the candidate AP found in the
4995 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
4996 * AP found in the 2.4 GHz band only if its RSSI value is better than this
4997 * threshold. Optional attribute. If this attribute is not included, the
4998 * threshold value specified by the
4999 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5000 *
5001 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5002 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
5003 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5004 * found in the 5 GHz band only if its RSSI value is better than this
5005 * threshold. Optional attribute. If this attribute is not included, the
5006 * threshold value specified by tge
5007 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5008 *
5009 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5010 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
5011 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5012 * found in the 6 GHz band only if its RSSI value is better than this
5013 * threshold. Optional attribute. If this attribute is not included, the
5014 * threshold value specified by the
5015 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5016 *
5017 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5018 * Carries bitmask value of bits from &enum qca_set_band and represents
5019 * all the bands in which roaming is allowed. The configuration is valid
5020 * until next disconnection. If this attribute is not present, the
5021 * existing configuration shall be used. By default, roaming is allowed on
5022 * all bands supported by the local device. When the value is set to
5023 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
5024 *
5025 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5026 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5027 * bands. If this attribute is not configured, the driver shall proceed
5028 * with default behavior.
5029 *
5030 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5031 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
5032 * band. If this attribute is not configured, the driver shall proceed with
5033 * default behavior.
5034 *
5035 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5036 * Optional parameter. The minimum duration to stay on the connected AP
5037 * channel during the channel scanning. If this attribute is not
5038 * configured, the driver shall proceed with default behavior.
5039 *
5040 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5041 * Optional parameter. The maximum duration for which the radio can scan
5042 * foreign channels consecutively without coming back to home channel. If
5043 * this attribute is not configured, the driver shall proceed with default
5044 * behavior.
5045 *
5046 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5047 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5048 * If this attribute is not configured, the driver shall proceed with
5049 * default behavior.
5050 *
5051 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5052 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5053 * Channels. If this attribute is not configured, the driver shall proceed
5054 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00005055 *
5056 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5057 * Optional parameter. RX link speed threshold to disable roaming.
5058 * If the current RX link speed is above the threshold, roaming is not
5059 * needed. If this attribute is not configured, or if it is set to 0, the
5060 * driver will not consider the RX link speed in the roaming decision.
Hai Shalomc3565922019-10-28 11:58:20 -07005061 */
5062enum qca_vendor_attr_roam_control {
5063 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5064 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5065 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
5066 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
5067 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5068 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5069 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5070 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005071 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5072 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5073 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5074 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5075 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005076 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5077 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5078 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5079 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5080 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5081 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5082 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5083 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5084 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5085 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00005086 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Hai Shalomc3565922019-10-28 11:58:20 -07005087
5088 /* keep last */
5089 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5090 QCA_ATTR_ROAM_CONTROL_MAX =
5091 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5092};
5093
5094/*
5095 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5096 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5097 *
5098 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5099 * Represents the different roam sub commands referred by
5100 * enum qca_wlan_vendor_roaming_subcmd.
5101 *
5102 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5103 * Represents the Request ID for the specific set of commands.
5104 * This also helps to map specific set of commands to the respective
5105 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07005106 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07005107 * matching ID.
5108 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005109 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5110 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07005111 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005112 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5113 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005114 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005115 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5116 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07005117 * represent the list of SSIDs to which the firmware/driver can consider
5118 * to roam to.
5119 *
5120 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5121 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5122 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5123 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5124 *
5125 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5126 * value, RSSI threshold above which 5GHz RSSI is favored.
5127 *
5128 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5129 * value, RSSI threshold below which 5GHz RSSI is penalized.
5130 *
5131 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5132 * value, factor by which 5GHz RSSI is boosted.
5133 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5134 *
5135 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5136 * value, factor by which 5GHz RSSI is penalized.
5137 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5138 *
5139 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5140 * value, maximum boost that can be applied to a 5GHz RSSI.
5141 *
5142 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5143 * value, boost applied to current BSSID to ensure the currently
5144 * associated BSSID is favored so as to prevent ping-pong situations.
5145 *
5146 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5147 * value, RSSI below which "Alert" roam is enabled.
5148 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5149 * because the RSSI is low, or because many successive beacons have been
5150 * lost or other bad link conditions.
5151 *
5152 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5153 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08005154 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07005155 * the RSSI of the link is good. The parameters enabling the roaming are
5156 * configured through the PARAM_A_BAND_XX attrbutes.
5157 *
5158 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5159 * represents the BSSIDs preferred over others while evaluating them
5160 * for the roaming.
5161 *
5162 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5163 * 32-bit value. Represents the number of preferred BSSIDs set.
5164 *
5165 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5166 * address representing the BSSID to be preferred.
5167 *
5168 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5169 * 32-bit value, representing the modifier to be applied to the RSSI of
5170 * the BSSID for the purpose of comparing it with other roam candidate.
5171 *
5172 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005173 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07005174 *
5175 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07005176 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005177 *
5178 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07005179 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07005180 *
5181 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005182 * indicates this request to ignore the BSSID as a hint to the driver. The
5183 * driver can select this BSSID in the worst case (when no other BSSIDs are
5184 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07005185 *
5186 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5187 * set/get/clear the roam control config as
5188 * defined @enum qca_vendor_attr_roam_control.
5189 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005190enum qca_wlan_vendor_attr_roaming_config_params {
5191 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5192
5193 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5194 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5195
Hai Shaloma20dcd72022-02-04 13:43:00 -08005196 /* Attributes for wifi_set_ssid_allow_list */
5197 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5198 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5199 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005200
5201 /* Attributes for set_roam_params */
5202 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5203 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5204 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5205 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5206 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5207 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5208 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5209
5210 /* Attribute for set_lazy_roam */
5211 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5212
5213 /* Attribute for set_lazy_roam with preferences */
5214 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5215 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5216 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5217 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5218
Hai Shalom899fcc72020-10-19 14:38:18 -07005219 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005220 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5221 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5222 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07005223 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07005224 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005225
Hai Shalomc3565922019-10-28 11:58:20 -07005226 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5227
Dmitry Shmidt29333592017-01-09 12:27:11 -08005228 /* keep last */
5229 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5230 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5231 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5232};
5233
Hai Shaloma20dcd72022-02-04 13:43:00 -08005234/* old names for API compatibility */
5235#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5236 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5237#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5238 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5239#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5240 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5241
Dmitry Shmidt29333592017-01-09 12:27:11 -08005242/*
Hai Shalomc3565922019-10-28 11:58:20 -07005243 * enum qca_wlan_vendor_roaming_subcmd: Referred by
5244 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5245 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005246 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5247 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07005248 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005249 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5250 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5251 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07005252 *
5253 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5254 * configure the Roam params. These parameters are evaluated on the GScan
5255 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
5256 * params.
5257 *
5258 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5259 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5260 * to enable/disable Lazy roam.
5261 *
5262 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5263 * preference. Contains the attribute
5264 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5265 * preference.
5266 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005267 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07005268 * to ignore in roaming decision. Uses
5269 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07005270 *
5271 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5272 * roam control config to the driver with the attribute
5273 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5274 *
5275 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5276 * roam control config from driver with the attribute
5277 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5278 * For the get, the attribute for the configuration to be queried shall
5279 * carry any of its acceptable value to the driver. In return, the driver
5280 * shall send the configured values within the same attribute to the user
5281 * space.
5282 *
5283 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5284 * roam control config in the driver with the attribute
5285 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5286 * The driver shall continue with its default roaming behavior when data
5287 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005288 */
Hai Shalomc3565922019-10-28 11:58:20 -07005289enum qca_wlan_vendor_roaming_subcmd {
5290 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005291 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07005292 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5293 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5294 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5295 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005296 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07005297 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5298 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5299 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005300};
5301
Hai Shaloma20dcd72022-02-04 13:43:00 -08005302/* old names for API compatibility */
5303#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5304 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5305#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5306 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5307
Dmitry Shmidt29333592017-01-09 12:27:11 -08005308enum qca_wlan_vendor_attr_gscan_config_params {
5309 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5310
5311 /* Unsigned 32-bit value */
5312 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5313
5314 /* Attributes for data used by
5315 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5316 */
5317 /* Unsigned 32-bit value */
5318 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5319 = 2,
5320 /* Unsigned 32-bit value */
5321 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5322 = 3,
5323
5324 /* Attributes for input params used by
5325 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5326 */
5327
5328 /* Unsigned 32-bit value; channel frequency */
5329 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5330 /* Unsigned 32-bit value; dwell time in ms. */
5331 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5332 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5333 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5334 /* Unsigned 8-bit value; channel class */
5335 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5336
5337 /* Unsigned 8-bit value; bucket index, 0 based */
5338 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5339 /* Unsigned 8-bit value; band. */
5340 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5341 /* Unsigned 32-bit value; desired period, in ms. */
5342 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5343 /* Unsigned 8-bit value; report events semantics. */
5344 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5345 /* Unsigned 32-bit value. Followed by a nested array of
5346 * GSCAN_CHANNEL_SPEC_* attributes.
5347 */
5348 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5349
5350 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5351 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5352 */
5353 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5354
5355 /* Unsigned 32-bit value; base timer period in ms. */
5356 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5357 /* Unsigned 32-bit value; number of APs to store in each scan in the
5358 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5359 */
5360 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5361 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5362 * up AP.
5363 */
5364 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5365 = 16,
5366
5367 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
5368 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5369 * of the array is determined by NUM_BUCKETS.
5370 */
5371 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5372
5373 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5374 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5375 */
5376 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5377
5378 /* Unsigned 8-bit value */
5379 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5380 = 19,
5381 /* Unsigned 32-bit value; maximum number of results to be returned. */
5382 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5383 = 20,
5384
5385 /* An array of 6 x unsigned 8-bit value */
5386 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5387 /* Signed 32-bit value */
5388 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5389 /* Signed 32-bit value */
5390 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5391 /* Unsigned 32-bit value */
5392 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5393
5394 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5395 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5396 * array is determined by NUM_AP.
5397 */
5398 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5399
5400 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5401 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5402 */
5403 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5404
5405 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
5406 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5407 = 27,
5408 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5409 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5410 = 28,
5411 /* Unsigned 32-bit value; number of APs breaching threshold. */
5412 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5413 /* Unsigned 32-bit value; number of APs. Followed by an array of
5414 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5415 */
5416 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5417 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5418 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5419 = 31,
5420 /* Unsigned 32-bit value. If max_period is non zero or different than
5421 * period, then this bucket is an exponential backoff bucket.
5422 */
5423 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5424 /* Unsigned 32-bit value. */
5425 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5426 /* Unsigned 32-bit value. For exponential back off bucket, number of
5427 * scans to perform for a given period.
5428 */
5429 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5430 /* Unsigned 8-bit value; in number of scans, wake up AP after these
5431 * many scans.
5432 */
5433 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5434 = 35,
5435
5436 /* Attributes for data used by
5437 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5438 */
5439 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5440 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5441 = 36,
5442 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5443 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5444 * size of the array is determined by NUM_SSID.
5445 */
5446 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5447 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5448 * attributes.
5449 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5450 */
5451 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5452
5453 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5454 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5455 /* Unsigned 8-bit value */
5456 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5457 /* Signed 32-bit value */
5458 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5459 /* Signed 32-bit value */
5460 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5461 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5462 */
5463 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5464
5465 /* keep last */
5466 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5467 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5468 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5469};
5470
5471enum qca_wlan_vendor_attr_gscan_results {
5472 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5473
5474 /* Unsigned 32-bit value; must match the request Id supplied by
5475 * Wi-Fi HAL in the corresponding subcmd NL msg.
5476 */
5477 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5478
5479 /* Unsigned 32-bit value; used to indicate the status response from
5480 * firmware/driver for the vendor sub-command.
5481 */
5482 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5483
5484 /* GSCAN Valid Channels attributes */
5485 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5486 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5487 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
5488 * representing channel numbers.
5489 */
5490 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5491
5492 /* GSCAN Capabilities attributes */
5493 /* Unsigned 32-bit value */
5494 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5495 /* Unsigned 32-bit value */
5496 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5497 /* Unsigned 32-bit value */
5498 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5499 = 7,
5500 /* Unsigned 32-bit value */
5501 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5502 = 8,
5503 /* Signed 32-bit value */
5504 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5505 = 9,
5506 /* Unsigned 32-bit value */
5507 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5508 /* Unsigned 32-bit value */
5509 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5510 = 11,
5511 /* Unsigned 32-bit value */
5512 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5513 = 12,
5514
5515 /* GSCAN Attributes used with
5516 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5517 */
5518
5519 /* Unsigned 32-bit value */
5520 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5521
5522 /* GSCAN attributes used with
5523 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5524 */
5525
5526 /* An array of NUM_RESULTS_AVAILABLE x
5527 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5528 */
5529 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5530
5531 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5532 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5533 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5534 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5535 /* An array of 6 x unsigned 8-bit value */
5536 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5537 /* Unsigned 32-bit value; channel frequency in MHz */
5538 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5539 /* Signed 32-bit value */
5540 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5541 /* Unsigned 32-bit value */
5542 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5543 /* Unsigned 32-bit value */
5544 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5545 /* Unsigned 16-bit value */
5546 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5547 /* Unsigned 16-bit value */
5548 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5549 /* Unsigned 32-bit value; size of the IE DATA blob */
5550 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5551 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5552 * information elements found in the beacon; this data should be a
5553 * packed list of wifi_information_element objects, one after the
5554 * other.
5555 */
5556 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5557
5558 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5559 * available.
5560 */
5561 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5562
5563 /* GSCAN attributes for
5564 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5565 */
5566 /* Unsigned 8-bit value */
5567 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5568 /* Unsigned 32-bit value */
5569 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5570
5571 /* GSCAN attributes for
5572 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5573 */
5574 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5575 * to indicate number of results.
5576 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5577 * list of results.
5578 */
5579
5580 /* GSCAN attributes for
5581 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5582 */
5583 /* An array of 6 x unsigned 8-bit value */
5584 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5585 /* Unsigned 32-bit value */
5586 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5587 = 30,
5588 /* Unsigned 32-bit value. */
5589 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5590 = 31,
5591 /* A nested array of signed 32-bit RSSI values. Size of the array is
5592 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5593 */
5594 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5595 = 32,
5596
5597 /* GSCAN attributes used with
5598 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5599 */
5600 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5601 * to indicate number of gscan cached results returned.
5602 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5603 * the list of gscan cached results.
5604 */
5605
5606 /* An array of NUM_RESULTS_AVAILABLE x
5607 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5608 */
5609 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5610 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5611 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5612 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5613 */
5614 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5615 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5616 * to indicate number of wifi scan results/bssids retrieved by the scan.
5617 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5618 * list of wifi scan results returned for each cached result block.
5619 */
5620
5621 /* GSCAN attributes for
5622 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5623 */
5624 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5625 * number of results.
5626 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5627 * list of wifi scan results returned for each
5628 * wifi_passpoint_match_result block.
5629 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5630 */
5631
5632 /* GSCAN attributes for
5633 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5634 */
5635 /* Unsigned 32-bit value */
5636 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5637 = 36,
5638 /* A nested array of
5639 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5640 * attributes. Array size =
5641 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5642 */
5643 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5644
5645 /* Unsigned 32-bit value; network block id for the matched network */
5646 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5647 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5648 * list of wifi scan results returned for each
5649 * wifi_passpoint_match_result block.
5650 */
5651 /* Unsigned 32-bit value */
5652 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5653 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5654 * ANQP data in the information_element format.
5655 */
5656 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5657
5658 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5659 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5660 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5661 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5662 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5663 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5664 = 43,
5665 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005666 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08005667 = 44,
5668
5669 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5670
Hai Shalomce48b4a2018-09-05 11:41:35 -07005671 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5672 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005673 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08005674 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005675 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5676 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005677 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07005678
Dmitry Shmidt29333592017-01-09 12:27:11 -08005679 /* keep last */
5680 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5681 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5682 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5683};
5684
Hai Shaloma20dcd72022-02-04 13:43:00 -08005685/* old names for API compatibility */
5686#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5687 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5688#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5689 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5690
Dmitry Shmidt29333592017-01-09 12:27:11 -08005691enum qca_wlan_vendor_attr_pno_config_params {
5692 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5693 /* Attributes for data used by
5694 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5695 */
5696 /* Unsigned 32-bit value */
5697 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5698 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5699 * attributes. Array size =
5700 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5701 */
5702 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5703
5704 /* Unsigned 32-bit value */
5705 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5706 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5707 * realm, 0 if unspecified.
5708 */
5709 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5710 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5711 * match, 0 if unspecified.
5712 */
5713 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5714 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5715 * unspecified.
5716 */
5717 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5718
5719 /* Attributes for data used by
5720 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5721 */
5722 /* Unsigned 32-bit value */
5723 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5724 /* Array of nested
5725 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5726 * attributes. Array size =
5727 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5728 */
5729 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5730 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5731 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5732 /* Signed 8-bit value; threshold for considering this SSID as found,
5733 * required granularity for this threshold is 4 dBm to 8 dBm.
5734 */
5735 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5736 = 10,
5737 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5738 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5739 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5740 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5741 /* Unsigned 8-bit to indicate ePNO type;
5742 * It takes values from qca_wlan_epno_type
5743 */
5744 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5745
5746 /* Nested attribute to send the channel list */
5747 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5748
5749 /* Unsigned 32-bit value; indicates the interval between PNO scan
5750 * cycles in msec.
5751 */
5752 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5753 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5754 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5755 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5756 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5757 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5758 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5759 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005760 /* Unsigned 32-bit value, representing the PNO Request ID */
5761 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005762
5763 /* keep last */
5764 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5765 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5766 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5767};
5768
Paul Stewart092955c2017-02-06 09:13:09 -08005769/**
5770 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5771 * the ACS has to be triggered. These values are used by
5772 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5773 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5774 */
5775enum qca_wlan_vendor_acs_select_reason {
5776 /* Represents the reason that the ACS triggered during the AP start */
5777 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5778 /* Represents the reason that DFS found with the current channel */
5779 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5780 /* Represents the reason that LTE co-exist in the current band. */
5781 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005782 /* Represents the reason that generic, uncategorized interference has
5783 * been found in the current channel.
5784 */
5785 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5786 /* Represents the reason that excessive 802.11 interference has been
5787 * found in the current channel.
5788 */
5789 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5790 /* Represents the reason that generic Continuous Wave (CW) interference
5791 * has been found in the current channel.
5792 */
5793 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5794 /* Represents the reason that Microwave Oven (MWO) interference has been
5795 * found in the current channel.
5796 */
5797 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5798 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5799 * (FHSS) interference has been found in the current channel. This may
5800 * include 802.11 waveforms.
5801 */
5802 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5803 /* Represents the reason that non-802.11 generic Frequency-Hopping
5804 * Spread Spectrum (FHSS) interference has been found in the current
5805 * channel.
5806 */
5807 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5808 /* Represents the reason that generic Wideband (WB) interference has
5809 * been found in the current channel. This may include 802.11 waveforms.
5810 */
5811 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5812 /* Represents the reason that non-802.11 generic Wideband (WB)
5813 * interference has been found in the current channel.
5814 */
5815 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5816 /* Represents the reason that Jammer interference has been found in the
5817 * current channel.
5818 */
5819 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07005820 /* Represents the reason that ACS triggered by AFC */
5821 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08005822};
5823
5824/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005825 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5826 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5827 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5828 * external ACS policies to select the channels w.r.t. the PCL weights.
5829 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5830 * their PCL weights.)
5831 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5832 * select a channel with non-zero PCL weight.
5833 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5834 * channel with non-zero PCL weight.
5835 *
5836 */
5837enum qca_wlan_vendor_attr_external_acs_policy {
5838 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5839 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5840};
5841
5842/**
Paul Stewart092955c2017-02-06 09:13:09 -08005843 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5844 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5845 */
5846enum qca_wlan_vendor_channel_prop_flags {
5847 /* Bits 0, 1, 2, and 3 are reserved */
5848
5849 /* Turbo channel */
5850 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
5851 /* CCK channel */
5852 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
5853 /* OFDM channel */
5854 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
5855 /* 2.4 GHz spectrum channel. */
5856 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
5857 /* 5 GHz spectrum channel */
5858 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
5859 /* Only passive scan allowed */
5860 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
5861 /* Dynamic CCK-OFDM channel */
5862 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
5863 /* GFSK channel (FHSS PHY) */
5864 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
5865 /* Radar found on channel */
5866 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
5867 /* 11a static turbo channel only */
5868 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
5869 /* Half rate channel */
5870 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
5871 /* Quarter rate channel */
5872 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
5873 /* HT 20 channel */
5874 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
5875 /* HT 40 with extension channel above */
5876 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
5877 /* HT 40 with extension channel below */
5878 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
5879 /* HT 40 intolerant */
5880 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
5881 /* VHT 20 channel */
5882 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
5883 /* VHT 40 with extension channel above */
5884 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
5885 /* VHT 40 with extension channel below */
5886 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
5887 /* VHT 80 channel */
5888 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
5889 /* HT 40 intolerant mark bit for ACS use */
5890 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
5891 /* Channel temporarily blocked due to noise */
5892 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
5893 /* VHT 160 channel */
5894 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
5895 /* VHT 80+80 channel */
5896 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005897 /* HE 20 channel */
5898 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
5899 /* HE 40 with extension channel above */
5900 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
5901 /* HE 40 with extension channel below */
5902 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
5903 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07005904 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005905};
5906
5907/**
5908 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
5909 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
5910 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
5911 */
5912enum qca_wlan_vendor_channel_prop_flags_2 {
5913 /* HE 40 intolerant mark bit for ACS use */
5914 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
5915 /* HE 80 channel */
5916 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
5917 /* HE 160 channel */
5918 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
5919 /* HE 80+80 channel */
5920 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005921};
5922
5923/**
5924 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
5925 * each channel. This is used by
5926 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
5927 */
5928enum qca_wlan_vendor_channel_prop_flags_ext {
5929 /* Radar found on channel */
5930 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
5931 /* DFS required on channel */
5932 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
5933 /* DFS required on channel for 2nd band of 80+80 */
5934 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
5935 /* If channel has been checked for DFS */
5936 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
5937 /* Excluded in 802.11d */
5938 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
5939 /* Channel Switch Announcement received on this channel */
5940 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
5941 /* Ad-hoc is not allowed */
5942 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
5943 /* Station only channel */
5944 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005945 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005946 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005947 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005948 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
5949};
5950
5951/**
5952 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5953 * information. These attributes are sent as part of
5954 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5955 * attributes correspond to a single channel.
5956 */
5957enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5958 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5959
5960 /* A bitmask (u32) with flags specified in
5961 * enum qca_wlan_vendor_channel_prop_flags.
5962 */
5963 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5964 /* A bitmask (u32) with flags specified in
5965 * enum qca_wlan_vendor_channel_prop_flags_ext.
5966 */
5967 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5968 /* frequency in MHz (u32) */
5969 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5970 /* maximum regulatory transmission power (u32) */
5971 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5972 /* maximum transmission power (u32) */
5973 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5974 /* minimum transmission power (u32) */
5975 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5976 /* regulatory class id (u8) */
5977 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5978 /* maximum antenna gain in (u8) */
5979 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5980 /* VHT segment 0 (u8) */
5981 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5982 /* VHT segment 1 (u8) */
5983 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005984 /* A bitmask (u32) with flags specified in
5985 * enum qca_wlan_vendor_channel_prop_flags_2.
5986 */
5987 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005988
Hai Shalomc3565922019-10-28 11:58:20 -07005989 /*
5990 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5991 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5992 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5993 * along with
5994 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5995 *
5996 * If both the driver and user-space application supports the 6 GHz
5997 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5998 * is deprecated and
5999 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6000 * should be used.
6001 *
6002 * To maintain backward compatibility,
6003 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6004 * is still used if either of the driver or user space application
6005 * doesn't support the 6 GHz band.
6006 */
6007 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
6008
6009 /*
6010 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6011 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6012 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6013 * along with
6014 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6015 *
6016 * If both the driver and user-space application supports the 6 GHz
6017 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6018 * is deprecated and
6019 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6020 * should be considered.
6021 *
6022 * To maintain backward compatibility,
6023 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6024 * is still used if either of the driver or user space application
6025 * doesn't support the 6 GHz band.
6026 */
6027 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
6028
Sunil Ravia04bd252022-05-02 22:54:18 -07006029 /*
6030 * 16-bit attribute of bits indicating the AP power modes supported by
6031 * the channel (u16).
6032 * Note: Currently, only 3 bits are used in the attribute and each bit
6033 * corresponds to the power mode mentioned in enum
6034 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6035 * set if the associated mode is supported.
6036 */
6037 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6038 = 14,
6039 /* Array of nested attributes for each power mode. It takes attr as
6040 * defined in enum
6041 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6042 */
6043 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08006044 /* keep last */
6045 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6046 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6047 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6048};
6049
6050/**
Sunil Ravia04bd252022-05-02 22:54:18 -07006051 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6052 * values that the vendor external ACS channel power attribute
6053 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6054 * take.
6055 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6056 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6057 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6058 */
6059enum qca_wlan_vendor_external_acs_chan_power_level {
6060 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6061 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6062 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6063};
6064
6065/**
6066 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6067 * attributes for power mode type and power values corresponding to that.
6068 * These attributes are sent as part of
6069 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6070 */
6071enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6072 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6073 /*
6074 * Power mode (u8) takes the values defined in enum
6075 * qca_wlan_vendor_external_acs_chan_power_mode
6076 */
6077 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6078 = 1,
6079 /*
6080 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6081 * present, it indicates a PSD value.
6082 */
6083 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6084 /*
6085 * Power value (u32) PSD/EIRP as indicated by
6086 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6087 * for power mode corresponding to the
6088 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6089 * Units for PSD - dBm/MHz
6090 * Units for EIRP - dBm
6091 */
6092 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6093 = 3,
6094 /* keep last */
6095 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6096 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6097 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6098};
6099
6100/**
Paul Stewart092955c2017-02-06 09:13:09 -08006101 * qca_wlan_vendor_attr_pcl: Represents attributes for
6102 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07006103 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6104 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08006105 */
6106enum qca_wlan_vendor_attr_pcl {
6107 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6108
6109 /* Channel number (u8) */
6110 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6111 /* Channel weightage (u8) */
6112 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006113 /* Channel frequency (u32) in MHz */
6114 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6115 /* Channel flags (u32)
6116 * bit 0 set: channel to be used for GO role,
6117 * bit 1 set: channel to be used on CLI role,
6118 * bit 2 set: channel must be considered for operating channel
6119 * selection & peer chosen operating channel should be
6120 * one of the channels with this flag set,
6121 * bit 3 set: channel should be excluded in GO negotiation
6122 */
6123 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07006124
6125 /* Keep last */
6126 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6127 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08006128};
6129
6130/**
6131 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6132 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6133 * host driver.
6134 */
6135enum qca_wlan_vendor_attr_external_acs_event {
6136 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6137
6138 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6139 * This helps ACS module to understand why ACS needs to be started.
6140 */
6141 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6142 /* Flag attribute to indicate if driver supports spectral scanning */
6143 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6144 /* Flag attribute to indicate if 11ac is offloaded to firmware */
6145 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6146 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07006147 * capability as part of scan operation
6148 */
Paul Stewart092955c2017-02-06 09:13:09 -08006149 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6150 /* Flag attribute to indicate interface status is UP */
6151 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6152 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07006153 * values.
6154 */
Paul Stewart092955c2017-02-06 09:13:09 -08006155 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6156 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
6157 * This is the upper bound of channel width. ACS logic should try to get
6158 * a channel with the specified width and if not found, look for lower
6159 * values.
6160 */
6161 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6162 /* This (u8) will hold values of one of enum nl80211_bands */
6163 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6164 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07006165 * values
6166 */
Paul Stewart092955c2017-02-06 09:13:09 -08006167 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6168 /* Array of (u32) supported frequency list among which ACS should choose
6169 * best frequency.
6170 */
6171 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6172 /* Preferred channel list by the driver which will have array of nested
6173 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6174 */
6175 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6176 /* Array of nested attribute for each channel. It takes attr as defined
6177 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6178 */
6179 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006180 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
6181 * It uses values defined in enum
6182 * qca_wlan_vendor_attr_external_acs_policy.
6183 */
6184 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006185 /* Reference RF Operating Parameter (RROP) availability information
6186 * (u16). It uses values defined in enum
6187 * qca_wlan_vendor_attr_rropavail_info.
6188 */
6189 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07006190 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6191 * for External ACS
6192 */
6193 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08006194
6195 /* keep last */
6196 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6197 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6198 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6199};
6200
6201/**
Hai Shalomc3565922019-10-28 11:58:20 -07006202 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08006203 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6204 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07006205 *
6206 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6207 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6208 *
6209 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6210 * Array of nested values for each channel with following attributes:
6211 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6212 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6213 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6214 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6215 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6216 * Note: If both the driver and user-space application supports the 6 GHz band,
6217 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6218 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6219 * To maintain backward compatibility,
6220 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6221 * is still used if either of the driver or user space application doesn't
6222 * support the 6 GHz band.
6223 *
6224 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6225 * Primary channel number
6226 * Note: If both the driver and user-space application supports the 6 GHz band,
6227 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6228 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6229 * To maintain backward compatibility,
6230 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6231 * is still used if either of the driver or user space application doesn't
6232 * support the 6 GHz band.
6233 *
6234 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6235 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6236 * Note: If both the driver and user-space application supports the 6 GHz band,
6237 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6238 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6239 * To maintain backward compatibility,
6240 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6241 * is still used if either of the driver or user space application
6242 * doesn't support the 6 GHz band.
6243 *
6244 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6245 * VHT seg0 channel number
6246 * Note: If both the driver and user-space application supports the 6 GHz band,
6247 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6248 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6249 * To maintain backward compatibility,
6250 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6251 * is still used if either of the driver or user space application
6252 * doesn't support the 6 GHz band.
6253 *
6254 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6255 * VHT seg1 channel number
6256 * Note: If both the driver and user-space application supports the 6 GHz band,
6257 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6258 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6259 * To maintain backward compatibility,
6260 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6261 * is still used if either of the driver or user space application
6262 * doesn't support the 6 GHz band.
6263 *
6264 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6265 * Takes one of enum nl80211_chan_width values.
6266 *
6267 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6268 * Array of nested values for each channel with following attributes:
6269 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6270 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6271 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6272 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6273 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6274 * Note: If user-space application has no support of the 6 GHz band, this
6275 * attribute is optional.
6276 *
6277 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6278 * Primary channel frequency in MHz
6279 * Note: If user-space application has no support of the 6 GHz band, this
6280 * attribute is optional.
6281 *
6282 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6283 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6284 * Note: If user-space application has no support of the 6 GHz band, this
6285 * attribute is optional.
6286 *
6287 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6288 * VHT seg0 channel frequency in MHz
6289 * Note: If user-space application has no support of the 6GHz band, this
6290 * attribute is optional.
6291 *
6292 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6293 * VHT seg1 channel frequency in MHz
6294 * Note: If user-space application has no support of the 6 GHz band, this
6295 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08006296 */
6297enum qca_wlan_vendor_attr_external_acs_channels {
6298 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6299
6300 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6301 */
6302 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6303
6304 /* Array of nested values for each channel with following attributes:
6305 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6306 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6307 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6308 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6309 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6310 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6311 */
6312 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6313 /* This (u8) will hold values of one of enum nl80211_bands */
6314 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6315 /* Primary channel (u8) */
6316 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6317 /* Secondary channel (u8) used for HT 40 MHz channels */
6318 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6319 /* VHT seg0 channel (u8) */
6320 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6321 /* VHT seg1 channel (u8) */
6322 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6323 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6324 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6325
Hai Shalomc3565922019-10-28 11:58:20 -07006326 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6327 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6328 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6329 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6330 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6331
Paul Stewart092955c2017-02-06 09:13:09 -08006332 /* keep last */
6333 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6334 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6335 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6336};
6337
6338enum qca_chip_power_save_failure_reason {
6339 /* Indicates if the reason for the failure is due to a protocol
6340 * layer/module.
6341 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006342 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08006343 /* Indicates if the reason for the failure is due to a hardware issue.
6344 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006345 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006346};
6347
6348/**
6349 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6350 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6351 * information leading to the power save failure.
6352 */
6353enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07006354 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6355 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08006356 * These reasons are represented by
6357 * enum qca_chip_power_save_failure_reason.
6358 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006359 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006360
Roshan Pius3a1667e2018-07-03 15:17:14 -07006361 /* keep last */
6362 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6363 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6364 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6365};
6366
6367/**
6368 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6369 * data types for which the stats have to get collected.
6370 */
6371enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6372 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6373 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6374 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6375 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6376 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6377 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6378 * to represent the stats of respective data type.
6379 */
6380 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6381 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6382 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6383};
6384
6385enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6386 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6387 /* Represents the data packet type to be monitored (u32).
6388 * Host driver tracks the stats corresponding to each data frame
6389 * represented by these flags.
6390 * These data packets are represented by
6391 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6392 */
6393 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6394 /* Name corresponding to the DNS frame for which the respective DNS
6395 * stats have to get monitored (string). Max string length 255.
6396 */
6397 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6398 /* source port on which the respective proto stats have to get
6399 * collected (u32).
6400 */
6401 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6402 /* destination port on which the respective proto stats have to get
6403 * collected (u32).
6404 */
6405 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6406 /* IPv4 address for which the destined data packets have to be
6407 * monitored. (in network byte order), u32.
6408 */
6409 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6410 /* IPv6 address for which the destined data packets have to be
6411 * monitored. (in network byte order), 16 bytes array.
6412 */
6413 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6414
6415 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6416 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6417 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006418};
6419
6420/**
6421 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6422 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6423 * information to start/stop the NUD statistics collection.
6424 */
6425enum qca_attr_nud_stats_set {
6426 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6427
6428 /* Flag to start/stop the NUD statistics collection.
6429 * Start - If included, Stop - If not included
6430 */
6431 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006432 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08006433 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006434 /* Represents the list of data packet types to be monitored.
6435 * Host driver tracks the stats corresponding to each data frame
6436 * represented by these flags.
6437 * These data packets are represented by
6438 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6439 */
6440 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006441
6442 /* keep last */
6443 QCA_ATTR_NUD_STATS_SET_LAST,
6444 QCA_ATTR_NUD_STATS_SET_MAX =
6445 QCA_ATTR_NUD_STATS_SET_LAST - 1,
6446};
6447
Roshan Pius3a1667e2018-07-03 15:17:14 -07006448enum qca_attr_nud_data_stats {
6449 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6450 /* Data packet type for which the stats are collected (u32).
6451 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6452 */
6453 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6454 /* Name corresponding to the DNS frame for which the respective DNS
6455 * stats are monitored (string). Max string length 255.
6456 */
6457 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6458 /* source port on which the respective proto stats are collected (u32).
6459 */
6460 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6461 /* destination port on which the respective proto stats are collected
6462 * (u32).
6463 */
6464 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6465 /* IPv4 address for which the destined data packets have to be
6466 * monitored. (in network byte order), u32.
6467 */
6468 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6469 /* IPv6 address for which the destined data packets have to be
6470 * monitored. (in network byte order), 16 bytes array.
6471 */
6472 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6473 /* Data packet Request count received from netdev (u32). */
6474 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6475 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
6476 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6477 /* Data packet Request count received by lower MAC from upper MAC
6478 * (u32)
6479 */
6480 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6481 /* Data packet Request count successfully transmitted by the device
6482 * (u32)
6483 */
6484 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6485 /* Data packet Response count received by lower MAC (u32) */
6486 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6487 /* Data packet Response count received by upper MAC (u32) */
6488 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6489 /* Data packet Response count delivered to netdev (u32) */
6490 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6491 /* Data Packet Response count that are dropped out of order (u32) */
6492 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6493
6494 /* keep last */
6495 QCA_ATTR_NUD_DATA_STATS_LAST,
6496 QCA_ATTR_NUD_DATA_STATS_MAX =
6497 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6498};
6499
Paul Stewart092955c2017-02-06 09:13:09 -08006500/**
6501 * qca_attr_nud_stats_get: Attributes to vendor subcmd
6502 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6503 * NUD statistics collected when queried.
6504 */
6505enum qca_attr_nud_stats_get {
6506 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006507 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006508 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006509 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006510 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006511 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006512 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006513 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006514 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006515 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006516 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006517 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006518 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006519 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006520 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006521 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006522 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6523 /* Flag indicating if the station's link to the AP is active.
6524 * Active Link - If included, Inactive link - If not included
6525 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006526 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08006527 /* Flag indicating if there is any duplicate address detected (DAD).
6528 * Yes - If detected, No - If not detected.
6529 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006530 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006531 /* List of Data packet types for which the stats are requested.
6532 * This list does not carry ARP stats as they are done by the
6533 * above attributes. Represented by enum qca_attr_nud_data_stats.
6534 */
6535 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006536
6537 /* keep last */
6538 QCA_ATTR_NUD_STATS_GET_LAST,
6539 QCA_ATTR_NUD_STATS_GET_MAX =
6540 QCA_ATTR_NUD_STATS_GET_LAST - 1,
6541};
6542
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006543enum qca_wlan_btm_candidate_status {
6544 QCA_STATUS_ACCEPT = 0,
6545 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6546 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6547 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6548 QCA_STATUS_REJECT_LOW_RSSI = 4,
6549 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6550 QCA_STATUS_REJECT_UNKNOWN = 6,
6551};
6552
6553enum qca_wlan_vendor_attr_btm_candidate_info {
6554 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6555
6556 /* 6-byte MAC address representing the BSSID of transition candidate */
6557 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6558 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6559 * returned by the driver. It says whether the BSSID provided in
6560 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6561 * the driver, if not it specifies the reason for rejection.
6562 * Note that the user-space can overwrite the transition reject reason
6563 * codes provided by driver based on more information.
6564 */
6565 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6566
6567 /* keep last */
6568 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6569 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6570 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6571};
6572
6573enum qca_attr_trace_level {
6574 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6575 /*
6576 * Nested array of the following attributes:
6577 * QCA_ATTR_TRACE_LEVEL_MODULE,
6578 * QCA_ATTR_TRACE_LEVEL_MASK.
6579 */
6580 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6581 /*
6582 * Specific QCA host driver module. Please refer to the QCA host
6583 * driver implementation to get the specific module ID.
6584 */
6585 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6586 /* Different trace level masks represented in the QCA host driver. */
6587 QCA_ATTR_TRACE_LEVEL_MASK = 3,
6588
6589 /* keep last */
6590 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6591 QCA_ATTR_TRACE_LEVEL_MAX =
6592 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6593};
6594
6595/**
6596 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6597 */
6598enum qca_wlan_vendor_attr_get_he_capabilities {
6599 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6600 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006601 * (u8 attribute: 0 = not supported, 1 = supported)
6602 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006603 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6604 /* HE PHY capabilities, array of 3 u32 values */
6605 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6606 /* HE MAC capabilities (u32 attribute) */
6607 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6608 /* HE MCS map (u32 attribute) */
6609 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6610 /* Number of SS (u32 attribute) */
6611 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6612 /* RU count (u32 attribute) */
6613 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6614 /* PPE threshold data, array of 8 u32 values */
6615 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6616
6617 /* keep last */
6618 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6619 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6620 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6621};
6622
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006623/**
6624 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6625 */
6626enum qca_wlan_vendor_attr_spectral_scan {
6627 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6628 /* Number of times the chip enters spectral scan mode before
6629 * deactivating spectral scans. When set to 0, chip will enter spectral
6630 * scan mode continuously. u32 attribute.
6631 */
6632 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6633 /* Spectral scan period. Period increment resolution is 256*Tclk,
6634 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6635 */
6636 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6637 /* Spectral scan priority. u32 attribute. */
6638 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6639 /* Number of FFT data points to compute. u32 attribute. */
6640 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6641 /* Enable targeted gain change before starting the spectral scan FFT.
6642 * u32 attribute.
6643 */
6644 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6645 /* Restart a queued spectral scan. u32 attribute. */
6646 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6647 /* Noise floor reference number for the calculation of bin power.
6648 * u32 attribute.
6649 */
6650 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6651 /* Disallow spectral scan triggers after TX/RX packets by setting
6652 * this delay value to roughly SIFS time period or greater.
6653 * u32 attribute.
6654 */
6655 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6656 /* Number of strong bins (inclusive) per sub-channel, below
6657 * which a signal is declared a narrow band tone. u32 attribute.
6658 */
6659 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6660 /* Specify the threshold over which a bin is declared strong (for
6661 * scan bandwidth analysis). u32 attribute.
6662 */
6663 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6664 /* Spectral scan report mode. u32 attribute. */
6665 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6666 /* RSSI report mode, if the ADC RSSI is below
6667 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6668 * then FFTs will not trigger, but timestamps and summaries get
6669 * reported. u32 attribute.
6670 */
6671 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6672 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6673 * to ensure spectral scan reporting with normal error code.
6674 * u32 attribute.
6675 */
6676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6677 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6678 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6679 * u32 attribute.
6680 */
6681 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6682 /* Format of FFT report to software for spectral scan triggered FFTs.
6683 * 0: No FFT report (only spectral scan summary report)
6684 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6685 * report
6686 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6687 * bins (in-band) per FFT + spectral scan summary report
6688 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6689 * bins (all) per FFT + spectral scan summary report
6690 * u32 attribute.
6691 */
6692 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6693 /* Number of LSBs to shift out in order to scale the FFT bins.
6694 * u32 attribute.
6695 */
6696 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6697 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6698 * in dBm power. u32 attribute.
6699 */
6700 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6701 /* Per chain enable mask to select input ADC for search FFT.
6702 * u32 attribute.
6703 */
6704 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6705 /* An unsigned 64-bit integer provided by host driver to identify the
6706 * spectral scan request. This attribute is included in the scan
6707 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6708 * and used as an attribute in
6709 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6710 * specific scan to be stopped.
6711 */
6712 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006713 /* Skip interval for FFT reports. u32 attribute */
6714 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6715 /* Set to report only one set of FFT results.
6716 * u32 attribute.
6717 */
6718 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6719 /* Debug level for spectral module in driver.
6720 * 0 : Verbosity level 0
6721 * 1 : Verbosity level 1
6722 * 2 : Verbosity level 2
6723 * 3 : Matched filterID display
6724 * 4 : One time dump of FFT report
6725 * u32 attribute.
6726 */
6727 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6728 /* Type of spectral scan request. u32 attribute.
6729 * It uses values defined in enum
6730 * qca_wlan_vendor_attr_spectral_scan_request_type.
6731 */
6732 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006733 /* This specifies the frequency span over which spectral
6734 * scan would be carried out. Its value depends on the
6735 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6736 * the relation is as follows.
6737 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6738 * Not applicable. Spectral scan would happen in the
6739 * operating span.
6740 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6741 * Center frequency (in MHz) of the span of interest or
6742 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006743 * in the span of interest. For 80+80 MHz agile spectral scan
6744 * request it represents center frequency (in MHz) of the primary
6745 * 80 MHz span or for convenience, center frequency (in MHz) of any
6746 * channel in the primary 80 MHz span. If agile spectral scan is
6747 * initiated without setting a valid frequency it returns the
6748 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07006749 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6750 * u32 attribute.
6751 */
6752 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6753 /* Spectral scan mode. u32 attribute.
6754 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6755 * If this attribute is not present, it is assumed to be
6756 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6757 */
6758 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6759 /* Spectral scan error code. u32 attribute.
6760 * It uses values defined in enum
6761 * qca_wlan_vendor_spectral_scan_error_code.
6762 * This attribute is included only in failure scenarios.
6763 */
6764 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6765 /* 8-bit unsigned value to enable/disable debug of the
6766 * Spectral DMA ring.
6767 * 1-enable, 0-disable
6768 */
6769 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6770 /* 8-bit unsigned value to enable/disable debug of the
6771 * Spectral DMA buffers.
6772 * 1-enable, 0-disable
6773 */
6774 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006775 /* This specifies the frequency span over which spectral scan would be
6776 * carried out. Its value depends on the value of
6777 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6778 * follows.
6779 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6780 * Not applicable. Spectral scan would happen in the operating span.
6781 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6782 * This attribute is applicable only for agile spectral scan
6783 * requests in 80+80 MHz mode. It represents center frequency (in
6784 * MHz) of the secondary 80 MHz span or for convenience, center
6785 * frequency (in MHz) of any channel in the secondary 80 MHz span.
6786 * u32 attribute.
6787 */
6788 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006789 /* This attribute specifies the bandwidth to be used for spectral scan
6790 * operation. This is an u8 attribute and uses the values in enum
6791 * nl80211_chan_width. This is an optional attribute.
6792 * If this attribute is not populated, the driver should configure the
6793 * spectral scan bandwidth to the maximum value supported by the target
6794 * for the current operating bandwidth.
6795 */
6796 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07006797 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
6798 * Recapture can only be enabled for scan period greater than 52 us.
6799 * If this attribute is enabled, re-triggers will be enabled when AGC
6800 * gain changes.
6801 */
6802 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006803
6804 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6805 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6806 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6807};
6808
Roshan Pius3a1667e2018-07-03 15:17:14 -07006809/**
6810 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6811 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6812 */
6813enum qca_wlan_vendor_attr_spectral_diag_stats {
6814 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6815 /* Number of spectral TLV signature mismatches.
6816 * u64 attribute.
6817 */
6818 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6819 /* Number of spectral phyerror events with insufficient length when
6820 * parsing for secondary 80 search FFT report. u64 attribute.
6821 */
6822 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6823 /* Number of spectral phyerror events without secondary 80
6824 * search FFT report. u64 attribute.
6825 */
6826 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6827 /* Number of spectral phyerror events with vht operation segment 1 id
6828 * mismatches in search fft report. u64 attribute.
6829 */
6830 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6831 /* Number of spectral phyerror events with vht operation segment 2 id
6832 * mismatches in search fft report. u64 attribute.
6833 */
6834 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6835
6836 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6837 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6838 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6839};
6840
6841/**
6842 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6843 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6844 */
6845enum qca_wlan_vendor_attr_spectral_cap {
6846 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6847 /* Flag attribute to indicate phydiag capability */
6848 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6849 /* Flag attribute to indicate radar detection capability */
6850 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6851 /* Flag attribute to indicate spectral capability */
6852 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6853 /* Flag attribute to indicate advanced spectral capability */
6854 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6855 /* Spectral hardware generation. u32 attribute.
6856 * It uses values defined in enum
6857 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6858 */
6859 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006860 /* Spectral bin scaling formula ID. u16 attribute.
6861 * It uses values defined in enum
6862 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6863 */
6864 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6865 /* Spectral bin scaling param - low level offset.
6866 * s16 attribute.
6867 */
6868 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6869 /* Spectral bin scaling param - high level offset.
6870 * s16 attribute.
6871 */
6872 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6873 /* Spectral bin scaling param - RSSI threshold.
6874 * s16 attribute.
6875 */
6876 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6877 /* Spectral bin scaling param - default AGC max gain.
6878 * u8 attribute.
6879 */
6880 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07006881 /* Flag attribute to indicate agile spectral scan capability
6882 * for 20/40/80 MHz modes.
6883 */
Hai Shalom81f62d82019-07-22 12:10:00 -07006884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07006885 /* Flag attribute to indicate agile spectral scan capability
6886 * for 160 MHz mode.
6887 */
6888 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6889 /* Flag attribute to indicate agile spectral scan capability
6890 * for 80+80 MHz mode.
6891 */
6892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006893 /* Number of spectral detectors used for scan in 20 MHz.
6894 * u32 attribute.
6895 */
6896 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
6897 /* Number of spectral detectors used for scan in 40 MHz.
6898 * u32 attribute.
6899 */
6900 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
6901 /* Number of spectral detectors used for scan in 80 MHz.
6902 * u32 attribute.
6903 */
6904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
6905 /* Number of spectral detectors used for scan in 160 MHz.
6906 * u32 attribute.
6907 */
6908 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
6909 /* Number of spectral detectors used for scan in 80+80 MHz.
6910 * u32 attribute.
6911 */
6912 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006913 /* Flag attribute to indicate agile spectral scan capability
6914 * for 320 MHz mode.
6915 */
6916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
6917 /* Number of spectral detectors used for scan in 320 MHz.
6918 * u32 attribute.
6919 */
6920 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006921
6922 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6923 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6924 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6925};
6926
6927/**
6928 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6929 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6930 */
6931enum qca_wlan_vendor_attr_spectral_scan_status {
6932 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6933 /* Flag attribute to indicate whether spectral scan is enabled */
6934 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6935 /* Flag attribute to indicate whether spectral scan is in progress*/
6936 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07006937 /* Spectral scan mode. u32 attribute.
6938 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6939 * If this attribute is not present, normal mode
6940 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6941 * requested.
6942 */
6943 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006944
6945 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6946 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6948};
6949
6950/**
6951 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6952 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6953 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6954 * spectral scan request types.
6955 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6956 * set the spectral parameters and start scan.
6957 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6958 * only set the spectral parameters.
6959 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6960 * only start the spectral scan.
6961 */
6962enum qca_wlan_vendor_attr_spectral_scan_request_type {
6963 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6964 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6965 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6966};
6967
6968/**
Hai Shalom81f62d82019-07-22 12:10:00 -07006969 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6970 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6971 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6972 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6973 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6974 * spectral scan modes.
6975 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6976 * spectral scan in the current operating span.
6977 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6978 * spectral scan in the configured agile span.
6979 */
6980enum qca_wlan_vendor_spectral_scan_mode {
6981 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6982 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6983};
6984
6985/**
6986 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6987 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6988 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6989 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6990 * of a parameter is not supported.
6991 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6992 * mode is not supported.
6993 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6994 * has invalid value.
6995 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6996 * is not initialized.
6997 */
6998enum qca_wlan_vendor_spectral_scan_error_code {
6999 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7000 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7001 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7002 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7003};
7004
7005/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007006 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7007 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7008 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7009 * spectral hardware generation.
7010 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7011 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7012 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7013 */
7014enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7015 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7016 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7017 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7018};
7019
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007020enum qca_wlan_vendor_tos {
7021 QCA_WLAN_VENDOR_TOS_BK = 0,
7022 QCA_WLAN_VENDOR_TOS_BE = 1,
7023 QCA_WLAN_VENDOR_TOS_VI = 2,
7024 QCA_WLAN_VENDOR_TOS_VO = 3,
7025};
7026
7027/**
7028 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7029 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7030 */
7031enum qca_wlan_vendor_attr_active_tos {
7032 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7033 /* Type Of Service - Represented by qca_wlan_vendor_tos */
7034 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7035 /* Flag attribute representing the start (attribute included) or stop
7036 * (attribute not included) of the respective TOS.
7037 */
7038 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7039};
7040
7041enum qca_wlan_vendor_hang_reason {
7042 /* Unspecified reason */
7043 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7044 /* No Map for the MAC entry for the received frame */
7045 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7046 /* Peer deletion timeout happened */
7047 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7048 /* Peer unmap timeout */
7049 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
7050 /* Scan request timed out */
7051 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
7052 /* Consecutive Scan attempt failures */
7053 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
7054 /* Unable to get the message buffer */
7055 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
7056 /* Current command processing is timedout */
7057 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
7058 /* Timeout for an ACK from FW for suspend request */
7059 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
7060 /* Timeout for an ACK from FW for resume request */
7061 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
7062 /* Transmission timeout for consecutive data frames */
7063 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
7064 /* Timeout for the TX completion status of data frame */
7065 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
7066 /* DXE failure for TX/RX, DXE resource unavailability */
7067 QCA_WLAN_HANG_DXE_FAILURE = 12,
7068 /* WMI pending commands exceed the maximum count */
7069 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07007070 /* Timeout for peer STA connection accept command's response from the
7071 * FW in AP mode. This command is triggered when a STA (peer) connects
7072 * to AP (DUT).
7073 */
7074 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
7075 /* Timeout for the AP connection accept command's response from the FW
7076 * in STA mode. This command is triggered when the STA (DUT) connects
7077 * to an AP (peer).
7078 */
7079 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
7080 /* Timeout waiting for the response to the MAC HW mode change command
7081 * sent to FW as a part of MAC mode switch among DBS (Dual Band
7082 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
7083 * Channel Concurrency) mode.
7084 */
7085 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
7086 /* Timeout waiting for the response from FW to configure the MAC HW's
7087 * mode. This operation is to configure the single/two MACs in either
7088 * SCC/MCC/DBS mode.
7089 */
7090 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
7091 /* Timeout waiting for response of VDEV start command from the FW */
7092 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
7093 /* Timeout waiting for response of VDEV restart command from the FW */
7094 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
7095 /* Timeout waiting for response of VDEV stop command from the FW */
7096 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
7097 /* Timeout waiting for response of VDEV delete command from the FW */
7098 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
7099 /* Timeout waiting for response of peer all delete request command to
7100 * the FW on a specific VDEV.
7101 */
7102 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08007103 /* WMI sequence mismatch between WMI command and Tx completion */
7104 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
7105 /* Write to Device HAL register failed */
7106 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
7107 /* No credit left to send the wow_wakeup_from_sleep to firmware */
7108 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
7109 /* Bus failure */
7110 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007111 /* tasklet/credit latency found */
7112 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007113};
7114
7115/**
7116 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7117 * QCA_NL80211_VENDOR_SUBCMD_HANG.
7118 */
7119enum qca_wlan_vendor_attr_hang {
7120 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7121 /* Reason for the hang - u32 attribute with a value from enum
7122 * qca_wlan_vendor_hang_reason.
7123 */
7124 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007125 /* The binary blob data associated with the hang reason specified by
7126 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7127 * contain the required dump to analyze the reason for the hang.
7128 * NLA_BINARY attribute, the max size is 1024 bytes.
7129 */
7130 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007131
7132 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7133 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7134 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7135};
7136
Roshan Pius3a1667e2018-07-03 15:17:14 -07007137/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007138 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7139 * the policy to flush pending frames, configured via
7140 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7141 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7142 *
7143 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7144 * the flush policy configured before. This command basically disables the
7145 * flush config set by the user.
7146 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7147 * the flush policy to be immediate. All pending packets for the peer/TID are
7148 * flushed when this command/policy is received.
7149 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7150 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7151 * are flushed when the end of TWT SP is reached.
7152 */
7153enum qca_wlan_vendor_flush_pending_policy {
7154 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7155 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7156 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7157};
7158
7159/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007160 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7161 * flushing pending traffic in firmware.
7162 *
7163 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7164 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7165 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7166 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08007167 * flush packets with access category. This is optional. See below.
7168 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7169 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7170 * bit to 1 to act upon the TID. This is optional. Either this attribute or
7171 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7172 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7173 * it is an error.
7174 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7175 * packets corresponding to the peer/TID provided. It is a u32 value,
7176 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7177 * value is honored only when TID mask is provided. This is not honored when AC
7178 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007179 */
7180enum qca_wlan_vendor_attr_flush_pending {
7181 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7182 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7183 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007184 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7185 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007186
7187 /* keep last */
7188 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7189 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7190 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7191};
7192
7193/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007194 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7195 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7196 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7197 * Spectral bin scaling formula ID.
7198 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7199 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7200 * and RSSI threshold based formula.
7201 */
7202enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7203 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7204 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7205};
7206
7207/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007208 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7209 * RF Operating Parameter (RROP) information is available, and if so, at which
7210 * point in the application-driver interaction sequence it can be retrieved by
7211 * the application from the driver. This point may vary by architecture and
7212 * other factors. This is a u16 value.
7213 */
7214enum qca_wlan_vendor_attr_rropavail_info {
7215 /* RROP information is unavailable. */
7216 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7217 /* RROP information is available and the application can retrieve the
7218 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7219 * event from the driver.
7220 */
7221 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7222 /* RROP information is available only after a vendor specific scan
7223 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7224 * successfully completed. The application can retrieve the information
7225 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7226 * the driver.
7227 */
7228 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7229};
7230
7231/**
7232 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7233 * Representative RF Operating Parameter (RROP) information. It is sent for the
7234 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7235 * intended for use by external Auto Channel Selection applications. It provides
7236 * guidance values for some RF parameters that are used by the system during
7237 * operation. These values could vary by channel, band, radio, and so on.
7238 */
7239enum qca_wlan_vendor_attr_rrop_info {
7240 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7241
7242 /* Representative Tx Power List (RTPL) which has an array of nested
7243 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7244 */
7245 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7246
7247 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7248 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7249 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7250};
7251
7252/**
7253 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7254 * entry instances in the Representative Tx Power List (RTPL). It provides
7255 * simplified power values intended for helping external Auto channel Selection
7256 * applications compare potential Tx power performance between channels, other
7257 * operating conditions remaining identical. These values are not necessarily
7258 * the actual Tx power values that will be used by the system. They are also not
7259 * necessarily the max or average values that will be used. Instead, they are
7260 * relative, summarized keys for algorithmic use computed by the driver or
7261 * underlying firmware considering a number of vendor specific factors.
7262 */
7263enum qca_wlan_vendor_attr_rtplinst {
7264 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7265
Hai Shalomfdcde762020-04-02 11:19:20 -07007266 /* Primary channel number (u8).
7267 * Note: If both the driver and user space application support the
7268 * 6 GHz band, this attribute is deprecated and
7269 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7270 * maintain backward compatibility,
7271 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7272 * driver or user space application or both do not support the 6 GHz
7273 * band.
7274 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007275 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7276 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
7277 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7278 /* Representative Tx power in dBm (s32) with emphasis on range. */
7279 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07007280 /* Primary channel center frequency (u32) in MHz */
7281 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007282
7283 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7284 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7285 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7286};
7287
7288/**
7289 * enum qca_wlan_vendor_attr_config_latency_level - Level for
7290 * wlan latency module.
7291 *
7292 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7293 * power saving which would causing data exchange out of service, this
7294 * would be a big impact on latency. For latency sensitive applications over
7295 * Wi-Fi are intolerant to such operations and thus would configure them
7296 * to meet their respective needs. It is well understood by such applications
7297 * that altering the default behavior would degrade the Wi-Fi functionality
7298 * w.r.t the above pointed WLAN operations.
7299 *
7300 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7301 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007302 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7303 * Use XR level to benefit XR (extended reality) application to achieve
7304 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007305 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07007306 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07007307 * downloading or video streaming via constraint scan/adaptive PS.
7308 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7309 * Use ultra low latency level to benefit for gaming/voice
7310 * application via constraint scan/roaming/adaptive PS.
7311 */
7312enum qca_wlan_vendor_attr_config_latency_level {
7313 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7314 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007315 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7316 /* legacy name */
7317 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7318 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007319 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7320 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7321
7322 /* keep last */
7323 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7324 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7325 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7326};
7327
7328/**
7329 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7330 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7331 */
7332enum qca_wlan_vendor_attr_mac {
7333 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7334
7335 /* MAC mode info list which has an array of nested values as
7336 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7337 */
7338 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7339
7340 /* keep last */
7341 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7342 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7343 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7344};
7345
7346/**
7347 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7348 * Wi-Fi netdev interface on a respective MAC.
7349 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7350 */
7351enum qca_wlan_vendor_attr_mac_iface_info {
7352 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7353 /* Wi-Fi netdev's interface index (u32) */
7354 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7355 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7356 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7357
7358 /* keep last */
7359 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7360 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7361 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7362};
7363
7364/**
7365 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7366 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7367 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7368 */
7369enum qca_wlan_vendor_attr_mac_info {
7370 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7371 /* Hardware MAC ID associated for the MAC (u32) */
7372 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7373 /* Band supported by the MAC at a given point.
7374 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7375 * nl80211_band.
7376 */
7377 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7378 /* Refers to list of WLAN netdev interfaces associated with this MAC.
7379 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7380 */
7381 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7382
7383 /* keep last */
7384 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7385 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7386 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7387};
7388
7389/**
7390 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7391 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7392 */
7393enum qca_wlan_vendor_attr_get_logger_features {
7394 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7395 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
7396 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7397 /* keep last */
7398 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7399 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7400 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7401};
7402
7403/**
7404 * enum wifi_logger_supported_features - Values for supported logger features
7405 */
7406enum wifi_logger_supported_features {
7407 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7408 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7409 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7410 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7411 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7412 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7413 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7414 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7415 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7416};
7417
7418/**
7419 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7420 * capabilities features
7421 */
7422enum qca_wlan_tdls_caps_features_supported {
7423 WIFI_TDLS_SUPPORT = (1 << (0)),
7424 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7425 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7426};
7427
7428/**
7429 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7430 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7431 */
7432enum qca_wlan_vendor_attr_tdls_get_capabilities {
7433 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7434 /* Indicates the max concurrent sessions */
7435 /* Unsigned 32-bit value */
7436 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7437 /* Indicates the support for features */
7438 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7439 */
7440 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7441
7442 /* keep last */
7443 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7444 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7445 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7446};
7447
7448/**
7449 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7450 * command used as value for the attribute
7451 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7452 */
7453enum qca_wlan_offloaded_packets_sending_control {
7454 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7455 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7456 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7457};
7458
7459/**
7460 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7461 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7462 */
7463enum qca_wlan_vendor_attr_offloaded_packets {
7464 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7465 /* Takes valid value from the enum
7466 * qca_wlan_offloaded_packets_sending_control
7467 * Unsigned 32-bit value
7468 */
7469 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7470 /* Unsigned 32-bit value */
7471 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7472 /* array of u8 len: Max packet size */
7473 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7474 /* 6-byte MAC address used to represent source MAC address */
7475 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7476 /* 6-byte MAC address used to represent destination MAC address */
7477 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7478 /* Unsigned 32-bit value, in milli seconds */
7479 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07007480 /* This optional unsigned 16-bit attribute is used for specifying
7481 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7482 */
7483 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007484
7485 /* keep last */
7486 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7487 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7488 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7489};
7490
7491/**
7492 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7493 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7494 */
7495enum qca_wlan_rssi_monitoring_control {
7496 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7497 QCA_WLAN_RSSI_MONITORING_START,
7498 QCA_WLAN_RSSI_MONITORING_STOP,
7499};
7500
7501/**
7502 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7503 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7504 */
7505enum qca_wlan_vendor_attr_rssi_monitoring {
7506 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7507 /* Takes valid value from the enum
7508 * qca_wlan_rssi_monitoring_control
7509 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7510 */
7511 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7512 /* Unsigned 32-bit value */
7513 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7514 /* Signed 8-bit value in dBm */
7515 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7516 /* Signed 8-bit value in dBm */
7517 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7518 /* attributes to be used/received in callback */
7519 /* 6-byte MAC address used to represent current BSSID MAC address */
7520 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7521 /* Signed 8-bit value indicating the current RSSI */
7522 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7523 /* keep last */
7524 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7525 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7526 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7527};
7528
7529/**
7530 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7531 * QCA_NL80211_VENDOR_SUBCMD_NDP.
7532 */
7533enum qca_wlan_vendor_attr_ndp_params {
7534 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7535 /* Unsigned 32-bit value
7536 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7537 */
7538 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7539 /* Unsigned 16-bit value */
7540 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7541 /* NL attributes for data used NDP SUB cmds */
7542 /* Unsigned 32-bit value indicating a service info */
7543 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7544 /* Unsigned 32-bit value; channel frequency in MHz */
7545 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7546 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7547 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7548 /* Interface name on which NDP is being created */
7549 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7550 /* Unsigned 32-bit value for security */
7551 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7552 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7553 /* Unsigned 32-bit value for QoS */
7554 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7555 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7556 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7557 /* Unsigned 32-bit value for NDP instance Id */
7558 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7559 /* Array of instance Ids */
7560 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7561 /* Unsigned 32-bit value for initiator/responder NDP response code
7562 * accept/reject
7563 */
7564 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7565 /* NDI MAC address. An array of 6 Unsigned int8 */
7566 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7567 /* Unsigned 32-bit value errors types returned by driver
7568 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7569 * NanStatusType includes these values.
7570 */
7571 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7572 /* Unsigned 32-bit value error values returned by driver
7573 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7574 * NanInternalStatusType includes these values.
7575 */
7576 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7577 /* Unsigned 32-bit value for Channel setup configuration
7578 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7579 * NanDataPathChannelCfg includes these values.
7580 */
7581 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7582 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7583 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7584 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7585 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7586 /* Security Context Identifier that contains the PMKID
7587 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7588 */
7589 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7590 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7591 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7592 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7593 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7594 /* Unsigned 32-bit bitmap indicating schedule update
7595 * BIT_0: NSS Update
7596 * BIT_1: Channel list update
7597 */
7598 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7599 /* Unsigned 32-bit value for NSS */
7600 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7601 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7602 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7603 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
7604 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7605 */
7606 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7607 /* Array of channel/band width */
7608 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7609 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
7610 * This attribute is used and optional for ndp request, ndp response,
7611 * ndp indication, and ndp confirm.
7612 */
7613 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7614 /* Unsigned 16-bit value indicating transport port used by NDP.
7615 * This attribute is used and optional for ndp response, ndp indication,
7616 * and ndp confirm.
7617 */
7618 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7619 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7620 * the Internet Assigned Numbers Authority (IANA) as per:
7621 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7622 * This attribute is used and optional for ndp response, ndp indication,
7623 * and ndp confirm.
7624 */
7625 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007626 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7627 * 1:support 0:not support
7628 */
7629 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007630 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
7631 * 48 bits of the SHA-256 hash of the Service Name.
7632 * A lower-case representation of the Service Name shall be used to
7633 * calculate the Service ID.
7634 * Array of u8: length is 6 bytes
7635 * This attribute is used and optional for ndp indication.
7636 */
7637 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007638
7639 /* keep last */
7640 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7641 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7642 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7643};
7644
7645enum qca_wlan_ndp_sub_cmd {
7646 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07007647 /* Command to create a NAN data path interface.
7648 * This command was initially designed to both create and start a NAN
7649 * data path interface. However, changes to Linux 5.12 no longer allow
7650 * interface creation via vendor commands. When the driver advertises
7651 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7652 * userspace must explicitly first create the interface using
7653 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
7654 * to start the interface.
7655 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007656 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07007657 /* Command to delete a NAN data path interface.
7658 * This command was initially designed to both stop and delete a NAN
7659 * data path interface. However, changes to Linux 5.12 no longer allow
7660 * interface deletion via vendor commands. When the driver advertises
7661 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7662 * userspace must explicitly delete the interface using
7663 * NL80211_CMD_DEL_INTERFACE after calling this command.
7664 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007665 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7666 /* Command to initiate a NAN data path session */
7667 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7668 /* Command to notify if the NAN data path session was sent */
7669 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7670 /* Command to respond to NAN data path session */
7671 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7672 /* Command to notify on the responder about the response */
7673 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7674 /* Command to initiate a NAN data path end */
7675 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7676 /* Command to notify the if end request was sent */
7677 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7678 /* Command to notify the peer about the end request */
7679 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7680 /* Command to confirm the NAN data path session is complete */
7681 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7682 /* Command to indicate the peer about the end request being received */
7683 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7684 /* Command to indicate the peer of schedule update */
7685 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7686};
7687
7688/**
7689 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7690 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7691 */
7692enum qca_wlan_vendor_attr_nd_offload {
7693 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7694 /* Flag to set Neighbour Discovery offload */
7695 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7696 /* Keep last */
7697 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7698 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7699 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7700};
7701
7702/**
7703 * enum packet_filter_sub_cmd - Packet filter sub commands
7704 */
7705enum packet_filter_sub_cmd {
7706 /**
7707 * Write packet filter program and/or data. The driver/firmware should
7708 * disable APF before writing into local buffer and re-enable APF after
7709 * writing is done.
7710 */
7711 QCA_WLAN_SET_PACKET_FILTER = 1,
7712 /* Get packet filter feature capabilities from driver */
7713 QCA_WLAN_GET_PACKET_FILTER = 2,
7714 /**
7715 * Write packet filter program and/or data. User space will send the
7716 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7717 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7718 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7719 * enable/disable is given to user space with this command. Also,
7720 * user space sends the length of program portion in the buffer within
7721 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7722 */
7723 QCA_WLAN_WRITE_PACKET_FILTER = 3,
7724 /* Read packet filter program and/or data */
7725 QCA_WLAN_READ_PACKET_FILTER = 4,
7726 /* Enable APF feature */
7727 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7728 /* Disable APF feature */
7729 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7730};
7731
7732/**
7733 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7734 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7735 */
7736enum qca_wlan_vendor_attr_packet_filter {
7737 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7738 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7739 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7740 /* Unsigned 32-bit value indicating the packet filter version */
7741 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7742 /* Unsigned 32-bit value indicating the packet filter id */
7743 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7744 /**
7745 * Unsigned 32-bit value indicating the packet filter size including
7746 * program + data.
7747 */
7748 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7749 /* Unsigned 32-bit value indicating the packet filter current offset */
7750 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7751 /* Program and/or data in bytes */
7752 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7753 /* Unsigned 32-bit value of the length of the program section in packet
7754 * filter buffer.
7755 */
7756 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7757
7758 /* keep last */
7759 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7760 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7761 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7762};
7763
7764/**
7765 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7766 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7767 */
7768enum qca_wlan_vendor_drv_info {
7769 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7770 /* Maximum Message size info between firmware & HOST
7771 * Unsigned 32-bit value
7772 */
7773 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7774 /* keep last */
7775 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7776 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7777 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7778};
7779
7780/**
7781 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
7782 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
7783 */
7784enum qca_wlan_vendor_attr_wake_stats {
7785 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
7786 /* Unsigned 32-bit value indicating the total count of wake event */
7787 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
7788 /* Array of individual wake count, each index representing wake reason
7789 */
7790 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
7791 /* Unsigned 32-bit value representing wake count array */
7792 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
7793 /* Unsigned 32-bit total wake count value of driver/fw */
7794 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
7795 /* Array of wake stats of driver/fw */
7796 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
7797 /* Unsigned 32-bit total wake count value of driver/fw */
7798 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
7799 /* Unsigned 32-bit total wake count value of packets received */
7800 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
7801 /* Unsigned 32-bit wake count value unicast packets received */
7802 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
7803 /* Unsigned 32-bit wake count value multicast packets received */
7804 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
7805 /* Unsigned 32-bit wake count value broadcast packets received */
7806 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
7807 /* Unsigned 32-bit wake count value of ICMP packets */
7808 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
7809 /* Unsigned 32-bit wake count value of ICMP6 packets */
7810 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
7811 /* Unsigned 32-bit value ICMP6 router advertisement */
7812 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
7813 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
7814 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
7815 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
7816 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
7817 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
7818 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
7819 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
7820 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
7821 /* Unsigned 32-bit wake count value of receive side multicast */
7822 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
7823 /* Unsigned 32-bit wake count value of a given RSSI breach */
7824 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
7825 /* Unsigned 32-bit wake count value of low RSSI */
7826 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
7827 /* Unsigned 32-bit value GSCAN count */
7828 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
7829 /* Unsigned 32-bit value PNO complete count */
7830 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
7831 /* Unsigned 32-bit value PNO match count */
7832 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
7833 /* keep last */
7834 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
7835 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
7836 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
7837};
7838
7839/**
Hai Shalomfdcde762020-04-02 11:19:20 -07007840 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07007841 * configured by userspace to the driver/firmware.
7842 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
7843 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07007844 * The driver/firmware takes actions requested by userspace such as throttling
7845 * wifi TX etc. in order to mitigate high temperature.
7846 *
7847 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
7848 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
7849 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
7850 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
7851 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
7852 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
7853 */
7854enum qca_wlan_vendor_thermal_level {
7855 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
7856 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
7857 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
7858 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
7859 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
7860 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
7861};
7862
7863/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007864 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
7865 * cmd value. Used for NL attributes for data used by
7866 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7867 */
7868enum qca_wlan_vendor_attr_thermal_cmd {
7869 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
7870 /* The value of command, driver will implement different operations
7871 * according to this value. It uses values defined in
7872 * enum qca_wlan_vendor_attr_thermal_cmd_type.
7873 * u32 attribute.
7874 */
7875 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007876 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07007877 * driver/firmware, or get thermal level from the driver/firmware.
7878 * Used in request or response, u32 attribute,
7879 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07007880 */
7881 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
7882 /* Userspace uses this attribute to configure the time in which the
7883 * driver/firmware should complete applying settings it received from
7884 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
7885 * command type. Used in request, u32 attribute, value is in
7886 * milliseconds. A value of zero indicates to apply the settings
7887 * immediately. The driver/firmware can delay applying the configured
7888 * thermal settings within the time specified in this attribute if
7889 * there is any critical ongoing operation.
7890 */
7891 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007892 /* Nested attribute, the driver/firmware uses this attribute to report
7893 * thermal statistics of different thermal levels to userspace when
7894 * requested using the
7895 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
7896 * type. This attribute contains a nested array of records of thermal
7897 * statistics of multiple levels. The attributes used inside this nested
7898 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
7899 */
7900 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007901
7902 /* keep last */
7903 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
7904 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
7905 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
7906};
7907
7908/**
7909 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
7910 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
7911 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
7912 * thermal command types sent to driver.
7913 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
7914 * get thermal shutdown configuration parameters for display. Parameters
7915 * responded from driver are defined in
7916 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
7917 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
7918 * get temperature. Host should respond with a temperature data. It is defined
7919 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
7920 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
7921 * suspend action.
7922 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
7923 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07007924 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
7925 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07007926 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
7927 * thermal level from the driver/firmware. The driver should respond with a
7928 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007929 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
7930 * current thermal statistics from the driver/firmware. The driver should
7931 * respond with statistics of all thermal levels encapsulated in the attribute
7932 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
7933 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
7934 * the current thermal statistics for all thermal levels maintained in the
7935 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007936 */
7937enum qca_wlan_vendor_attr_thermal_cmd_type {
7938 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
7939 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
7940 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
7941 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07007942 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07007943 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007944 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
7945 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007946};
7947
7948/**
7949 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
7950 * to get chip temperature by user.
7951 * enum values are used for NL attributes for data used by
7952 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
7953 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7954 */
7955enum qca_wlan_vendor_attr_thermal_get_temperature {
7956 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
7957 /* Temperature value (degree Celsius) from driver.
7958 * u32 attribute.
7959 */
7960 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
7961
7962 /* keep last */
7963 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
7964 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
7965 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
7966};
7967
7968/**
7969 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
7970 * to get configuration parameters of thermal shutdown feature. Enum values are
7971 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
7972 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7973 */
7974enum qca_wlan_vendor_attr_get_thermal_params_rsp {
7975 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
7976 /* Indicate if the thermal shutdown feature is enabled.
7977 * NLA_FLAG attribute.
7978 */
7979 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
7980 /* Indicate if the auto mode is enabled.
7981 * Enable: Driver triggers the suspend/resume action.
7982 * Disable: User space triggers the suspend/resume action.
7983 * NLA_FLAG attribute.
7984 */
7985 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
7986 /* Thermal resume threshold (degree Celsius). Issue the resume command
7987 * if the temperature value is lower than this threshold.
7988 * u16 attribute.
7989 */
7990 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
7991 /* Thermal warning threshold (degree Celsius). FW reports temperature
7992 * to driver if it's higher than this threshold.
7993 * u16 attribute.
7994 */
7995 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
7996 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
7997 * if the temperature value is higher than this threshold.
7998 * u16 attribute.
7999 */
8000 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
8001 /* FW reports temperature data periodically at this interval (ms).
8002 * u16 attribute.
8003 */
8004 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
8005
8006 /* keep last */
8007 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
8008 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
8009 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
8010};
8011
8012/**
8013 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
8014 * report thermal events from driver to user space.
8015 * enum values are used for NL attributes for data used by
8016 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
8017 */
8018enum qca_wlan_vendor_attr_thermal_event {
8019 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
8020 /* Temperature value (degree Celsius) from driver.
8021 * u32 attribute.
8022 */
8023 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
8024 /* Indication of resume completion from power save mode.
8025 * NLA_FLAG attribute.
8026 */
8027 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07008028 /* Thermal level from the driver.
8029 * u32 attribute. Possible values are defined in
8030 * enum qca_wlan_vendor_thermal_level.
8031 */
8032 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008033
8034 /* keep last */
8035 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
8036 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
8037 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
8038};
8039
8040/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008041 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8042 * to get thermal status from the driver/firmware.
8043 * enum values are used for NL attributes encapsulated inside the
8044 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8045 *
8046 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8047 * of a thermal level in Celsius. u32 size.
8048 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8049 * of a thermal level in Celsius. u32 size.
8050 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8051 * thermal level in milliseconds. u32 size.
8052 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8053 * of times the temperature crossed into the temperature range defined by the
8054 * thermal level from both higher and lower directions. u32 size.
8055 */
8056enum qca_wlan_vendor_attr_thermal_stats {
8057 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8058 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8059 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8060 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8061 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8062
8063 /* keep last */
8064 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8065 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8066 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8067};
8068
8069/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008070 * enum he_fragmentation_val - HE fragmentation support values
8071 * Indicates level of dynamic fragmentation that is supported by
8072 * a STA as a recipient.
8073 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
8074 * (HE MAC Capabilities Information field) and are used in HE Capabilities
8075 * element to advertise the support. These values are validated in the driver
8076 * to check the device capability and advertised in the HE Capabilities
8077 * element. These values are used to configure testbed device to allow the
8078 * advertised hardware capabilities to be downgraded for testing purposes.
8079 *
8080 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8081 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8082 * contained within an MPDU or S-MPDU, no support for dynamic fragments
8083 * within an A-MPDU that is not an S-MPDU.
8084 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8085 * contained within an MPDU or S-MPDU and support for up to one dynamic
8086 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
8087 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8088 * MPDU or S-MPDU.
8089 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8090 * contained within an MPDU or S-MPDU and support for multiple dynamic
8091 * fragments for each MSDU and for each A-MSDU if supported by the
8092 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8093 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8094 */
8095enum he_fragmentation_val {
8096 HE_FRAG_DISABLE,
8097 HE_FRAG_LEVEL1,
8098 HE_FRAG_LEVEL2,
8099 HE_FRAG_LEVEL3,
8100};
8101
8102/**
8103 * enum he_mcs_config - HE MCS support configuration
8104 *
8105 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8106 * These values are used in driver to configure the HE MCS map to advertise
8107 * Tx/Rx MCS map in HE capability and these values are applied for all the
8108 * streams supported by the device. To configure MCS for different bandwidths,
8109 * vendor command needs to be sent using this attribute with appropriate value.
8110 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8111 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8112 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8113 * These values are used to configure testbed device to allow the advertised
8114 * hardware capabilities to be downgraded for testing purposes. The enum values
8115 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8116 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8117 * These values are validated in the driver before setting the MCS map and
8118 * driver returns error if the input is other than these enum values.
8119 *
8120 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8121 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8122 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8123 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8124 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8125 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8126 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8127 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8128 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8129 */
8130enum he_mcs_config {
8131 HE_80_MCS0_7 = 0,
8132 HE_80_MCS0_9 = 1,
8133 HE_80_MCS0_11 = 2,
8134 HE_160_MCS0_7 = 4,
8135 HE_160_MCS0_9 = 5,
8136 HE_160_MCS0_11 = 6,
8137 HE_80P80_MCS0_7 = 8,
8138 HE_80P80_MCS0_9 = 9,
8139 HE_80P80_MCS0_11 = 10,
8140};
8141
8142/**
8143 * enum qca_wlan_ba_session_config - BA session configuration
8144 *
8145 * Indicates the configuration values for BA session configuration attribute.
8146 *
8147 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8148 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8149 */
8150enum qca_wlan_ba_session_config {
8151 QCA_WLAN_ADD_BA = 1,
8152 QCA_WLAN_DELETE_BA = 2,
8153};
8154
8155/**
8156 * enum qca_wlan_ac_type - Access category type
8157 *
8158 * Indicates the access category type value.
8159 *
8160 * @QCA_WLAN_AC_BE: BE access category
8161 * @QCA_WLAN_AC_BK: BK access category
8162 * @QCA_WLAN_AC_VI: VI access category
8163 * @QCA_WLAN_AC_VO: VO access category
8164 * @QCA_WLAN_AC_ALL: All ACs
8165 */
8166enum qca_wlan_ac_type {
8167 QCA_WLAN_AC_BE = 0,
8168 QCA_WLAN_AC_BK = 1,
8169 QCA_WLAN_AC_VI = 2,
8170 QCA_WLAN_AC_VO = 3,
8171 QCA_WLAN_AC_ALL = 4,
8172};
8173
8174/**
8175 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8176 *
8177 * Indicates the HE LTF configuration value.
8178 *
8179 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8180 * based on the GI setting
8181 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8182 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8183 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8184 */
8185enum qca_wlan_he_ltf_cfg {
8186 QCA_WLAN_HE_LTF_AUTO = 0,
8187 QCA_WLAN_HE_LTF_1X = 1,
8188 QCA_WLAN_HE_LTF_2X = 2,
8189 QCA_WLAN_HE_LTF_4X = 3,
8190};
8191
Hai Shalomc9e41a12018-07-31 14:41:42 -07008192/**
8193 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8194 *
8195 * Indicates the HE trigger frame MAC padding duration value.
8196 *
8197 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8198 * process the trigger frame.
8199 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8200 * trigger frame.
8201 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8202 * trigger frame.
8203 */
8204enum qca_wlan_he_mac_padding_dur {
8205 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8206 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8207 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8208};
8209
Hai Shalom74f70d42019-02-11 14:42:39 -08008210/**
8211 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8212 *
8213 * Indicates the HE Operating mode control channel width setting value.
8214 *
8215 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8216 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8217 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8218 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8219 */
8220enum qca_wlan_he_om_ctrl_ch_bw {
8221 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8222 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8223 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8224 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8225};
8226
8227/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008228 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8229 *
8230 * Indicates the frame types to use for keep alive data.
8231 *
8232 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8233 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8234 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8235 */
8236enum qca_wlan_keep_alive_data_type {
8237 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8238 QCA_WLAN_KEEP_ALIVE_DATA = 1,
8239 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8240};
8241
8242/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008243 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8244 * HE operating mode control transmit request. These attributes are
8245 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8246 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8247 *
8248 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8249 * indicates the maximum number of spatial streams, NSS, that the STA
8250 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8251 * and is set to NSS - 1.
8252 *
8253 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8254 * indicates the operating channel width supported by the STA for both
8255 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8256 *
8257 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8258 * indicates the all trigger based UL MU operations by the STA.
8259 * 0 - UL MU operations are enabled by the STA.
8260 * 1 - All triggered UL MU transmissions are suspended by the STA.
8261 *
8262 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8263 * indicates the maximum number of space-time streams, NSTS, that
8264 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07008265 *
8266 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8267 * combined with the UL MU Disable subfield and the recipient's setting
8268 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8269 * capabilities to determine which HE TB PPDUs are possible by the
8270 * STA to transmit.
8271 * 0 - UL MU data operations are enabled by the STA.
8272 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8273 * bit is not set, else UL MU Tx is suspended.
8274 *
Hai Shalom74f70d42019-02-11 14:42:39 -08008275 */
8276enum qca_wlan_vendor_attr_he_omi_tx {
8277 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8278 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8279 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8280 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8281 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07008282 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008283
8284 /* keep last */
8285 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8286 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8287 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8288};
8289
Hai Shalom899fcc72020-10-19 14:38:18 -07008290 /**
8291 * enum qca_wlan_vendor_phy_mode - Different PHY modes
8292 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8293 *
8294 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8295 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8296 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8297 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8298 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8299 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8300 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8301 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8302 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8303 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8304 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8305 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8306 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8307 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8308 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8309 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8310 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8311 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8312 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8313 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8314 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8315 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8316 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8317 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8318 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8319 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8320 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8321 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8322 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8323 */
8324enum qca_wlan_vendor_phy_mode {
8325 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8326 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8327 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8328 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8329 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8330 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8331 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8332 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8333 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8334 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8335 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8336 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8337 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8338 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8339 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8340 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8341 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8342 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8343 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8344 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8345 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8346 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8347 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8348 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8349 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8350 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8351 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8352 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8353 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8354};
8355
Roshan Pius3a1667e2018-07-03 15:17:14 -07008356/* Attributes for data used by
8357 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8358 */
8359enum qca_wlan_vendor_attr_wifi_test_config {
8360 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8361 /* 8-bit unsigned value to configure the driver to enable/disable
8362 * WMM feature. This attribute is used to configure testbed device.
8363 * 1-enable, 0-disable
8364 */
8365 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8366
8367 /* 8-bit unsigned value to configure the driver to accept/reject
8368 * the addba request from peer. This attribute is used to configure
8369 * the testbed device.
8370 * 1-accept addba, 0-reject addba
8371 */
8372 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8373
8374 /* 8-bit unsigned value to configure the driver to send or not to
8375 * send the addba request to peer.
8376 * This attribute is used to configure the testbed device.
8377 * 1-send addba, 0-do not send addba
8378 */
8379 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8380
8381 /* 8-bit unsigned value to indicate the HE fragmentation support.
8382 * Uses enum he_fragmentation_val values.
8383 * This attribute is used to configure the testbed device to
8384 * allow the advertised hardware capabilities to be downgraded
8385 * for testing purposes.
8386 */
8387 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8388
8389 /* 8-bit unsigned value to indicate the HE MCS support.
8390 * Uses enum he_mcs_config values.
8391 * This attribute is used to configure the testbed device to
8392 * allow the advertised hardware capabilities to be downgraded
8393 * for testing purposes.
8394 */
8395 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8396
8397 /* 8-bit unsigned value to configure the driver to allow or not to
8398 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8399 * This attribute is used to configure the testbed device.
8400 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8401 */
8402 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8403
8404 /* 8-bit unsigned value to configure the driver to add a
8405 * new BA session or delete the existing BA session for
8406 * given TID. ADDBA command uses the buffer size and TID
8407 * configuration if user specifies the values else default
8408 * value for buffer size is used for all TIDs if the TID
8409 * also not specified. For DEL_BA command TID value is
8410 * required to process the command.
8411 * Uses enum qca_wlan_ba_session_config values.
8412 * This attribute is used to configure the testbed device.
8413 */
8414 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8415
Hai Shalomce48b4a2018-09-05 11:41:35 -07008416 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07008417 * request and response frames.
8418 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07008419 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008420 */
8421 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8422
8423 /* 8-bit unsigned value to configure the buffer size in addba
8424 * request and response frames.
8425 * This attribute is used to configure the testbed device.
8426 */
8427 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8428
8429 /* 8-bit unsigned value to configure the no ack policy.
8430 * To configure no ack policy, access category value is
8431 * required to process the command.
8432 * This attribute is used to configure the testbed device.
8433 * 1 - enable no ack, 0 - disable no ack.
8434 */
8435 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8436
8437 /* 8-bit unsigned value to configure the AC for no ack policy
8438 * This attribute is used to configure the testbed device.
8439 * Uses the enum qca_wlan_ac_type values.
8440 */
8441 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8442
8443 /* 8-bit unsigned value to configure the HE LTF
8444 * This attribute is used to configure the testbed device.
8445 * Uses the enum qca_wlan_he_ltf_cfg values.
8446 */
8447 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8448
8449 /* 8-bit unsigned value to configure the tx beamformee.
8450 * This attribute is used to configure the testbed device.
8451 * 1-enable, 0-disable.
8452 */
8453 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8454
8455 /* 8-bit unsigned value to configure the tx beamformee number
8456 * of space-time streams.
8457 * This attribute is used to configure the testbed device.
8458 * The range of the value is 0 to 8.
8459 */
8460 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8461
8462 /* 8-bit unsigned value to configure the MU EDCA params for given AC
8463 * This attribute is used to configure the testbed device.
8464 * Uses the enum qca_wlan_ac_type values.
8465 */
8466 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8467
8468 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8469 * To configure MU EDCA AIFSN value, MU EDCA access category value
8470 * is required to process the command.
8471 * This attribute is used to configure the testbed device.
8472 */
8473 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8474
8475 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
8476 * given AC.
8477 * To configure MU EDCA ECW min value, MU EDCA access category value
8478 * is required to process the command.
8479 * This attribute is used to configure the testbed device.
8480 */
8481 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8482
8483 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
8484 * given AC.
8485 * To configure MU EDCA ECW max value, MU EDCA access category value
8486 * is required to process the command.
8487 * This attribute is used to configure the testbed device.
8488 */
8489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8490
8491 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
8492 * To configure MU EDCA timer value, MU EDCA access category value
8493 * is required to process the command.
8494 * This attribute is used to configure the testbed device.
8495 */
8496 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8497
Hai Shalomc9e41a12018-07-31 14:41:42 -07008498 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
8499 * duration.
8500 * This attribute is used to configure the testbed device.
8501 * Uses the enum qca_wlan_he_mac_padding_dur values.
8502 */
8503 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8504
Hai Shalomce48b4a2018-09-05 11:41:35 -07008505 /* 8-bit unsigned value to override the MU EDCA params to defaults
8506 * regardless of the AP beacon MU EDCA params. If it is enabled use
8507 * the default values else use the MU EDCA params from AP beacon.
8508 * This attribute is used to configure the testbed device.
8509 * 1-enable, 0-disable.
8510 */
8511 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8512
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008513 /* 8-bit unsigned value to configure the support for receiving
8514 * an MPDU that contains an operating mode control subfield.
8515 * This attribute is used to configure the testbed device.
8516 * 1-enable, 0-disable.
8517 */
8518 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8519
8520 /* Nested attribute values required to setup the TWT session.
8521 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8522 * information to set up the session. It contains broadcast flags,
8523 * set_up flags, trigger value, flow type, flow ID, wake interval
8524 * exponent, protection, target wake time, wake duration, wake interval
8525 * mantissa. These nested attributes are used to setup a host triggered
8526 * TWT session.
8527 */
8528 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8529
8530 /* This nested attribute is used to terminate the current TWT session.
8531 * It does not currently carry any attributes.
8532 */
8533 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8534
8535 /* This nested attribute is used to suspend the current TWT session.
8536 * It does not currently carry any attributes.
8537 */
8538 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8539
8540 /* Nested attribute values to indicate the request for resume.
8541 * This attribute is used to resume the TWT session.
8542 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8543 * parameters required to resume the TWT session.
8544 */
8545 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8546
Hai Shalom74f70d42019-02-11 14:42:39 -08008547 /* 8-bit unsigned value to set the HE operating mode control
8548 * (OM CTRL) Channel Width subfield.
8549 * The Channel Width subfield indicates the operating channel width
8550 * supported by the STA for both reception and transmission.
8551 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8552 * This setting is cleared with the
8553 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8554 * flag attribute to reset defaults.
8555 * This attribute is used to configure the testbed device.
8556 */
8557 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8558
8559 /* 8-bit unsigned value to configure the number of spatial
8560 * streams in HE operating mode control field.
8561 * This setting is cleared with the
8562 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8563 * flag attribute to reset defaults.
8564 * This attribute is used to configure the testbed device.
8565 */
8566 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8567
8568 /* Flag attribute to configure the UL MU disable bit in
8569 * HE operating mode control field.
8570 * This setting is cleared with the
8571 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8572 * flag attribute to reset defaults.
8573 * This attribute is used to configure the testbed device.
8574 */
8575 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8576
8577 /* Flag attribute to clear the previously set HE operating mode
8578 * control field configuration.
8579 * This attribute is used to configure the testbed device to reset
8580 * defaults to clear any previously set HE operating mode control
8581 * field configuration.
8582 */
8583 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8584
8585 /* 8-bit unsigned value to configure HE single user PPDU
8586 * transmission. By default this setting is disabled and it
8587 * is disabled in the reset defaults of the device configuration.
8588 * This attribute is used to configure the testbed device.
8589 * 1-enable, 0-disable
8590 */
8591 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8592
8593 /* 8-bit unsigned value to configure action frame transmission
8594 * in HE trigger based PPDU transmission.
8595 * By default this setting is disabled and it is disabled in
8596 * the reset defaults of the device configuration.
8597 * This attribute is used to configure the testbed device.
8598 * 1-enable, 0-disable
8599 */
8600 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8601
8602 /* Nested attribute to indicate HE operating mode control field
8603 * transmission. It contains operating mode control field Nss,
8604 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8605 * These nested attributes are used to send HE operating mode control
8606 * with configured values.
8607 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8608 * This attribute is used to configure the testbed device.
8609 */
8610 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8611
8612 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
8613 * support for the reception of a frame that carries an HE variant
8614 * HT Control field.
8615 * This attribute is used to configure the testbed device.
8616 * 1-enable, 0-disable
8617 */
8618 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8619
Hai Shalom021b0b52019-04-10 11:17:58 -07008620 /* 8-bit unsigned value to configure VHT support in 2.4G band.
8621 * This attribute is used to configure the testbed device.
8622 * 1-enable, 0-disable
8623 */
8624 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8625
8626 /* 8-bit unsigned value to configure HE testbed defaults.
8627 * This attribute is used to configure the testbed device.
8628 * 1-set the device HE capabilities to testbed defaults.
8629 * 0-reset the device HE capabilities to supported config.
8630 */
8631 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8632
8633 /* 8-bit unsigned value to configure TWT request support.
8634 * This attribute is used to configure the testbed device.
8635 * 1-enable, 0-disable.
8636 */
8637 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8638
Hai Shalom899fcc72020-10-19 14:38:18 -07008639 /* 8-bit unsigned value to configure protection for Management
8640 * frames when PMF is enabled for the association.
8641 * This attribute is used to configure the testbed device.
8642 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8643 */
8644 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8645
8646 /* Flag attribute to inject Disassociation frame to the connected AP.
8647 * This attribute is used to configure the testbed device.
8648 */
8649 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8650
8651 /* 8-bit unsigned value to configure an override for the RSNXE Used
8652 * subfield in the MIC control field of the FTE in FT Reassociation
8653 * Request frame.
8654 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8655 * This attribute is used to configure the testbed device.
8656 * This attribute can be configured only when STA is in associated state
8657 * and the configuration is valid until the disconnection.
8658 */
8659 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8660
8661 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8662 * Switch Announcement) when STA is in connected state.
8663 * 0 - Default behavior, 1 - Ignore CSA.
8664 * This attribute is used to configure the testbed device.
8665 * This attribute can be configured only when STA is in associated state
8666 * and the configuration is valid until the disconnection.
8667 */
8668 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8669
8670 /* Nested attribute values required to configure OCI (Operating Channel
8671 * Information). Attributes defined in enum
8672 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8673 * This attribute is used to configure the testbed device.
8674 * This attribute can be configured only when STA is in associated state
8675 * and the configuration is valid until the disconnection.
8676 */
8677 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8678
8679 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
8680 * Query timeout. If this configuration is enabled STA shall not send
8681 * Deauthentication frmae when SA Query times out (mainly, after a
8682 * channel switch when OCV is enabled).
8683 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8684 * This attribute is used to configure the testbed device.
8685 * This attribute can be configured only when STA is in associated state
8686 * and the configuration is valid until the disconnection.
8687 */
8688 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8689
8690 /* 8-bit unsigned value to configure the driver/firmware to start or
8691 * stop transmitting FILS discovery frames.
8692 * 0 - Stop transmitting FILS discovery frames
8693 * 1 - Start transmitting FILS discovery frames
8694 * This attribute is used to configure the testbed device.
8695 * This attribute can be configured only in AP mode and the
8696 * configuration is valid until AP restart.
8697 */
8698 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8699
Hai Shalom60840252021-02-19 19:02:11 -08008700 /* 8-bit unsigned value to configure the driver/firmware to enable or
8701 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8702 * information field.
8703 * 0 - Disable full bandwidth UL MU-MIMO subfield
8704 * 1 - Enable full bandwidth UL MU-MIMO subfield
8705 * This attribute is used to configure the testbed device.
8706 */
8707 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8708
8709 /* 16-bit unsigned value to configure the driver with a specific BSS
8710 * max idle period to advertise in the BSS Max Idle Period element
8711 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8712 * This attribute is used to configure the testbed device.
8713 */
8714 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8715
8716 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
8717 * for data transmission.
8718 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8719 * This attribute is used to configure the testbed device.
8720 */
8721 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8722
8723 /* 8-bit unsigned value to configure the driver to disable data and
8724 * management response frame transmission to test the BSS max idle
8725 * feature.
8726 * 0 - Default behavior, 1 - Disable data and management response Tx.
8727 * This attribute is used to configure the testbed device.
8728 */
8729 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8730
8731 /* 8-bit unsigned value to configure the driver/firmware to enable or
8732 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8733 * information field.
8734 * 0 - Disable Punctured Preamble Rx subfield
8735 * 1 - Enable Punctured Preamble Rx subfield
8736 * This attribute is used to configure the testbed device.
8737 */
8738 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8739
Hai Shaloma20dcd72022-02-04 13:43:00 -08008740 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8741 * requirement mismatch for 6 GHz connection.
8742 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8743 * This attribute is used to configure the testbed device.
8744 */
8745 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8746
8747 /* 8-bit unsigned value to configure the driver to allow 6 GHz
8748 * connection with all security modes.
8749 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8750 * modes.
8751 * This attribute is used for testing purposes.
8752 */
8753 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8754
8755 /* 8-bit unsigned value to configure the driver to transmit data with
8756 * ER SU PPDU type.
8757 *
8758 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8759 * This attribute is used for testing purposes.
8760 */
8761 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8762
8763 /* 8-bit unsigned value to configure the driver to use Data or
8764 * Management frame type for keep alive data.
8765 * Uses enum qca_wlan_keep_alive_data_type values.
8766 *
8767 * This attribute is used for testing purposes.
8768 */
8769 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8770
8771 /* 8-bit unsigned value to configure the driver to use scan request
8772 * BSSID value in Probe Request frame RA(A1) during the scan. The
8773 * driver saves this configuration and applies this setting to all user
8774 * space scan requests until the setting is cleared. If this
8775 * configuration is set, the driver uses the BSSID value from the scan
8776 * request to set the RA(A1) in the Probe Request frames during the
8777 * scan.
8778 *
8779 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
8780 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
8781 * This attribute is used for testing purposes.
8782 */
8783 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
8784
8785 /* 8-bit unsigned value to configure the driver to enable/disable the
8786 * BSS max idle period support.
8787 *
8788 * 0 - Disable the BSS max idle support.
8789 * 1 - Enable the BSS max idle support.
8790 * This attribute is used for testing purposes.
8791 */
8792 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
8793
8794 /* 8-bit unsigned value to configure the driver/firmware to enable or
8795 * disable Rx control frame to MultiBSS subfield in the HE MAC
8796 * capabilities information field.
8797 * 0 - Disable Rx control frame to MultiBSS subfield
8798 * 1 - Enable Rx control frame to MultiBSS subfield
8799 * This attribute is used to configure the testbed device.
8800 */
8801 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
8802
8803 /* 8-bit unsigned value to configure the driver/firmware to enable or
8804 * disable Broadcast TWT support subfield in the HE MAC capabilities
8805 * information field.
8806 * 0 - Disable Broadcast TWT support subfield
8807 * 1 - Enable Broadcast TWT support subfield
8808 * This attribute is used to configure the testbed device.
8809 */
8810 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
8811
Sunil Ravia04bd252022-05-02 22:54:18 -07008812 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
8813 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
8814 * to 1, and if the firmware supports this capability too, the STA
8815 * advertises this capability to the AP over Association Request frame.
8816 * This attribute will not have any effect on legacy devices with no
8817 * IEEE 802.11be support.
8818 * 0 - Default behavior
8819 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
8820 * This attribute is used to configure the testbed device.
8821 */
8822 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
8823
Sunil Ravi89eba102022-09-13 21:04:37 -07008824 /* 8-bit unsigned value to configure the driver to enable/disable the
8825 * periodic sounding for Tx beamformer functionality. The default
8826 * behavior uses algorithm to do sounding based on packet stats.
8827 *
8828 * 0 - Default behavior.
8829 * 1 - Enable the periodic sounding for Tx beamformer.
8830 * This attribute is used for testing purposes.
8831 */
8832 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
8833
Roshan Pius3a1667e2018-07-03 15:17:14 -07008834 /* keep last */
8835 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
8836 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
8837 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
8838};
8839
8840/**
Hai Shalom899fcc72020-10-19 14:38:18 -07008841 * enum qca_wlan_twt_operation - Operation of the config TWT request
8842 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08008843 * The response for the respective operations can be either synchronous or
8844 * asynchronous (wherever specified). If synchronous, the response to this
8845 * operation is obtained in the corresponding vendor command reply to the user
8846 * space. For the asynchronous case the response is obtained as an event with
8847 * the same operation type.
8848 *
8849 * Drivers shall support either of these modes but not both simultaneously.
8850 * This support for asynchronous mode is advertised through the flag
8851 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8852 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07008853 *
8854 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8855 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008856 * qca_wlan_vendor_attr_twt_setup. Depending upon the
8857 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8858 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008859 *
8860 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8861 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008862 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008863 *
8864 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8865 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8866 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008867 * This terminate can either get triggered by the user space or can as well be
8868 * a notification from the firmware if it initiates a terminate.
8869 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8870 * the request from user space can either be a synchronous or asynchronous
8871 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008872 *
8873 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8874 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8875 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008876 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8877 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008878 *
8879 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8880 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8881 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008882 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8883 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8884 * capability, this is either a synchronous or asynchronous operation.
8885 *
8886 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8887 * combination of suspend and resume in a single request. Required parameters
8888 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8889 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8890 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8891 * capability, this is either a synchronous or asynchronous operation.
8892 *
8893 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8894 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8895 * session is setup. It's a synchronous operation.
8896 *
8897 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8898 * Valid only after the TWT session is setup. It's a synchronous operation.
8899 *
8900 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8901 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8902 * operation.
8903 *
Sunil Ravia04bd252022-05-02 22:54:18 -07008904 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -08008905 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008906 *
8907 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
8908 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
8909 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -07008910 *
8911 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
8912 * related information for example TWT required bit in AP capabilities etc.
8913 * The reason for the notification is sent using
8914 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -07008915 */
8916enum qca_wlan_twt_operation {
8917 QCA_WLAN_TWT_SET = 0,
8918 QCA_WLAN_TWT_GET = 1,
8919 QCA_WLAN_TWT_TERMINATE = 2,
8920 QCA_WLAN_TWT_SUSPEND = 3,
8921 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08008922 QCA_WLAN_TWT_NUDGE = 5,
8923 QCA_WLAN_TWT_GET_STATS = 6,
8924 QCA_WLAN_TWT_CLEAR_STATS = 7,
8925 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8926 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008927 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -07008928 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07008929};
8930
8931/**
8932 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8933 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8934 *
8935 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
8936 * operation of this request. Possible values are defined in enum
8937 * qca_wlan_twt_operation. The parameters for the respective operation is
8938 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8939 *
8940 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8941 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08008942 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008943 * enum qca_wlan_vendor_attr_twt_set_param, or
8944 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -07008945 *
8946 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
8947 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
8948 * The values used by this attribute are defined in
8949 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -07008950 */
8951enum qca_wlan_vendor_attr_config_twt {
8952 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8953 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8954 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -07008955 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -07008956
8957 /* keep last */
8958 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8959 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8960 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8961};
8962
8963/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008964 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
8965 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8966 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
8967 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
8968 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
8969 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
8970 * statistics of an unassociated station by specifying the MAC address in
8971 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
8972 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
8973 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
8974 * the statistics of all unassociated stations by specifying the Broadcast MAC
8975 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
8976 * above procedure. In the response, driver shall specify statistics
8977 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
8978 */
8979enum qca_wlan_vendor_attr_bss_filter {
8980 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
8981 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
8982 /* Other BSS filter type, unsigned 8 bit value. One of the values
8983 * in enum qca_wlan_vendor_bss_filter_type.
8984 */
8985 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
8986 /* Other BSS filter action, unsigned 8 bit value. One of the values
8987 * in enum qca_wlan_vendor_bss_filter_action.
8988 */
8989 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
8990 /* Array of nested attributes where each entry is the statistics
8991 * information of the specified station that belong to another BSS.
8992 * Attributes for each entry are taken from enum
8993 * qca_wlan_vendor_bss_filter_sta_stats.
8994 * Other BSS station configured in
8995 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
8996 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
8997 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
8998 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
8999 */
9000 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
9001
9002 /* keep last */
9003 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
9004 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
9005 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
9006};
9007
9008/**
9009 * enum qca_wlan_vendor_bss_filter_type - Type of
9010 * filter used in other BSS filter operations. Used by the vendor command
9011 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9012 *
9013 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
9014 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
9015 */
9016enum qca_wlan_vendor_bss_filter_type {
9017 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
9018 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
9019};
9020
9021/**
9022 * enum qca_wlan_vendor_bss_filter_action - Type of
9023 * action in other BSS filter operations. Used by the vendor command
9024 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9025 *
9026 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
9027 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
9028 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
9029 */
9030enum qca_wlan_vendor_bss_filter_action {
9031 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
9032 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
9033 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
9034};
9035
9036/**
9037 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
9038 * the statistics of a specific unassociated station belonging to another BSS.
9039 * The statistics provides information of the unassociated station
9040 * filtered by other BSS operation - such as MAC, signal value.
9041 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9042 *
9043 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
9044 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
9045 * of the station. Unsigned 8 bit number containing RSSI.
9046 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
9047 * driver for the last received RSSI. Unsigned 64 bit number containing
9048 * nanoseconds from the boottime.
9049 */
9050enum qca_wlan_vendor_bss_filter_sta_stats {
9051 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
9052 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
9053 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
9054 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
9055
9056 /* keep last */
9057 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
9058 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
9059 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
9060};
9061
Hai Shalomce48b4a2018-09-05 11:41:35 -07009062/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9063 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9064 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9065 */
9066enum qca_wlan_nan_ext_subcmd_type {
9067 /* Subcmd of type NAN Enable Request */
9068 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9069 /* Subcmd of type NAN Disable Request */
9070 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9071};
9072
9073/**
9074 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9075 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9076 */
9077enum qca_wlan_vendor_attr_nan_params {
9078 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9079 /* Carries NAN command for firmware component. Every vendor command
9080 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9081 * payload containing the NAN command. NLA_BINARY attribute.
9082 */
9083 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9084 /* Indicates the type of NAN command sent with
9085 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9086 * describes the possible range of values. This attribute is mandatory
9087 * if the command being issued is either
9088 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9089 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9090 */
9091 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9092 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9093 * band. This attribute is mandatory when command type is
9094 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9095 */
9096 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9097 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9098 * band. This attribute is optional and should be included when command
9099 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9100 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9101 */
9102 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9103
9104 /* keep last */
9105 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9106 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9107 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9108};
9109
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009110/**
Hai Shalom60840252021-02-19 19:02:11 -08009111 * qca_wlan_twt_setup_state: Represents the TWT session states.
9112 *
9113 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9114 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9115 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9116 */
9117enum qca_wlan_twt_setup_state {
9118 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9119 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9120 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9121};
9122
9123/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009124 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9125 * TWT (Target Wake Time) setup request. These attributes are sent as part of
9126 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07009127 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9128 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009129 *
9130 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9131 * Disable (flag attribute not present) - Individual TWT
9132 * Enable (flag attribute present) - Broadcast TWT.
9133 * Individual means the session is between the STA and the AP.
9134 * This session is established using a separate negotiation between
9135 * STA and AP.
9136 * Broadcast means the session is across multiple STAs and an AP. The
9137 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009138 * This is used in
9139 * 1. TWT SET Request and Response
9140 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009141 *
9142 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9143 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07009144 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009145 *
9146 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9147 * Enable (flag attribute present) - TWT with trigger support.
9148 * Disable (flag attribute not present) - TWT without trigger support.
9149 * Trigger means the AP will send the trigger frame to allow STA to send data.
9150 * Without trigger, the STA will wait for the MU EDCA timer before
9151 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07009152 * This is used in
9153 * 1. TWT SET Request and Response
9154 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009155 *
9156 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9157 * 0 - Announced TWT - In this mode, STA may skip few service periods to
9158 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9159 * NULL frame to AP.
9160 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009161 * This is a required parameter for
9162 * 1. TWT SET Request and Response
9163 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009164 *
9165 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9166 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07009167 * If not provided then dialog ID will be set to zero.
9168 * This is an optional parameter for
9169 * 1. TWT SET Request and Response
9170 * 2. TWT GET Request and Response
9171 * 3. TWT TERMINATE Request and Response
9172 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08009173 * Flow ID values from 0 to 254 represent a single TWT session
9174 * Flow ID value of 255 represents all TWT sessions for the following
9175 * 1. TWT TERMINATE Request and Response
9176 * 2. TWT SUSPEND Request and Response
9177 * 4. TWT CLEAR STATISTICS request
9178 * 5. TWT GET STATISTICS request and response
9179 * If an invalid dialog ID is provided, status
9180 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009181 *
9182 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9183 * This attribute (exp) is used along with the mantissa to derive the
9184 * wake interval using the following formula:
9185 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9186 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009187 * This is a required parameter for
9188 * 1. TWT SET Request and Response
9189 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009190 *
9191 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9192 * Enable (flag attribute present) - Protection required.
9193 * Disable (flag attribute not present) - Protection not required.
9194 * If protection is enabled, then the AP will use protection
9195 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07009196 * This is used in
9197 * 1. TWT SET Request and Response
9198 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009199 *
9200 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9201 * This attribute is used as the SP offset which is the offset from
9202 * TSF after which the wake happens. The units are in microseconds. If
9203 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07009204 * This is an optional parameter for
9205 * 1. TWT SET Request and Response
9206 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009207 *
9208 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07009209 * This is the duration of the service period. This is specified as
9210 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9211 * This is a required parameter for
9212 * 1. TWT SET Request and Response
9213 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009214 *
9215 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9216 * This attribute is used to configure wake interval mantissa.
9217 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07009218 * This is a required parameter for
9219 * 1. TWT SET Request and Response
9220 * 2. TWT GET Response
9221 *
9222 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9223 * This field is applicable for TWT response only.
9224 * This contains status values in enum qca_wlan_vendor_twt_status
9225 * and is passed to the userspace. This is used in TWT SET operation.
9226 * This is a required parameter for
9227 * 1. TWT SET Response
9228 * 2. TWT TERMINATE Response
9229 * 3. TWT SUSPEND Response
9230 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08009231 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07009232 *
9233 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9234 * This field is applicable for TWT response only.
9235 * This field contains response type from the TWT responder and is
9236 * passed to the userspace. The values for this field are defined in
9237 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9238 * response.
9239 *
9240 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -08009241 * In TWT setup command this field contains absolute TSF that will
9242 * be used by TWT requester during setup.
9243 * In TWT response this field contains absolute TSF value of the
9244 * wake time received from the TWT responder and is passed to
9245 * the userspace.
9246 * This is an optional parameter for
9247 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -07009248 * This is a required parameter for
9249 * 1. TWT SET Response
9250 * 2. TWT GET Response
9251 *
9252 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9253 * Enable (flag attribute present) - Indicates that the TWT responder
9254 * supports reception of TWT information frame from the TWT requestor.
9255 * Disable (flag attribute not present) - Indicates that the responder
9256 * doesn't support reception of TWT information frame from requestor.
9257 * This is used in
9258 * 1. TWT SET Response
9259 * 2. TWT GET Response
9260 *
9261 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9262 * Represents the MAC address of the peer for which the TWT session
9263 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -08009264 * client.
9265 * In AP mode, this is a required parameter in response for
9266 * 1. TWT SET
9267 * 2. TWT GET
9268 * 3. TWT TERMINATE
9269 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -07009270 * In STA mode, this is an optional parameter in request and response for
9271 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009272 * In AP mode, this is a required parameter in request for
9273 * 1. TWT GET
9274 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -08009275 *
9276 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9277 * Minimum tolerance limit of wake interval parameter in microseconds.
9278 *
9279 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9280 * Maximum tolerance limit of wake interval parameter in microseconds.
9281 *
9282 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9283 * Minimum tolerance limit of wake duration parameter in microseconds.
9284 *
9285 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9286 * Maximum tolerance limit of wake duration parameter in microseconds.
9287 *
9288 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9289 * TWT state for the given dialog id. The values for this are represented
9290 * by enum qca_wlan_twt_setup_state.
9291 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009292 *
9293 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9294 * This attribute is used to configure wake interval mantissa.
9295 * The unit is microseconds. This attribute, when specified, takes
9296 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9297 * This parameter is used for
9298 * 1. TWT SET Request and Response
9299 * 2. TWT GET Response
9300 *
9301 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9302 * This attribute is used to configure Broadcast TWT ID.
9303 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9304 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9305 * This parameter is used for
9306 * 1. TWT SET Request
9307 * 2. TWT TERMINATE Request
9308 *
9309 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9310 * This attribute is used to configure Broadcast TWT recommendation.
9311 * The Broadcast TWT Recommendation subfield contains a value that indicates
9312 * recommendations on the types of frames that are transmitted by TWT
9313 * scheduled STAs and scheduling AP during the broadcast TWT SP.
9314 * The allowed values are 0 - 3.
9315 * This parameter is used for
9316 * 1. TWT SET Request
9317 *
9318 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9319 * This attribute is used to configure Broadcast TWT Persistence.
9320 * The Broadcast TWT Persistence subfield indicates the number of
9321 * TBTTs during which the Broadcast TWT SPs corresponding to this
9322 * broadcast TWT Parameter set are present. The number of beacon intervals
9323 * during which the Broadcast TWT SPs are present is equal to the value in the
9324 * Broadcast TWT Persistence subfield plus 1 except that the value 255
9325 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9326 * This parameter is used for
9327 * 1. TWT SET Request
9328 *
9329 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9330 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9331 * from TWT response frame.
9332 * This parameter is used for
9333 * 1. TWT SET Response
9334 * 2. TWT GET Response
9335 *
9336 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9337 * This attribute is used to configure the announce timeout value (in us) in
9338 * the firmware. This timeout value is only applicable for the announced TWT. If
9339 * the timeout value is non-zero the firmware waits up to the timeout value to
9340 * use Data frame as an announcement frame. If the timeout value is 0 the
9341 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9342 * start. The default value in the firmware is 0.
9343 * This parameter is used for
9344 * 1. TWT SET Request
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009345 */
9346enum qca_wlan_vendor_attr_twt_setup {
9347 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9348 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9349 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9350 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9351 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9352 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9353 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9354 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9355 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9356 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9357 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9358
Hai Shalom899fcc72020-10-19 14:38:18 -07009359 /* TWT Response only attributes */
9360 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9361 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9362 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9363 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9364
9365 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08009366 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9367 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9368 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9369 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9370 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07009371
Hai Shaloma20dcd72022-02-04 13:43:00 -08009372 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9373
9374 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9375 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9376 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9377
9378 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9379 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9380
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009381 /* keep last */
9382 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9383 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9384 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9385};
9386
9387/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009388 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9389 * TWT operation
9390 *
9391 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9392 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9393 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9394 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9395 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9396 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9397 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9398 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9399 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9400 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9401 * request/response frame
9402 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9403 * frame
9404 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9405 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9406 * unknown reason
9407 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9408 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08009409 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9410 * invalid IE in the received TWT frame
9411 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9412 * the responder are not in the specified range
9413 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9414 * session due to request from the responder. Used on the TWT_TERMINATE
9415 * notification from the firmware.
9416 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9417 * session due to roaming. Used on the TWT_TERMINATE notification from the
9418 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009419 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9420 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9421 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9422 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9423 * request due to roaming in progress.
9424 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9425 * setup request due to channel switch in progress.
9426 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9427 * request due to scan in progress.
9428 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9429 * terminate an existing TWT session on power save exit request from userspace.
9430 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -07009431 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9432 * required bit in its capabilities.
9433 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9434 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -07009435 */
9436enum qca_wlan_vendor_twt_status {
9437 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9438 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9439 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9440 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9441 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9442 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9443 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9444 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9445 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9446 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9447 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9448 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9449 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9450 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08009451 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9452 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9453 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9454 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009455 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9456 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9457 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9458 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9459 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -07009460 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9461 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -07009462};
9463
9464/**
9465 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009466 * TWT (Target Wake Time) resume request. These attributes are sent as part of
9467 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07009468 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9469 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009470 *
9471 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07009472 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9473 * These attributes are used as the SP offset which is the offset from TSF after
9474 * which the wake happens. The units are in microseconds. Please note that
9475 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9476 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9477 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9478 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009479 *
9480 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9481 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07009482 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9483 * and 4 for 64 bits.
9484 *
9485 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9486 * Flow ID is the unique identifier for each TWT session. This attribute
9487 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08009488 * Flow ID values from 0 to 254 represent a single TWT session
9489 * Flow ID value of 255 represents all TWT sessions.
9490 * If an invalid dialog id is provided, status
9491 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07009492 *
9493 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9494 * Represents the MAC address of the peer to which TWT Resume is
9495 * being sent. This is used in AP mode to represent the respective
9496 * client and is a required parameter. In STA mode, this is an optional
9497 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009498 */
9499enum qca_wlan_vendor_attr_twt_resume {
9500 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9501 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9502 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009503 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9504 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9505 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009506
9507 /* keep last */
9508 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9509 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9510 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9511};
9512
9513/**
Hai Shalom60840252021-02-19 19:02:11 -08009514 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9515 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9516 * and resume in a single request. These attributes are sent as part of
9517 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9518 *
9519 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9520 * Flow ID is the unique identifier for each TWT session. This attribute
9521 * represents the respective TWT session to suspend and resume.
9522 * Flow ID values from 0 to 254 represent a single TWT session
9523 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9524 * and response.
9525 * If an invalid dialog id is provided, status
9526 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9527 *
9528 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9529 * This attribute is used as the SP offset which is the offset from
9530 * TSF after which the wake happens. The units are in microseconds.
9531 *
9532 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9533 * This attribute represents the next TWT subfield size.
9534 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9535 * and 4 for 64 bits.
9536 *
9537 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9538 * Represents the MAC address of the peer to which TWT Suspend and Resume is
9539 * being sent. This is used in AP mode to represent the respective
9540 * client and is a required parameter. In STA mode, this is an optional
9541 * parameter.
9542 *
9543 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9544 * This field contains absolute TSF value of the time at which the TWT
9545 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -07009546 *
9547 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9548 * This field will be used when device supports Flexible TWT.
9549 * This field contains an offset value by which to shift the starting time
9550 * of the next service period. The value of offset can be negative or positive.
9551 * If provided, this attribute will override
9552 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
9553 *
Hai Shalom60840252021-02-19 19:02:11 -08009554 */
9555enum qca_wlan_vendor_attr_twt_nudge {
9556 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9557 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9558 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9559 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9560 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9561 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -07009562 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Hai Shalom60840252021-02-19 19:02:11 -08009563
9564 /* keep last */
9565 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9566 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9567 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9568};
9569
9570/**
9571 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9572 * TWT (Target Wake Time) get statistics and clear statistics request.
9573 * These attributes are sent as part of
9574 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9575 *
9576 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9577 * Flow ID is the unique identifier for each TWT session. This attribute
9578 * represents the respective TWT session for get and clear TWT statistics.
9579 * Flow ID values from 0 to 254 represent a single TWT session
9580 * Flow ID value of 255 represents all TWT sessions in
9581 * 1) TWT GET STATISTICS request and response
9582 * 2) TWT CLEAR STATISTICS request
9583 *
9584 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9585 * Represents the MAC address of the peer for which TWT Statistics
9586 * is required.
9587 * In AP mode this is used to represent the respective
9588 * client and is a required parameter for
9589 * 1) TWT GET STATISTICS request and response
9590 * 2) TWT CLEAR STATISTICS request and response
9591 * In STA mode, this is an optional parameter.
9592 *
9593 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9594 * This is the duration of the service period in microseconds.
9595 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9596 *
9597 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9598 * Average of the actual wake duration observed so far. Unit is microseconds.
9599 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9600 *
9601 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9602 * The number of TWT service periods elapsed so far.
9603 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9604 *
9605 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9606 * This is the minimum value of the wake duration observed across
9607 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9608 * microseconds.
9609 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9610 *
9611 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9612 * This is the maximum value of wake duration observed across
9613 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9614 * microseconds.
9615 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9616 *
9617 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9618 * Average number of MPDUs transmitted successfully across
9619 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9620 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9621 *
9622 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9623 * Average number of MPDUs received successfully across
9624 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9625 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9626 *
9627 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9628 * Average number of bytes transmitted successfully across
9629 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9630 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9631 *
9632 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
9633 * Average number of bytes received successfully across
9634 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9635 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9636 *
9637 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9638 * Status of the TWT GET STATISTICS request.
9639 * This contains status values in enum qca_wlan_vendor_twt_status
9640 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9641 */
9642enum qca_wlan_vendor_attr_twt_stats {
9643 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9644 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9645 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9646 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9647 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9648 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9649 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9650 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9651 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9652 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9653 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9654 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9655 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9656
9657 /* keep last */
9658 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9659 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9660 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9661};
9662
9663/**
9664 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
9665 * supported by the device and the peer.
9666 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9667 *
9668 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9669 * TWT non-scheduling STA. This capability is advertised in the HE
9670 * Capability/Extended Capabilities information element in the
9671 * Association Request frame by the device.
9672 *
9673 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
9674 * the TWT scheduling AP. This capability is advertised in the Extended
9675 * Capabilities/HE Capabilities information element.
9676 *
9677 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
9678 * for the broadcast TWT functionality. On the responder side, this indicates
9679 * support for the role of broadcast TWT scheduling functionality. This
9680 * capability is advertised in the HE Capabilities information element.
9681 *
9682 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
9683 * This capability is advertised in the HE Capabilities information element.
9684 *
9685 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9686 * that it mandates the associated HE STAs to support TWT. This capability is
9687 * advertised by AP in the HE Operation Parameters field of the HE Operation
9688 * information element.
9689 */
9690enum qca_wlan_twt_capa {
9691 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9692 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9693 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9694 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
9695 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
9696};
9697
9698/**
9699 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
9700 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9701 * operation.
9702 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9703 * Represents the MAC address of the peer for which the TWT capabilities
9704 * are being queried. This is used in AP mode to represent the respective
9705 * client. In STA mode, this is an optional parameter.
9706 *
9707 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9708 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9709 * enum qca_wlan_twt_capa.
9710 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9711 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9712 * enum qca_wlan_twt_capa.
9713 */
9714enum qca_wlan_vendor_attr_twt_capability {
9715 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9716 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9717 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9718 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9719
9720 /* keep last */
9721 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9722 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9723 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9724};
9725
9726/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009727 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9728 * TWT (Target Wake Time) related parameters. It is used when
9729 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9730 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9731 *
9732 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9733 * This attribute configures AC parameters to be used for all TWT
9734 * sessions in AP mode.
9735 * Uses the enum qca_wlan_ac_type values.
9736 */
9737enum qca_wlan_vendor_attr_twt_set_param {
9738 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9739 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9740
9741 /* keep last */
9742 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9743 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9744 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9745};
9746
9747/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009748 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9749 * the TWT responder
9750 *
9751 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9752 * parameters that are different from TWT requesting STA suggested
9753 * or demanded TWT parameters
9754 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9755 * parameters that are different from TWT requesting STA TWT suggested
9756 * or demanded parameters
9757 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9758 * setup
9759 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9760 * setup.
9761 */
9762enum qca_wlan_vendor_twt_setup_resp_type {
9763 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9764 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9765 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9766 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9767};
9768
9769/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009770 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9771 * Represents the setup type being requested for TWT.
9772 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9773 * parameters but relying on AP to fill the parameters during the negotiation.
9774 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9775 * values which the AP may accept or AP may provide alternative parameters
9776 * which the STA may accept.
9777 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9778 * alternate parameters than the requested ones.
9779 */
9780enum qca_wlan_vendor_twt_setup_req_type {
9781 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9782 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9783 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9784};
9785
9786/**
9787 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
9788 *
9789 * Indicates the type of roam scan event sent by firmware/driver.
9790 *
9791 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
9792 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
9793 */
9794enum qca_wlan_roam_scan_event_type {
9795 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
9796 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
9797};
9798
9799/**
9800 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
9801 *
9802 * Indicates the reason for triggering roam scan by firmware/driver.
9803 *
9804 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
9805 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
9806 */
9807enum qca_wlan_roam_scan_trigger_reason {
9808 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
9809 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
9810};
9811
9812/**
9813 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
9814 * roam scan related details from driver/firmware to user space. enum values
9815 * are used for NL attributes sent with
9816 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
9817 */
9818enum qca_wlan_vendor_attr_roam_scan {
9819 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
9820 /* Encapsulates type of roam scan event being reported. enum
9821 * qca_wlan_roam_scan_event_type describes the possible range of
9822 * values. u32 attribute.
9823 */
9824 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
9825 /* Encapsulates reason for triggering roam scan. enum
9826 * qca_wlan_roam_scan_trigger_reason describes the possible range of
9827 * values. u32 attribute.
9828 */
9829 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
9830
9831 /* keep last */
9832 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
9833 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
9834 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
9835};
9836
9837/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009838 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
9839 * transport modes and is used by the attribute
9840 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
9841 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9842 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
9843 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
9844 * data. The data shall be encapsulated within
9845 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
9846 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
9847 */
9848enum qca_wlan_vendor_cfr_data_transport_modes {
9849 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
9850 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
9851};
9852
9853/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009854 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
9855 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
9856 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -07009857 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
9858 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
9859 * with phase
9860 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009861 */
9862enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009863 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -07009864 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
9865 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
9866};
9867
9868/**
9869 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
9870 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
9871 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
9872 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
9873 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
9874 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
9875 * is provided by one or more of below attributes:
9876 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
9877 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
9878 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
9879 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
9880 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
9881 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
9882 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9883 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
9884 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
9885 */
9886enum qca_wlan_vendor_cfr_capture_type {
9887 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
9888 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
9889 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
9890 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
9891 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
9892 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009893};
9894
9895/**
9896 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
9897 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
9898 * Channel Frequency Response capture parameters and enable periodic CFR
9899 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -07009900 *
9901 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
9902 * MAC address of peer. This is for CFR version 1 only.
9903 *
9904 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
9905 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
9906 * capture. If this attribute is not present, peer CFR capture is disabled.
9907 *
9908 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
9909 * BW of measurement, attribute uses the values in enum nl80211_chan_width
9910 * Supported values: 20, 40, 80, 80+80, 160.
9911 * Note that all targets may not support all bandwidths.
9912 * This attribute is mandatory for version 1 if attribute
9913 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9914 *
9915 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
9916 * Periodicity of CFR measurement in milliseconds.
9917 * Periodicity should be a multiple of Base timer.
9918 * Current Base timer value supported is 10 milliseconds (default).
9919 * 0 for one shot capture.
9920 * This attribute is mandatory for version 1 if attribute
9921 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9922 *
9923 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
9924 * Method used to capture Channel Frequency Response.
9925 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
9926 * This attribute is mandatory for version 1 if attribute
9927 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9928 *
9929 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
9930 * Enable periodic CFR capture.
9931 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
9932 * If this attribute is not present, periodic CFR capture is disabled.
9933 *
9934 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
9935 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
9936 * can't be enabled at same time. This attribute is mandatory if target
9937 * support both versions and use one of them.
9938 *
9939 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
9940 * This attribute is mandatory for version 2 if
9941 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
9942 * Bits 15:0 bitfield indicates which group is to be enabled.
9943 * Bits 31:16 Reserved for future use.
9944 *
9945 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
9946 * CFR capture duration in microsecond. This attribute is mandatory for
9947 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
9948 *
9949 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
9950 * CFR capture interval in microsecond. This attribute is mandatory for
9951 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
9952 *
9953 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
9954 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
9955 * This attribute is mandatory for version 2.
9956 *
9957 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
9958 * Bitfield indicating which user in the current UL MU transmissions are
9959 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
9960 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
9961 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
9962 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
9963 * reserved for future use. This is for CFR version 2 only.
9964 *
9965 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
9966 * Indicates the number of consecutive RX frames to be skipped before CFR
9967 * capture is enabled again. This is for CFR version 2 only.
9968 *
9969 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
9970 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
9971 *
9972 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
9973 * the following group attributes:
9974 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
9975 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
9976 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
9977 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
9978 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
9979 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
9980 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
9981 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
9982 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
9983 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9984 *
9985 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
9986 * Target supports multiple groups for some configurations. The group number
9987 * can be any value between 0 and 15. This is for CFR version 2 only.
9988 *
9989 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
9990 * Transmitter address which is used to filter frames. This MAC address takes
9991 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
9992 * version 2 only.
9993 *
9994 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
9995 * Receiver address which is used to filter frames. This MAC address takes
9996 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
9997 * version 2 only.
9998 *
9999 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10000 * Mask of transmitter address which is used to filter frames. This is for CFR
10001 * version 2 only.
10002 *
10003 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10004 * Mask of receiver address which is used to filter frames. This is for CFR
10005 * version 2 only.
10006 *
10007 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10008 * Indicates frames with a specific NSS will be filtered for CFR capture.
10009 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
10010 * capture to be done for frames matching the NSS specified within this bitmask.
10011 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
10012 * bit 0 : NSS 1
10013 * bit 1 : NSS 2
10014 * ...
10015 * bit 7 : NSS 8
10016 *
10017 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10018 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
10019 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
10020 * capture to be done for frames matching the bandwidths specified within this
10021 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
10022 * numerated in enum nl80211_band (although not all bands may be supported
10023 * by a given device).
10024 *
10025 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10026 * Management frames matching the subtype filter categories will be filtered in
10027 * by MAC for CFR capture. This is a bitmask in which each bit represents the
10028 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
10029 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
10030 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
10031 *
10032 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10033 * Control frames matching the subtype filter categories will be filtered in by
10034 * MAC for CFR capture. This is a bitmask in which each bit represents the
10035 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
10036 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10037 *
10038 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10039 * Data frames matching the subtype filter categories will be filtered in by
10040 * MAC for CFR capture. This is a bitmask in which each bit represents the
10041 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
10042 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010043 *
10044 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10045 * Userspace can use this attribute to specify the driver about which transport
10046 * mode shall be used by the driver to send CFR data to userspace. Uses values
10047 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10048 * not present, the driver shall use the default transport mechanism which is
10049 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10050 *
10051 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10052 * Userspace can use this attribute to specify the nl port id of the application
10053 * which receives the CFR data and processes it further so that the drivers can
10054 * unicast the netlink events to a specific application. Optionally included
10055 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10056 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10057 * shall multicast the netlink events when this attribute is not included.
10058 *
10059 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10060 * This attribute will be used by the driver to encapsulate and send CFR data
10061 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10062 * asynchronous event when the driver is configured to send CFR data using
10063 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010064 */
10065enum qca_wlan_vendor_peer_cfr_capture_attr {
10066 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010067 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010068 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010069 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010070 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010071 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010072 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070010073 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10074 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10075 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10076 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10077 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10078 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10079 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10080 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10081 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10082 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10083 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10084 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10085 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10086 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10087 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10088 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10089 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10090 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10091 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010092 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10093 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10094 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010095
10096 /* Keep last */
10097 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10098 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10099 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10100};
10101
Hai Shalom74f70d42019-02-11 14:42:39 -080010102/**
10103 * enum qca_wlan_throughput_level - Current throughput level
10104 *
10105 * Indicates the current level of throughput calculated by the driver. The
10106 * driver may choose different thresholds to decide whether the throughput level
10107 * is low or medium or high based on variety of parameters like physical link
10108 * capacity of the current connection, the number of packets being dispatched
10109 * per second, etc. The throughput level events might not be consistent with the
10110 * actual current throughput value being observed.
10111 *
10112 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10113 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10114 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10115 */
10116enum qca_wlan_throughput_level {
10117 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10118 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10119 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10120};
10121
10122/**
10123 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10124 * report throughput changes from the driver to user space. enum values are used
10125 * for netlink attributes sent with
10126 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10127 */
10128enum qca_wlan_vendor_attr_throughput_change {
10129 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10130 /* Indicates the direction of throughput in which the change is being
10131 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10132 */
10133 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10134 /* Indicates the newly observed throughput level. enum
10135 * qca_wlan_throughput_level describes the possible range of values.
10136 * u8 attribute.
10137 */
10138 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10139 /* Indicates the driver's guidance on the new value to be set to
10140 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10141 * driver may optionally include this attribute.
10142 */
10143 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10144 /* Indicates the driver's guidance on the new value to be set to
10145 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10146 * values are from -31 to 31. The driver may optionally include this
10147 * attribute.
10148 */
10149 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10150 /* Indicates the driver's guidance on the new value to be set to
10151 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10152 * optionally include this attribute.
10153 */
10154 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10155
10156 /* keep last */
10157 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10158 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10159 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10160};
10161
10162/**
10163 * enum qca_coex_config_profiles - This enum defines different types of
10164 * traffic streams that can be prioritized one over the other during coex
10165 * scenarios.
10166 * The types defined in this enum are categorized in the below manner.
10167 * 0 - 31 values corresponds to WLAN
10168 * 32 - 63 values corresponds to BT
10169 * 64 - 95 values corresponds to Zigbee
10170 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10171 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10172 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10173 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10174 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10175 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10176 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10177 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10178 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10179 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10180 * @QCA_BT_A2DP: Prioritize BT A2DP
10181 * @QCA_BT_BLE: Prioritize BT BLE
10182 * @QCA_BT_SCO: Prioritize BT SCO
10183 * @QCA_ZB_LOW: Prioritize Zigbee Low
10184 * @QCA_ZB_HIGH: Prioritize Zigbee High
10185 */
10186enum qca_coex_config_profiles {
10187 /* 0 - 31 corresponds to WLAN */
10188 QCA_WIFI_STA_DISCOVERY = 0,
10189 QCA_WIFI_STA_CONNECTION = 1,
10190 QCA_WIFI_STA_CLASS_3_MGMT = 2,
10191 QCA_WIFI_STA_DATA = 3,
10192 QCA_WIFI_STA_ALL = 4,
10193 QCA_WIFI_SAP_DISCOVERY = 5,
10194 QCA_WIFI_SAP_CONNECTION = 6,
10195 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10196 QCA_WIFI_SAP_DATA = 8,
10197 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070010198 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080010199 /* 32 - 63 corresponds to BT */
10200 QCA_BT_A2DP = 32,
10201 QCA_BT_BLE = 33,
10202 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070010203 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080010204 /* 64 - 95 corresponds to Zigbee */
10205 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070010206 QCA_ZB_HIGH = 65,
10207 QCA_ZB_CASE_MAX = 95,
10208 /* 0xff is default value if the u8 profile value is not set. */
10209 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10210};
10211
10212/**
10213 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10214 * This enum defines the valid set of values of coex configuration types. These
10215 * values may used by attribute
10216 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10217 *
10218 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10219 * weights to default values.
10220 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10221 * weights with configurability value.
10222 */
10223enum qca_vendor_attr_coex_config_types {
10224 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10225 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10226 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080010227};
10228
10229/**
10230 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
10231 *
10232 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
10233 * length array of 8-bit values from enum qca_coex_config_profiles.
10234 * FW will prioritize the profiles in the order given in the array encapsulated
10235 * in this attribute.
10236 * For example:
10237 * -----------------------------------------------------------------------
10238 * | 1 | 34 | 32 | 65 |
10239 * -----------------------------------------------------------------------
10240 * If the attribute contains the values defined in above array then it means
10241 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
10242 * 2) BT_SCO has priority over BT_A2DP.
10243 * 3) BT_A2DP has priority over ZIGBEE HIGH.
10244 * Profiles which are not listed in this array shall not be preferred over the
10245 * profiles which are listed in the array as a part of this attribute.
10246 */
10247enum qca_vendor_attr_coex_config {
10248 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10249 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
10250
10251 /* Keep last */
10252 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
10253 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
10254 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
10255};
10256
10257/**
Hai Shalom021b0b52019-04-10 11:17:58 -070010258 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10259 * attributes
10260 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10261 *
10262 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10263 * Indicate config type.
10264 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
10265 *
10266 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10267 * Indicate the Priority 1 profiles.
10268 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10269 * In same priority level, maximum to 4 profiles can be set here.
10270 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10271 * Indicate the Priority 2 profiles.
10272 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10273 * In same priority level, maximum to 4 profiles can be set here.
10274 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10275 * Indicate the Priority 3 profiles.
10276 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10277 * In same priority level, maximum to 4 profiles can be set here.
10278 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10279 * Indicate the Priority 4 profiles.
10280 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10281 * In same priority level, maximum to 4 profiles can be set here.
10282 * NOTE:
10283 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10284 * arrangement:
10285 * 1: In the same u32 attribute (priority x), the profiles enum values own
10286 * same priority level.
10287 * 2: 0xff is default value if the u8 profile value is not set.
10288 * 3: max to 4 rules/profiles in same priority level.
10289 * 4: max to 4 priority level (priority 1 - priority 4)
10290 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
10291 * hybrid rules not support.
10292 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10293 * remain blank to reset all parameters.
10294 * For example:
10295 *
10296 * If the attributes as follow:
10297 * priority 1:
10298 * ------------------------------------
10299 * | 0xff | 0 | 1 | 2 |
10300 * ------------------------------------
10301 * priority 2:
10302 * -------------------------------------
10303 * | 0xff | 0xff | 0xff | 32 |
10304 * -------------------------------------
10305 * priority 3:
10306 * -------------------------------------
10307 * | 0xff | 0xff | 0xff | 65 |
10308 * -------------------------------------
10309 * then it means:
10310 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10311 * owns same priority level.
10312 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10313 * has priority over BT_A2DP and ZB_HIGH.
10314 * 3: BT_A2DP has priority over ZB_HIGH.
10315 */
Hai Shalom021b0b52019-04-10 11:17:58 -070010316enum qca_vendor_attr_coex_config_three_way {
10317 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10318 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10319 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10320 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10321 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10322 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10323
10324 /* Keep last */
10325 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10326 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10327 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10328};
10329
10330/**
Hai Shalom74f70d42019-02-11 14:42:39 -080010331 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
10332 *
10333 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
10334 * (STA/AP) for the connected link.
10335 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
10336 * &struct nl80211_sta_flag_update for the respective connected link. MAC
10337 * address of the peer represented by
10338 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
10339 */
10340enum qca_wlan_vendor_attr_link_properties {
10341 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
10342 /* 1 - 3 are reserved */
10343 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10344 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10345
10346 /* Keep last */
10347 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10348 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10349 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10350};
10351
Hai Shalom021b0b52019-04-10 11:17:58 -070010352/**
10353 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10354 * This enum defines the valid set of values of peer stats cache types. These
10355 * values are used by attribute
10356 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10357 *
10358 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10359 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10360 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10361 * statistics
10362 */
10363enum qca_vendor_attr_peer_stats_cache_type {
10364 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10365
10366 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10367 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10368 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10369};
10370
10371/**
10372 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10373 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10374 * Information in these attributes is used to flush peer rate statistics from
10375 * the driver to user application.
10376 *
10377 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10378 * Indicate peer statistics cache type.
10379 * The statistics types are 32-bit values from
10380 * enum qca_vendor_attr_peer_stats_cache_type.
10381 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10382 * of size 6 octets, representing the peer MAC address.
10383 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10384 * containing buffer of statistics to send to application layer entity.
10385 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10386 * representing a cookie for peer unique session.
10387 */
10388enum qca_wlan_vendor_attr_peer_stats_cache_params {
10389 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10390
10391 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10392 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10393 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10394 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10395
10396 /* Keep last */
10397 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10398 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10399 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10400};
10401
10402/**
10403 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10404 * This enum defines all the possible states of Zigbee, which can be
10405 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10406 *
10407 * @ZIGBEE_IDLE: Zigbee in idle state
10408 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10409 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10410 * @ZIGBEE_JOIN: Zigbee joining network
10411 * @ZIGBEE_NETWORK_UP: Zigbee network is up
10412 * @ZIGBEE_HMI: Zigbee in HMI mode
10413 */
10414enum qca_mpta_helper_attr_zigbee_state {
10415 ZIGBEE_IDLE = 0,
10416 ZIGBEE_FORM_NETWORK = 1,
10417 ZIGBEE_WAIT_JOIN = 2,
10418 ZIGBEE_JOIN = 3,
10419 ZIGBEE_NETWORK_UP = 4,
10420 ZIGBEE_HMI = 5,
10421};
10422
10423/*
10424 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10425 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10426 */
10427enum qca_mpta_helper_vendor_attr {
10428 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10429 /* Optional attribute used to update Zigbee state.
10430 * enum qca_mpta_helper_attr_zigbee_state.
10431 * NLA_U32 attribute.
10432 */
10433 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10434 /* Optional attribute used to configure WLAN duration for Shape-OCS
10435 * during interrupt.
10436 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10437 * Value range 0 ~ 300 (ms).
10438 * NLA_U32 attribute.
10439 */
10440 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10441 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10442 * during interrupt.
10443 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10444 * Value range 0 ~ 300 (ms).
10445 * NLA_U32 attribute.
10446 */
10447 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10448 /* Optional attribute used to configure WLAN duration for Shape-OCS
10449 * monitor period.
10450 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10451 * Value range 0 ~ 300 (ms)
10452 * NLA_U32 attribute
10453 */
10454 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10455 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10456 * monitor period.
10457 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10458 * Value range 0 ~ 300 (ms)
10459 * NLA_U32 attribute
10460 */
10461 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10462 /* Optional attribute used to configure OCS interrupt duration.
10463 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10464 * Value range 1000 ~ 20000 (ms)
10465 * NLA_U32 attribute
10466 */
10467 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10468 /* Optional attribute used to configure OCS monitor duration.
10469 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10470 * Value range 1000 ~ 20000 (ms)
10471 * NLA_U32 attribute
10472 */
10473 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10474 /* Optional attribute used to notify WLAN firmware the current Zigbee
10475 * channel.
10476 * Value range 11 ~ 26
10477 * NLA_U32 attribute
10478 */
10479 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10480 /* Optional attribute used to configure WLAN mute duration.
10481 * Value range 0 ~ 400 (ms)
10482 * NLA_U32 attribute
10483 */
10484 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10485
10486 /* keep last */
10487 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10488 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10489 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10490};
10491
Hai Shalom81f62d82019-07-22 12:10:00 -070010492/**
10493 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10494 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10495 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10496 *
10497 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10498 * to request the driver to start reporting Beacon frames.
10499 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10500 * request the driver to stop reporting Beacon frames.
10501 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10502 * userspace to report received Beacon frames.
10503 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10504 * to indicate that the driver is going to pause reporting Beacon frames.
10505 */
10506enum qca_wlan_vendor_beacon_reporting_op_types {
10507 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10508 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10509 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10510 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10511};
10512
10513/**
10514 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10515 * of reasons for which the driver is pausing reporting Beacon frames. Will be
10516 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10517 *
10518 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10519 * reasons.
10520 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10521 * driver/firmware is starting a scan.
10522 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10523 * driver/firmware disconnects from the ESS and indicates the disconnection to
10524 * userspace (non-seamless roaming case). This reason code will be used by the
10525 * driver/firmware to indicate stopping of beacon report events. Userspace will
10526 * need to start beacon reporting again (if desired) by sending vendor command
10527 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10528 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10529 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10530 * completed.
10531 */
10532enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10533 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10534 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10535 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10536};
10537
10538/*
10539 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10540 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10541 */
10542enum qca_wlan_vendor_attr_beacon_reporting_params {
10543 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10544 /* Specifies the type of operation that the vendor command/event is
10545 * intended for. Possible values for this attribute are defined in
10546 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10547 */
10548 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10549 /* Optionally set by userspace to request the driver to report Beacon
10550 * frames using asynchronous vendor events when the
10551 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10552 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10553 * If this flag is not set, the driver will only update Beacon frames in
10554 * cfg80211 scan cache but not send any vendor events.
10555 */
10556 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10557 /* Optionally used by userspace to request the driver/firmware to report
10558 * Beacon frames periodically when the
10559 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10560 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10561 * u32 attribute, indicates the period of Beacon frames to be reported
10562 * and in the units of beacon interval.
10563 * If this attribute is missing in the command, then the default value
10564 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10565 * Zero is an invalid value.
10566 * If a valid value is received for this attribute, the driver will
10567 * update the cfg80211 scan cache periodically as per the value received
10568 * in this attribute in addition to updating the cfg80211 scan cache
10569 * when there is significant change in Beacon frame IEs.
10570 */
10571 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10572 /* Used by the driver to encapsulate the SSID when the
10573 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10574 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10575 * u8 array with a maximum size of 32.
10576 *
10577 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10578 * will be taken from the SSID element of the received Beacon frame.
10579 *
10580 * When generating beacon report from Multiple BSSID Beacon frame and if
10581 * the BSSID of the current connected BSS matches the BSSID of the
10582 * transmitting BSS, the SSID will be taken from the SSID element of the
10583 * received Beacon frame.
10584 *
10585 * When generating beacon report from Multiple BSSID Beacon frame and if
10586 * the BSSID of the current connected BSS matches the BSSID of one of
10587 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10588 * included in the nontransmitted BSS profile whose derived BSSID is
10589 * same as the BSSID of the current connected BSS. When there is no
10590 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10591 * of current connected* BSS, this attribute will not be present.
10592 */
10593 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10594 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
10595 * currently connected to when the
10596 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10597 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10598 * fixed size of 6 bytes.
10599 *
10600 * When generating beacon report from a Multiple BSSID beacon and the
10601 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10602 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10603 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10604 * of the Beacon frame).
10605 */
10606 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10607 /* Used by the driver to encapsulate the frequency in MHz on which
10608 * the Beacon frame was received when the
10609 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10610 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10611 * u32 attribute.
10612 */
10613 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10614 /* Used by the driver to encapsulate the Beacon interval
10615 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10616 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10617 * u16 attribute. The value will be copied from the Beacon frame and the
10618 * units are TUs.
10619 */
10620 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10621 /* Used by the driver to encapsulate the Timestamp field from the Beacon
10622 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
10623 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10624 * u64 attribute.
10625 */
10626 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10627 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10628 * Beacon frame is received in the driver when the
10629 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10630 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10631 * the units of nanoseconds. This value is expected to have accuracy of
10632 * about 10 ms.
10633 */
10634 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10635 /* Used by the driver to encapsulate the IEs of the Beacon frame from
10636 * which this event is generated when the
10637 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10638 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10639 */
10640 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10641 /* Used by the driver to specify the reason for the driver/firmware to
10642 * pause sending beacons to userspace when the
10643 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10644 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10645 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10646 * attribute.
10647 */
10648 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10649 /* Used by the driver to specify whether the driver will automatically
10650 * resume reporting beacon events to userspace later (for example after
10651 * the ongoing off-channel activity is completed etc.) when the
10652 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10653 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10654 */
10655 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10656 /* Optionally set by userspace to request the driver not to resume
10657 * beacon reporting after a pause is completed, when the
10658 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10659 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10660 * If this flag is set, the driver will not resume beacon reporting
10661 * after any pause in beacon reporting is completed. Userspace has to
10662 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10663 * to initiate beacon reporting again. If this flag is set in the recent
10664 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10665 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10666 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10667 * set by the driver. Setting this flag until and unless there is a
10668 * specific need is not recommended as there is a chance of some beacons
10669 * received after pause command and next start command being not
10670 * reported.
10671 */
10672 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10673
10674 /* Keep last */
10675 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10676 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10677 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10678};
10679
10680/**
10681 * enum qca_vendor_interop_issues_ap_type - Interop issue types
10682 * This enum defines the valid set of values of interop issue types. These
10683 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
10684 *
10685 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
10686 * when the STA's Qpower feature is enabled.
10687 */
10688enum qca_vendor_interop_issues_ap_type {
10689 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
10690 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
10691};
10692
10693/**
10694 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
10695 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
10696 *
10697 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
10698 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
10699 * 32-bit unsigned value. The values defined in enum
10700 * qca_vendor_interop_issues_ap_type are used.
10701 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
10702 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
10703 * It is present and mandatory for the command but is not used for the event
10704 * since only a single BSSID is reported in an event.
10705 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
10706 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
10707 * attribute in command case and without such encapsulation in the event case.
10708 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
10709 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
10710 */
10711enum qca_vendor_attr_interop_issues_ap {
10712 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
10713 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
10714 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
10715 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
10716 /* keep last */
10717 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
10718 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
10719 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
10720};
10721
Hai Shalomc3565922019-10-28 11:58:20 -070010722/**
10723 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10724 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10725 *
10726 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10727 * a virtual device.
10728 *
10729 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10730 * a physical device.
10731 */
10732enum qca_vendor_oem_device_type {
10733 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10734 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10735};
10736
10737/**
10738 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
10739 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10740 *
Hai Shalom899fcc72020-10-19 14:38:18 -070010741 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10742 * used to set/query the data to/from the firmware. On query, the same
10743 * attribute is used to carry the respective data in the reply sent by the
10744 * driver to userspace. The request to set/query the data and the format of the
10745 * respective data from the firmware are embedded in the attribute. The
10746 * maximum size of the attribute payload is 1024 bytes.
10747 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10748 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010749 *
10750 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10751 * based on this field. This optional attribute is included to specify whether
10752 * the device type is a virtual device or a physical device for the
10753 * command/event. This attribute can be omitted for a virtual device (default)
10754 * command/event.
10755 * This u8 attribute is used to carry information for the device type using
10756 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070010757 *
10758 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10759 * is set when the userspace queries data from the firmware. This attribute
10760 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010761 */
10762enum qca_wlan_vendor_attr_oem_data_params {
10763 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10764 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10765 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070010766 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070010767
10768 /* keep last */
10769 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10770 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10771 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10772};
10773
10774/**
10775 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10776 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10777 *
10778 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10779 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080010780 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10781 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10782 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070010783 *
10784 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10785 * Starting center frequency in MHz.
10786 *
10787 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10788 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010789 *
10790 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10791 * s32 attribute, optional. It is a per frequency range attribute.
10792 * The maximum TX power limit from user space is to be applied on an
10793 * unrestricted interface for corresponding frequency range. It is also
10794 * possible that the actual TX power may be even lower than this cap due to
10795 * other considerations such as regulatory compliance, SAR, etc. In absence of
10796 * this attribute the driver shall follow current behavior which means
10797 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10798 * power derived by the driver based on regulatory/SAR during interface up.
10799 *
10800 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10801 * u32 attribute, optional. Indicates all the interface types which are
10802 * restricted for all frequency ranges provided in
10803 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10804 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10805 * This attribute encapsulates bitmasks of interface types defined in
10806 * enum nl80211_iftype. If an interface is marked as restricted the driver must
10807 * move to a safe channel and if no safe channel is available the driver shall
10808 * terminate that interface functionality. In absence of this attribute,
10809 * interface (SAP/P2P) can still continue operating on an unsafe channel with
10810 * TX power limit derived from either
10811 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10812 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10813 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070010814 */
10815enum qca_wlan_vendor_attr_avoid_frequency_ext {
10816 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10817 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10818 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10819 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010820 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10821 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070010822
10823 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10824 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10825 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10826};
10827
10828/*
10829 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10830 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10831 */
10832enum qca_wlan_vendor_attr_add_sta_node_params {
10833 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10834 /* 6 byte MAC address of STA */
10835 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10836 /* Authentication algorithm used by the station of size u16;
10837 * defined in enum nl80211_auth_type.
10838 */
10839 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10840
10841 /* keep last */
10842 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10843 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10844 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10845};
10846
10847/**
10848 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10849 * This enum defines the valid set of values of BT coex chain mode.
10850 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10851 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10852 *
Sunil Ravi89eba102022-09-13 21:04:37 -070010853 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
10854 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
10855 * separated, hybrid mode.
10856 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
10857 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070010858 */
10859enum qca_btc_chain_mode {
10860 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070010861 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
10862 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070010863};
10864
Sunil Ravi89eba102022-09-13 21:04:37 -070010865/* deprecated legacy name */
10866#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
10867
Hai Shalomc3565922019-10-28 11:58:20 -070010868/**
10869 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10870 * chain mode.
10871 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10872 *
10873 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10874 * Indicates the BT coex chain mode, are 32-bit values from
10875 * enum qca_btc_chain_mode. This attribute is mandatory.
10876 *
10877 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10878 * If set, vdev should be restarted when BT coex chain mode is updated.
10879 * This attribute is optional.
10880 */
10881enum qca_vendor_attr_btc_chain_mode {
10882 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10883 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10884 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10885
10886 /* Keep last */
10887 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10888 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10889 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10890};
10891
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010892/**
10893 * enum qca_vendor_wlan_sta_flags - Station feature flags
10894 * Bits will be set to 1 if the corresponding features are enabled.
10895 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10896 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10897 for the station
10898 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10899 for the station
10900 */
10901enum qca_vendor_wlan_sta_flags {
10902 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10903 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10904 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10905};
10906
10907/**
10908 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10909 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10910 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10911 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10912 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10913 */
10914enum qca_vendor_wlan_sta_guard_interval {
10915 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10916 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10917 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10918 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10919};
10920
10921/**
10922 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10923 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
10924 *
10925 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070010926 * Required attribute in request for AP mode only, 6-byte MAC address,
10927 * corresponding to the station's MAC address for which information is
10928 * requested. For STA mode this is not required as the info always correspond
10929 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010930 *
10931 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
10932 * Optionally used in response, u32 attribute, contains a bitmap of different
10933 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
10934 *
10935 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
10936 * Optionally used in response, u32 attribute, possible values are defined in
10937 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
10938 * Guard interval used by the station.
10939 *
10940 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
10941 * Optionally used in response, u32 attribute, used in AP mode only.
10942 * Value indicates the number of data frames received from station with retry
10943 * bit set to 1 in FC.
10944 *
10945 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
10946 * Optionally used in response, u32 attribute, used in AP mode only.
10947 * Counter for number of data frames with broadcast or multicast address in
10948 * the destination address received from the station.
10949 *
10950 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
10951 * Optionally used in response, u32 attribute, used in both STA and AP modes.
10952 * Value indicates the number of data frames successfully transmitted only
10953 * after retrying the packets and for which the TX status has been updated
10954 * back to host from target.
10955 *
10956 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010957 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010958 * Value indicates the number of data frames not transmitted successfully even
10959 * after retrying the packets for the number of times equal to the total number
10960 * of retries allowed for that packet and for which the TX status has been
10961 * updated back to host from target.
10962 *
10963 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
10964 * Optionally used in response, u32 attribute, used in AP mode only.
10965 * Counter in the target for the number of data frames successfully transmitted
10966 * to the station.
10967 *
10968 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
10969 * Optionally used in response, u32 attribute, used in AP mode only.
10970 * Value indicates the number of data frames successfully transmitted only
10971 * after retrying the packets.
10972 *
10973 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010974 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010975 * Value indicates the number of data frames not transmitted successfully even
10976 * after retrying the packets for the number of times equal to the total number
10977 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070010978 *
10979 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
10980 * the STA mode only. Represent the number of probe requests sent by the STA
10981 * while attempting to roam on missing certain number of beacons from the
10982 * connected AP. If queried in the disconnected state, this represents the
10983 * count for the last connected state.
10984 *
10985 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
10986 * the STA mode. Represent the number of probe responses received by the station
10987 * while attempting to roam on missing certain number of beacons from the
10988 * connected AP. When queried in the disconnected state, this represents the
10989 * count when in last connected state.
10990 *
10991 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
10992 * STA mode only. Represents the total number of frames sent out by STA
10993 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
10994 * only for the connect session. Represents the count of last connected session,
10995 * when queried in the disconnected state.
10996 *
10997 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
10998 * Total number of RTS sent out by the STA. This data is maintained per connect
10999 * session. Represents the count of last connected session, when queried in the
11000 * disconnected state.
11001 *
11002 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11003 * STA mode.Represent the number of RTS transmission failure that reach retry
11004 * limit. This data is maintained per connect session. Represents the count of
11005 * last connected session, when queried in the disconnected state.
11006 *
11007 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11008 * the STA mode. Represent the total number of non aggregated frames transmitted
11009 * by the STA. This data is maintained per connect session. Represents the count
11010 * of last connected session, when queried in the disconnected state.
11011 *
11012 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11013 * STA mode. Represent the total number of aggregated frames transmitted by the
11014 * STA. This data is maintained per connect session. Represents the count of
11015 * last connected session, when queried in the disconnected state.
11016 *
11017 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11018 * the STA mode. Represents the number of received frames with a good PLCP. This
11019 * data is maintained per connect session. Represents the count of last
11020 * connected session, when queried in the disconnected state.
11021 *
11022 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11023 * used in the STA mode. Represents the number of occasions that no valid
11024 * delimiter is detected by A-MPDU parser. This data is maintained per connect
11025 * session. Represents the count of last connected session, when queried in the
11026 * disconnected state.
11027 *
11028 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11029 * STA mode. Represents the number of frames for which CRC check failed in the
11030 * MAC. This data is maintained per connect session. Represents the count of
11031 * last connected session, when queried in the disconnected state.
11032 *
11033 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11034 * STA mode. Represents the number of unicast ACKs received with good FCS. This
11035 * data is maintained per connect session. Represents the count of last
11036 * connected session, when queried in the disconnected state.
11037 *
11038 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11039 * mode. Represents the number of received Block Acks. This data is maintained
11040 * per connect session. Represents the count of last connected session, when
11041 * queried in the disconnected state.
11042 *
11043 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11044 * mode. Represents the number of beacons received from the connected BSS. This
11045 * data is maintained per connect session. Represents the count of last
11046 * connected session, when queried in the disconnected state.
11047 *
11048 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11049 * STA mode. Represents the number of beacons received by the other BSS when in
11050 * connected state (through the probes done by the STA). This data is maintained
11051 * per connect session. Represents the count of last connected session, when
11052 * queried in the disconnected state.
11053 *
11054 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11055 * the STA mode. Represents the number of received DATA frames with good FCS and
11056 * matching Receiver Address when in connected state. This data is maintained
11057 * per connect session. Represents the count of last connected session, when
11058 * queried in the disconnected state.
11059 *
11060 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11061 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11062 * when in the connected state. This data is maintained per connect session.
11063 * Represents the count of last connected session, when queried in the
11064 * disconnected state.
11065 *
11066 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11067 * STA mode. This represents the target power in dBm for the transmissions done
11068 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11069 * connect session. Represents the count of last connected session, when
11070 * queried in the disconnected state.
11071 *
11072 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11073 * STA mode. This represents the Target power in dBm for transmissions done to
11074 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11075 * session. Represents the count of last connected session, when queried in the
11076 * disconnected state.
11077 *
11078 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11079 * STA mode. This represents the Target power in dBm for transmissions done to
11080 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11081 * Represents the count of last connected session, when queried in the
11082 * disconnected state.
11083 *
11084 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11085 * STA mode. This represents the Target power in dBm for transmissions done to
11086 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11087 * session. Represents the count of last connected session, when queried in
11088 * the disconnected state.
11089 *
11090 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11091 * STA mode. This represents the Target power in dBm for for transmissions done
11092 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11093 * Represents the count of last connected session, when queried in the
11094 * disconnected state.
11095 *
11096 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11097 * in the STA mode. This represents the Nested attribute representing the
11098 * overflow counts of each receive buffer allocated to the hardware during the
11099 * STA's connection. The number of hw buffers might vary for each WLAN
11100 * solution and hence this attribute represents the nested array of all such
11101 * HW buffer count. This data is maintained per connect session. Represents
11102 * the count of last connected session, when queried in the disconnected state.
11103 *
11104 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11105 * allowed as per the regulatory requirements for the current or last connected
11106 * session. Used in the STA mode.
11107 *
11108 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11109 * (dBm) used by the station in its latest unicast frame while communicating
11110 * to the AP in the connected state. When queried in the disconnected state,
11111 * this represents the TX power used by the STA with last AP communication
11112 * when in connected state.
11113 *
11114 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11115 * level used to adjust the RX sensitivity. Represents the current ANI level
11116 * when queried in the connected state. When queried in the disconnected
11117 * state, this corresponds to the latest ANI level at the instance of
11118 * disconnection.
11119 *
11120 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
11121 * the raw information elements from Beacon frames. Represents the Beacon frames
11122 * of the current BSS in the connected state. When queried in the disconnected
11123 * state, these IEs correspond to the last connected BSSID.
11124 *
11125 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
11126 * containing the raw information elements from Probe Response frames.
11127 * Represents the Probe Response frames of the current BSS in the connected
11128 * state. When queried in the disconnected state, these IEs correspond to the
11129 * last connected BSSID.
11130 *
11131 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
11132 * disconnect reason for the last disconnection if the disconnection is
11133 * triggered from the host driver. The values are referred from
11134 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070011135 *
11136 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11137 * only. This represents the number of group addressed robust management frames
11138 * received from this station with an invalid MIC or a missing MME when PMF is
11139 * enabled.
11140 *
11141 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11142 * only. This represents the number of group addressed robust management frames
11143 * received from this station with the packet number less than or equal to the
11144 * last received packet number when PMF is enabled.
11145 *
11146 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11147 * mode only. This represents the number of Beacon frames received from this
11148 * station with an invalid MIC or a missing MME when beacon protection is
11149 * enabled.
11150 *
11151 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11152 * only. This represents number of Beacon frames received from this station with
11153 * the packet number less than or equal to the last received packet number when
11154 * beacon protection is enabled.
11155 *
11156 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11157 * STA mode only. The driver uses this attribute to populate the connection
11158 * failure reason codes and the values are defined in
11159 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11160 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11161 * a connection failure indication from the driver. The driver shall not
11162 * include this attribute in response to the
11163 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11164 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080011165 *
11166 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11167 * used by the station in its last TX frame while communicating to the AP in the
11168 * connected state. When queried in the disconnected state, this represents the
11169 * rate used by the STA in the last TX frame to the AP when it was connected.
11170 * This attribute is used for STA mode only.
11171 *
11172 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11173 * This represents the rate index used by the STA for the last TX frame to the
11174 * AP. When queried in the disconnected state, this gives the last RIX used by
11175 * the STA in the last TX frame to the AP when it was connected.
11176 *
11177 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11178 * mode only. This represents the number of times the STA TSF goes out of sync
11179 * from the AP after the connection. If queried in the disconnected state, this
11180 * gives the count of TSF out of sync for the last connection.
11181 *
11182 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11183 * mode only. This represents the roam trigger reason for the last roaming
11184 * attempted by the firmware. This can be queried either in connected state or
11185 * disconnected state. Each bit of this attribute represents the different
11186 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11187 *
11188 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11189 * only. This represents the roam fail reason for the last failed roaming
11190 * attempt by the firmware. Different roam failure reason codes are specified
11191 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11192 * connected state or disconnected state.
11193 *
11194 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11195 * STA mode only. This represents the roam invoke fail reason for the last
11196 * failed roam invoke. Different roam invoke failure reason codes
11197 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11198 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011199 *
11200 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11201 * This represents the average congestion duration of uplink frames in MAC
11202 * queue in unit of ms. This can be queried either in connected state or
11203 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070011204 *
11205 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
11206 * values, used in AP mode. This represents the MPDU packet count per MCS
11207 * rate value of TX packets. Every index of this nested attribute corresponds
11208 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
11209 * queried in connected state.
11210 *
11211 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
11212 * values, used in AP mode. This represents the MPDU packet count per MCS
11213 * rate value of RX packets. Every index of this nested attribute corresponds
11214 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
11215 * queried in connected state.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011216 */
11217enum qca_wlan_vendor_attr_get_sta_info {
11218 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11219 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11220 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11221 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11222 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11223 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11224 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11225 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11226 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11227 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11228 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070011229 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11230 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11231 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11232 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11233 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11234 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11235 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11236 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11237 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11238 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11239 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11240 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11241 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11242 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11243 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11244 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11245 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11246 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11247 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11248 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11249 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11250 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11251 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11252 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11253 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11254 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
11255 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
11256 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070011257 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11258 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11259 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11260 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11261 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080011262 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11263 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11264 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11265 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11266 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11267 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011268 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070011269 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11270 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011271
11272 /* keep last */
11273 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11274 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11275 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11276};
11277
Hai Shalomfdcde762020-04-02 11:19:20 -070011278/**
11279 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
11280 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
11281 *
11282 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
11283 * Used in STA mode. This attribute represents the list of channel center
11284 * frequencies in MHz (u32) the station has learnt during the last connection
11285 * or roaming attempt. This information shall not signify the channels for
11286 * an explicit scan request from the user space. Host drivers can update this
11287 * information to the user space in both connected and disconnected state.
11288 * In the disconnected state this information shall signify the channels
11289 * scanned in the last connection/roam attempt that lead to the disconnection.
11290 */
11291enum qca_wlan_vendor_attr_update_sta_info {
11292 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
11293 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
11294
11295 /* keep last */
11296 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
11297 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
11298 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
11299};
11300
11301/**
11302 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11303 * Used when the driver triggers the STA to disconnect from the AP.
11304 *
11305 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11306 * disconnection with the AP due to unspecified reasons.
11307 *
11308 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11309 * disconnection with the AP due to a roaming failure. This roaming is triggered
11310 * internally (host driver/firmware).
11311 *
11312 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11313 * the AP when the user/external triggered roaming fails.
11314 *
11315 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11316 * by the host driver whenever gateway reachability failure is detected and the
11317 * driver disconnects with AP.
11318 *
11319 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11320 * the AP on a channel switch announcement from it with an unsupported channel.
11321 *
11322 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11323 * with indoor channels disabled and if the STA is connected on one of these
11324 * disabled channels, the host driver disconnected the STA with this reason
11325 * code.
11326 *
11327 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11328 * explicit request from the user to disable the current operating channel.
11329 *
11330 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11331 * the internal host driver/firmware recovery.
11332 *
11333 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11334 * a timeout for the key installations from the user space.
11335 *
11336 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11337 * STA on a band change request from the user space to a different band from the
11338 * current operation channel/band.
11339 *
11340 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11341 * interface down trigger from the user space.
11342 *
11343 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11344 * STA on getting continuous transmission failures for multiple Data frames.
11345 *
11346 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11347 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11348 * represents inactivity from AP on such transmissions.
11349
11350 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11351 * disconnection when SA Query times out (AP does not respond to SA Query).
11352 *
11353 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11354 * STA on missing the beacons continuously from the AP.
11355 *
11356 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11357 * able to move to the channel mentioned by the AP in CSA.
11358 *
11359 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11360 */
11361enum qca_disconnect_reason_codes {
11362 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11363 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11364 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11365 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11366 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11367 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11368 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11369 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11370 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11371 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11372 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11373 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11374 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11375 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11376 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11377 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11378 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11379};
11380
11381/**
11382 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11383 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11384 *
11385 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11386 * This attribute represents the driver specific reason codes (local
11387 * driver/firmware initiated reasons for disconnection) defined
11388 * in enum qca_disconnect_reason_codes.
11389 */
11390enum qca_wlan_vendor_attr_driver_disconnect_reason {
11391 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11392 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11393
11394 /* keep last */
11395 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11396 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11397 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11398};
11399
Hai Shalom899fcc72020-10-19 14:38:18 -070011400/**
11401 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11402 *
11403 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11404 */
11405enum qca_wlan_tspec_operation {
11406 QCA_WLAN_TSPEC_ADD = 0,
11407 QCA_WLAN_TSPEC_DEL = 1,
11408 QCA_WLAN_TSPEC_GET = 2,
11409};
11410
11411/**
11412 * enum qca_wlan_tspec_direction - Direction in TSPEC
11413 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11414 *
11415 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11416 */
11417enum qca_wlan_tspec_direction {
11418 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11419 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11420 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11421 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11422};
11423
11424/**
11425 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11426 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11427 *
11428 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11429 */
11430enum qca_wlan_tspec_ack_policy {
11431 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11432 QCA_WLAN_TSPEC_NO_ACK = 1,
11433 /* Reserved */
11434 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11435};
11436
11437/**
11438 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11439 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11440 *
11441 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11442 * u8 attribute. Specify the TSPEC operation of this request. Possible values
11443 * are defined in enum qca_wlan_tspec_operation.
11444 * Mandatory attribute for all kinds of config TSPEC requests.
11445 *
11446 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11447 * u8 attribute. TS ID. Possible values are 0-7.
11448 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11449 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11450 *
11451 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11452 * u8 attribute. Direction of data carried by the TS. Possible values are
11453 * defined in enum qca_wlan_tspec_direction.
11454 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11455 *
11456 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11457 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11458 * with the TS. set - enabled, not set - disabled.
11459 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11460 *
11461 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11462 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11463 * belonging to this TS. Possible values are 0-7.
11464 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11465 *
11466 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11467 * u8 attribute. Indicate whether MAC acknowledgements are required for
11468 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11469 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11470 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11471 *
11472 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11473 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11474 * belonging to this TS.
11475 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11476 *
11477 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11478 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11479 * belonging to this TS.
11480 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11481 *
11482 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11483 * u32 attribute. Specify the minimum interval in microseconds between the
11484 * start of two successive SPs.
11485 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11486 *
11487 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11488 * u32 attribute. Specify the maximum interval in microseconds between the
11489 * start of two successive SPs.
11490 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11491 *
11492 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11493 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11494 * without arrival or transfer of an MPDU belonging to the TS before this TS
11495 * is deleted by the MAC entity at the HC.
11496 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11497 *
11498 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11499 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11500 * without arrival or transfer of an MSDU belonging to the TS before the
11501 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11502 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11503 * interval is always less than or equal to the inactivity interval.
11504 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11505 *
11506 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11507 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11508 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11509 * bounds of this TSPEC.
11510 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11511 *
11512 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11513 * u32 attribute. Indicate the average data rate in bps specified at the MAC
11514 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11515 * bounds of this TSPEC.
11516 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11517 *
11518 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11519 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11520 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11521 * the bounds of this TSPEC.
11522 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11523 *
11524 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11525 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11526 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11527 * value of 0 indicates that there are no bursts.
11528 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11529 *
11530 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11531 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11532 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11533 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11534 *
11535 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11536 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11537 * and above the stated application rates required to transport an MSDU/A-MSDU
11538 * belonging to the TS in this TSPEC.
11539 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11540 */
11541enum qca_wlan_vendor_attr_config_tspec {
11542 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11543 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11544 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11545 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11546 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11547 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11548 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11549 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11550 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11551 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11552 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11553 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11554 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11555 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11556 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11557 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11558 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11559 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11560 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11561
11562 /* keep last */
11563 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11564 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11565 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11566};
11567
11568/**
11569 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11570 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11571 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11572 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11573 * frame
11574 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11575 * Request frame.
11576 */
11577enum qca_wlan_vendor_oci_override_frame_type {
11578 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11579 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11580 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11581 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11582};
11583
11584/**
11585 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11586 * OCI override request. These attributes are used inside nested attribute
11587 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11588 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11589 *
11590 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11591 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11592 * attribute to specify the frame type in which the OCI is to be overridden.
11593 *
11594 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11595 * OCI frequency (in MHz) to override in the specified frame type.
11596 */
11597enum qca_wlan_vendor_attr_oci_override {
11598 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11599 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11600 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11601
11602 /* keep last */
11603 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11604 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11605 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11606};
11607
11608/**
11609 * enum qca_wlan_medium_assess_type - Type of medium assess request
11610 *
11611 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11612 */
11613enum qca_wlan_medium_assess_type {
11614 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11615 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11616};
11617
11618/**
11619 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11620 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11621 *
11622 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11623 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11624 * Specify the type of medium assess request and indicate its type in response.
11625 * Possible values are defined in enum qca_wlan_medium_assess_type.
11626 *
11627 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11628 * u32 attribute. Mandatory in CCA request.
11629 * Specify the assessment period in terms of seconds. Assessment result will be
11630 * sent as the response to the CCA request after the assessment period.
11631 *
11632 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11633 * u32 attribute. Mandatory in response to CCA request.
11634 * Total timer tick count of the assessment cycle.
11635 *
11636 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11637 * u32 attribute. Mandatory in response to CCA request.
11638 * Timer tick count of idle time in the assessment cycle.
11639 *
11640 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11641 * u32 attribute. Mandatory in response to CCA request.
11642 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11643 *
11644 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11645 * u32 attribute. Mandatory in response to CCA request.
11646 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11647 *
11648 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11649 * s32 attribute. Mandatory in response to CCA request.
11650 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11651 *
11652 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11653 * s32 attribute. Mandatory in response to CCA request.
11654 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11655 *
11656 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11657 * u8 attribute. Mandatory in congestion report request.
11658 * 1-enable 0-disable.
11659 *
11660 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11661 * u8 attribute. Mandatory in congestion report enable request and will be
11662 * ignored if present in congestion report disable request. Possible values are
11663 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11664 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11665 * congestion percentage reaches the configured threshold.
11666 *
11667 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11668 * u8 attribute. Optional in congestion report enable request and will be
11669 * ignored if present in congestion report disable request.
11670 * Specify the interval of congestion report event in terms of seconds. Possible
11671 * values are 1-255. Default value 1 will be used if this attribute is omitted
11672 * or using invalid values.
11673 *
11674 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11675 * u8 attribute. Mandatory in congestion report event.
11676 * Indicate the actual congestion percentage. Possible values are 0-100.
11677 */
11678enum qca_wlan_vendor_attr_medium_assess {
11679 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11680 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11681
11682 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11683 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11684 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11685 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11686 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11687 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11688 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11689
11690 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11691 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11692 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11693 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11694
11695 /* keep last */
11696 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11697 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11698 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11699};
11700
11701/**
11702 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11703 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11704 *
11705 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11706 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11707 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11708 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011709 *
11710 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11711 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
11712 *
11713 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11714 * u8 attribute, required. Indicates group id of Tx VDEV.
11715 *
11716 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11717 * Nested attribute. This attribute shall be used by the driver to send
11718 * group information. The attributes defined in enum
11719 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11720 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070011721 */
11722enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11723 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11724 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011725 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11726 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11727 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070011728
11729 /* keep last */
11730 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11731 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11732 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11733};
11734
11735/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011736 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11737 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11738 *
11739 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11740 * u32 attribute, required. Contains interface index.
11741 *
11742 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11743 * u8 attribute, required. 0 - means vdev is in down state.
11744 * 1 - means vdev is in up state.
11745 */
11746enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11747 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11748 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11749 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11750
11751 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11752 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11753 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11754};
11755
11756/**
11757 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11758 *
11759 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11760 * STA interface has to be given while selecting the connection policies
11761 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11762 * An interface is set as primary through the attribute
11763 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11764 * applicable if the primary interface has not been set earlier.
11765 *
11766 * The intention is not to downgrade the primary STA performance, such as:
11767 * - Do not reduce the number of TX/RX chains of primary connection.
11768 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11769 * chains.
11770 * - If using MCC, should set the MCC duty cycle of the primary connection to
11771 * be higher than the secondary connection.
11772 *
11773 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11774 * subsequent STA connection shall be chosen to balance with the existing
11775 * concurrent STA's performance.
11776 * Such as
11777 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11778 * capability.
11779 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11780 * to the secondary.
11781 * - Prefer BSSID candidates which will help provide the best "overall"
11782 * performance for all the STA connections.
11783 */
11784enum qca_wlan_concurrent_sta_policy_config {
11785 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11786 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11787};
11788
11789/**
Sunil8cd6f4d2022-06-28 18:40:46 +000011790 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080011791 *
Sunil8cd6f4d2022-06-28 18:40:46 +000011792 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
11793 * interface.
11794 *
11795 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
11796 * to meet gaming audio latency requirements.
11797 *
11798 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
11799 * concurrencies to meet lossless audio streaming requirements.
11800 */
11801enum qca_wlan_concurrent_ap_policy_config {
11802 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
11803 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
11804 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
11805};
11806
11807/**
11808 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
11809 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
11810 *
11811 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080011812 * u8 attribute. Configures the concurrent STA policy configuration.
11813 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000011814
11815 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
11816 * u8 attribute. Configures the concurrent AP policy configuration.
11817 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011818 */
Sunil8cd6f4d2022-06-28 18:40:46 +000011819enum qca_wlan_vendor_attr_concurrent_policy {
11820 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
11821 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
11822 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011823
11824 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000011825 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
11826 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
11827 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011828
11829};
11830
Sunil8cd6f4d2022-06-28 18:40:46 +000011831/* Compatibility defines for previously used enum
11832 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
11833 * in any new implementation.
11834 */
11835#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
11836 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
11837#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
11838 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
11839#define qca_wlan_vendor_attr_concurrent_sta_policy \
11840 qca_wlan_vendor_attr_concurrent_policy
11841
Hai Shaloma20dcd72022-02-04 13:43:00 -080011842/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011843 * enum qca_sta_connect_fail_reason_codes - Defines values carried
11844 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11845 * attribute.
11846 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
11847 * for unicast Probe Request frame.
11848 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11849 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11850 * auth request.
11851 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11852 * received from AP.
11853 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
11854 * Association Request frame.
11855 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11856 * Association Request frame.
11857 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
11858 * frame is not received from AP.
11859 */
11860enum qca_sta_connect_fail_reason_codes {
11861 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11862 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11863 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11864 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11865 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11866 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11867 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11868};
11869
Hai Shaloma20dcd72022-02-04 13:43:00 -080011870/**
11871 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11872 * filters defined in this enum are used in attribute
11873 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11874 *
11875 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11876 * shall filter the channels which are not usable because of coexistence with
11877 * cellular radio.
11878 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11879 * shall filter the channels which are not usable because of existing active
11880 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11881 *
11882 */
11883enum qca_wlan_vendor_usable_channels_filter {
11884 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11885 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11886};
11887
11888/**
11889 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11890 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11891 *
11892 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11893 * u32 attribute, required. Indicates the center frequency of the primary
11894 * channel in MHz.
11895 *
11896 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11897 * u32 attribute. Indicates the center frequency of the primary segment of the
11898 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11899 * 160 MHz, and 320 MHz channels.
11900 *
11901 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11902 * u32 attribute. Indicates the center frequency of the secondary segment of
11903 * 80+80 channel in MHz. This attribute is required only when
11904 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11905 *
11906 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11907 * u32 attribute, required. Indicates the bandwidth of the channel, possible
11908 * values are defined in enum nl80211_chan_width.
11909 *
11910 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11911 * u32 attribute, required. Indicates all the interface types for which this
11912 * channel is usable. This attribute encapsulates bitmasks of interface types
11913 * defined in enum nl80211_iftype.
11914 *
11915 */
11916enum qca_wlan_vendor_attr_chan_info {
11917 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11918 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11919 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11920 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11921 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11922 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11923
11924 /* keep last */
11925 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11926 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11927 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11928};
11929
11930/**
11931 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11932 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11933 *
11934 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11935 * u32 attribute. Indicates the bands from which the channels should be reported
11936 * in response. This attribute encapsulates bit masks of bands defined in enum
11937 * nl80211_band. Optional attribute, if not present in the request the driver
11938 * shall return channels from all supported bands.
11939 *
11940 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11941 * u32 attribute. Indicates all the interface types for which the usable
11942 * channels information is requested. This attribute encapsulates bitmasks of
11943 * interface types defined in enum nl80211_iftype. Optional attribute, if not
11944 * present in the request the driver shall send information of all supported
11945 * interface modes.
11946 *
11947 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11948 * u32 attribute. This attribute carries information of all filters that shall
11949 * be applied while populating usable channels information by the driver. This
11950 * attribute carries bit masks of different filters defined in enum
11951 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11952 * in the request the driver shall send information of channels without applying
11953 * any of the filters that can be configured through this attribute.
11954 *
11955 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11956 * Nested attribute. This attribute shall be used by the driver to send
11957 * usability information of each channel. The attributes defined in enum
11958 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11959 */
11960enum qca_wlan_vendor_attr_usable_channels {
11961 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11962 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11963 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11964 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11965 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11966
11967 /* keep last */
11968 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11969 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11970 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11971};
11972
11973/**
11974 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11975 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11976 *
11977 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11978 * the list of radar history entries.
11979 * Each entry contains freq, timestamp, and radar signal detect flag.
11980 * The driver shall add an entry when CAC has finished, or radar signal
11981 * has been detected post AP beaconing. The driver shall maintain at least
11982 * 8 entries in order to save CAC result for a 160 MHz channel.
11983 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11984 * Channel frequency in MHz.
11985 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11986 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11987 * or radar detection.
11988 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11989 * This flag indicates radar signal has been detected.
11990 */
11991enum qca_wlan_vendor_attr_radar_history {
11992 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11993
11994 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11995 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11996 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11997 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11998
11999 /* keep last */
12000 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12001 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12002 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12003};
12004
12005/**
12006 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12007 *
12008 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12009 * target exited MCC state and cleared the quota information. In the
12010 * command it clears MCC quota setting and restores adaptive scheduling.
12011 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12012 * will not be changed.
12013 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12014 * and the target may change the quota based on the data activity.
12015 */
12016enum qca_wlan_vendor_mcc_quota_type {
12017 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12018 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12019 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12020};
12021
12022/**
12023 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12024 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12025 * quota information or as a command to set the required MCC quota for an
12026 * interface.
12027 *
12028 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12029 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12030 * In a command this specifies the MCC quota type to be set for the interface.
12031 * In an event this provides the current quota type in force.
12032 * This is required in a command and an event.
12033 *
12034 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12035 * the list of channel quota entries.
12036 * In an event each entry contains the frequency and respective time quota for
12037 * all the MCC interfaces.
12038 * In a command it specifies the interface index and respective time quota.
12039 * In a command only one entry (ifindex, quota pair) may be specified.
12040 *
12041 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12042 * Channel frequency in MHz. This is present only in an event.
12043 *
12044 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12045 * Channel time quota expressed as percentage.
12046 * This is present in an event and a command.
12047 * In an command, the user shall specify the quota to be allocated for the
12048 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12049 * In an event this provides the existing quota for the channel.
12050 *
12051 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12052 * Specifies the interface index (netdev) for which the corresponding
12053 * configurations are applied. This is required in a command only. Only one
12054 * interface index may be specified. If not specified, the configuration is
12055 * rejected.
12056 */
12057enum qca_wlan_vendor_attr_mcc_quota {
12058 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12059 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12060 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12061 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12062 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12063 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12064
12065 /* keep last */
12066 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12067 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12068 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12069};
12070
12071/**
Sunil8cd6f4d2022-06-28 18:40:46 +000012072 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12073 * radio configurations present in each radio combination.
12074 *
12075 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12076 * the band info in the radio configuration. Uses the enum qca_set_band values.
12077 *
12078 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12079 * the number of antennas info in the radio configuration.
12080 */
12081enum qca_wlan_vendor_attr_supported_radio_cfg {
12082 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12083 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12084 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12085
12086 /* keep last */
12087 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12088 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12089 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12090};
12091
12092/**
12093 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12094 * radio combinations supported by the device.
12095 *
12096 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12097 * provides the radio configurations present in the radio combination.
12098 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12099 * This attribute provides the values for radio combination matrix.
12100 * For standalone config, the number of config values is one and the config
12101 * carries the band and antenna information for standalone configuration. For
12102 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12103 * configuration the number of config values is two and the config carries the
12104 * band and antenna information for each simultaneous radio.
12105 */
12106enum qca_wlan_vendor_attr_radio_combination {
12107 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12108 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12109
12110 /* keep last */
12111 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12112 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12113 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12114};
12115
12116/**
12117 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12118 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12119 *
12120 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12121 * provides the radio combinations supported by the device.
12122 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12123 * For example, in the radio combination matrix for a device which has two
12124 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12125 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12126 * combinations is 5 and the radio combinations are
12127 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12128 * {{5 GHz 2X2}}, //Standalone 5 GHz
12129 * {{6 GHz 2X2}}, //Standalone 6 GHz
12130 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12131 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12132 * The band and antenna info together as nested data provides one radio config.
12133 * Standalone configuration has one config with band and antenna nested data.
12134 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12135 * have two nested band and antenna info data.
12136 */
12137enum qca_wlan_vendor_attr_radio_combination_matrix {
12138 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12139 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12140
12141 /* keep last */
12142 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12143 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12144 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12145};
12146
12147/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080012148 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12149 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12150 *
12151 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12152 * Enable mDNS offload. This attribute is mandatory to enable
12153 * mDNS offload feature. If this attribute is not present, mDNS offload
12154 * is disabled.
12155 *
12156 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12157 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12158 * attribute is mandatory when enabling the feature, and not required when
12159 * disabling the feature.
12160 *
12161 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12162 * the following attributes:
12163 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12164 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12165 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12166 *
12167 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12168 * It consists of a hostname and ".local" as the domain name. The character
12169 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12170 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
12171 * supported per vdev.
12172 * For example: myphone.local
12173 *
12174 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12175 * u16 attribute. It specifies the total number of resource records present
12176 * in the answer section of the answer payload. This attribute is needed by the
12177 * firmware to populate the mDNS response frame for mDNS queries without having
12178 * to parse the answer payload.
12179 *
12180 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
12181 * attribute sent by the mdnsResponder from userspace. It contains resource
12182 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
12183 * payload is passed down to the firmware and is transmitted in response to
12184 * mDNS queries.
12185 * The maximum supported size of the answer payload is 512 bytes.
12186 */
12187enum qca_wlan_vendor_attr_mdns_offload {
12188 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12189 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12190 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12191 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12192 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12193 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12194 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12195
12196 /* keep last */
12197 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12198 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12199 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12200};
12201
12202/**
12203 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
12204 * Data frame types to be sent over the monitor interface.
12205 */
12206enum qca_wlan_vendor_monitor_data_frame_type {
12207 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
12208 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
12209 */
12210 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
12211 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
12212 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
12213 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
12214 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
12215 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
12216 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
12217 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
12218 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
12219 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
12220 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
12221 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
12222 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
12223 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
12224 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
12225 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
12226 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
12227};
12228
12229/**
12230 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
12231 * Management frame types to be sent over the monitor interface.
12232 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
12233 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
12234 * except the Beacon frame.
12235 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
12236 * BSSID Beacon frames. Valid only in the connected state.
12237 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
12238 * the Beacon frames obtained during the scan (off channel and connected
12239 * channel), when in connected state.
12240 */
12241enum qca_wlan_vendor_monitor_mgmt_frame_type {
12242 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
12243 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
12244 */
12245 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
12246 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
12247 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
12248};
12249
12250/**
12251 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
12252 * Control frame types to be sent over the monitor interface.
12253 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
12254 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
12255 */
12256enum qca_wlan_vendor_monitor_ctrl_frame_type {
12257 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
12258 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
12259 */
12260 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
12261};
12262
12263/**
12264 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
12265 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
12266 * monitor mode.
12267 *
12268 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
12269 * Represents the TX Data frame types to be monitored (u32). These Data frames
12270 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12271 *
12272 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
12273 * Represents the RX Data frame types to be monitored (u32). These Data frames
12274 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12275 *
12276 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
12277 * Represents the TX Management frame types to be monitored (u32). These
12278 * Management frames are represented by
12279 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12280 *
12281 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
12282 * Represents the RX Management frame types to be monitored (u32). These
12283 * Management frames are represented by
12284 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12285 *
12286 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
12287 * Represents the TX Control frame types to be monitored (u32). These Control
12288 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12289 *
12290 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
12291 * Represents the RX Control frame types to be monitored (u32). These Control
12292 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12293 *
12294 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
12295 * attribute.
12296 * Represents the interval in milliseconds only for the connected Beacon frames,
12297 * expecting the connected BSS's Beacon frames to be sent on the monitor
12298 * interface at this specific interval.
12299 */
12300enum qca_wlan_vendor_attr_set_monitor_mode {
12301 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
12302 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
12303 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
12304 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
12305 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
12306 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
12307 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
12308 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
12309
12310 /* keep last */
12311 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
12312 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
12313 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
12314};
12315
12316/**
12317 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
12318 * Bits will be set to 1 if the corresponding state is enabled.
12319 *
12320 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
12321 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
12322 */
12323enum qca_wlan_vendor_roam_scan_state {
12324 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
12325 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
12326};
12327
12328/**
12329 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
12330 * Bits will be set to 1 if the corresponding event is notified.
12331 *
12332 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
12333 * carries the trigger reason. When set, it is expected that the roam event
12334 * carries the respective reason via the attribute
12335 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
12336 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
12337 *
12338 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
12339 * carries the roam fail reason. When set, it is expected that the roam event
12340 * carries the respective reason via the attribute
12341 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
12342 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
12343 *
12344 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
12345 * event carries the roam invoke fail reason. When set, it is expected that
12346 * the roam event carries the respective reason via the attribute
12347 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
12348 *
12349 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
12350 * carries the roam scan state. When set, it is expected that the roam event
12351 * carries the respective scan state via the attribute
12352 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
12353 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
12354 */
12355enum qca_wlan_vendor_roam_event_type {
12356 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
12357 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
12358 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
12359 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
12360};
12361
12362/**
12363 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
12364 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
12365 *
12366 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
12367 * representing the BSSID of the AP to which the roam is attempted.
12368 *
12369 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
12370 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
12371 * attempted.
12372 *
12373 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
12374 * on which the roam is attempted.
12375 *
12376 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
12377 * STA mode only. This represents the roam fail reason for the last failed
12378 * roaming attempt by the firmware for the specific BSSID. Different roam
12379 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
12380 */
12381enum qca_wlan_vendor_attr_roam_events_candidate_info {
12382 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
12383 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
12384 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
12385 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
12386 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
12387
12388 /* keep last */
12389 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
12390 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
12391 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
12392};
12393
12394/**
12395 * enum qca_wlan_vendor_attr_roam_events - Used by the
12396 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
12397 * roam events to the driver or notify these events from the driver.
12398 *
12399 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
12400 * driver/firmware to enable/disable the notification of roam events. It's a
12401 * mandatory attribute and used only in the request from the userspace to the
12402 * host driver. 1-Enable, 0-Disable.
12403 * If the roaming is totally offloaded to the firmware, this request when
12404 * enabled shall mandate the firmware to notify all the relevant roam events
12405 * represented by the below attributes. If the host is in the suspend mode,
12406 * the behavior of the firmware to notify these events is guided by
12407 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
12408 * these events in the suspend state, the firmware is expected to wake up the
12409 * host before the respective events are notified. Please note that such a
12410 * request to get the events in the suspend state will have a definite power
12411 * implication.
12412 *
12413 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
12414 * that the roam events need to be notified in the suspend state too. By
12415 * default, these roam events are notified in the resume state. With this flag,
12416 * the roam events are notified in both resume and suspend states.
12417 * This attribute is used in the request from the userspace to the host driver.
12418 *
12419 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
12420 * Represents the different roam event types, signified by the enum
12421 * qca_wlan_vendor_roam_event_type.
12422 * Each bit of this attribute represents the different roam even types reported
12423 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12424 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12425 *
12426 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
12427 * mode only. This represents the roam trigger reason for the last roaming
12428 * attempted by the firmware. Each bit of this attribute represents the
12429 * different roam trigger reason code which are defined in enum
12430 * qca_vendor_roam_triggers.
12431 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12432 *
12433 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
12434 * STA mode only. This represents the roam invoke fail reason for the last
12435 * failed roam invoke. Different roam invoke failure reason codes
12436 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
12437 *
12438 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
12439 * for which the roam is attempted. Each entry is a nested attribute defined
12440 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
12441 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12442 *
12443 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
12444 * the scan state on which the roam events need to be notified. The values for
12445 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
12446 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12447 *
12448 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
12449 * u32 values. List of frequencies in MHz considered for a roam scan.
12450 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12451 */
12452enum qca_wlan_vendor_attr_roam_events {
12453 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
12454 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
12455 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
12456 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
12457 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
12458 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
12459 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
12460 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
12461 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
12462
12463 /* keep last */
12464 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
12465 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
12466 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
12467};
12468
12469/**
12470 * enum qca_wlan_ratemask_params_type - Rate mask config type
12471 *
12472 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
12473 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
12474 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
12475 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
12476 */
12477enum qca_wlan_ratemask_params_type {
12478 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
12479 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
12480 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
12481 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
12482};
12483
12484/**
12485 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
12486 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
12487 * This is used to set the rate mask value to be used in rate selection.
12488 *
12489 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
12490 * Array of nested containing attributes
12491 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
12492 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
12493 *
12494 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
12495 * the different PHY types to which the rate mask config is to be applied.
12496 * The values for this attribute are referred from enum
12497 * qca_wlan_vendor_ratemask_params_type.
12498 *
12499 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
12500 * A bit value of 1 represents rate is enabled and a value of 0
12501 * represents rate is disabled.
12502 * For HE targets, 12 bits correspond to one NSS setting.
12503 * b0-13 => NSS1, MCS 0-13
12504 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
12505 * For VHT targets, 10 bits correspond to one NSS setting.
12506 * b0-9 => NSS1, MCS 0-9
12507 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
12508 * For HT targets, 8 bits correspond to one NSS setting.
12509 * b0-7 => NSS1, MCS 0-7
12510 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
12511 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
12512 */
12513enum qca_wlan_vendor_attr_ratemask_params {
12514 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
12515 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
12516 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
12517 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
12518
12519 /* keep last */
12520 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
12521 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
12522 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
12523};
12524
Sunil8cd6f4d2022-06-28 18:40:46 +000012525/**
12526 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
12527 * traffic.
12528 *
12529 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
12530 * Send audio traffic through the host processor.
12531 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
12532 * Send audio traffic using the low power DSP to/from the encoder.
12533 */
12534enum qca_wlan_audio_data_path {
12535 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
12536 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
12537};
12538
12539/**
12540 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
12541 * for) or drop existing PASN security association for the listed the
12542 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
12543 * to userspace.
12544 *
12545 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
12546 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
12547 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
12548 * the driver to userspace to inform that the existing PASN keys of the
12549 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
12550 * not valid anymore.
12551 */
12552enum qca_wlan_vendor_pasn_action {
12553 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
12554 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
12555};
12556
12557/**
12558 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
12559 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
12560 *
12561 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
12562 * event from the driver to userspace and represents the local MAC address
12563 * to be used for PASN handshake. When this attribute is present, userspace
12564 * shall use the source address specified in this attribute by the driver
12565 * for PASN handshake with peer device.
12566 * This attribute is required in a command response from userspace to the
12567 * driver and represents the MAC address that was used in PASN handshake
12568 * with the peer device.
12569 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
12570 * peer device to which PASN handshake is requested in an event from the
12571 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12572 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
12573 * Indicates the MAC address of the peer device for which the keys are to
12574 * be invalidated in an event from the driver to userspace when
12575 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12576 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
12577 * Indicates the MAC address of the peer device for which the status is
12578 * being sent in a status report from userspace to the driver.
12579 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
12580 * in the event from the driver to userspace. When set, userspace is
12581 * required to derive LTF key seed from KDK and set it to the driver.
12582 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
12583 * attribute is used in the command response from userspace to the driver.
12584 * If present, it indicates the successful PASN handshake with the peer. If
12585 * this flag is not present, it indicates that the PASN handshake with the
12586 * peer device failed.
12587 */
12588enum qca_wlan_vendor_attr_pasn_peer {
12589 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
12590 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
12591 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
12592 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
12593 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
12594
12595 /* keep last */
12596 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
12597 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
12598 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
12599};
12600
12601/**
12602 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
12603 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
12604 *
12605 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
12606 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
12607 * from the driver to userspace.
12608 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
12609 * details for each peer and used in both an event and a command response.
12610 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
12611 * defined in enum qca_wlan_vendor_attr_pasn_peer.
12612 */
12613enum qca_wlan_vendor_attr_pasn {
12614 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
12615 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
12616 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
12617
12618 /* keep last */
12619 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
12620 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
12621 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
12622};
12623
12624/**
12625 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
12626 * the ranging security context derived from PASN for each peer. Used in
12627 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
12628 *
12629 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
12630 * context for the peer.
12631 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
12632 * context for the peer.
12633 */
12634enum qca_wlan_vendor_secure_ranging_ctx_action {
12635 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
12636 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
12637};
12638
12639/**
12640 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
12641 * used for deriving PASN keys to the driver. Used in
12642 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
12643 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
12644 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
12645 */
12646enum qca_wlan_vendor_sha_type {
12647 QCA_WLAN_VENDOR_SHA_256,
12648 QCA_WLAN_VENDOR_SHA_384,
12649};
12650
12651/**
12652 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
12653 * to set security context for the PASN peer from userspace to the driver.
12654 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
12655 *
12656 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
12657 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
12658 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
12659 * was used during the PASN handshake.
12660 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
12661 * the peer device for which secure ranging context is being configured.
12662 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
12663 * hash algorithm to be used, possible values are defined in enum
12664 * qca_wlan_vendor_sha_type.
12665 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
12666 * the temporal key generated from the PASN handshake. The length of this
12667 * attribute is dependent on the value of
12668 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
12669 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
12670 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
12671 * (e.g., 0x000FAC04).
12672 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
12673 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
12674 * The length of this attribute is dependent on the value of
12675 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
12676
12677 */
12678enum qca_wlan_vendor_attr_secure_ranging_ctx {
12679 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
12680 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
12681 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
12682 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
12683 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
12684 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
12685 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
12686 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
12687
12688 /* keep last */
12689 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
12690 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
12691 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
12692};
12693
Sunil Ravi89eba102022-09-13 21:04:37 -070012694/**
12695 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
12696 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
12697 * nested attribute. The packets that match a filter will be replied with
12698 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
12699 *
12700 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
12701 * u32 attribute. Destination IPv4 address in network byte order, the
12702 * IPv4 packets with different address will be filtered out.
12703 * This attribute is optional.
12704 *
12705 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
12706 * Flag attribute. If it's present, indicates that
12707 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
12708 * address; while if not, indicates that the address is a unicast/multicast
12709 * address.
12710 * This attribute is optional.
12711 *
12712 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
12713 * NLA_BINARY attribute, length is 16 bytes.
12714 * Destination IPv6 address in network byte order, the IPv6 packets
12715 * with different destination address will be filtered out.
12716 * This attribute is optional.
12717 *
12718 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
12719 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
12720 * Packets on both IPv4 and IPv6 will be processed if both are configured.
12721 *
12722 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
12723 * u16 attribute. Destination UDP port, the packets with different destination
12724 * UDP port will be filtered out.
12725 * This attribute is mandatory.
12726 *
12727 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
12728 * u32 attribute. Represents the offset (in UDP payload) of the data
12729 * to be matched.
12730 * This attribute is mandatory.
12731 *
12732 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
12733 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
12734 * Binary data that is compared bit-by-bit against the data (specified
12735 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
12736 * payload, the packets don't match will be filtered out.
12737 * This attribute is mandatory.
12738 */
12739enum qca_wlan_vendor_attr_coap_offload_filter {
12740 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
12741 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
12742 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
12743 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
12744 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
12745 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
12746 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
12747
12748 /* keep last */
12749 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
12750 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
12751 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
12752};
12753
12754/**
12755 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
12756 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
12757 *
12758 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
12759 * u32 attribute. Source address (in network byte order) for replying
12760 * the matching broadcast/multicast IPv4 packets.
12761 * This attribute is optional.
12762 *
12763 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
12764 * NLA_BINARY attribute, length is 16 bytes.
12765 * Source address (in network byte order) for replying the matching
12766 * multicast IPv6 packets.
12767 * This attribute is optional.
12768 *
12769 * For broadcast/multicast offload reply, one of
12770 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
12771 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
12772 * configured according to version of the IP address(es) configured in
12773 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
12774 * while for unicast case, firmware will take the destination IP address
12775 * in the received matching packet as the source address for replying.
12776 *
12777 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
12778 * Nested attribute. Filter for the received UDP packets, only the matching
12779 * packets will be replied and cached.
12780 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
12781 * attributes.
12782 * This attribute is mandatory.
12783 *
12784 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
12785 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
12786 * CoAP message (UDP payload) to be sent upon receiving matching packets.
12787 * Firmware is responsible for adding any necessary protocol headers.
12788 * This attribute is mandatory.
12789 *
12790 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
12791 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
12792 * A cached message will be dropped by firmware if it's expired.
12793 * This attribute is optional. A default value of 40000 will be used in the
12794 * absence of it.
12795 */
12796enum qca_wlan_vendor_attr_coap_offload_reply {
12797 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
12798 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
12799 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
12800 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
12801 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
12802 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
12803
12804 /* keep last */
12805 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
12806 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
12807 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
12808};
12809
12810/**
12811 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
12812 * CoAP message (UDP) transmitting on IPv4.
12813 *
12814 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
12815 * u32 attribute. Source address (in network byte order) for transmitting
12816 * packets on IPv4.
12817 * This attribute is mandatory.
12818 *
12819 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
12820 * u16 attribute. Source UDP port.
12821 * This attribute is optional, a random port is taken if it's not present.
12822 *
12823 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
12824 * u32 attribute. Destination IPv4 address (in network byte order).
12825 * This attribute is mandatory.
12826 *
12827 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
12828 * Flag attribute. If it's present, indicates that
12829 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
12830 * address; while if not, indicates that the address is unicast/multicast
12831 * address.
12832 * This attribute is optional.
12833 *
12834 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
12835 * u16 attribute. Destination UDP port.
12836 * This attribute is mandatory.
12837 */
12838enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
12839 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
12840 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
12841 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
12842 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
12843 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
12844 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
12845
12846 /* keep last */
12847 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
12848 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
12849 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
12850};
12851
12852/**
12853 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
12854 * CoAP message (UDP) transmitting on IPv6.
12855 *
12856 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
12857 * NLA_BINARY attribute, length is 16 bytes.
12858 * Source address (in network byte order) for transmitting packets on IPv6.
12859 * This attribute is mandatory.
12860 *
12861 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
12862 * u16 attribute. Source UDP port.
12863 * This attribute is optional, a random port is taken if it's not present.
12864 *
12865 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
12866 * NLA_BINARY attribute, length is 16 bytes.
12867 * Destination IPv6 address (in network byte order).
12868 * This attribute is mandatory.
12869 *
12870 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
12871 * u16 attribute. Destination UDP port.
12872 * This attribute is mandatory.
12873 */
12874enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
12875 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
12876 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
12877 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
12878 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
12879 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
12880
12881 /* keep last */
12882 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
12883 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
12884 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
12885};
12886
12887/**
12888 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
12889 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
12890 *
12891 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
12892 * Nested attribute. The IPv4 source/destination address/port for offload
12893 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
12894 * of supported attributes.
12895 * This attribute is optional.
12896 *
12897 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
12898 * Nested attribute. The IPv6 source/destination address/port for offload
12899 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
12900 * of supported attributes.
12901 * This attribute is optional.
12902 *
12903 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
12904 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
12905 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
12906 * configured.
12907 *
12908 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
12909 * u32 attribute. Period in milliseconds for the periodic transmitting.
12910 * This attribute is mandatory.
12911 *
12912 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
12913 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
12914 * CoAP message (UDP payload) to be periodically transmitted. Firmware
12915 * is responsible for adding any necessary protocol headers.
12916 * This attribute is mandatory.
12917 */
12918enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
12919 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
12920 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
12921 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
12922 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
12923 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
12924
12925 /* keep last */
12926 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
12927 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
12928 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
12929};
12930
12931/**
12932 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
12933 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
12934 *
12935 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
12936 * u64 attribute. Received time (since system booted in microseconds) of
12937 * the cached CoAP message.
12938 * This attribute is mandatory.
12939 *
12940 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
12941 * u32 attribute. Source IPv4 address (in network byte order) of the cached
12942 * CoAP message.
12943 * This attribute is optional.
12944 *
12945 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
12946 * NLA_BINARY attribute, length is 16 bytes.
12947 * Source IPv6 address (in network byte order) of the cached CoAP message.
12948 * This attribute is optional.
12949 *
12950 * At most and at least one of
12951 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
12952 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
12953 * an entry.
12954 *
12955 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
12956 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
12957 * The cached CoAP message (UDP payload). If the actual message size is
12958 * greater than the maximum size, it will be truncated and leaving only
12959 * the first 1152 bytes.
12960 * This attribute is mandatory.
12961 */
12962enum qca_wlan_vendor_attr_coap_offload_cache_info {
12963 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
12964 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
12965 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
12966 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
12967 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
12968
12969 /* keep last */
12970 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
12971 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
12972 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
12973};
12974
12975/**
12976 * enum qca_wlan_vendor_coap_offload_action - Actions for
12977 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
12978 *
12979 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
12980 * Enable CoAP offload reply.
12981 * If it's enabled, firmware will start offload processing on each suspend
12982 * and stop on each resume.
12983 *
12984 * Offload reply on match works as follows:
12985 * Reply the packets that match the filter with the given CoAP
12986 * message (with necessary protocol headers), increase the CoAP message
12987 * ID in the given CoAP message by one for the next use after each successful
12988 * transmission, and try to store the information of the received packet,
12989 * including the received time, source IP address, and CoAP message (UDP
12990 * payload).
12991 *
12992 * Firmware has a limit to the maximum stored entries, it takes the source IP
12993 * address as the key of an entry, and keeps at most one entry for each key.
12994 * A packet won't be stored if no entry for the same key is present and the
12995 * total number of the existing unexpired entries reaches the maximum value.
12996 *
12997 * If any configured item is changed, user space should disable offload reply
12998 * first and then issue a new enable request.
12999 *
13000 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13001 * Disable CoAP offload reply and return information of any cached CoAP
13002 * messages.
13003 *
13004 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13005 * Enable CoAP offload periodic transmitting.
13006 * If it's enabled, firmware will start offload periodic transmitting on
13007 * each suspend and stop on each resume.
13008 *
13009 * Offload periodic transmitting works as follows:
13010 * Send the given CoAP message (with necessary protocol headers) with the given
13011 * source/destination IP address/UDP port periodically based on the given
13012 * period and increase the CoAP message ID in the given CoAP message by one
13013 * for the next use after each successful transmission.
13014 *
13015 * If any configured item is changed, user space should disable offload
13016 * periodic transmitting first and then issue a new enable request.
13017 *
13018 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13019 * Disable CoAP offload periodic transmitting.
13020 *
13021 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13022 * Get information of the CoAP messages cached during offload reply
13023 * processing. The cache is cleared after retrieval.
13024 */
13025enum qca_wlan_vendor_coap_offload_action {
13026 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13027 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13028 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13029 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13030 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13031};
13032
13033/**
13034 * enum qca_wlan_vendor_attr_coap_offload - Used by the
13035 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13036 * This is used to set parameters for CoAP offload processing, or get
13037 * cached CoAP messages from firmware.
13038 *
13039 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13040 * u32 attribute. Action to take in this vendor command.
13041 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13042 * This attribute is mandatory.
13043 *
13044 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13045 * u32 attribute. Represents the Request ID for the CoAP offload
13046 * configuration, which can help to identify the user entity starting
13047 * the CoAP offload processing and accordingly stop the respective
13048 * ones/get the cached CoAP messages with the matching ID.
13049 * This attribute is mandatory.
13050 *
13051 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13052 * Nested attribute. Parameters for offload reply.
13053 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13054 * supported attributes.
13055 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13056 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13057 * otherwise.
13058 *
13059 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13060 * Nested attribute. Parameters for offload periodic transmitting.
13061 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13062 * supported attributes.
13063 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13064 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13065 * otherwise.
13066 *
13067 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13068 * Array of nested attributes. Information of the cached CoAP messages,
13069 * where each entry is taken from
13070 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13071 * This attribute is used for reporting the cached CoAP messages
13072 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13073 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13074 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13075 * cached item if this attribute is not present.
13076 */
13077enum qca_wlan_vendor_attr_coap_offload {
13078 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13079 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13080 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13081 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13082 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13083 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13084
13085 /* keep last */
13086 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13087 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13088 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13089};
13090
13091/**
13092 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13093 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13094 * Service (SCS) rule.
13095 *
13096 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13097 * Represents the unique id of SCS rule to be configured.
13098
13099 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13100 * Represents the request type: add, remove, or change.
13101 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13102 * Type definitions).
13103 *
13104 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13105 * in case of add/change request type.
13106 * Represents the output traffic identifier (TID) to be assigned to the flow
13107 * matching the rule.
13108 *
13109 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13110 * attribute in case of add/change request type.
13111 * Represents type of classifier parameters present in SCS rule.
13112 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13113 * Only classifier types 4 and 10 are supported for SCS.
13114 *
13115 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13116 * in case of add/change request type when classifier type is TCLAS4.
13117 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13118 *
13119 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13120 * attribute in case of add/change request type when classifier type is TCLAS4
13121 * and version attribute is IPv4.
13122 * Represents the source IPv4 address in the rule which is to be compared
13123 * against the source IP address in the IPv4 header.
13124 *
13125 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13126 * attribute in case of add/change request type when classifier type is TCLAS4
13127 * and version attribute is IPv4.
13128 * Represents the destination IPv4 address in the rule which is to be compared
13129 * against the destination IP address in the IPv4 header.
13130 *
13131 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13132 * attribute in case of add/change request type when classifier type is TCLAS4
13133 * and version attribute is IPv6.
13134 * Represents the source IPv6 address in the rule which is to be compared
13135 * against the source IP address in the IPv6 header.
13136 *
13137 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
13138 * attribute in case of add/change request type when classifier type is TCLAS4
13139 * and version attribute is IPv6.
13140 * Represents the destination IPv6 address in the rule which is to be compared
13141 * against the destination IP address in the IPv6 header.
13142 *
13143 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
13144 * in case of add/change request type when classifier type is TCLAS4.
13145 * Represents the source port number in the rule which is to be compared against
13146 * the source port number in the protocol header.
13147 *
13148 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
13149 * in case of add/change request type when classifier type is TCLAS4.
13150 * Represents the destination port number in the rule which is to be compared
13151 * against the destination port number in the protocol header.
13152 *
13153 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
13154 * in case of add/change request type when classifier type is TCLAS4.
13155 * Represents the DSCP value in the rule which is to be compared against the
13156 * DSCP field present in the IP header.
13157 *
13158 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
13159 * attribute in case of add/change request type when classifier type is TCLAS4.
13160 * Represents the protocol/next header in the rule which is to be compared
13161 * against the protocol/next header field present in the IPv4/IPv6 header.
13162 *
13163 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
13164 * attribute of size 3 bytes present in case of add/change request type
13165 * when classifier type is TCLAS4 and version is IPv6.
13166 * Represents the flow label value in the rule which is to be compared against
13167 * the flow label field present in the IPv6 header.
13168 *
13169 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
13170 * attribute in case of add/change request type when classifier type is TCLAS10.
13171 * Represents the protocol instance number in the rule.
13172 *
13173 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
13174 * attribute in case of add/change request type when classifier type is TCLAS10.
13175 * Represents the protocol/next header in the rule which is to be compared
13176 * against the protocol/next header field present in the IPv4/IPv6 header.
13177 *
13178 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
13179 * attribute of variable length present when request type is add/change and
13180 * classifier type is TCLAS10.
13181 * Represents the mask to be used for masking the header contents of the header
13182 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
13183 * attribute.
13184 *
13185 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
13186 * attribute of variable length present when request type is add/change and
13187 * classifier type is TCLAS10.
13188 * Represents the value to be compared against after masking the header contents
13189 * of the header specified by the
13190 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
13191 * filter mask specified by the
13192 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
13193 */
13194enum qca_wlan_vendor_attr_scs_rule_config {
13195 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
13196 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
13197 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
13198 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
13199 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
13200 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
13201 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
13202 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
13203 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
13204 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
13205 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
13206 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
13207 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
13208 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
13209 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
13210 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
13211 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
13212 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
13213 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
13214
13215 /* Keep last */
13216 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
13217 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
13218 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
13219};
13220
13221/**
13222 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
13223 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
13224 *
13225 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
13226 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
13227 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
13228 */
13229enum qca_wlan_vendor_attr_mlo_links {
13230 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
13231 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
13232 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
13233 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
13234
13235 /* Keep last */
13236 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
13237 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
13238 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
13239};
13240
13241/**
13242 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
13243 * used in the firmware.
13244 *
13245 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
13246 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
13247 *
13248 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
13249 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
13250 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
13251 * groups.
13252 *
13253 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
13254 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
13255 * CTL group but user can choose up to 3 SAR set index only, as the top half
13256 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
13257 * the SAR index (3 to 5) is used for DBS mode.
13258 */
13259enum qca_wlan_vendor_sar_version {
13260 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
13261 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
13262 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
13263 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
13264};
13265
13266/**
13267 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
13268 * CTL grouping is enabled or disabled in the firmware.
13269 *
13270 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
13271 * is enabled in firmware.
13272 *
13273 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
13274 * is disabled in firmware.
13275 *
13276 */
13277enum qca_wlan_vendor_sar_ctl_group_state {
13278 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
13279 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
13280 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
13281};
13282
13283/**
13284 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
13285 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
13286 * supported by the firmware.
13287
13288 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
13289 * u32 attribute. This field describes current SAR version supported by the
13290 * firmware.
13291 * See enum qca_wlan_vendor_sar_version for more information.
13292 * This attribute is mandatory.
13293
13294 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
13295 * u32 attribute. This field describes whether CTL groups are enabled
13296 * or disabled in the firmware.
13297 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
13298 * This attribute is optional.
13299 */
13300
13301enum qca_wlan_vendor_attr_sar_capability {
13302 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
13303 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
13304 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
13305
13306 /* Keep last */
13307 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
13308 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
13309 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
13310};
13311
13312/**
13313 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
13314 * These statistics are sent from the driver in a response when userspace
13315 * queries to get the statistics using the operation
13316 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
13317 * by the driver when the SR feature is enabled, when the driver receives
13318 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
13319 *
13320 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
13321 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13322 * This represents the number of non-SRG TX opportunities.
13323 *
13324 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
13325 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13326 * This represents the number of non-SRG PPDUs tried to transmit.
13327 *
13328 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
13329 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13330 * This represents the number of non-SRG PPDUs successfully transmitted.
13331 *
13332 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
13333 * Mandatory only when SRG is supported by the AP and optional otherwise.
13334 * This represents the number of SRG TX opportunities.
13335 *
13336 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
13337 * Mandatory only when SRG is supported by the AP and optional otherwise.
13338 * This represents the number of SRG PPDUs tried to transmit.
13339 *
13340 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
13341 * Mandatory only when SRG is supported by the AP and optional otherwise.
13342 * This represents the number of SRG PPDUs successfully transmitted.
13343 */
13344enum qca_wlan_vendor_attr_sr_stats {
13345 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
13346 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
13347 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
13348 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
13349 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
13350 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
13351 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
13352
13353 /* Keep last */
13354 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
13355 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
13356 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
13357};
13358
13359/**
13360 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
13361 * Spatial Reuse feature.
13362 *
13363 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
13364 * roaming to an AP that doesn't support/supports SR feature, respectively.
13365 *
13366 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
13367 * to change in concurrent interfaces that are supported by the driver.
13368 */
13369enum qca_wlan_sr_reason_code {
13370 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
13371 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
13372};
13373
13374/**
13375 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
13376 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
13377 *
13378 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
13379 * driver to enable the Spatial Reuse feature. Attributes
13380 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
13381 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
13382 * operation.
13383 *
13384 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
13385 * driver to disable the Spatial Reuse feature.
13386 *
13387 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
13388 * asynchronous event sent to userspace when the SR feature is disabled.
13389 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
13390 * and sent along with the asynchronous event.
13391 *
13392 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
13393 * asynchronous event when the SR feature is enabled again after the SR feature
13394 * was suspended by the driver earlier. The enable reason is
13395 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
13396 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
13397 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
13398 *
13399 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
13400 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
13401 * reuse transmissions. Userspace sends this operation to the driver.
13402 * The driver/firmware upon receiving this operation shall prohibit PSR-based
13403 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
13404 *
13405 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
13406 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
13407 * reuse transmissions. Userspace sends this operation to the driver.
13408 * The driver/firmware upon receiving this operation shall allow PSR-based
13409 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
13410 *
13411 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
13412 * driver to get the SR statistics and the driver sends a synchronous response
13413 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
13414 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
13415 *
13416 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
13417 * driver to clear the SR statistics and upon receiving this operation
13418 * the driver/firmware shall clear the SR statistics.
13419 *
13420 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
13421 * driver to get the SR parameters and the driver sends the synchronous response
13422 * with the following required attributes:
13423 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
13424 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
13425 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
13426 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
13427 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
13428 *
13429 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
13430 * asynchronous event to userspace to update any changes in SR parameters.
13431 * The following attributes are used with this operation:
13432 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
13433 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
13434 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
13435 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
13436 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
13437 */
13438enum qca_wlan_sr_operation {
13439 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
13440 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
13441 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
13442 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
13443 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
13444 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
13445 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
13446 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
13447 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
13448 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
13449};
13450
13451/**
13452 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
13453 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
13454 *
13455 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
13456 * This attribute is optionally set in response to
13457 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
13458 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
13459 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
13460 * about HESIGA_Spatial_reuse_value15_allowed.
13461 *
13462 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
13463 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
13464 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
13465 * allowed or not at non-AP STAs that are associated with the AP. If present
13466 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
13467 *
13468 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
13469 * attribute. This attribute is used in response to
13470 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
13471 * Min Offset field which contains an unsigned integer that is added to -82 dBm
13472 * to generate the value of the SRG OBSS PD Min parameter.
13473 *
13474 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
13475 * attribute. This attribute is used in response to
13476 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
13477 * Max Offset field which contains an unsigned integer that is added to -82 dBm
13478 * to generate the value of the SRG OBSS PD Max parameter.
13479 *
13480 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
13481 * attribute. This attribute is used in response to
13482 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
13483 * PD Max Offset field which contains an unsigned integer that is added to -82
13484 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
13485 *
13486 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
13487 * Userspace optionally sends this attribute with
13488 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
13489 * preferred SRG PD threshold. The driver shall send this attribute to
13490 * userspace in SR resume event to indicate the PD threshold being used for SR.
13491 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
13492 * the driver shall indicate the userspace the newly configured SRG PD threshold
13493 * using an asynchronous event.
13494 *
13495 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
13496 * Userspace optionally sends this attribute with
13497 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
13498 * preferred non-SRG PD threshold. The driver shall send this attribute to
13499 * userspace in SR resume event to indicate the PD threshold being used for SR.
13500 * When there is change in non-SRG PD threshold (for example, due to roaming,
13501 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
13502 * threshold using an asynchronous event.
13503 *
13504 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
13505 * values are defined in enum qca_wlan_sr_reason_code. This
13506 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
13507 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
13508 */
13509enum qca_wlan_vendor_attr_sr_params {
13510 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
13511 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
13512 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
13513 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
13514 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
13515 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
13516 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
13517 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
13518 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
13519
13520 /* keep last */
13521 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
13522 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
13523 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
13524};
13525
13526/**
13527 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
13528 * command QCA_NL80211_VENDOR_SUBCMD_SR.
13529 *
13530 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
13531 * from userspace to the driver. Possible values are defined in enum
13532 * qca_wlan_sr_operation.
13533 *
13534 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
13535 * configuration parameters. The possible attributes inside this attribute are
13536 * defined in enum qca_wlan_vendor_attr_sr_params.
13537 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
13538 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
13539 * also in response from the driver to userspace when the response is sent for
13540 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
13541 * The driver uses this attribute in asynchronous events in which the operation
13542 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
13543 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
13544 *
13545 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
13546 * statistics. These attributes used inside this are defined in enum
13547 * qca_wlan_vendor_attr_sr_stats.
13548 * This attribute is used in response from the driver to a command in which
13549 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
13550 * %QCA_WLAN_SR_OPERATION_GET_STATS.
13551 */
13552enum qca_wlan_vendor_attr_sr {
13553 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
13554 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
13555 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
13556 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
13557
13558 /* Keep last */
13559 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
13560 QCA_WLAN_VENDOR_ATTR_SR_MAX =
13561 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
13562};
13563
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080013564#endif /* QCA_VENDOR_H */