blob: 2a4086b7674f8040c8908879eebb441cf50983eb [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 Ravi036cec52023-03-29 11:35:17 -07005 * Copyright (c) 2021-2023, 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 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000067 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
68 * capability or to form a session with the specified peer.
69 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
70 * indicates to enable TDLS capability on the interface.
71 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
72 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
73 * form a TDLS session with the specified peer MAC address.
74 * The attributes used with this command are defined in
75 * enum qca_wlan_vendor_attr_tdls_enable.
76 *
77 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
78 * capability or to terminate the session with the specified peer.
79 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
80 * indicates to disable TDLS capability on the interface.
81 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
82 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
83 * terminate TDLS session with the specified peer MAC address.
84 * The attributes used with this command are defined in
85 * enum qca_wlan_vendor_attr_tdls_disable.
86 *
87 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
88 * status at the interface level or with the specific peer.
89 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
90 * indicates the TDLS status query is at interface level.
91 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
92 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
93 * get TDLS session status with the specified peer MAC address.
94 * The attributes used with this command are defined in
95 * enum qca_wlan_vendor_attr_tdls_get_status.
96 *
97 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
98 * of the TDLS session request with the peer sent by userspace in
99 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
100 * The attributes used with this command are defined in
101 * enum qca_wlan_vendor_attr_tdls_state.
102 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800103 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
104 * used to configure PMK to the driver even when not connected. This can
105 * be used to request offloading of key management operations. Only used
106 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
107 *
108 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
109 * NL80211_CMD_ROAM event with optional attributes including information
110 * from offloaded key management operation. Uses
111 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
112 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
113 *
114 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
115 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -0700116 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800117 *
118 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
119 * supported by the driver. enum qca_wlan_vendor_features defines
120 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800121 *
122 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
123 * which supports DFS offloading, to indicate a channel availability check
124 * start.
125 *
126 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
127 * which supports DFS offloading, to indicate a channel availability check
128 * completion.
129 *
130 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
131 * which supports DFS offloading, to indicate that the channel availability
132 * check aborted, no change to the channel status.
133 *
134 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
135 * driver, which supports DFS offloading, to indicate that the
136 * Non-Occupancy Period for this channel is over, channel becomes usable.
137 *
138 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
139 * which supports DFS offloading, to indicate a radar pattern has been
140 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700141 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700142 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
143 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
144 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +0000145 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
146 * configure various wiphy or interface level configurations. Attributes
147 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
148 * or more configuration attributes with a single command. The driver
149 * accepts the command only if all the configurations are known, otherwise
150 * it rejects the command. The driver returns success only if processing of
151 * all the configurations succeeds. The driver continues to process all the
152 * configurations even if processing of some configurations failed and
153 * returns the last error occurred while processing the failed
154 * configurations.
155 *
156 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
157 * get the current values of the various wiphy or interface level
158 * configurations. Attributes are defined in enum
159 * qca_wlan_vendor_attr_config. Userspace needs to specify the
160 * configuration attributes for which it wants to get the values in the
161 * command, there is no significance for the value sent in the attribute
162 * unless explicitly specified in the corresponding configuration
163 * attribute documentation. The driver accepts the command only if all the
164 * configurations are known, otherwise it rejects the command. The driver
165 * returns success only if fetching of all configuration values succeeds
166 * and indicates the configuration values in corresponding attributes in
167 * the response. The driver continues to process all the configurations
168 * even if processing of some configurations failed and returns the last
169 * error occurred while processing the failed configurations.
170 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700171 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
172 * based on enum wifi_logger_supported_features. Attributes defined in
173 * enum qca_wlan_vendor_attr_get_logger_features.
174 *
175 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
176 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
177 * attribute for this command. Attributes defined in
178 * enum qca_wlan_vendor_attr_wifi_logger_start.
179 *
180 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
181 * capabilities of the driver, parameters includes the attributes defined
182 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
183 *
184 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
185 * sending of certain periodic IP packet to firmware, attributes defined in
186 * enum qca_wlan_vendor_attr_offloaded_packets.
187 *
188 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
189 * monitoring, defines min and max RSSI which are configured for RSSI
190 * monitoring. Also used to notify the RSSI breach and provides the BSSID
191 * and RSSI value that was breached. Attributes defined in
192 * enum qca_wlan_vendor_attr_rssi_monitoring.
193 *
194 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
195 * Data Path (NDP) related operations, attributes defined in
196 * enum qca_wlan_vendor_attr_ndp_params.
197 *
198 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
199 * Neighbour Discovery offload, attributes defined in
200 * enum qca_wlan_vendor_attr_nd_offload.
201 *
202 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
203 * configuration parameter for BPF packet filter, attributes defined in
204 * enum qca_wlan_vendor_attr_packet_filter.
205 *
206 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
207 * maximum supported size, attributes defined in
208 * enum qca_wlan_vendor_drv_info.
209 *
210 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
211 * data about wake reasons and datapath IP statistics, attributes defined
212 * in enum qca_wlan_vendor_attr_wake_stats.
213 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700214 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
215 * for IEEE 802.11 communicating outside the context of a basic service
216 * set, called OCB command. Uses the attributes defines in
217 * enum qca_wlan_vendor_attr_ocb_set_config.
218 *
219 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
220 * UTC time. Use the attributes defines in
221 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
222 *
223 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
224 * sending OCB timing advert frames. Uses the attributes defines in
225 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
226 *
227 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
228 * OCB timing advert. Uses the attributes defines in
229 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
230 *
231 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
232 * timer value. Uses the attributes defines in
233 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
234 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800235 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
236 * link properties of the respective interface. As an event, is used
237 * to notify the connected station's status. The attributes for this
238 * command are defined in enum qca_wlan_vendor_attr_link_properties.
239 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700240 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
241 * to the driver. This command sets the band(s) through either the
242 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
243 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
244 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
245 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
246 * bit unsigned bitmask values. The allowed values for
247 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
248 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
249 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
250 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
251 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
252 * are included for backwards compatibility, the configurations through
253 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
254 * that support both attributes.
255 *
Hai Shalomc3565922019-10-28 11:58:20 -0700256 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
257 * DFS policy and channel hint for ACS operation. This command uses the
258 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
259 * enum qca_acs_dfs_mode.
260 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700261 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
262 * start the P2P Listen offload function in device and pass the listen
263 * channel, period, interval, count, device types, and vendor specific
264 * information elements to the device driver and firmware.
265 * Uses the attributes defines in
266 * enum qca_wlan_vendor_attr_p2p_listen_offload.
267 *
268 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
269 * indicate stop request/response of the P2P Listen offload function in
270 * device. As an event, it indicates either the feature stopped after it
271 * was already running or feature has actually failed to start. Uses the
272 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
273 *
274 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
275 * beaconing, this sub command provides the driver, the frequencies on the
276 * 5 GHz band to check for any radar activity. Driver selects one channel
277 * from this priority list provided through
278 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
279 * to check for radar activity on it. If no radar activity is detected
280 * during the channel availability check period, driver internally switches
281 * to the selected frequency of operation. If the frequency is zero, driver
282 * internally selects a channel. The status of this conditional switch is
283 * indicated through an event using the same sub command through
284 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
285 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700286 *
287 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
288 * attributes defined in enum qca_wlan_gpio_attr.
289 *
290 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
291 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
292 * capabilities are to be fetched and other
293 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
294 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700295 *
296 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
297 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
298 * command and event.
299 *
300 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
301 * indoor location features. Capabilities are reported in
302 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
303 *
304 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
305 * (fine timing measurement) session with one or more peers.
306 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
307 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
308 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
309 * events will be reported, followed by
310 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
311 * end of session.
312 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
313 *
314 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
315 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
316 * status code indicating session was aborted.
317 *
318 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
319 * results for one peer. Results are reported in
320 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
321 *
322 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
323 * FTM session is finished, either successfully or aborted by
324 * request.
325 *
326 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
327 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
328 * to enable or disable the responder. LCI/LCR reports can be
329 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
330 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
331 * times to update the LCI/LCR reports.
332 *
333 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
334 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800335 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
336 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
337 * scan results cache and use the frequency from there).
338 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
339 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700340 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
341 *
342 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
343 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
344 *
345 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
346 * the AOA measurement result.
347 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
348 * success/failure status is reported in
349 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
350 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
351 * The antenna array(s) used in the measurement are reported in
352 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700353 *
354 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
355 * data as per the given parameters.
356 *
357 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
358 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800359 *
360 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
361 * configuration for a DMG RF sector. Specify sector index in
362 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
363 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
364 * to return sector information for in
365 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
366 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
367 * exact time where information was captured in
368 * QCA_WLAN_VENDOR_ATTR_TSF.
369 *
370 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
371 * configuration for a DMG RF sector. Specify sector index in
372 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
373 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
374 * for one or more DMG RF modules in
375 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
376 *
377 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
378 * DMG RF sector for a station. This is the sector that the HW
379 * will use to communicate with the station. Specify the MAC address
380 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
381 * needed for unassociated station). Specify sector type to return in
382 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
383 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
384 * Also return the exact time where the information was captured
385 * in QCA_WLAN_VENDOR_ATTR_TSF.
386 *
387 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
388 * selected DMG RF sector for a station. This is the sector that
389 * the HW will use to communicate with the station.
390 * Specify the MAC address of associated station/AP/PCP in
391 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
392 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
393 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
394 * The selected sector will be locked such that it will not be
395 * modified like it normally does (for example when station
396 * moves around). To unlock the selected sector for a station
397 * pass the special value 0xFFFF in the sector index. To unlock
398 * all connected stations also pass a broadcast MAC address.
399 *
400 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
401 * in the host driver. The different TDLS configurations are defined
402 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800403 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800404 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
405 * capabilities. The response uses the attributes defined in
406 * enum qca_wlan_vendor_attr_get_he_capabilities.
407 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800408 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
409 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
410 * carries the scan cookie of the corresponding scan request. The scan
411 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800412 *
413 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
414 * Absorption Rate (SAR) power limits. A critical regulation for
415 * FCC compliance, OEMs require methods to set SAR limits on TX
416 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
417 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800418 *
419 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
420 * host driver for offloading the implementation of Auto Channel Selection
421 * (ACS) to an external user space entity. This interface is used as the
422 * event from the host driver to the user space entity and also as the
423 * request from the user space entity to the host driver. The event from
424 * the host driver is used by the user space entity as an indication to
425 * start the ACS functionality. The attributes used by this event are
426 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
427 * User space entity uses the same interface to inform the host driver with
428 * selected channels after the ACS operation using the attributes defined
429 * by enum qca_wlan_vendor_attr_external_acs_channels.
430 *
431 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
432 * requisite information leading to a power save failure. The information
433 * carried as part of this event is represented by the
434 * enum qca_attr_chip_power_save_failure attributes.
435 *
436 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
437 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
438 *
439 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
440 * statistics are represented by the enum qca_attr_nud_stats_get
441 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800442 *
443 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
444 * the BSS transition status, whether accept or reject, for a list of
445 * candidate BSSIDs provided by the userspace. This uses the vendor
446 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
447 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
448 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
449 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
450 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
451 * the driver shall specify array of
452 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
453 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
454 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
455 *
456 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
457 * specific QCA module. The trace levels are represented by
458 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700459 *
460 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
461 * Protocol antenna limit in different modes. See enum
462 * qca_wlan_vendor_attr_brp_ant_limit_mode.
463 *
464 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
465 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
466 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700467 * identifying the operation in success case. In failure cases an
468 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
469 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700470 *
471 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
472 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
473 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
474 * be stopped.
475 *
476 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
477 * specific interface. This can be used to modify some of the low level
478 * scan parameters (off channel dwell time, home channel time) in the
479 * driver/firmware. These parameters are maintained within the host driver.
480 * This command is valid only when the interface is in the connected state.
481 * These scan parameters shall be reset by the driver/firmware once
482 * disconnected. The attributes used with this command are defined in
483 * enum qca_wlan_vendor_attr_active_tos.
484 *
485 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
486 * driver has detected an internal failure. This event carries the
487 * information indicating the reason that triggered this detection. The
488 * attributes for this command are defined in
489 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700490 *
491 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
492 * of spectral parameters used. The spectral scan parameters are specified
493 * by enum qca_wlan_vendor_attr_spectral_scan.
494 *
495 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
496 * for spectral scan functionality. The debug stats are specified by
497 * enum qca_wlan_vendor_attr_spectral_diag_stats.
498 *
499 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
500 * scan system capabilities. The capabilities are specified
501 * by enum qca_wlan_vendor_attr_spectral_cap.
502 *
503 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
504 * status of spectral scan. The status values are specified
505 * by enum qca_wlan_vendor_attr_spectral_scan_status.
506 *
507 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
508 * peer pending packets. Specify the peer MAC address in
509 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
510 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
511 * in enum qca_wlan_vendor_attr_flush_pending.
512 *
513 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
514 * RF Operating Parameter (RROP) information. The attributes for this
515 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
516 * intended for use by external Auto Channel Selection applications.
517 *
518 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
519 * (SAR) power limits. This is a companion to the command
520 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
521 * settings currently in use. The attributes returned by this command are
522 * defined by enum qca_vendor_attr_sar_limits.
523 *
524 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
525 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
526 * information attached to the respective MAC.
527 * This works both as a query (user space asks the current mode) or event
528 * interface (driver advertising the current mode to the user space).
529 * Driver does not trigger this event for temporary hardware mode changes.
530 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
531 * channel change, etc.) are updated with this event. Attributes for this
532 * interface are defined in enum qca_wlan_vendor_attr_mac.
533 *
534 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
535 * per peer per TID. Attributes for this command are define in
536 * enum qca_wlan_set_qdepth_thresh_attr.
537 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
538 * guide for WLAN driver. Request to suspend of driver and FW if the
539 * temperature is higher than the suspend threshold; resume action is
540 * requested to driver if the temperature is lower than the resume
541 * threshold. In user poll mode, request temperature data by user. For test
542 * purpose, getting thermal shutdown configuration parameters is needed.
543 * Attributes for this interface are defined in
544 * enum qca_wlan_vendor_attr_thermal_cmd.
545 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
546 * driver. Thermal temperature and indication of resume completion are
547 * reported as thermal events. The attributes for this command are defined
548 * in enum qca_wlan_vendor_attr_thermal_event.
549 *
550 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
551 * test configuration. Attributes for this command are defined in
552 * enum qca_wlan_vendor_attr_wifi_test_config.
553 *
554 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
555 * RX filter to receive frames from stations that are active on the
556 * operating channel, but not associated with the local device (e.g., STAs
557 * associated with other APs). Filtering is done based on a list of BSSIDs
558 * and STA MAC addresses added by the user. This command is also used to
559 * fetch the statistics of unassociated stations. The attributes used with
560 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700561 *
562 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
563 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
564 * carried a payload which was a binary blob of data. The command was not
565 * extendable to send more information. The newer version carries the
566 * legacy blob encapsulated within an attribute and can be extended with
567 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800568 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
569 * or stopped within driver/firmware in order to initiate roaming. The
570 * attributes used with this event are defined in enum
571 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
572 * in few cases, e.g., if the host processor is sleeping when this event
573 * is generated in firmware.
574 *
575 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
576 * configure parameters per peer to capture Channel Frequency Response
577 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800578 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
579 * can also be used to send CFR data from the driver to userspace when
580 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800581 *
582 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
583 * in throughput dynamically. The driver estimates the throughput based on
584 * number of packets being transmitted/received per second and indicates
585 * the changes in throughput to user space. Userspace tools can use this
586 * information to configure kernel's TCP parameters in order to achieve
587 * peak throughput. Optionally, the driver will also send guidance on
588 * modifications to kernel's TCP parameters which can be referred by
589 * userspace tools. The attributes used with this event are defined in enum
590 * qca_wlan_vendor_attr_throughput_change.
591 *
592 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
593 * priorities among different types of traffic during coex scenarios.
594 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
595 * profiles mentioned in enum qca_coex_config_profiles. The associated
596 * attributes used with this command are defined in enum
597 * qca_vendor_attr_coex_config.
598 *
599 * Based on the config provided, FW will boost the weight and prioritize
600 * the traffic for that subsystem (WLAN/BT/Zigbee).
601 *
602 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
603 * the supported AKM suite selectorss from the driver. It returns the list
604 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700605 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
606 * state from the driver. It returns the firmware state in the attribute
607 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
608 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
609 * is used by the driver to flush per-peer cached statistics to user space
610 * application. This interface is used as an event from the driver to
611 * user space application. Attributes for this event are specified in
612 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
613 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
614 * sent in the event.
615 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
616 * improve the success rate of Zigbee joining network.
617 * Due to PTA master limitation, Zigbee joining network success rate is
618 * low while WLAN is working. The WLAN driver needs to configure some
619 * parameters including Zigbee state and specific WLAN periods to enhance
620 * PTA master. All these parameters are delivered by the attributes
621 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700622 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
623 * implement Beacon frame reporting feature.
624 *
625 * Userspace can request the driver/firmware to periodically report
626 * received Beacon frames whose BSSID is same as the current connected
627 * BSS's MAC address.
628 *
629 * In case the STA seamlessly (without sending disconnect indication to
630 * userspace) roams to a different BSS, Beacon frame reporting will be
631 * automatically enabled for the Beacon frames whose BSSID is same as the
632 * MAC address of the new BSS. Beacon reporting will be stopped when the
633 * STA is disconnected (when the disconnect indication is sent to
634 * userspace) and need to be explicitly enabled by userspace for next
635 * connection.
636 *
637 * When a Beacon frame matching configured conditions is received, and if
638 * userspace has requested to send asynchronous beacon reports, the
639 * driver/firmware will encapsulate the details of the Beacon frame in an
640 * event and send it to userspace along with updating the BSS information
641 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
642 * scan cache with the information from the received Beacon frame but will
643 * not send any active report to userspace.
644 *
645 * The userspace can request the driver/firmware to stop reporting Beacon
646 * frames. If the driver/firmware is not able to receive Beacon frames due
647 * to other Wi-Fi operations such as off-channel activities, etc., the
648 * driver/firmware will send a pause event to userspace and stop reporting
649 * Beacon frames. Whether the beacon reporting will be automatically
650 * resumed or not by the driver/firmware later will be reported to
651 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
652 * flag. The beacon reporting shall be resumed for all the cases except
653 * either when userspace sets
654 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
655 * which triggered the current beacon reporting or during any disconnection
656 * case as indicated by setting
657 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
658 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
659 * driver.
660 *
661 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
662 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
663 * flag not set, the next first
664 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
665 * shall be considered as un-pause event.
666 *
667 * All the attributes used with this command are defined in
668 * enum qca_wlan_vendor_attr_beacon_reporting_params.
669 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
670 * interop issues with the DUT. This sub command is used to transfer the
671 * AP info between the driver and user space. This works both as a command
672 * and an event. As a command, it configures the stored list of APs from
673 * user space to firmware; as an event, it indicates the AP info detected
674 * by the firmware to user space for persistent storage. The attributes
675 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
676 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700677 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
678 * send/receive OEM data binary blobs to/from application/service to/from
679 * firmware. The attributes defined in enum
680 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
681 * parameters.
682 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
683 * to send/receive avoid frequency data using
684 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
685 * This new command is alternative to existing command
686 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
687 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800688 * attributes. User space sends unsafe frequency ranges to the driver using
689 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
690 * reception of this command, the driver shall check if an interface is
691 * operating on an unsafe frequency and the driver shall try to move to a
692 * safe channel when needed. If the driver is not able to find a safe
693 * channel the interface can keep operating on an unsafe channel with the
694 * TX power limit derived based on internal configurations like
695 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700696 *
697 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
698 * add the STA node details in driver/firmware. Attributes for this event
699 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
700 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
701 * coex chain mode from application/service.
702 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
703 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800704 *
705 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
706 * get information of a station from driver to userspace. This command can
707 * be used in both STA and AP modes. For STA mode, it provides information
708 * of the current association when in connected state or the last
709 * association when in disconnected state. For AP mode, only information
710 * of the currently connected stations is available. This command uses
711 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700712 *
713 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
714 * Host drivers can request the user space entity to set the SAR power
715 * limits with this event. Accordingly, the user space entity is expected
716 * to set the SAR power limits. Host drivers can retry this event to the
717 * user space for the SAR power limits configuration from user space. If
718 * the driver does not get the SAR power limits from user space for all
719 * the retried attempts, it can configure a default SAR power limit.
720 *
721 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
722 * is used to update the information about the station from the driver to
723 * userspace. Uses attributes from enum
724 * qca_wlan_vendor_attr_update_sta_info.
725 *
726 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
727 * The host driver initiates the disconnection for scenarios such as beacon
728 * miss, NUD failure, peer kick out, etc. The disconnection indication
729 * through cfg80211_disconnected() expects the reason codes from enum
730 * ieee80211_reasoncode which does not signify these various reasons why
731 * the driver has triggered the disconnection. This event will be used to
732 * send the driver specific reason codes by the host driver to userspace.
733 * Host drivers should trigger this event and pass the respective reason
734 * code immediately prior to triggering cfg80211_disconnected(). The
735 * attributes used with this event are defined in enum
736 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700737 *
738 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
739 * add/delete TSPEC for each AC. One command is for one specific AC only.
740 * This command can only be used in STA mode and the STA must be
741 * associated with an AP when the command is issued. Uses attributes
742 * defined in enum qca_wlan_vendor_attr_config_tspec.
743 *
744 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
745 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
746 *
747 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
748 * the driver. The band configurations obtained are referred through
749 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
750 *
751 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
752 * assessment.
753 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
754 *
755 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
756 * used to update SSID information in hostapd when it is updated in the
757 * driver. Uses the attribute NL80211_ATTR_SSID.
758 *
759 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
760 * the driver to send opaque data from the firmware to userspace. The
761 * driver sends an event to userspace whenever such data is received from
762 * the firmware.
763 *
764 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
765 * send this opaque data for this event.
766 *
767 * The format of the opaque data is specific to the particular firmware
768 * version and there is no guarantee of the format remaining same.
769 *
770 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
771 * The host driver selects Tx VDEV, and notifies user. The attributes
772 * used with this event are defined in enum
773 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800774 * This event contains Tx VDEV group information, other VDEVs
775 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700776 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000777 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
778 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800779 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000780 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800781 *
782 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
783 * to query usable channels for different interface types such as STA,
784 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
785 * channels in the response based on country code, different static
786 * configurations, concurrency combinations, etc. The attributes used
787 * with this command are defined in
788 * enum qca_wlan_vendor_attr_usable_channels.
789 *
790 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
791 * to get DFS radar history from the driver to userspace. The driver
792 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
793 * array of nested entries.
794 *
795 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
796 * enable/disable mDNS offload to the firmware. The attributes used with
797 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
798 *
799 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
800 * to set packet monitor mode that aims to send the specified set of TX and
801 * RX frames on the current client interface to an active monitor
802 * interface. If this monitor mode is set, the driver will send the
803 * configured frames, from the interface on which the command is issued, to
804 * an active monitor interface. The attributes used with this command are
805 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
806 *
807 * Though the monitor mode is configured for the respective
808 * Data/Management/Control frames, it is up to the respective WLAN
809 * driver/firmware/hardware designs to consider the possibility of sending
810 * these frames over the monitor interface. For example, the Control frames
811 * are handled within the hardware and thus passing such frames over the
812 * monitor interface is left to the respective designs.
813 *
814 * Also, this monitor mode is governed to behave accordingly in
815 * suspend/resume states. If the firmware handles any of such frames in
816 * suspend state without waking up the host and if the monitor mode is
817 * configured to notify all such frames, the firmware is expected to resume
818 * the host and forward the respective frames to the monitor interface.
819 * Please note that such a request to get the frames over the monitor
820 * interface will have a definite power implication.
821 *
822 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
823 * as a request to set the driver/firmware with the parameters to trigger
824 * the roaming events, and also used by the driver/firmware to pass on the
825 * various roam events to userspace.
826 * Applicable only for the STA mode. The attributes used with this command
827 * are defined in enum qca_wlan_vendor_attr_roam_events.
828 *
829 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
830 * rate mask config for a list of PHY types. Userspace shall provide an
831 * array of the vendor attributes defined in
832 * enum qca_wlan_vendor_attr_ratemask_params.
833 *
834 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
835 * when two interfaces are active on the same band, using two different
836 * home channels, and only supported by a single radio. In this scenario
837 * the device must split the use of the radio between the two interfaces.
838 * The percentage of time allocated to a given interface is the quota.
839 * Depending on the configuration, the quota can either be fixed or
840 * dynamic.
841 *
842 * When used as an event, the device will report the quota type, and for
843 * all interfaces operating in MCC it will report the current quota.
844 * When used as a command, the device can be configured for a specific
845 * quota type, and in the case of a fixed quota, the quota to apply to one
846 * of the interfaces.
847 *
848 * Applications can use the event to do TX bitrate control based on the
849 * information, and can use the command to explicitly set the quota to
850 * enhance performance in specific scenarios.
851 *
852 * The attributes used with this command are defined in
853 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000854 *
855 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
856 * get the WLAN radio combinations matrix supported by the device which
857 * provides the device simultaneous radio configurations such as
858 * standalone, dual band simultaneous, and single band simultaneous.
859 *
860 * The attributes used with this command are defined in
861 * enum qca_wlan_vendor_attr_radio_combination_matrix.
862 *
863 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
864 * that the driver is ready for operations again after recovering from
865 * internal failures. This occurs following a failure that was indicated by
866 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
867 *
868 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
869 * security negotiation and key generation to user space.
870 *
871 * When used as an event, the driver requests userspace to trigger the PASN
872 * authentication or dropping of a PTKSA for the indicated peer devices.
873 * When used as a command response, userspace indicates a consolidated
874 * status report for all the peers that were requested for.
875 *
876 * The attributes used with this command are defined in
877 * enum qca_wlan_vendor_attr_pasn.
878 *
879 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
880 * secure ranging context such as TK and LTF keyseed for each peer
881 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
882 *
883 * The attributes used with this command are defined in
884 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700885 *
886 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
887 * enable/disable offload processing in firmware during system/runtime
888 * suspend for CoAP messages (see RFC7252: The Constrained Application
889 * Protocol) and fetch information of the CoAP messages cached during
890 * offload processing.
891 *
892 * The attributes used with this command are defined in
893 * enum qca_wlan_vendor_attr_coap_offload.
894 *
895 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
896 * (add, remove, or change) a Stream Classification Service (SCS) rule.
897 *
898 * The attributes used with this event are defined in
899 * enum qca_wlan_vendor_attr_scs_rule_config.
900 *
901 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
902 * supported by the WLAN firmware.
903 *
904 * The attributes used with this command are defined in
905 * enum qca_wlan_vendor_attr_sar_capability.
906 *
907 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
908 * (SR) feature. This command is used by userspace to configure SR
909 * parameters to the driver and to get the SR related parameters and
910 * statistics with synchronous responses from the driver.
911 * The driver also uses this command to send asynchronous events to
912 * userspace to indicate suspend/resume of SR feature and changes
913 * in SR parameters.
914 *
915 * The attributes used with this command are defined in
916 * enum qca_wlan_vendor_attr_sr.
Sunil Ravi77d572f2023-01-17 23:58:31 +0000917 *
918 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
919 * notify application layer about the primary netdev of an MLO connection.
920 * In some implementations, MLO has multiple netdevs out of which one
921 * netdev is designated as primary to provide a unified interface to the
922 * bridge. In those implementations this event is sent on every MLO peer
Sunil Ravi2a14cf12023-11-21 00:54:38 +0000923 * connection. User applications on an AP MLD will use this event to get
924 * info for all the links from non-AP MLD that were negotiated to be used
925 * for the ML association.
Sunil Ravi77d572f2023-01-17 23:58:31 +0000926 *
927 * The attributes used with this event are defined in
928 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
929 *
930 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
931 * driver to notify different AFC events to userspace. The attributes used
932 * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
933 *
934 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
935 * userspace to deliver AFC response data to driver. The attributes used
936 * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
937 *
938 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
939 * operate in doze mode.
940 *
941 * Userspace uses this command to configure the AP interface to enter or
942 * exit from doze mode. The driver sends this event after it enters or
943 * exits the doze mode with the updated AP doze mode settings.
944 *
945 * The attributes used with this subcommand are defined in
946 * enum qca_wlan_vendor_attr_dozed_ap.
947 *
948 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
949 * to get the status of local packet capture of monitor mode. The monitor
950 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
951 * subcommand.
952 *
953 * The attributes used with this command are defined in enum
954 * qca_wlan_vendor_attr_get_monitor_mode.
955 *
956 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
957 * get roam information from the driver to user space. It provides the
958 * latest several instances of roam information cached in the driver.
959 * The command is only used for STA mode. The attributes used with this
960 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
Sunil Ravi036cec52023-03-29 11:35:17 -0700961 *
962 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
963 * configure and fetch the state information of the MLO links affiliated
964 * with the STA interface. The attributes used with this command are
965 * defined in enum qca_wlan_vendor_attr_mlo_link_state.
Sunil Ravi640215c2023-06-28 23:08:09 +0000966 *
967 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
968 * vendor subcommand to trigger channel utilization measurement on entire
969 * channel width of the connected channel(s). For MLO connection, connected
970 * channel utilization measurement shall be done on all the MLO links.
971 * The driver may use regular scan or wideband energy detection feature
972 * based on the hardware capability for connected channel(s) utilization
973 * measurement. The driver indicates the connected channel(s) utilization
974 * measurement completion as an asynchronous event with this command ID to
975 * userspace. Upon receiving this event, userspace can use
976 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
977 * connected channel(s) and can derive the channel utilization percentage
978 * (CU) of each 20 MHz sub-channel of the entire connected channel using
979 * %NL80211_CMD_GET_SURVEY response.
980 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
981 * This command is only used for STA mode.
982 *
983 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
984 * used as an event to notify the userspace of TID-to-link map changes
985 * negotiated by the driver or updated by associated AP MLD with Beacon,
986 * Probe Response, or Action frames. The attributes used with this command
987 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
988 *
989 * Note that the attribute
990 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
991 * the current connected AP MLD address.
992 *
993 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
994 * of STA MLD setup links due to the AP MLD removing the corresponding
995 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
996 * links are removed during Multi-Link reconfiguration, the driver shall
997 * use %NL80211_CMD_DISCONNECT instead of this command since it is a
998 * connection drop. The attributes used with this command are defined in
999 * enum qca_wlan_vendor_attr_link_reconfig.
1000 * Note that the attribute
1001 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
1002 * the current connected AP MLD address.
1003 *
1004 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
1005 * the driver with MLO link id information on which to transmit the TDLS
1006 * discovery response frame on the configured MLO BSS link when the
1007 * local station is connected in MLO mode. This command is sent to the
1008 * driver prior to the TDLS discovery response management transmit
1009 * operation and is followed immediately by the TDLS discovery response
1010 * management frame transmit command.
1011 *
1012 * The driver saves the configured MLO link id information and uses it for
1013 * the following TDLS discovery response frame transmission on the
1014 * configured MLO BSS link and the link id information is cleared in the
1015 * driver after the TDLS discovery response frame is successfully
1016 * transmitted. This behavior is indepent of the TDLS peer STA connection
1017 * mode (MLO or non-MLO).
1018 *
1019 * Uses the attributes defined in
1020 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001021 *
1022 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
1023 * configure, retrieve, and report per-link transmit latency statistics.
1024 *
1025 * The attributes used with this subcommand are defined in
1026 * enum qca_wlan_vendor_attr_tx_latency.
Sunil Ravi72e01222024-03-09 01:25:43 +00001027 *
1028 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
1029 * query transmit power information on STA interface from the driver for a
1030 * connected AP. The attributes included in response are defined in
1031 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
1032 * TPC info may be returned. The information includes regulatory maximum
1033 * transmit power limit, AP local power constraint advertised from AP's
1034 * Beacon and Probe Response frames. For PSD power mode, the information
1035 * includes PSD power levels for each subchannel of operating bandwidth.
1036 * The information is driver calculated power limits based on the current
1037 * regulatory domain, AP local power constraint, and other IEs. The
1038 * information will be set to target. Target will decide the final TX power
1039 * based on this and chip specific power conformance test limits (CTL), and
1040 * SAR limits.
1041 *
1042 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
1043 * driver to user space which is carrying firmware page fault related
1044 * summary report. The attributes for this command are defined in
1045 * enum qca_wlan_vendor_attr_fw_page_fault_report.
1046 *
1047 * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver
1048 * to user space to disassociate with a peer based on the peer MAC address
1049 * provided. Specify the peer MAC address in
1050 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided.
Sunil Raviaf399a82024-05-05 20:56:55 +00001051 *
1052 * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to
1053 * adjust transmit power. The attributes used with this subcommand are
1054 * defined in enum qca_wlan_vendor_attr_adjust_tx_power.
1055 *
1056 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the
1057 * driver to notify user application about the spectral scan completion.
1058 * The attributes used with this subcommand are defined in
1059 * enum qca_wlan_vendor_attr_spectral_scan_complete.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001060 */
1061enum qca_nl80211_vendor_subcmds {
1062 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
1063 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001064 /* subcmds 2..8 not yet allocated */
1065 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001066 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001067 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001068 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001069 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001070 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
1071 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
1072 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
1073 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
1074 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
1075 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
1076 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
1077 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
1078 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
1079 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
1080 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
1081 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
1082 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
1083 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
1084 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
1085 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
1086 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
1087 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
1088 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
1089 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
1090 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
1091 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
1092 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
1093 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
1094 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
1095 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
1096 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
1097 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
1098 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
1099 /* 43..49 - reserved for QCA */
1100 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
1101 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
1102 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001103 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001104 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1105 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001106 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1107 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1108 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1109 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1110 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001111 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1112 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1113 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1114 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1115 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1116 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1117 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1118 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1119 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1120 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1121 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1122 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1123 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001124 /* Wi-Fi configuration subcommands */
1125 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1126 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001127 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1128 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1129 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1130 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1131 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1132 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1133 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1134 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1135 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1136 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1137 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001138 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001139 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1140 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1141 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1142 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1143 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1144 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1145 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1146 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1147 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -07001148 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001149 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1150 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1151 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1152 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001153 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1154 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1155 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1156 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1157 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001158 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001159 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1160 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001161 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001162 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1163 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001164 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001165 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1166 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1167 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001168 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1169 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001170 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1171 /* FTM/indoor location subcommands */
1172 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1173 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1174 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1175 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1176 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1177 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1178 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1179 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1180 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001181 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1182 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001183 /* DMG low level RF sector operations */
1184 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1185 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1186 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1187 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1188 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001189 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001190 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001191 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001192 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1193 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1194 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1195 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001196 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1197 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001198 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1199 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1200 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1201 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1202 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001203 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1204 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1205 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1206 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1207 /* Flush peer pending data */
1208 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1209 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1210 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1211 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1212 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1213 /* Thermal shutdown commands to protect wifi chip */
1214 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1215 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1216 /* Wi-Fi test configuration subcommand */
1217 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1218 /* Frame filter operations for other BSSs/unassociated STAs */
1219 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001220 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001221 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1222 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001223 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1224 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1225 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001226 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1227 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1228 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001229 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1230 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001231 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1232 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1233 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1234 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001235 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001236 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1237 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1238 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001239 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1240 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1241 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1242 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1243 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1244 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1245 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001246 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001247 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1248 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1249 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1250 /* 201 - reserved for QCA */
1251 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1252 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1253 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1254 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001255 /* 206..212 - reserved for QCA */
1256 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1257 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1258 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1259 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001260 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1261 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1262 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1263 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001264 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1265 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1266 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1267 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1268 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1269 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001270 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Sunil Ravi640215c2023-06-28 23:08:09 +00001271 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1272 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1273 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1274 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001275 /* 232 - reserved for QCA */
1276 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1277 /* 234 - reserved for QCA */
Sunil Ravi72e01222024-03-09 01:25:43 +00001278 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
1279 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
1280 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
1281 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
1282 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
1283 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
Sunil Raviaf399a82024-05-05 20:56:55 +00001284 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241,
1285 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001286};
1287
Sunil8cd6f4d2022-06-28 18:40:46 +00001288/* Compatibility defines for previously used subcmd names.
1289 * These values should not be used in any new implementation.
1290 */
1291#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1292 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1293
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001294enum qca_wlan_vendor_attr {
1295 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1296 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1297 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001298 /* Used only when driver sends vendor events to the userspace under the
1299 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1300 * commands to the driver.
1301 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001302 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001303 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1304 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001305 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1306 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001307 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001308 * by enum qca_roaming_policy.
1309 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001310 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1311 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001312 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1313 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001314 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001315 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1316 /* Unsigned 32-bit value. */
1317 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1318 /* Unsigned 32-bit value */
1319 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1320 /* Unsigned 32-bit value */
1321 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001322 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1323 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1324 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1325 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1326 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001327 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001328 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001329 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1330 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1331 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1332 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1333 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1334 */
1335 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1336 /* Indoor location capabilities, returned by
1337 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1338 * see enum qca_wlan_vendor_attr_loc_capa.
1339 */
1340 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1341 /* Array of nested attributes containing information about each peer
1342 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1343 * for supported attributes for each peer.
1344 */
1345 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1346 /* Array of nested attributes containing measurement results for
1347 * one or more peers, reported by the
1348 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1349 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1350 * attributes.
1351 */
1352 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1353 /* Flag attribute for enabling or disabling responder functionality. */
1354 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1355 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1356 * command to specify the LCI report that will be sent by
1357 * the responder during a measurement exchange. The format is
1358 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1359 */
1360 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1361 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1362 * command to specify the location civic report that will
1363 * be sent by the responder during a measurement exchange.
1364 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1365 */
1366 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1367 /* Session/measurement completion status code,
1368 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1369 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1370 * see enum qca_vendor_attr_loc_session_status.
1371 */
1372 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1373 /* Initial dialog token used by responder (0 if not specified),
1374 * unsigned 8 bit value.
1375 */
1376 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1377 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1378 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1379 * AOA measurements are needed as part of an FTM session.
1380 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1381 * enum qca_wlan_vendor_attr_aoa_type.
1382 */
1383 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1384 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1385 * by indoor location measurements. Refers to the antenna
1386 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1387 */
1388 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1389 /* AOA measurement data. Its contents depends on the AOA measurement
1390 * type and antenna array mask:
1391 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1392 * phase of the strongest CIR path for each antenna in the measured
1393 * array(s).
1394 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1395 * values, phase and amplitude of the strongest CIR path for each
1396 * antenna in the measured array(s).
1397 */
1398 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001399 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1400 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001401 * the corresponding antenna RSSI value
1402 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001403 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1404 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001405 * to report the specific antenna RSSI value (unsigned 32 bit value)
1406 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001407 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001408 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1409 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1410 /* TSF timer value, unsigned 64 bit value.
1411 * May be returned by various commands.
1412 */
1413 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1414 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1415 * 0..127 for sector indices or 65535 as special value used to
1416 * unlock sector selection in
1417 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1418 */
1419 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1420 /* DMG RF sector type, unsigned 8 bit value. One of the values
1421 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1422 */
1423 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1424 /* Bitmask of DMG RF modules for which information is requested. Each
1425 * bit corresponds to an RF module with the same index as the bit
1426 * number. Unsigned 32 bit number but only low 8 bits can be set since
1427 * all DMG chips currently have up to 8 RF modules.
1428 */
1429 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1430 /* Array of nested attributes where each entry is DMG RF sector
1431 * configuration for a single RF module.
1432 * Attributes for each entry are taken from enum
1433 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1434 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1435 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1436 */
1437 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1438 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1439 * to report frame aggregation statistics to userspace.
1440 */
1441 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1442 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001443 /* Unsigned 8-bit value representing MBO transition reason code as
1444 * provided by the AP used by subcommand
1445 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1446 * specified by the userspace in the request to the driver.
1447 */
1448 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1449 /* Array of nested attributes, BSSID and status code, used by subcommand
1450 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1451 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1452 * The userspace space specifies the list/array of candidate BSSIDs in
1453 * the order of preference in the request. The driver specifies the
1454 * status code, for each BSSID in the list, in the response. The
1455 * acceptable candidates are listed in the order preferred by the
1456 * driver.
1457 */
1458 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001459 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1460 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1461 */
1462 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1463 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1464 * to define the number of antennas to use for BRP.
1465 * different purpose in each ANT_LIMIT_MODE:
1466 * DISABLE - ignored
1467 * EFFECTIVE - upper limit to number of antennas to be used
1468 * FORCE - exact number of antennas to be used
1469 * unsigned 8 bit value
1470 */
1471 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1472 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001473 * to report the corresponding antenna index to the chain RSSI value
1474 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001475 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001476 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1477 * the specific antenna EVM value (unsigned 32 bit value). With a
1478 * determinate group of antennas, the driver specifies the EVM value
1479 * for each antenna ID, and application extract them in user space.
1480 */
1481 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001482 /*
1483 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1484 * wlan firmware current state. FW state is an unsigned 8 bit value,
1485 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1486 */
1487 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001488
Hai Shalom899fcc72020-10-19 14:38:18 -07001489 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1490 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1491 * of single values from enum qca_set_band are valid. This attribute
1492 * uses bitmask combinations to define the respective allowed band
1493 * combinations and this attributes takes precedence over
1494 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1495 */
1496 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1497
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001498 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1499 * This field describes the maximum number of links supported by the
1500 * chip for MLO association.
1501 * This is an optional attribute.
1502 */
1503 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
1504
1505 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1506 * This field describes the maximum number of Simultaneous Transmit
1507 * and Receive (STR) links used in Multi-Link Operation.
1508 * The maximum number of STR links used can be different
1509 * from the maximum number of radios supported by the chip.
1510 * This is a static configuration of the chip.
1511 * This is an optional attribute.
1512 */
1513 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
1514
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001515 /* keep last */
1516 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1517 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1518};
1519
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001520enum qca_roaming_policy {
1521 QCA_ROAMING_NOT_ALLOWED,
1522 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1523};
1524
Hai Shalom021b0b52019-04-10 11:17:58 -07001525/**
1526 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1527 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1528 *
1529 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1530 * reasons.
1531 *
1532 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1533 * the configured threshold.
1534 *
1535 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1536 * beacon misses from the then connected AP.
1537 *
1538 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1539 * by the connected AP.
1540 *
1541 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1542 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1543 *
1544 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1545 * or environment being very noisy or congested.
1546 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001547 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001548 * from the user (user space).
1549 *
1550 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1551 * the connected AP.
1552 *
1553 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1554 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001555 *
1556 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1557 * transition request.
1558 *
1559 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1560 * data activity with the AP and the current RSSI falls below a certain
1561 * threshold.
1562 *
1563 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1564 * Disassociation frames received from the connected AP.
1565 *
1566 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1567 * that happens when there is no candidate AP found during the poor RSSI scan
1568 * trigger.
1569 *
1570 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1571 * obtained from an external scan (not aimed at roaming).
1572 *
1573 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1574 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001575 *
1576 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1577 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001578 */
1579enum qca_roam_reason {
1580 QCA_ROAM_REASON_UNKNOWN,
1581 QCA_ROAM_REASON_PER,
1582 QCA_ROAM_REASON_BEACON_MISS,
1583 QCA_ROAM_REASON_POOR_RSSI,
1584 QCA_ROAM_REASON_BETTER_RSSI,
1585 QCA_ROAM_REASON_CONGESTION,
1586 QCA_ROAM_REASON_USER_TRIGGER,
1587 QCA_ROAM_REASON_BTM,
1588 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001589 QCA_ROAM_REASON_WTC,
1590 QCA_ROAM_REASON_IDLE,
1591 QCA_ROAM_REASON_DISCONNECTION,
1592 QCA_ROAM_REASON_PERIODIC_TIMER,
1593 QCA_ROAM_REASON_BACKGROUND_SCAN,
1594 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001595 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001596};
1597
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001598enum qca_wlan_vendor_attr_roam_auth {
1599 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001600 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1601 * of the roamed AP for MLO roaming.
1602 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001603 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1604 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1605 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1606 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1607 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1608 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1609 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001610 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001611 /* Indicates the status of re-association requested by user space for
1612 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1613 * Type u16.
1614 * Represents the status code from AP. Use
1615 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1616 * real status code for failures.
1617 */
1618 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1619 /* This attribute indicates that the old association was maintained when
1620 * a re-association is requested by user space and that re-association
1621 * attempt fails (i.e., cannot connect to the requested BSS, but can
1622 * remain associated with the BSS with which the association was in
1623 * place when being requested to roam). Used along with
1624 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1625 * re-association status. Type flag.
1626 * This attribute is applicable only for re-association failure cases.
1627 */
1628 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1629 /* This attribute specifies the PMK if one was newly generated during
1630 * FILS roaming. This is added to the PMKSA cache and is used in
1631 * subsequent connections with PMKSA caching.
1632 */
1633 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1634 /* This attribute specifies the PMKID used/generated for the current
1635 * FILS roam. This is used in subsequent connections with PMKSA caching.
1636 */
1637 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1638 /* A 16-bit unsigned value specifying the next sequence number to use
1639 * in ERP message in the currently associated realm. This is used in
1640 * doing subsequent ERP based connections in the same realm.
1641 */
1642 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001643 /* A 16-bit unsigned value representing the reasons for the roaming.
1644 * Defined by enum qca_roam_reason.
1645 */
1646 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001647 /* A nested attribute containing per-link information of all the links
1648 * of MLO connection done while roaming. The attributes used inside this
1649 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1650 */
1651 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001652
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001653 /* keep last */
1654 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1655 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1656 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1657};
1658
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001659enum qca_wlan_vendor_attr_p2p_listen_offload {
1660 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1661 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1662 * of the social channels.
1663 */
1664 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1665 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1666 */
1667 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1668 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1669 */
1670 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1671 /* A 32-bit unsigned value; number of interval times the firmware needs
1672 * to run the offloaded P2P listen operation before it stops.
1673 */
1674 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1675 /* An array of arbitrary binary data with one or more 8-byte values.
1676 * The device types include both primary and secondary device types.
1677 */
1678 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1679 /* An array of unsigned 8-bit characters; vendor information elements.
1680 */
1681 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1682 /* A 32-bit unsigned value; a control flag to indicate whether listen
1683 * results need to be flushed to wpa_supplicant.
1684 */
1685 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1686 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1687 * event.
1688 */
1689 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1690 /* keep last */
1691 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1692 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1693 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1694};
1695
Hai Shalomc3565922019-10-28 11:58:20 -07001696/**
1697 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1698 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1699 *
1700 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1701 * Used with event to notify the primary channel number selected in ACS
1702 * operation.
1703 * Note: If both the driver and user-space application supports the 6 GHz band,
1704 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1705 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1706 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1707 * is still used if either of the driver or user space application doesn't
1708 * support the 6 GHz band.
1709 *
1710 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1711 * Used with event to notify the secondary channel number selected in ACS
1712 * operation.
1713 * Note: If both the driver and user-space application supports the 6 GHz band,
1714 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1715 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1716 * To maintain backward compatibility,
1717 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1718 * the driver or user space application doesn't support 6 GHz band.
1719 *
1720 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1721 * (a) Used with command to configure hw_mode from
1722 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1723 * (b) Also used with event to notify the hw_mode of selected primary channel
1724 * in ACS operation.
1725 *
1726 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1727 * Used with command to configure ACS operation for HT mode.
1728 * Disable (flag attribute not present) - HT disabled and
1729 * Enable (flag attribute present) - HT enabled.
1730 *
1731 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1732 * Used with command to configure ACS operation for HT40 mode.
1733 * Disable (flag attribute not present) - HT40 disabled and
1734 * Enable (flag attribute present) - HT40 enabled.
1735 *
1736 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1737 * Used with command to configure ACS operation for VHT mode.
1738 * Disable (flag attribute not present) - VHT disabled and
1739 * Enable (flag attribute present) - VHT enabled.
1740 *
1741 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1742 * mandatory with event.
1743 * If specified in command path, ACS operation is configured with the given
1744 * channel width (in MHz).
1745 * In event path, specifies the channel width of the primary channel selected.
1746 *
1747 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1748 * Used with command to configure channel list using an array of
1749 * channel numbers (u8).
1750 * Note: If both the driver and user-space application supports the 6 GHz band,
1751 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1752 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1753 *
1754 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1755 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001756 * ACS operation. The value is the index of the channel center frequency for
1757 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1758 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001759 * Note: If both the driver and user-space application supports the 6 GHz band,
1760 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1761 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1762 * To maintain backward compatibility,
1763 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1764 * the driver or user space application doesn't support the 6 GHz band.
1765 *
1766 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1767 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001768 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1769 * The value is the index of the channel center frequency for 160 MHz channels
1770 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1771 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001772 * Note: If both the driver and user-space application supports the 6 GHz band,
1773 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1774 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1775 * To maintain backward compatibility,
1776 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1777 * the driver or user space application doesn't support the 6 GHz band.
1778 *
1779 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1780 * Used with command to configure the channel list using an array of channel
1781 * center frequencies in MHz (u32).
1782 * Note: If both the driver and user-space application supports the 6 GHz band,
1783 * the driver first parses the frequency list and if it fails to get a frequency
1784 * list, parses the channel list specified using
1785 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1786 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1787 *
1788 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1789 * Used with event to notify the primary channel center frequency (MHz) selected
1790 * in ACS operation.
1791 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1792 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1793 *
1794 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1795 * Used with event to notify the secondary channel center frequency (MHz)
1796 * selected in ACS operation.
1797 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1798 * includes this attribute along with
1799 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1800 *
1801 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1802 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1803 * selected in ACS operation.
1804 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1805 * includes this attribute along with
1806 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1807 *
1808 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1809 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1810 * selected in ACS operation.
1811 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1812 * includes this attribute along with
1813 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001814 *
1815 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1816 * Used with command to notify the driver of EDMG request for ACS
1817 * operation.
1818 *
1819 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1820 * Used with event to notify the EDMG channel number selected in ACS
1821 * operation.
1822 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001823 *
1824 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1825 * Used with event to notify the puncture pattern selected in ACS operation.
1826 * Encoding for this attribute will follow the convention used in the Disabled
1827 * Subchannel Bitmap field of the EHT Operation IE.
1828 *
1829 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1830 * Used with command to configure ACS operation for EHT mode.
1831 * Disable (flag attribute not present) - EHT disabled and
1832 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001833 *
1834 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1835 * Used with command to configure how older scan can be considered for ACS
1836 * scoring. In case scan was performed on a partial set of channels configured
1837 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1838 * (in ms), scan only the remaining channels.
Sunil Ravi72e01222024-03-09 01:25:43 +00001839 *
1840 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
1841 * Used with command to configure ACS operation for a specific link affiliated
1842 * to an AP MLD.
1843 *
Hai Shalomc3565922019-10-28 11:58:20 -07001844 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001845enum qca_wlan_vendor_attr_acs_offload {
1846 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001847 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1848 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1849 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1850 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1851 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1852 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1853 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1854 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1855 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1856 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1857 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1858 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1859 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1860 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1861 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001862 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1863 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001864 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1865 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001866 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Sunil Ravi72e01222024-03-09 01:25:43 +00001867 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
Hai Shalomc3565922019-10-28 11:58:20 -07001868
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001869 /* keep last */
1870 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1871 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1872 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1873};
1874
Hai Shalomc3565922019-10-28 11:58:20 -07001875/**
1876 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1877 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1878 *
1879 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1880 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1881 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1882 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1883 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1884 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1885 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001886enum qca_wlan_vendor_acs_hw_mode {
1887 QCA_ACS_MODE_IEEE80211B,
1888 QCA_ACS_MODE_IEEE80211G,
1889 QCA_ACS_MODE_IEEE80211A,
1890 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001891 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001892 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001893};
1894
1895/**
1896 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1897 *
1898 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1899 * management offload, a mechanism where the station's firmware
1900 * does the exchange with the AP to establish the temporal keys
1901 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001902 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1903 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001904 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001905 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001906 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1907 * Listen offload; a mechanism where the station's firmware takes care of
1908 * responding to incoming Probe Request frames received from other P2P
1909 * Devices whilst in Listen state, rather than having the user space
1910 * wpa_supplicant do it. Information from received P2P requests are
1911 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001912 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1913 * specific features.
1914 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1915 * features.
1916 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1917 * specific features only. If a Device sets this bit but not the
1918 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1919 * this Device may not support all OCE AP functionalities but can support
1920 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001921 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1922 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001923 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001924 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1925 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001926 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1927 * and applying thermal configuration through
1928 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1929 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1930 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001931 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1932 * With Adaptive 11r feature, access points advertise the vendor
1933 * specific IEs and MDE but do not include FT AKM in the RSNE.
1934 * The Adaptive 11r supported stations are expected to identify
1935 * such vendor specific IEs and connect to the AP in FT mode though
1936 * the profile is configured in non-FT mode.
1937 * The driver-based SME cases also need to have this support for
1938 * Adaptive 11r to handle the connection and roaming scenarios.
1939 * This flag indicates the support for the same to the user space.
1940 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1941 * concurrent network sessions on different Wi-Fi bands. This feature
1942 * capability is attributed to the hardware's capability to support
1943 * the same (e.g., DBS).
1944 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1945 * responses for the respective TWT operations are asynchronous (separate
1946 * event message) from the driver. If not specified, the responses are
1947 * synchronous (in vendor command reply) to the request. Each TWT
1948 * operation is specifically mentioned (against its respective
1949 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001950 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001951 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001952 * generic nl80211 commands for NDP interface create/delete and to
1953 * register/unregister the netdev instead of creating/deleting the NDP
1954 * interface using the vendor commands
1955 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1956 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001957 * (5.12 version onward), interface creation/deletion is not allowed using
1958 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1959 * during the register/unregister of netdev. Create and delete NDP
1960 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1961 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07001962 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1963 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1964 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1965 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1966 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1967 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1968 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1969 * station mode supports secure RTT measurement exchange. If
1970 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1971 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1972 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1973 * mode supports secure RTT measurement exchange. If
1974 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1975 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1976 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1977 * the device in station mode supports protection of range negotiation and
1978 * measurement management frames. If
1979 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1980 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1981 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1982 * the device in AP mode supports protection of range negotiation and
1983 * measurement management frames. If
1984 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1985 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Sunil Ravi640215c2023-06-28 23:08:09 +00001986 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
1987 * in AP mode supports configuring allowed frequency list for AP operation
1988 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
1989 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
1990 * that the device supports enhanced audio experience over WLAN feature.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001991 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1992 */
1993enum qca_wlan_vendor_features {
1994 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001995 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001996 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001997 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001998 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1999 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
2000 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002001 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00002002 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07002003 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
2004 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07002005 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08002006 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
2007 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
2008 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07002009 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07002010 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
2011 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
2012 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
2013 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
2014 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
2015 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Sunil Ravi640215c2023-06-28 23:08:09 +00002016 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
2017 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002018 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
2019};
2020
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07002021/**
2022 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
2023 *
2024 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
2025 * the offloaded data.
2026 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
2027 * data.
2028 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
2029 * indication.
2030 */
2031enum qca_wlan_vendor_attr_data_offload_ind {
2032 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
2033 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
2034 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
2035 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
2036
2037 /* keep last */
2038 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
2039 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
2040 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
2041};
Ravi Joshie6ccb162015-07-16 17:45:41 -07002042
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002043/**
2044 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
2045 * OCB config
2046 *
2047 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
2048 * configuration
2049 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
2050 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
2051 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
2052 * scheduled
2053 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
2054 * information
2055 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
2056 * active state configuration
2057 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
2058 * OCB_CONFIG_FLAG_80211_FRAME_MODE
2059 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
2060 * use in the case that a packet is sent without a TX control header
2061 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
2062 * last TA received that the local time set by TA is synchronous to other
2063 * communicating OCB STAs.
2064 */
2065enum qca_wlan_vendor_attr_ocb_set_config {
2066 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
2067 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
2068 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
2069 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
2070 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
2071 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
2072 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
2073 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
2074 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
2075 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2076 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
2077 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
2078 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
2079};
2080
2081/**
2082 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
2083 * UTC time
2084 *
2085 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
2086 * 10 bytes
2087 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
2088 * 5 bytes
2089 */
2090enum qca_wlan_vendor_attr_ocb_set_utc_time {
2091 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
2092 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
2093 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
2094 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
2095 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
2096 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
2097};
2098
2099/**
2100 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
2101 * to start sending timing advert frames
2102 *
2103 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
2104 * on which to send the frames
2105 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
2106 * the frame is sent in 5 seconds
2107 */
2108enum qca_wlan_vendor_attr_ocb_start_timing_advert {
2109 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
2110 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
2111 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
2112 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
2113 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
2114 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
2115};
2116
2117/**
2118 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
2119 * to stop timing advert
2120 *
2121 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
2122 * frequency on which to stop the timing advert
2123 */
2124enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
2125 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
2126 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
2127 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
2128 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
2129 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
2130};
2131
2132/**
2133 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
2134 * get TSF timer value
2135 *
2136 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2137 * timer
2138 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2139 */
2140enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2141 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2142 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2143 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2144 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2145 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2146 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2147};
2148
Ravi Joshie6ccb162015-07-16 17:45:41 -07002149enum qca_vendor_attr_get_preferred_freq_list {
2150 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2151 /* A 32-unsigned value; the interface type/mode for which the preferred
2152 * frequency list is requested (see enum qca_iface_type for possible
2153 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2154 * kernel and in the kernel response back to user-space.
2155 */
2156 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2157 /* An array of 32-unsigned values; values are frequency (MHz); sent
2158 * from kernel space to user space.
2159 */
2160 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002161 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2162 * attribute. Each element contains frequency (MHz), weight, and flag
2163 * bit mask indicating how the frequency should be used in P2P
2164 * negotiation; sent from kernel space to user space.
2165 */
2166 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07002167 /* keep last */
2168 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2169 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2170 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2171};
2172
2173enum qca_vendor_attr_probable_oper_channel {
2174 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2175 /* 32-bit unsigned value; indicates the connection/iface type likely to
2176 * come on this channel (see enum qca_iface_type).
2177 */
2178 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2179 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2180 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2181 /* keep last */
2182 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2183 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2184 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2185};
2186
2187enum qca_iface_type {
2188 QCA_IFACE_TYPE_STA,
2189 QCA_IFACE_TYPE_AP,
2190 QCA_IFACE_TYPE_P2P_CLIENT,
2191 QCA_IFACE_TYPE_P2P_GO,
2192 QCA_IFACE_TYPE_IBSS,
2193 QCA_IFACE_TYPE_TDLS,
2194};
2195
2196enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07002197 QCA_SETBAND_AUTO = 0,
2198 QCA_SETBAND_5G = BIT(0),
2199 QCA_SETBAND_2G = BIT(1),
2200 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07002201};
2202
Dmitry Shmidt17022322016-04-06 13:28:42 -07002203/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002204 * enum qca_access_policy - Access control policy
2205 *
2206 * Access control policy is applied on the configured IE
2207 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2208 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2209 *
2210 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2211 * the specific configuration (IE) set, i.e., allow all the
2212 * connections which do not match the configuration.
2213 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2214 * the specific configuration (IE) set, i.e., deny all the
2215 * connections which do not match the configuration.
2216 */
2217enum qca_access_policy {
2218 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2219 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2220};
2221
2222/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002223 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2224 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2225 * Specify the TSF command. Possible values are defined in
2226 * &enum qca_tsf_cmd.
2227 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2228 * This attribute contains TSF timer value. This attribute is only available
Sunil Ravi72e01222024-03-09 01:25:43 +00002229 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
2230 * response.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002231 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2232 * This attribute contains SOC timer value at TSF capture. This attribute is
2233 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2234 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2235 * This attribute is used to provide TSF sync interval and only applicable when
2236 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2237 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002238 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2239 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002240 */
2241enum qca_vendor_attr_tsf_cmd {
2242 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2243 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2244 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2245 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002246 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002247 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002248 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2249 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2250 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2251};
2252
2253/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002254 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002255 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2256 * @QCA_TSF_GET: Get TSF capture value
2257 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002258 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2259 * will automatically send TSF report to the host. To query
2260 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2261 * initiated first.
2262 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2263 * will not automatically send TSF report to the host. If
2264 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2265 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2266 * operation needs to be initiated.
2267 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2268 * fetches TSF and host time mapping from the firmware with interval configured
2269 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2270 * interval value is not provided the driver will use the default value. The
2271 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2272 * command.
2273 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Sunil Ravi72e01222024-03-09 01:25:43 +00002274 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
2275 * starts beaconing on a new channel. The driver synchronously responds with the
2276 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
2277 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
2278 * on the AP interface. This TSF can be sent via OOB mechanism to connected
2279 * clients.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002280 */
2281enum qca_tsf_cmd {
2282 QCA_TSF_CAPTURE,
2283 QCA_TSF_GET,
2284 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002285 QCA_TSF_AUTO_REPORT_ENABLE,
2286 QCA_TSF_AUTO_REPORT_DISABLE,
2287 QCA_TSF_SYNC_START,
2288 QCA_TSF_SYNC_STOP,
Sunil Ravi72e01222024-03-09 01:25:43 +00002289 QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002290};
2291
2292/**
2293 * enum qca_vendor_attr_wisa_cmd
2294 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2295 * WISA setup vendor commands
2296 */
2297enum qca_vendor_attr_wisa_cmd {
2298 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2299 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2300 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2301 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2302 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2303};
2304
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002305/* IEEE 802.11 Vendor Specific elements */
2306
2307/**
2308 * enum qca_vendor_element_id - QCA Vendor Specific element types
2309 *
2310 * These values are used to identify QCA Vendor Specific elements. The
2311 * payload of the element starts with the three octet OUI (OUI_QCA) and
2312 * is followed by a single octet type which is defined by this enum.
2313 *
2314 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2315 * This element can be used to specify preference order for supported
2316 * channels. The channels in this list are in preference order (the first
2317 * one has the highest preference) and are described as a pair of
2318 * (global) Operating Class and Channel Number (each one octet) fields.
2319 *
2320 * This extends the standard P2P functionality by providing option to have
2321 * more than one preferred operating channel. When this element is present,
2322 * it replaces the preference indicated in the Operating Channel attribute.
2323 * For supporting other implementations, the Operating Channel attribute is
2324 * expected to be used with the highest preference channel. Similarly, all
2325 * the channels included in this Preferred channel list element are
2326 * expected to be included in the Channel List attribute.
2327 *
2328 * This vendor element may be included in GO Negotiation Request, P2P
2329 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002330 *
2331 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2332 * This element can be used for pre-standard publication testing of HE
2333 * before P802.11ax draft assigns the element ID. The payload of this
2334 * vendor specific element is defined by the latest P802.11ax draft.
2335 * Please note that the draft is still work in progress and this element
2336 * payload is subject to change.
2337 *
2338 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2339 * This element can be used for pre-standard publication testing of HE
2340 * before P802.11ax draft assigns the element ID. The payload of this
2341 * vendor specific element is defined by the latest P802.11ax draft.
2342 * Please note that the draft is still work in progress and this element
2343 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002344 *
2345 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2346 * element).
2347 * This element can be used for pre-standard publication testing of HE
2348 * before P802.11ax draft assigns the element ID extension. The payload of
2349 * this vendor specific element is defined by the latest P802.11ax draft
2350 * (not including the Element ID Extension field). Please note that the
2351 * draft is still work in progress and this element payload is subject to
2352 * change.
2353 *
2354 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2355 * This element can be used for pre-standard publication testing of HE
2356 * before P802.11ax draft assigns the element ID extension. The payload of
2357 * this vendor specific element is defined by the latest P802.11ax draft
2358 * (not including the Element ID Extension field). Please note that the
2359 * draft is still work in progress and this element payload is subject to
2360 * change.
2361 *
2362 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2363 * This element can be used for pre-standard publication testing of HE
2364 * before P802.11ax draft assigns the element ID extension. The payload of
2365 * this vendor specific element is defined by the latest P802.11ax draft
2366 * (not including the Element ID Extension field). Please note that the
2367 * draft is still work in progress and this element payload is subject to
2368 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002369 *
2370 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002371 */
2372enum qca_vendor_element_id {
2373 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002374 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2375 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002376 QCA_VENDOR_ELEM_RAPS = 3,
2377 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2378 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002379 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002380};
2381
2382/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002383 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2384 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2385 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2386 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2387 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2388 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2389 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2390 */
2391enum qca_wlan_vendor_scan_priority {
2392 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2393 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2394 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2395 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2396 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2397};
2398
2399/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002400 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2401 *
2402 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2403 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2404 * with frequencies to be scanned (in MHz)
2405 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2406 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2407 * rates to be included
2408 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002409 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002410 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2411 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002412 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002413 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002414 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002415 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002416 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002417 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002418 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002419 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2420 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002421 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2422 * microseconds. This is a common value which applies across all
2423 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002424 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2425 * other scan requests. It is a u32 attribute and takes values from enum
2426 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2427 * If this attribute is not configured, the driver shall use
2428 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002429 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2430 * alignment.
Sunil Ravi72e01222024-03-09 01:25:43 +00002431 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
2432 * when AP is operating as MLD to specify which link is requesting the
2433 * scan or which link the scan result is for. No need of this attribute
2434 * in other cases.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002435 */
2436enum qca_wlan_vendor_attr_scan {
2437 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002438 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2439 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2440 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2441 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2442 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2443 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2444 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2445 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2446 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2447 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2448 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002449 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002450 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002451 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Sunil Ravi72e01222024-03-09 01:25:43 +00002452 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002453 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2454 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2455 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2456};
2457
2458/**
2459 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002460 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002461 *
2462 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002463 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002464 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2465 */
2466enum scan_status {
2467 VENDOR_SCAN_STATUS_NEW_RESULTS,
2468 VENDOR_SCAN_STATUS_ABORTED,
2469 VENDOR_SCAN_STATUS_MAX,
2470};
2471
2472/**
2473 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2474 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2475 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2476 */
2477enum qca_vendor_attr_ota_test {
2478 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2479 /* 8-bit unsigned value to indicate if OTA test is enabled */
2480 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2481 /* keep last */
2482 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2483 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2484 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2485};
2486
2487/**
2488 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2489 *
2490 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2491 */
2492enum qca_vendor_attr_txpower_scale {
2493 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2494 /* 8-bit unsigned value to indicate the scaling of tx power */
2495 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2496 /* keep last */
2497 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2498 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2499 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2500};
2501
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002502/**
2503 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2504 *
2505 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2506 */
2507enum qca_vendor_attr_txpower_decr_db {
2508 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2509 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002510 * a virtual interface.
2511 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002512 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2513 /* keep last */
2514 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2515 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2516 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2517};
2518
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002519/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002520 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2521 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002522 */
2523enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002524 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002525 /* Unsigned 32-bit value to set the DTIM period.
2526 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2527 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2528 * DTIM beacons.
2529 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002530 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002531 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2532 * used to calculate statistics like average the TSF offset or average
2533 * number of frame leaked.
2534 * For instance, upon Beacon frame reception:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002535 * current_avg = ((beacon_TSF - TBTT) * factor +
2536 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002537 * For instance, when evaluating leaky APs:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002538 * current_avg = ((num frame received within guard time) * factor +
2539 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002540 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002541 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002542 /* Unsigned 32-bit value to configure guard time, i.e., when
2543 * implementing IEEE power management based on frame control PM bit, how
2544 * long the driver waits before shutting down the radio and after
2545 * receiving an ACK frame for a Data frame with PM bit set.
2546 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002547 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002548 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002549 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002550 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002551 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002552 /* Unsigned 32-bit value to configure the number of continuous
2553 * Beacon Miss which shall be used by the firmware to penalize
2554 * the RSSI.
2555 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002556 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002557 /* Unsigned 8-bit value to configure the channel avoidance indication
2558 * behavior. Firmware to send only one indication and ignore duplicate
2559 * indications when set to avoid multiple Apps wakeups.
2560 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002561 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002562 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002563 * aggregation.
2564 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002565 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002566 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002567 * aggregation.
2568 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002569 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002570 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002571 * retry threshold (0 disable, 31 max).
2572 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002573 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002574 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002575 * retry threshold (0 disable, 31 max).
2576 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002577 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002578 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002579 * retry threshold (0 disable, 31 max).
2580 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002581 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002582 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002583 * retry threshold (0 disable, 31 max).
2584 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002585 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002586 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002587 * 2G/5G band (0~63, units in us)
2588 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002589 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002590 /* Unsigned 32-bit value to configure the number of unicast TX fail
2591 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002592 * reached.
2593 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002594 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002595 /* Attribute used to set scan default IEs to the driver.
2596 *
2597 * These IEs can be used by scan operations that will be initiated by
2598 * the driver/firmware.
2599 *
2600 * For further scan requests coming to the driver, these IEs should be
2601 * merged with the IEs received along with scan request coming to the
2602 * driver. If a particular IE is present in the scan default IEs but not
2603 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002604 * sent in the Probe Request frames for that scan request.
2605 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002606 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002607 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002608 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002609 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002610 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002611 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002612 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002613 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002614 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2615 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002616 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002617 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002618 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2619 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002620 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002621 /* Unsigned 32-bit, defining the access policy.
2622 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002623 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2624 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002625 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002626 /* Sets the list of full set of IEs for which a specific access policy
2627 * has to be applied. Used along with
2628 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002629 * Zero length payload can be used to clear this access constraint.
2630 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002631 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002632 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2633 * corresponding configurations are applied. If the interface index is
2634 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002635 * wiphy.
2636 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002637 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002638 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002639 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002640 /* 8-bit unsigned value to configure the driver and below layers to
2641 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002642 * 1-Ignore, 0-Don't ignore
2643 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002644 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002645 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002646 * 1-Enable, 0-Disable
2647 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002648 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002649 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002650 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002651 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002652 * 1-Enable, 0-Disable
2653 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002654 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002655 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002656 * the unit is micro-second
2657 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002658 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2659 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2660 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2661 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2662 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2663 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2664 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2665 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2666 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2667 /* 6-byte MAC address to point out the specific peer */
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002668 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
2669 /* Backward compatibility with the original name */
2670 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
2671 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002672 /* 32-bit unsigned value to set window size for specific peer */
2673 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002674 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2675 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2676 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2677 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002678 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2679 * station device while in disconnect state. The attribute use the
2680 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2681 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2682 * 10 MHz channel width, the station will not connect to a BSS using 20
2683 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002684 * clear this constraint.
2685 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002686 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2687 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002688 * for 2G/5G band (units in us)
2689 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002690 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2691 /* 32-bit unsigned value to set probe period */
2692 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2693 /* 32-bit unsigned value to set stay period */
2694 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2695 /* 32-bit unsigned value to set snr diff */
2696 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2697 /* 32-bit unsigned value to set probe dwell time */
2698 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2699 /* 32-bit unsigned value to set mgmt snr weight */
2700 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2701 /* 32-bit unsigned value to set data snr weight */
2702 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2703 /* 32-bit unsigned value to set ack snr weight */
2704 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2705 /* 32-bit unsigned value to configure the listen interval.
2706 * This is in units of beacon intervals. This configuration alters
2707 * the negotiated listen interval with the AP during the connection.
2708 * It is highly recommended to configure a value less than or equal to
2709 * the one negotiated during the association. Configuring any greater
2710 * value can have adverse effects (frame loss, AP disassociating STA,
2711 * etc.).
2712 */
2713 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2714 /*
2715 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2716 * disable operations that would cause the AP/GO to leave its operating
2717 * channel.
2718 *
2719 * This will restrict the scans to the AP/GO operating channel and the
2720 * channels of the other band, if DBS is supported.A STA/CLI interface
2721 * brought up after this setting is enabled, will be restricted to
2722 * connecting to devices only on the AP/GO interface's operating channel
2723 * or on the other band in DBS case. P2P supported channel list is
2724 * modified, to only include AP interface's operating-channel and the
2725 * channels of the other band if DBS is supported.
2726 *
2727 * These restrictions are only applicable as long as the AP/GO interface
2728 * is alive. If the AP/GO interface is brought down then this
2729 * setting/restriction is forgotten.
2730 *
2731 * If this variable is set on an AP/GO interface while a multi-channel
2732 * concurrent session is active, it has no effect on the operation of
2733 * the current interfaces, other than restricting the scan to the AP/GO
2734 * operating channel and the other band channels if DBS is supported.
2735 * However, if the STA is brought down and restarted then the new STA
2736 * connection will either be formed on the AP/GO channel or on the
2737 * other band in a DBS case. This is because of the scan being
2738 * restricted on these channels as mentioned above.
2739 *
2740 * 1-Restrict / 0-Don't restrict offchannel operations.
2741 */
2742 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2743 /*
2744 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2745 * on an interface.
2746 * 1 - Enable, 0 - Disable.
2747 */
2748 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2749
2750 /*
2751 * 8 bit unsigned value to globally enable/disable scan
2752 * 1 - Enable, 0 - Disable.
2753 */
2754 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2755
2756 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002757 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002758 */
2759 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2760
2761 /* Unsigned 32-bit value to configure the number of continuous
2762 * Beacon Miss which shall be used by the firmware to penalize
2763 * the RSSI for BTC.
2764 */
2765 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2766
2767 /* 8-bit unsigned value to configure the driver and below layers to
2768 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002769 * 0-enable, 1-disable
2770 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002771 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002772
Roshan Pius3a1667e2018-07-03 15:17:14 -07002773 /* 16-bit unsigned value to configure the level of WLAN latency
2774 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2775 */
2776 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2777
2778 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2779 * the connect interface. Exclusively used for the scenarios where the
2780 * device is used as a test bed device with special functionality and
2781 * not recommended for production. This helps driver to not validate the
2782 * RSNE passed from user space and thus allow arbitrary IE data to be
2783 * used for testing purposes.
2784 * 1-enable, 0-disable.
2785 * Applications set/reset this configuration. If not reset, this
2786 * parameter remains in use until the driver is unloaded.
2787 */
2788 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2789
2790 /* 8-bit unsigned value to trigger green Tx power saving.
2791 * 1-Enable, 0-Disable
2792 */
2793 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2794
Hai Shalomc3565922019-10-28 11:58:20 -07002795 /* Attribute to configure disconnect IEs to the driver.
2796 * This carries an array of unsigned 8-bit characters.
2797 *
2798 * If this is configured, driver shall fill the IEs in disassoc/deauth
2799 * frame.
2800 * These IEs are expected to be considered only for the next
2801 * immediate disconnection (disassoc/deauth frame) originated by
2802 * the DUT, irrespective of the entity (user space/driver/firmware)
2803 * triggering the disconnection.
2804 * The host drivers are not expected to use the IEs set through
2805 * this interface for further disconnections after the first immediate
2806 * disconnection initiated post the configuration.
2807 * If the IEs are also updated through cfg80211 interface (after the
2808 * enhancement to cfg80211_disconnect), host driver is expected to
2809 * take the union of IEs from both of these interfaces and send in
2810 * further disassoc/deauth frames.
2811 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002812 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002813
2814 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002815 * 0 - Disable eLNA bypass.
2816 * 1 - Enable eLNA bypass.
2817 * 2 - Reset eLNA bypass configuration, the driver should
2818 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002819 */
2820 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2821
Hai Shalomfdcde762020-04-02 11:19:20 -07002822 /* 8-bit unsigned value. This attribute enables/disables the host driver
2823 * to send the Beacon Report Response with failure reason for the
2824 * scenarios where STA cannot honor the Beacon Report Request from AP.
2825 * 1-Enable, 0-Disable.
2826 */
2827 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2828
2829 /* 8-bit unsigned value. This attribute enables/disables the host driver
2830 * to send roam reason information in the Reassociation Request frame to
2831 * the target AP when roaming within the same ESS.
2832 * 1-Enable, 0-Disable.
2833 */
2834 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2835
Hai Shalom899fcc72020-10-19 14:38:18 -07002836 /* 32-bit unsigned value to configure different PHY modes to the
2837 * driver/firmware. The possible values are defined in
2838 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2839 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2840 * the driver.
2841 */
2842 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2843
2844 /* 8-bit unsigned value to configure the maximum supported channel width
2845 * for STA mode. If this value is configured when STA is in connected
2846 * state, it should not exceed the negotiated channel width. If it is
2847 * configured when STA is in disconnected state, the configured value
2848 * will take effect for the next immediate connection.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002849 * This configuration can be sent inside
2850 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
2851 * supported channel width per-MLO link.
Sunil Ravi036cec52023-03-29 11:35:17 -07002852 *
2853 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07002854 */
2855 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2856
2857 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2858 * This attribute is only applicable for STA mode. When dynamic
2859 * bandwidth adjustment is disabled, STA will use static channel width
2860 * the value of which is negotiated during connection.
2861 * 1-enable (default), 0-disable
2862 */
2863 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2864
2865 /* 8-bit unsigned value to configure the maximum number of subframes of
2866 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2867 * it is decided by the hardware.
2868 */
2869 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2870
2871 /* 8-bit unsigned value to configure the maximum number of subframes of
2872 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2873 * it is decided by the hardware.
2874 */
2875 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2876
2877 /* 8-bit unsigned value. This attribute is used to dynamically
2878 * enable/disable the LDPC capability of the device. When configured in
2879 * the disconnected state, the updated configuration will be considered
2880 * for the immediately following connection attempt. If this
2881 * configuration is modified while the device is in the connected state,
2882 * the LDPC TX will be updated with this configuration immediately,
2883 * while the LDPC RX configuration update will take place starting from
2884 * the subsequent association attempt.
2885 * 1-Enable, 0-Disable.
2886 */
2887 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2888
2889 /* 8-bit unsigned value. This attribute is used to dynamically
2890 * enable/disable the TX STBC capability of the device. When configured
2891 * in the disconnected state, the updated configuration will be
2892 * considered for the immediately following connection attempt. If the
2893 * connection is formed with TX STBC enabled and if this configuration
2894 * is disabled during that association, the TX will be impacted
2895 * immediately. Further connection attempts will disable TX STBC.
2896 * However, enabling the TX STBC for a connected session with disabled
2897 * capability is not allowed and will fail.
2898 * 1-Enable, 0-Disable.
2899 */
2900 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2901
2902 /* 8-bit unsigned value. This attribute is used to dynamically
2903 * enable/disable the RX STBC capability of the device. When configured
2904 * in the disconnected state, the updated configuration will be
2905 * considered for the immediately following connection attempt. If the
2906 * configuration is modified in the connected state, there will be no
2907 * impact for the current association, but further connection attempts
2908 * will use the updated configuration.
2909 * 1-Enable, 0-Disable.
2910 */
2911 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2912
2913 /* 8-bit unsigned value. This attribute is used to dynamically configure
2914 * the number of spatial streams. When configured in the disconnected
2915 * state, the updated configuration will be considered for the
2916 * immediately following connection attempt. If the NSS is updated after
2917 * the connection, the updated NSS value is notified to the peer using
2918 * the Operating Mode Notification/Spatial Multiplexing Power Save
2919 * frame. The updated NSS value after the connection shall not be
2920 * greater than the one negotiated during the connection. Any such
2921 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002922 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2923 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2924 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2925 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002926 */
2927 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002928 /* 8-bit unsigned value to configure Optimized Power Management mode:
2929 * Modes are defined by enum qca_wlan_vendor_opm_mode.
2930 *
2931 * This attribute shall be configured along with
2932 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
2933 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
2934 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
Hai Shalom899fcc72020-10-19 14:38:18 -07002935 */
2936 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2937
2938 /* 8-bit unsigned value. This attribute takes the QoS/access category
2939 * value represented by the enum qca_wlan_ac_type and expects the driver
2940 * to upgrade the UDP frames to this access category. The value of
2941 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2942 * DSCP value configured in the frame with the intention to only upgrade
2943 * the access category. That said, it is not intended to downgrade the
2944 * access category for the frames.
2945 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2946 * disabled, as BK is of the lowest priority and an upgrade to it does
2947 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00002948 *
2949 * If only UDP frames of BE or BK access category needs to be upgraded
2950 * without changing the access category of VO or VI UDP frames, refer to
2951 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2952 *
2953 * This attribute is not recommended to be used as it blindly forces all
2954 * UDP packets to a higher access category which could impact the
2955 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07002956 */
2957 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2958
2959 /* 8-bit unsigned value. This attribute is used to dynamically configure
2960 * the number of chains to be used for transmitting data. This
2961 * configuration is allowed only when in connected state and will be
2962 * effective until disconnected. The driver rejects this configuration
2963 * if the number of spatial streams being used in the current connection
2964 * cannot be supported by this configuration.
2965 */
2966 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2967 /* 8-bit unsigned value. This attribute is used to dynamically configure
2968 * the number of chains to be used for receiving data. This
2969 * configuration is allowed only when in connected state and will be
2970 * effective until disconnected. The driver rejects this configuration
2971 * if the number of spatial streams being used in the current connection
2972 * cannot be supported by this configuration.
2973 */
2974 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2975
2976 /* 8-bit unsigned value to configure ANI setting type.
2977 * See &enum qca_wlan_ani_setting for possible values.
2978 */
2979 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2980 /* 32-bit signed value to configure ANI level. This is used when
2981 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2982 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2983 * is invalid, the driver will return a failure.
2984 */
2985 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2986
Hai Shalom60840252021-02-19 19:02:11 -08002987 /* 8-bit unsigned value. This attribute is used to dynamically configure
2988 * the number of spatial streams used for transmitting the data. When
2989 * configured in the disconnected state, the configured value will
2990 * be considered for the following connection attempt.
2991 * If the NSS is updated after the connection, the updated NSS value
2992 * is notified to the peer using the Operating Mode Notification/Spatial
2993 * Multiplexing Power Save frame.
2994 * The TX NSS value configured after the connection shall not be greater
2995 * than the value negotiated during the connection. Any such higher
2996 * value configuration shall be treated as invalid configuration by
2997 * the driver. This attribute shall be configured along with
2998 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2999 * configuration (such as 2X2 or 1X1) or the asymmetric
3000 * configuration (such as 1X2).
3001 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3002 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
3003 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
3004 */
3005 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
3006
3007 /* 8-bit unsigned value. This attribute is used to dynamically configure
3008 * the number of spatial streams used for receiving the data. When
3009 * configured in the disconnected state, the configured value will
3010 * be considered for the following connection attempt.
3011 * If the NSS is updated after the connection, the updated NSS value
3012 * is notified to the peer using the Operating Mode Notification/Spatial
3013 * Multiplexing Power Save frame.
3014 * The RX NSS value configured after the connection shall not be greater
3015 * than the value negotiated during the connection. Any such higher
3016 * value configuration shall be treated as invalid configuration by
3017 * the driver. This attribute shall be configured along with
3018 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
3019 * configuration (such as 2X2 or 1X1) or the asymmetric
3020 * configuration (such as 1X2).
3021 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3022 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
3023 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
3024 */
3025 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
3026
Hai Shaloma20dcd72022-02-04 13:43:00 -08003027 /*
3028 * 8-bit unsigned value. This attribute, when set, indicates whether the
3029 * specified interface is the primary STA interface when there are more
3030 * than one STA interfaces concurrently active.
3031 *
3032 * This configuration helps the firmware/hardware to support certain
3033 * features (e.g., roaming) on this primary interface, if the same
3034 * cannot be supported on the concurrent STA interfaces simultaneously.
3035 *
3036 * This configuration is only applicable for a single STA interface on
3037 * a device and gives the priority for it only over other concurrent STA
3038 * interfaces.
3039 *
3040 * If the device is a multi wiphy/soc, this configuration applies to a
3041 * single STA interface across the wiphys.
3042 *
3043 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
3044 */
3045 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
3046
3047 /*
3048 * 8-bit unsigned value. This attribute can be used to configure the
3049 * driver to enable/disable FT-over-DS feature. Possible values for
3050 * this attribute are 1-Enable and 0-Disable.
3051 */
3052 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
3053
3054 /*
3055 * 8-bit unsigned value. This attribute can be used to configure the
3056 * firmware to enable/disable ARP/NS offload feature. Possible values
3057 * for this attribute are 0-Disable and 1-Enable.
3058 *
3059 * This attribute is only applicable for STA/P2P-Client interface,
3060 * and is optional, default behavior is ARP/NS offload enabled.
3061 *
3062 * This attribute can be set in disconnected and connected state, and
3063 * will restore to the default behavior if the interface is closed.
3064 */
3065 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
3066
Sunil8cd6f4d2022-06-28 18:40:46 +00003067 /*
3068 * 8-bit unsigned value. This attribute can be used to configure the
3069 * data path mode to be followed for audio traffic. Possible values
3070 * are defined in enum qca_wlan_audio_data_path.
Sunil Ravi640215c2023-06-28 23:08:09 +00003071 *
3072 * This attribute is used only when the driver advertises support for
3073 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +00003074 */
3075 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
3076
Sunil Ravi89eba102022-09-13 21:04:37 -07003077 /*
3078 * 8-bit unsigned value. This attribute can be used to configure the
3079 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
3080 * this attribute are defined in the enum qca_wlan_dbam_config.
3081 */
3082 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
3083
Sunil Ravi77d572f2023-01-17 23:58:31 +00003084 /* 8-bit unsigned value. This attribute takes the QoS/access category
3085 * value represented by the enum qca_wlan_ac_type and expects the driver
3086 * to upgrade the UDP frames of BE or BK access category to this access
3087 * category. This attribute will not modify UDP frames of VO or VI
3088 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
3089 * attribute.
3090 *
3091 * This will override the DSCP value configured in the frame with the
3092 * intention to only upgrade the access category. That said, it is not
3093 * intended to downgrade the access category for the frames.
3094 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3095 * disabled, as BK is of the lowest priority and an upgrade to it does
3096 * not result in any changes for the frames.
3097 *
3098 * This attribute behavior is similar to
3099 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
3100 * only UDP frames of BE or BK access category are upgraded and not
3101 * UDP frames of VI or VO access category.
3102 *
3103 * This attribute is not recommended to be used as it blindly forces all
3104 * UDP packets of BE or BK access category to a higher access category
3105 * which could impact the traffic pattern of all apps using UDP and can
3106 * cause unknown behavior.
3107 */
3108 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
3109
3110 /* 8-bit unsigned value to configure the driver to enable/disable the
3111 * periodic sounding for Tx beamformer functionality. The default
3112 * behavior uses algorithm to do sounding based on packet stats.
3113 *
3114 * 0 - Default behavior.
3115 * 1 - Enable the periodic sounding for Tx beamformer.
3116 */
3117 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
3118
3119 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
3120 * userspace sends this information to the driver/firmware to configure
3121 * wfc state. The driver/firmware uses this information to
3122 * optimize power savings, rate adaption, roaming, etc.
3123 *
3124 * 1 - wfc is on.
3125 * 0 - wfc is off.
3126 */
3127 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
3128
3129 /* 8-bit unsigned value to configure the driver to enable/disable the
3130 * EHT EML capability in management frame EHT capabilities.
3131 * 1 - Enable, 0 - Disable.
3132 */
3133 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
3134
3135 /* 8-bit unsigned value to configure the driver with EHT MLO max
3136 * simultaneous links to be used for MLO connection.
3137 * The range of the value is 0 to 14.
3138 */
3139 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
3140
3141 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003142 * number of links to be used for MLO connection. Value 0 restores the
3143 * default value of the maximum MLO links capability of the device.
3144 * The range of the value is 0 to 15.
3145 *
3146 * 0 - Restore default device limit.
3147 * 1 to 15 - Set the maximum number of links to be used for an MLO
3148 * connection.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003149 */
3150 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
3151
3152 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
3153 * Uses enum qca_wlan_eht_mlo_mode values.
3154 */
3155 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
3156
Sunil Ravi640215c2023-06-28 23:08:09 +00003157 /* Nested attribute with frequencies in u32 attributes to configure a
3158 * list of allowed 20 MHz channel center frequencies in MHz for AP
3159 * operation. Whenever performing a channel selection operation, the
3160 * driver shall generate a new list based on this provided list by
3161 * filtering out channels that cannot be used at that time due to
3162 * regulatory or other constraints. The resulting list is used as the
3163 * list of all allowed channels, i.e., operation on any channel that is
3164 * not included is not allowed, whenever performing operations like ACS
3165 * and DFS.
3166 *
3167 * Userspace shall configure this before starting the AP and the
3168 * configuration is valid only from the next BSS start and until the
3169 * BSS is stopped. The driver shall clear this configuration when the
3170 * AP is stopped and fall back to the default behavior for subsequent
3171 * AP operation.
3172 *
3173 * The default behavior when this configuration is not applicable is the
3174 * driver can choose any of the channels supported by the hardware
3175 * except the channels that cannot be used due to regulatory or other
3176 * constraints.
3177 *
3178 * The driver shall reject this configuration if done after the AP is
3179 * started. This attribute can be used to specify user's choice of
3180 * frequencies and static puncture channel list, etc.
3181 */
3182 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3183
3184 /* Nested attribute to indicate EHT MLO links to be forced active.
3185 * It contains link MAC address attributes. These nested attributes are
3186 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3187 * MLO links corresponding to the indicated link MAC addresses.
3188 * Subsequently, the links corresponding to the link MAC addresses that
3189 * are not indicated are forced inactive.
3190 */
3191 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3192
3193 /* 8-bit unsigned value to configure EMLSR mode entry or exit.
3194 * Uses enum qca_wlan_emlsr_mode values.
3195 */
3196 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3197
3198 /* 8-bit unsigned value to configure the channel bandwidth
3199 * for CTS frame transmission during the dymamic bandwidth
3200 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3201 * 10.3.2.9 CTS and DMG CTS procedure.
3202 * This configuration is used for testing purposes.
3203 *
3204 * This uses values defined in enum nl80211_chan_width.
3205 */
3206 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3207
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003208 /* 8-bit unsigned value. This attribute is used to dynamically
3209 * enable/suspend trigger based UL MU transmission.
3210 * This is supported in STA mode and the device sends Operating
3211 * Mode Indication to inform the change as described in
3212 * IEEE Std 802.11ax-2021, 26.9.
3213 *
3214 * This attribute can be configured when the STA is associated
3215 * to an AP and the configuration is maintained until the current
3216 * association terminates.
3217 *
3218 * By default all UL MU transmissions are enabled.
3219 *
3220 * Uses enum qca_ul_mu_config values.
3221 */
3222 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
3223
3224 /* 8-bit unsigned value. Optionally specified along with
3225 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
3226 * state. This configuration is applicable only for the current
3227 * connection. This configuration not allowed in disconnected state.
3228 * This configuration can be sent inside
3229 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3230 * supported channel width update type per-MLO link.
3231 *
3232 * Uses enum qca_chan_width_update_type values.
3233 */
3234 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
3235
3236 /* 8-bit unsigned value to set EPCS (Emergency Preparedness
3237 * Communications Service) feature capability
3238 * 1 - Enable, 0 - Disable.
3239 *
3240 * This configuration is used for testing purposes.
3241 */
3242 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
3243
3244 /* 8-bit unsigned value to enable/disable EPCS priority access
3245 * 1 - Enable, 0 - Disable.
3246 * The EPCS priority access shall be enabled only when EPCS feature
3247 * capability is also enabled (see
3248 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
3249 *
3250 * This configuration is used for testing purposes.
3251 */
3252 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
3253
3254 /* 8-bit unsigned value. Used to specify the MLO link ID of a link
3255 * that is being configured. This attribute must be included in each
3256 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
3257 * may be included without nesting to indicate the link that is the
3258 * target of other configuration attributes.
3259 */
3260 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
3261
3262 /* Array of nested links each identified by
3263 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
3264 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
3265 * added for the attributes in enum qca_wlan_vendor_attr_config to
3266 * support per-MLO link configuration through
3267 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
3268 *
3269 * Userspace can configure a single link or multiple links with this
3270 * attribute by nesting the corresponding configuration attributes and
3271 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3272 *
3273 * Userspace can fetch the configuration attribute values for a single
3274 * link or multiple links with this attribute by nesting the
3275 * corresponding configuration attributes and
3276 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3277 *
3278 * For STA interface, this attribute is applicable only in connected
3279 * state when the current connection is MLO capable. The valid values of
3280 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
3281 * connected AP MLD links.
3282 *
3283 * For AP interface, this configuration applicable only after adding
3284 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
3285 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
3286 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
3287 * the AP interface.
3288 */
3289 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
3290
3291 /* 16-bit unsigned value to configure power save inactivity timeout in
3292 * milliseconds.
3293 *
3294 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
3295 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
3296 *
3297 * This attribute shall be configured along with
3298 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
3299 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3300 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3301 */
3302 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
3303
3304 /* 16-bit unsigned value to configure speculative wake interval in
3305 * milliseconds.
3306 *
3307 * STA speculatively wakes up to look for buffered data by AP at
3308 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
3309 * entering into power save. If configured zero, STA wakes up at
3310 * upcoming DTIM beacon.
3311 *
3312 * This attribute shall be configured along with
3313 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3314 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3315 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3316 */
3317 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
3318
3319 /*
3320 * 16-bit unsigned value to configure TX max A-MPDU count.
3321 *
3322 * For STA interface, this attribute is applicable only in connected
3323 * state, peer MAC address is not required to be provided.
3324 *
3325 * For AP interface, this attribute is applicable only in started
3326 * state and one of the associated peer STAs must be specified with
3327 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
3328 * association, the peer MAC address provided is the link address of
3329 * the non-AP MLD.
3330 *
3331 * This attribute runtime configures the TX maximum aggregation size.
3332 * The value must be in range of 1 to BA window size for the specific
3333 * peer.
3334 */
3335 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
3336
3337 /*
3338 * 8-bit unsigned value to configure TID-to-link mapping negotiation
3339 * type.
3340 * Uses enum qca_wlan_ttlm_negotiation_support values.
3341 *
3342 * This value applies to the complete AP/non-AP MLD interface, and the
3343 * MLD advertises it within the Basic Multi-Link element in the
3344 * association frames. If a new value is configured during an active
3345 * connection, it will take effect in the subsequent associations and
3346 * is not reset during disconnection.
3347 *
3348 * This attribute is used for testing purposes.
3349 */
3350 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
3351
3352 /* 8-bit unsigned value.
3353 *
3354 * This attribute configures a traffic shaping mode
3355 * applied during coex scenarios.
3356 * By default all coex traffic shaping modes are enabled,
3357 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
3358 * To shape traffic, STA may enter in power save mode
3359 * and AP may send CTS-to-self frame.
3360 *
3361 * Uses enum qca_coex_traffic_shaping_mode values.
3362 */
3363 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
3364
Sunil Ravi72e01222024-03-09 01:25:43 +00003365 /* 8-bit unsigned value.
3366 *
3367 * This attribute is used to specify whether an associated peer is a QCA
3368 * device. The associated peer is specified with
3369 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
3370 * address of the peer is used.
3371 * 1 - QCA device, 0 - non-QCA device.
3372 */
3373 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
3374
Sunil Raviaf399a82024-05-05 20:56:55 +00003375 /* 8-bit unsigned value to configure BTM support.
3376 *
3377 * The attribute is applicable only for STA interface. Uses enum
3378 * qca_wlan_btm_support values. This configuration is not allowed in
3379 * connected state.
3380 */
3381 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
3382
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003383 /* keep last */
3384 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3385 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3386 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3387};
3388
Hai Shalomfdcde762020-04-02 11:19:20 -07003389/* Compatibility defines for previously used incorrect enum
3390 * qca_wlan_vendor_attr_config names. These values should not be used in any
3391 * new implementation. */
3392#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3393 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3394#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3395 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3396
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003397/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003398 * enum qca_ul_mu_config - UL MU configuration
3399 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
3400 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
3401 */
3402enum qca_ul_mu_config {
3403 QCA_UL_MU_SUSPEND = 0,
3404 QCA_UL_MU_ENABLE = 1,
3405};
3406
3407/**
Sunil Ravi89eba102022-09-13 21:04:37 -07003408 * enum qca_dbam_config - Specifies DBAM config mode
3409 * @QCA_DBAM_DISABLE: Firmware disables DBAM
3410 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3411 * internal criteria are met.
3412 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3413 */
3414enum qca_dbam_config {
3415 QCA_DBAM_DISABLE = 0,
3416 QCA_DBAM_ENABLE = 1,
3417 QCA_DBAM_FORCE_ENABLE = 2,
3418};
3419
3420/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003421 * enum qca_wlan_ani_setting - ANI setting type
3422 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3423 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3424 */
3425enum qca_wlan_ani_setting {
3426 QCA_WLAN_ANI_SETTING_AUTO = 0,
3427 QCA_WLAN_ANI_SETTING_FIXED = 1,
3428};
3429
3430/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003431 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07003432 *
3433 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3434 * Channel number on which Access Point should restart.
3435 * Note: If both the driver and user space application supports the 6 GHz band,
3436 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3437 * should be used.
3438 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3439 * is still used if either of the driver or user space application doesn't
3440 * support the 6 GHz band.
3441 *
3442 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3443 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003444 */
3445enum qca_wlan_vendor_attr_sap_config {
3446 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07003447 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3448
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003449 /* List of frequencies on which AP is expected to operate.
3450 * This is irrespective of ACS configuration. This list is a priority
3451 * based one and is looked for before the AP is created to ensure the
3452 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3453 * the system.
3454 */
3455 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07003456 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003457
3458 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3459 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3460 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3461};
3462
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003463/**
3464 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3465 * conditional channel switch
3466 */
3467enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3468 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3469 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07003470 * order)
3471 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003472 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3473 /* Status of the conditional switch (u32).
3474 * 0: Success, Non-zero: Failure
3475 */
3476 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3477
3478 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3479 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3480 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3481};
3482
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003483/**
3484 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003485 *
3486 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3487 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3488 * for the available values.
3489 *
3490 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3491 * value to specify the GPIO number.
3492 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3493 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3494 *
3495 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3496 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3497 * for the available values.
3498 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3499 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3500 *
Hai Shalom60840252021-02-19 19:02:11 -08003501 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003502 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3503 * for the available values.
3504 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003505 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3506 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3507 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3508 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003509 *
Hai Shalom60840252021-02-19 19:02:11 -08003510 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003511 * value to specify the GPIO interrupt mode. Please refer to enum
3512 * qca_gpio_interrupt_mode for the available values.
3513 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003514 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3515 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3516 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3517 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003518 *
Hai Shalom60840252021-02-19 19:02:11 -08003519 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003520 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3521 * for the available values.
3522 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003523 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3524 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3525 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3526 * attribute is present.
3527 *
3528 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3529 * Value to specify the mux config. Meaning of a given value is dependent
3530 * on the target chipset and GPIO pin. Must be of the range 0-15.
3531 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3532 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3533 *
3534 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3535 * Value to specify the drive, refer to enum qca_gpio_drive.
3536 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3537 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3538 *
3539 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3540 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3541 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3542 * other parameters for the given GPIO will be obtained from internal
3543 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3544 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003545 */
3546enum qca_wlan_gpio_attr {
3547 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3548 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07003549 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003550 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003551 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003552 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003553 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003554 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07003555 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003556 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07003557 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3558 /* Unsigned 32-bit attribute for GPIO direction to configure */
3559 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08003560 /* Unsigned 32-bit attribute for GPIO mux config */
3561 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3562 /* Unsigned 32-bit attribute for GPIO drive */
3563 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3564 /* Flag attribute for using internal GPIO configuration */
3565 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003566
3567 /* keep last */
3568 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3569 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3570 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3571};
3572
3573/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003574 * enum gpio_cmd_type - GPIO configuration command type
3575 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3576 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3577 */
3578enum qca_gpio_cmd_type {
3579 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3580 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3581};
3582
3583/**
3584 * enum qca_gpio_pull_type - GPIO pull type
3585 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3586 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3587 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3588 */
3589enum qca_gpio_pull_type {
3590 QCA_WLAN_GPIO_PULL_NONE = 0,
3591 QCA_WLAN_GPIO_PULL_UP = 1,
3592 QCA_WLAN_GPIO_PULL_DOWN = 2,
3593 QCA_WLAN_GPIO_PULL_MAX,
3594};
3595
3596/**
3597 * enum qca_gpio_direction - GPIO direction
3598 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3599 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3600 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3601 */
3602enum qca_gpio_direction {
3603 QCA_WLAN_GPIO_INPUT = 0,
3604 QCA_WLAN_GPIO_OUTPUT = 1,
3605 QCA_WLAN_GPIO_DIR_MAX,
3606};
3607
3608/**
3609 * enum qca_gpio_value - GPIO Value
3610 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3611 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3612 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3613 */
3614enum qca_gpio_value {
3615 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3616 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3617 QCA_WLAN_GPIO_LEVEL_MAX,
3618};
3619
3620/**
3621 * enum gpio_interrupt_mode - GPIO interrupt mode
3622 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3623 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3624 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3625 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3626 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3627 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3628 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3629 */
3630enum qca_gpio_interrupt_mode {
3631 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3632 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3633 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3634 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3635 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3636 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3637 QCA_WLAN_GPIO_INTMODE_MAX,
3638};
3639
3640/**
Hai Shalom60840252021-02-19 19:02:11 -08003641 * enum qca_gpio_drive - GPIO drive
3642 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3643 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3644 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3645 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3646 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3647 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3648 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3649 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3650 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3651 */
3652enum qca_gpio_drive {
3653 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3654 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3655 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3656 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3657 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3658 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3659 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3660 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3661 QCA_WLAN_GPIO_DRIVE_MAX,
3662};
3663
3664/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003665 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3666 * MSDUQ depth threshold per peer per tid in the target
3667 *
3668 * Associated Vendor Command:
3669 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3670 */
3671enum qca_wlan_set_qdepth_thresh_attr {
3672 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3673 /* 6-byte MAC address */
3674 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3675 /* Unsigned 32-bit attribute for holding the TID */
3676 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3677 /* Unsigned 32-bit attribute for holding the update mask
3678 * bit 0 - Update high priority msdu qdepth threshold
3679 * bit 1 - Update low priority msdu qdepth threshold
3680 * bit 2 - Update UDP msdu qdepth threshold
3681 * bit 3 - Update Non UDP msdu qdepth threshold
3682 * rest of bits are reserved
3683 */
3684 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3685 /* Unsigned 32-bit attribute for holding the threshold value */
3686 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3687
3688 /* keep last */
3689 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3690 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3691 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3692};
3693
3694/**
Hai Shalomc3565922019-10-28 11:58:20 -07003695 * enum qca_acs_dfs_mode - Defines different types of DFS channel
3696 * configurations for ACS operation.
3697 *
3698 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3699 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3700 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3701 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3702 */
3703enum qca_acs_dfs_mode {
3704 QCA_ACS_DFS_MODE_NONE = 0,
3705 QCA_ACS_DFS_MODE_ENABLE = 1,
3706 QCA_ACS_DFS_MODE_DISABLE = 2,
3707 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3708};
3709
3710/**
3711 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3712 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3713 *
3714 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3715 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3716 *
3717 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3718 * channel number hint for ACS operation, if valid channel is specified then
3719 * ACS operation gives priority to this channel.
3720 * Note: If both the driver and user space application supports the 6 GHz band,
3721 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3722 * should be used.
3723 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3724 * is still used if either of the driver or user space application doesn't
3725 * support the 6 GHz band.
3726 *
3727 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3728 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3729 * frequency is specified, ACS operation gives priority to this channel.
3730 */
3731enum qca_wlan_vendor_attr_acs_config {
3732 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3733 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3734 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3735 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3736
3737 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3738 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3739 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3740};
3741
3742/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003743 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3744 */
3745enum qca_wlan_vendor_attr_get_hw_capability {
3746 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3747 /* Antenna isolation
3748 * An attribute used in the response.
3749 * The content of this attribute is encoded in a byte array. Each byte
3750 * value is an antenna isolation value. The array length is the number
3751 * of antennas.
3752 */
3753 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3754 /* Request HW capability
3755 * An attribute used in the request.
3756 * The content of this attribute is a u32 array for one or more of
3757 * hardware capabilities (attribute IDs) that are being requested. Each
3758 * u32 value has a value from this
3759 * enum qca_wlan_vendor_attr_get_hw_capability
3760 * identifying which capabilities are requested.
3761 */
3762 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3763
3764 /* keep last */
3765 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3766 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3767 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3768};
3769
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003770/**
3771 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3772 * offload which is an extension for LL_STATS.
3773 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3774 * If MAC counters do not exceed the threshold, FW will report monitored
3775 * link layer counters periodically as this setting. The first report is
3776 * always triggered by this timer.
3777 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3778 * For each MAC layer counter, FW holds two copies. One is the current value.
3779 * The other is the last report. Once a current counter's increment is larger
3780 * than the threshold, FW will indicate that counter to host even if the
3781 * monitoring timer does not expire.
3782 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3783 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3784 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3785 * failure code.
3786 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3787 * 1: TX packet discarded
3788 * 2: No ACK
3789 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003790 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3791 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3792 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3793 * Threshold for all monitored parameters. If per counter dedicated threshold
3794 * is not enabled, this threshold will take effect.
3795 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3796 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3797 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3798 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3799 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3800 * Bit0: TX counter unit in MSDU
3801 * Bit1: TX counter unit in MPDU
3802 * Bit2: TX counter unit in PPDU
3803 * Bit3: TX counter unit in byte
3804 * Bit4: Dropped MSDUs
3805 * Bit5: Dropped Bytes
3806 * Bit6: MPDU retry counter
3807 * Bit7: MPDU failure counter
3808 * Bit8: PPDU failure counter
3809 * Bit9: MPDU aggregation counter
3810 * Bit10: MCS counter for ACKed MPDUs
3811 * Bit11: MCS counter for Failed MPDUs
3812 * Bit12: TX Delay counter
3813 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3814 * Bit0: MAC RX counter unit in MPDU
3815 * Bit1: MAC RX counter unit in byte
3816 * Bit2: PHY RX counter unit in PPDU
3817 * Bit3: PHY RX counter unit in byte
3818 * Bit4: Disorder counter
3819 * Bit5: Retry counter
3820 * Bit6: Duplication counter
3821 * Bit7: Discard counter
3822 * Bit8: MPDU aggregation size counter
3823 * Bit9: MCS counter
3824 * Bit10: Peer STA power state change (wake to sleep) counter
3825 * Bit11: Peer STA power save counter, total time in PS mode
3826 * Bit12: Probe request counter
3827 * Bit13: Other management frames counter
3828 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3829 * Bit0: Idle time
3830 * Bit1: TX time
3831 * Bit2: time RX in current bss
3832 * Bit3: Out of current bss time
3833 * Bit4: Wireless medium busy time
3834 * Bit5: RX in bad condition time
3835 * Bit6: TX in bad condition time
3836 * Bit7: time wlan card not available
3837 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3838 * Bit0: Per channel SNR counter
3839 * Bit1: Per channel noise floor counter
3840 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3842 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3843 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3844 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3845 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3846 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3848 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3849 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3850 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3851 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3852 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3853 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3854 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3855 * aggregation stats buffer length
3856 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3857 * buffer for ACKed MPDUs.
3858 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3859 * buffer for failed MPDUs.
3860 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3861 * length of delay stats array.
3862 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3863 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3864 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3865 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3866 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3867 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3868 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3869 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3870 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3871 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3872 * flagged as retransmissions
3873 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3874 * flagged as duplicated
3875 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3876 * packets discarded
3877 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3878 * stats buffer.
3879 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3880 * stats buffer.
3881 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3882 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3883 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3884 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3885 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3886 * requests received
3887 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3888 * frames received
3889 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3890 * there is no TX, nor RX, nor interference.
3891 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3892 * transmitting packets.
3893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3894 * for receiving.
3895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3896 * interference detected.
3897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3898 * receiving packets with errors.
3899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3900 * TX no-ACK.
3901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3902 * the chip is unable to work in normal conditions.
3903 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3904 * receiving packets in current BSS.
3905 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3906 * receiving packets not in current BSS.
3907 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3908 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3909 * This is a container for per antenna signal stats.
3910 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3911 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3912 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3913 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003914 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3915 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3916 * message, user layer APP could call gettimeofday to get another
3917 * timestamp and calculate transfer delay for the message.
3918 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3919 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07003920 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
3921 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003922 */
3923enum qca_wlan_vendor_attr_ll_stats_ext {
3924 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3925
3926 /* Attributes for configurations */
3927 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3928 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3929
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003930 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003931 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3932
3933 /* TX failure event */
3934 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3935 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3936 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3937
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003938 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3939 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3940
3941 /* MAC counters */
3942 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3943 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3944 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3945 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3946 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3947 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3948 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3949 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3950 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3951 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3952 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3953 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3954
3955 /* Sub-attributes for PEER_AC_TX */
3956 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3957 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3958 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3959 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3960 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3961 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3962 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3963 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3964 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3965 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3966 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3967 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3968 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3969 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3970 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3971 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3972 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3973
3974 /* Sub-attributes for PEER_AC_RX */
3975 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3976 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3977 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3978 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3979 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3980 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3981 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3982 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3983 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3985 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3986 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3988 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3989 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3990 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3991
3992 /* Sub-attributes for CCA_BSS */
3993 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3994 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3995 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3998 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3999 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
4000
4001 /* sub-attribute for BSS_RX_TIME */
4002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
4003 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
4004
4005 /* Sub-attributes for PEER_SIGNAL */
4006 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
4007 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
4008 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
4009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
4010
4011 /* Sub-attributes for IFACE_BSS */
4012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
4013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
4014
Roshan Pius3a1667e2018-07-03 15:17:14 -07004015 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
4016 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07004017 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004018
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004019 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
4020 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
4021 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
4022};
4023
4024/* Attributes for FTM commands and events */
4025
4026/**
4027 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
4028 *
4029 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
4030 * enum qca_wlan_vendor_attr_loc_capa_flags.
4031 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
4032 * of measurement sessions that can run concurrently.
4033 * Default is one session (no session concurrency).
4034 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
4035 * peers that are supported in running sessions. For example,
4036 * if the value is 8 and maximum number of sessions is 2, you can
4037 * have one session with 8 unique peers, or 2 sessions with 4 unique
4038 * peers each, and so on.
4039 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
4040 * of bursts per peer, as an exponent (2^value). Default is 0,
4041 * meaning no multi-burst support.
4042 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
4043 * of measurement exchanges allowed in a single burst.
4044 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
4045 * types. A bit mask (unsigned 32 bit value), each bit corresponds
4046 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
4047 */
4048enum qca_wlan_vendor_attr_loc_capa {
4049 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
4050 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
4051 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
4052 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
4053 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
4054 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
4055 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
4056 /* keep last */
4057 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
4058 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
4059 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
4060};
4061
4062/**
4063 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
4064 *
4065 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
4066 * can be configured as an FTM responder (for example, an AP that
4067 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
4068 * will be supported if set.
4069 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
4070 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
4071 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004072 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004073 * supports immediate (ASAP) response.
4074 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
4075 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
4076 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
4077 * requesting AOA measurements as part of an FTM session.
4078 */
4079enum qca_wlan_vendor_attr_loc_capa_flags {
4080 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
4081 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
4082 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
4083 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
4084 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
4085};
4086
4087/**
4088 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
4089 * a single peer in a measurement session.
4090 *
4091 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
4092 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
4093 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004094 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004095 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
4096 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
4097 * list of supported attributes.
4098 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
4099 * secure measurement.
4100 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
4101 * measurement every <value> bursts. If 0 or not specified,
4102 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004103 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
4104 * the measurement frames are exchanged. Optional; if not
4105 * specified, try to locate the peer in the kernel scan
4106 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004107 */
4108enum qca_wlan_vendor_attr_ftm_peer_info {
4109 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
4110 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
4111 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004112 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004113 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
4114 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004115 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004116 /* keep last */
4117 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
4118 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
4119 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
4120};
4121
4122/**
4123 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
4124 * per-peer
4125 *
4126 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
4127 * immediate (ASAP) response from peer.
4128 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
4129 * LCI report from peer. The LCI report includes the absolute
4130 * location of the peer in "official" coordinates (similar to GPS).
4131 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
4132 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
4133 * Location civic report from peer. The LCR includes the location
4134 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
4135 * 11.24.6.7 for more information.
4136 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
4137 * request a secure measurement.
4138 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
4139 */
4140enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
4141 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
4142 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
4143 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
4144 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
4145};
4146
4147/**
4148 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
4149 *
4150 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
4151 * to perform in a single burst.
4152 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
4153 * perform, specified as an exponent (2^value).
4154 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
4155 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
4156 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
4157 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
4158 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
4159 */
4160enum qca_wlan_vendor_attr_ftm_meas_param {
4161 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
4162 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
4163 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
4164 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
4165 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
4166 /* keep last */
4167 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
4168 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
4169 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
4170};
4171
4172/**
4173 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
4174 *
4175 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
4176 * peer.
4177 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
4178 * request for this peer.
4179 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
4180 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
4181 * to measurement results for this peer.
4182 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
4183 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
4184 * request failed and peer requested not to send an additional request
4185 * for this number of seconds.
4186 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
4187 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4188 * 9.4.2.22.10.
4189 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
4190 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4191 * 9.4.2.22.13.
4192 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
4193 * overridden some measurement request parameters. See
4194 * enum qca_wlan_vendor_attr_ftm_meas_param.
4195 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
4196 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
4197 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
4198 * results. Each entry is a nested attribute defined
4199 * by enum qca_wlan_vendor_attr_ftm_meas.
4200 */
4201enum qca_wlan_vendor_attr_ftm_peer_result {
4202 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
4203 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
4204 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
4205 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
4206 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
4207 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
4208 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
4209 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
4210 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
4211 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
4212 /* keep last */
4213 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
4214 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
4215 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
4216};
4217
4218/**
4219 * enum qca_wlan_vendor_attr_ftm_peer_result_status
4220 *
4221 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
4222 * will be provided. Peer may have overridden some measurement parameters,
4223 * in which case overridden parameters will be report by
4224 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
4225 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
4226 * of performing the measurement request. No more results will be sent
4227 * for this peer in this session.
4228 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
4229 * failed, and requested not to send an additional request for number
4230 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
4231 * attribute.
4232 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
4233 * failed. Request was not sent over the air.
4234 */
4235enum qca_wlan_vendor_attr_ftm_peer_result_status {
4236 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
4237 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
4238 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
4239 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
4240};
4241
4242/**
4243 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
4244 * for measurement result, per-peer
4245 *
4246 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
4247 * measurement completed for this peer. No more results will be reported
4248 * for this peer in this session.
4249 */
4250enum qca_wlan_vendor_attr_ftm_peer_result_flags {
4251 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
4252};
4253
4254/**
4255 * enum qca_vendor_attr_loc_session_status: Session completion status code
4256 *
4257 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
4258 * successfully.
4259 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
4260 * by request.
4261 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
4262 * was invalid and was not started.
4263 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
4264 * and did not complete normally (for example out of resources).
4265 */
4266enum qca_vendor_attr_loc_session_status {
4267 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
4268 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
4269 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
4270 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
4271};
4272
4273/**
4274 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
4275 *
4276 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
4277 * recorded by responder, in picoseconds.
4278 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4279 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
4280 * initiator, in picoseconds.
4281 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4282 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
4283 * initiator, in picoseconds.
4284 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4285 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
4286 * responder, in picoseconds.
4287 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4288 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
4289 * during this measurement exchange. Optional and will be provided if
4290 * the hardware can measure it.
4291 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
4292 * responder. Not always provided.
4293 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4294 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
4295 * responder. Not always provided.
4296 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4297 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
4298 * initiator. Not always provided.
4299 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4300 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
4301 * initiator. Not always provided.
4302 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07004303 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
4304 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004305 */
4306enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004307 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004308 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
4309 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
4310 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
4311 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
4312 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
4313 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
4314 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
4315 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
4316 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
4317 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
4318 /* keep last */
4319 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
4320 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
4321 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
4322};
4323
4324/**
4325 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
4326 *
4327 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
4328 * CIR (channel impulse response) path for each antenna.
4329 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
4330 * of the strongest CIR path for each antenna.
4331 */
4332enum qca_wlan_vendor_attr_aoa_type {
4333 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
4334 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
4335 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
4336};
4337
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004338/**
4339 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
4340 * validate encryption engine
4341 *
4342 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
4343 * This will be included if the request is for decryption; if not included,
4344 * the request is treated as a request for encryption by default.
4345 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
4346 * indicating the key cipher suite. Takes same values as
4347 * NL80211_ATTR_KEY_CIPHER.
4348 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
4349 * Key Id to be used for encryption
4350 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
4351 * Key (TK) to be used for encryption/decryption
4352 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4353 * Packet number to be specified for encryption/decryption
4354 * 6 bytes for TKIP/CCMP/GCMP.
4355 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4356 * representing the 802.11 packet (header + payload + FCS) that
4357 * needs to be encrypted/decrypted.
4358 * Encrypted/decrypted response from the driver will also be sent
4359 * to userspace with the same attribute.
4360 */
4361enum qca_wlan_vendor_attr_encryption_test {
4362 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4363 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4364 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4365 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4366 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4367 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4368 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4369
4370 /* keep last */
4371 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4372 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4373 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4374};
4375
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004376/**
4377 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4378 * sector for DMG RF sector operations.
4379 *
4380 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4381 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4382 */
4383enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4384 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4385 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4386 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4387};
4388
4389/**
Hai Shalom021b0b52019-04-10 11:17:58 -07004390 * enum qca_wlan_vendor_attr_fw_state - State of firmware
4391 *
4392 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4393 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4394 */
4395enum qca_wlan_vendor_attr_fw_state {
4396 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4397 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4398 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4399};
4400
4401/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004402 * BRP antenna limit mode
4403 *
4404 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4405 * antenna limit, BRP will be performed as usual.
4406 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4407 * antennas limit. the hardware may use less antennas than the
4408 * maximum limit.
4409 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4410 * use exactly the specified number of antennas for BRP.
4411 */
4412enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4413 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4414 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4415 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4416 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4417};
4418
4419/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004420 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4421 * DMG RF sector configuration for a single RF module.
4422 * The values are defined in a compact way which closely matches
4423 * the way it is stored in HW registers.
4424 * The configuration provides values for 32 antennas and 8 distribution
4425 * amplifiers, and together describes the characteristics of the RF
4426 * sector - such as a beam in some direction with some gain.
4427 *
4428 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4429 * of RF module for this configuration.
4430 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4431 * amplifier gain index. Unsigned 32 bit number containing
4432 * bits for all 32 antennas.
4433 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4434 * amplifier gain index. Unsigned 32 bit number containing
4435 * bits for all 32 antennas.
4436 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4437 * amplifier gain index. Unsigned 32 bit number containing
4438 * bits for all 32 antennas.
4439 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4440 * for first 16 antennas, 2 bits per antenna.
4441 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4442 * for last 16 antennas, 2 bits per antenna.
4443 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4444 * DTYPE values (3 bits) for each distribution amplifier, followed
4445 * by X16 switch bits for each distribution amplifier. There are
4446 * total of 8 distribution amplifiers.
4447 */
4448enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4449 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4450 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4451 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4452 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4453 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4454 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4455 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4456 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4457
4458 /* keep last */
4459 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4460 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4461 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4462};
4463
4464enum qca_wlan_vendor_attr_ll_stats_set {
4465 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4466 /* Unsigned 32-bit value */
4467 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4468 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4469 /* keep last */
4470 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4471 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4472 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4473};
4474
Sunil Ravi640215c2023-06-28 23:08:09 +00004475/**
4476 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4477 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4478 *
4479 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4480 *
4481 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4482 * radio statistics.
4483 *
4484 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4485 * statistics within radio statistics.
4486 *
4487 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4488 * radio statistics.
4489 *
4490 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4491 *
4492 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
4493 * within interface statistics.
4494 *
4495 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
4496 * interface statistics.
4497 *
4498 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
4499 * (min, max, avg) statistics within AC statistics.
4500 *
4501 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
4502 * on this interface.
4503 *
4504 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
4505 * statistics depending on the peer_mac.
4506 */
4507enum qca_wlan_ll_stats_clr_req_bitmap {
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004508 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
4509 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
4510 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
4511 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
4512 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
4513 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
4514 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
Sunil Ravi640215c2023-06-28 23:08:09 +00004515 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004516 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
4517 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
Sunil Ravi640215c2023-06-28 23:08:09 +00004518};
4519
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004520enum qca_wlan_vendor_attr_ll_stats_clr {
4521 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004522 /* Unsigned 32bit bitmap for clearing statistics, specified
4523 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004524 */
4525 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4526 /* Unsigned 8 bit value: Request to stop statistics collection */
4527 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4528
4529 /* Unsigned 32 bit bitmap: Response from the driver
4530 * for the cleared statistics
4531 */
4532 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4533 /* Unsigned 8 bit value: Response from driver/firmware
4534 * for the stop request
4535 */
4536 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4537 /* keep last */
4538 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4539 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4540 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4541};
4542
Sunil Ravi640215c2023-06-28 23:08:09 +00004543/**
4544 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
4545 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
4546 *
4547 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
4548 *
4549 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
4550 *
4551 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
4552 *
4553 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
4554 */
4555enum qca_wlan_ll_stats_get_req_bitmap {
4556 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
4557 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004558 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
4559 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
Sunil Ravi640215c2023-06-28 23:08:09 +00004560};
4561
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004562enum qca_wlan_vendor_attr_ll_stats_get {
4563 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4564 /* Unsigned 32 bit value provided by the caller issuing the GET stats
4565 * command. When reporting the stats results, the driver uses the same
4566 * value to indicate which GET request the results correspond to.
4567 */
4568 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4569 /* Unsigned 32 bit value - bit mask to identify what statistics are
Sunil Ravi640215c2023-06-28 23:08:09 +00004570 * requested for retrieval specified in the enum
4571 * qca_wlan_ll_stats_get_req_bitmap
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004572 */
4573 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4574 /* keep last */
4575 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4576 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4577 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4578};
4579
4580enum qca_wlan_vendor_attr_ll_stats_results {
4581 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004582
4583 /*
4584 * For Multi Link Operation (MLO) connection, per-link statistics will
4585 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
4586 * cumulative statistics will be sent outside of
4587 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
4588 * compatibility with legacy user space. Attributes which don't have
4589 * explicit documentation for MLO will be sent only outside of
4590 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
4591 * don't depend on whether the connection is MLO capable or not, e.g.,
4592 * radio and channel specific attributes.
4593 */
4594
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004595 /* Unsigned 32bit value. Used by the driver; must match the request id
4596 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4597 */
4598 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4599
Sunil Ravi640215c2023-06-28 23:08:09 +00004600 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4601 * the link with the best RSSI outside
4602 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4603 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4604 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004605 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
Sunil Ravi640215c2023-06-28 23:08:09 +00004606 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4607 * the link with the best RSSI outside
4608 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4609 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4610 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004611 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
Sunil Ravi640215c2023-06-28 23:08:09 +00004612 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4613 * the link with the best RSSI outside
4614 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4615 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4616 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004617 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
Sunil Ravi640215c2023-06-28 23:08:09 +00004618 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4619 * the link with the best RSSI outside
4620 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4621 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4622 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004623 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00004624 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4625 * the link with the best RSSI outside
4626 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4627 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4628 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004629 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
Sunil Ravi640215c2023-06-28 23:08:09 +00004630 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4631 * the link with the best RSSI outside
4632 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4633 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4634 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004635 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
Sunil Ravi640215c2023-06-28 23:08:09 +00004636 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4637 * the link with the best RSSI outside
4638 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4639 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4640 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004641 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4642
4643 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4644 * nested within the interface stats.
4645 */
4646
4647 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4648 * Type = enum wifi_interface_mode.
4649 */
4650 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4651 /* Interface MAC address. An array of 6 Unsigned int8 */
4652 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4653 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4654 * AUTHENTICATING, etc. valid for STA, CLI only.
4655 */
4656 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4657 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4658 */
4659 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4660 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4661 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4662 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4663 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
Sunil Ravi640215c2023-06-28 23:08:09 +00004664 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
4665 * address of the AP. An array of 6 unsigned 8 bit values */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004666 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4667 /* Country string advertised by AP. An array of 3 unsigned 8 bit
4668 * values.
4669 */
4670 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4671 /* Country string for this association. An array of 3 unsigned 8 bit
4672 * values.
4673 */
4674 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4675
4676 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4677 * be nested within the interface stats.
Sunil Ravi640215c2023-06-28 23:08:09 +00004678 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4679 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
4680 * indicate the aggregate of all links outside
4681 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4682 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
4683 * indicate value of the MLO link with the best RSSI outside
4684 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4685 * These attributes indicate the link specific value inside
4686 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004687 */
4688
4689 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4690 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4691 /* Unsigned int 32 value corresponding to respective AC */
4692 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4693 /* Unsigned int 32 value corresponding to respective AC */
4694 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4695 /* Unsigned int 32 value corresponding to respective AC */
4696 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4697 /* Unsigned int 32 value corresponding to respective AC */
4698 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4699 /* Unsigned int 32 value corresponding to respective AC */
4700 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4701 /* Unsigned int 32 value corresponding to respective AC */
4702 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4703 /* Unsigned int 32 value corresponding to respective AC */
4704 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4705 /* Unsigned int 32 value corresponding to respective AC */
4706 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4707 /* Unsigned int 32 value corresponding to respective AC */
4708 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4709 /* Unsigned int 32 values corresponding to respective AC */
4710 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4711 /* Unsigned int 32 values corresponding to respective AC */
4712 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4713 /* Unsigned int 32 values corresponding to respective AC */
4714 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4715 /* Unsigned int 32 values corresponding to respective AC */
4716 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4717 /* Unsigned int 32 values corresponding to respective AC */
4718 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4719 /* Unsigned 32 bit value. Number of peers */
4720 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4721
4722 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4723 * nested within the interface stats.
4724 */
4725
4726 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4727 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4728 /* MAC addr corresponding to respective peer. An array of 6 unsigned
4729 * 8 bit values.
4730 */
4731 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4732 /* Unsigned int 32 bit value representing capabilities corresponding
4733 * to respective peer.
4734 */
4735 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4736 /* Unsigned 32 bit value. Number of rates */
4737 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4738
4739 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4740 * are nested within the rate stat.
4741 */
4742
4743 /* Wi-Fi Rate - separate attributes defined for individual fields */
4744
4745 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4746 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4747 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4748 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4749 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4750 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4751 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07004752 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4753 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004754 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4755
4756 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4757 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4758
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004759 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4760 * nested within the peer info stats.
4761 */
4762
4763 /* Unsigned int 32 bit value. Number of successfully transmitted data
4764 * packets, i.e., with ACK received corresponding to the respective
4765 * rate.
4766 */
4767 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4768 /* Unsigned int 32 bit value. Number of received data packets
4769 * corresponding to the respective rate.
4770 */
4771 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4772 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4773 * received corresponding to the respective rate.
4774 */
4775 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4776 /* Unsigned int 32 bit value. Total number of data packet retries for
4777 * the respective rate.
4778 */
4779 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4780 /* Unsigned int 32 bit value. Total number of short data packet retries
4781 * for the respective rate.
4782 */
4783 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4784 /* Unsigned int 32 bit value. Total number of long data packet retries
4785 * for the respective rate.
4786 */
4787 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4788
Sunil Ravi640215c2023-06-28 23:08:09 +00004789 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
4790 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4791 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
4792 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
4793 * of the MLO link.
4794 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004795 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4796 /* Unsigned 32 bit value. Total number of msecs the radio is awake
4797 * accruing over time.
4798 */
4799 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4800 /* Unsigned 32 bit value. Total number of msecs the radio is
4801 * transmitting accruing over time.
4802 */
4803 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4804 /* Unsigned 32 bit value. Total number of msecs the radio is in active
4805 * receive accruing over time.
4806 */
4807 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4808 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4809 * to all scan accruing over time.
4810 */
4811 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4812 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4813 * to NAN accruing over time.
4814 */
4815 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4816 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4817 * to GSCAN accruing over time.
4818 */
4819 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4820 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4821 * to roam scan accruing over time.
4822 */
4823 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4824 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4825 * to PNO scan accruing over time.
4826 */
4827 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4828 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4829 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4830 */
4831 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4832 /* Unsigned 32 bit value. Number of channels. */
4833 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4834
4835 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4836 * be nested within the channel stats.
4837 */
4838
4839 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4840 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
Sunil Ravi640215c2023-06-28 23:08:09 +00004841 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
4842 * indicate the primary frequency of the channel when
4843 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4844 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
4845 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
4846 * on which the MLO link is operating.
4847 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004848 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4849 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4850 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4851 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4852 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4853
4854 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4855 * nested within the radio stats.
4856 */
4857
4858 /* Unsigned int 32 bit value representing total number of msecs the
4859 * radio is awake on that channel accruing over time, corresponding to
4860 * the respective channel.
4861 */
4862 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4863 /* Unsigned int 32 bit value representing total number of msecs the CCA
4864 * register is busy accruing over time corresponding to the respective
4865 * channel.
4866 */
4867 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4868
4869 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4870
4871 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004872 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004873 */
4874 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4875
4876 /* Signifies the nested list of peer info attributes
Sunil Ravi640215c2023-06-28 23:08:09 +00004877 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
4878 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
4879 * indicate on which link the peer is connected.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004880 */
4881 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4882
4883 /* Signifies the nested list of rate info attributes
4884 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4885 */
4886 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4887
4888 /* Signifies the nested list of wmm info attributes
4889 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4890 */
4891 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4892
4893 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4894 * that more stats, e.g., peers or radio, are to follow in the next
4895 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4896 * Otherwise, it is set to 0.
4897 */
4898 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4899
Sunil Ravi640215c2023-06-28 23:08:09 +00004900 /* Unsigned 64 bit value. For an MLO connection, indicates the value of
4901 * the link with the best RSSI outside
4902 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4903 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4904 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004905 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4906
Sunil Ravi640215c2023-06-28 23:08:09 +00004907 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4908 * the link with the best RSSI outside
4909 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4910 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4911 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004912 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4913
Sunil Ravi640215c2023-06-28 23:08:09 +00004914 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4915 * the link with the best RSSI outside
4916 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4917 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4918 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004919 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4920
Sunil Ravi640215c2023-06-28 23:08:09 +00004921 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4922 * the link with the best RSSI outside
4923 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4924 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4925 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004926 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4927
4928 /* Unsigned 32 bit value */
4929 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4930
4931 /* Unsigned 32 bit value */
4932 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4933
4934 /* Number of msecs the radio spent in transmitting for each power level
4935 */
4936 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4937
Sunil Ravi640215c2023-06-28 23:08:09 +00004938 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4939 * the link with the best RSSI outside
4940 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4941 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4942 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004943 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
Sunil Ravi640215c2023-06-28 23:08:09 +00004944 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4945 * the link with the best RSSI outside
4946 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4947 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4948 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004949 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
Sunil Ravi640215c2023-06-28 23:08:09 +00004950 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4951 * the link with the best RSSI outside
4952 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4953 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4954 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004955 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
Sunil Ravi640215c2023-06-28 23:08:09 +00004956 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4957 * the link with the best RSSI outside
4958 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4959 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4960 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004961 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4962
Roshan Pius3a1667e2018-07-03 15:17:14 -07004963 /* Unsigned int 32 value.
4964 * Pending MSDUs corresponding to respective AC.
4965 */
4966 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4967
Hai Shalom899fcc72020-10-19 14:38:18 -07004968 /* u32 value representing total time in milliseconds for which the radio
4969 * is transmitting on this channel. This attribute will be nested
4970 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4971 */
4972 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4973 /* u32 value representing total time in milliseconds for which the radio
4974 * is receiving all 802.11 frames intended for this device on this
4975 * channel. This attribute will be nested within
4976 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4977 */
4978 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004979 /* u8 value representing the channel load percentage. Possible values
4980 * are 0-100.
4981 */
4982 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4983 /* u8 value representing the time slicing duty cycle percentage.
Sunil Ravi640215c2023-06-28 23:08:09 +00004984 * Possible values are 0-100. For an MLO connection, indicates the value
4985 * of the link with the best RSSI outside
4986 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4987 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Hai Shaloma20dcd72022-02-04 13:43:00 -08004988 */
4989 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07004990 /* Unsigned 32 bit value. The number of Beacon frames which are received
4991 * from the associated AP and indicate buffered unicast frame(s) for us
Sunil Ravi640215c2023-06-28 23:08:09 +00004992 * in the TIM element. For an MLO connection, indicates the value of the
4993 * link with the best RSSI outside
4994 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4995 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07004996 */
4997 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4998 /* Unsigned 32 bit value. The total number of Beacon frames received
4999 * from the associated AP that have wrongly indicated buffered unicast
5000 * traffic in the TIM element for us.
5001 * Below scenarios will be considered as wrong TIM element beacon:
5002 * 1) The related TIM element is set in the beacon for STA but STA
5003 * doesn’t receive any unicast data after this beacon.
5004 * 2) The related TIM element is still set in the beacon for STA
5005 * after STA has indicated power save exit by QoS Null Data frame.
Sunil Ravi640215c2023-06-28 23:08:09 +00005006 * For an MLO connection, indicates the value of the link with the best
5007 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
5008 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005009 */
5010 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07005011
5012 /* Signed 32 bit value. It represents the noise floor calibration value.
Sunil Ravi640215c2023-06-28 23:08:09 +00005013 * Possible values are -120~-50 dBm. For an MLO connection, indicates
5014 * the value of the link with the best RSSI outside
5015 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5016 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi036cec52023-03-29 11:35:17 -07005017 */
5018 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07005019
Sunil Ravi640215c2023-06-28 23:08:09 +00005020 /* Attribute used for padding for 64-bit alignment */
5021 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
5022
5023 /* Unsigned u8 value, link ID of an MLO link. Used inside nested
5024 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
5025 * link ID of the MLO link for which the statistics are embedded in the
5026 * nested attribute. Used inside nested attribute
5027 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
5028 * link ID of the peer.
5029 */
5030 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
5031
5032 /* A nested array of attributes for each MLO link, each containing
5033 * per-link statistics of a multi link connection. The attributes used
5034 * inside this nested attribute are defined in enum
5035 * qca_wlan_vendor_attr_ll_stats_results.
5036 *
5037 * For non-MLO connection, this attribute is not present and the
5038 * statistics will be sent outside this attribute (without nesting).
5039 *
5040 * For MLO connection, this attribute is present and also cumulative
5041 * statistics of all the links will be sent outside of this attribute
5042 * to be compatible with legacy user space.
5043 */
5044 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
5045
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005046 /* keep last */
5047 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
5048 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
5049 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
5050};
5051
Roshan Pius3a1667e2018-07-03 15:17:14 -07005052enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005053 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
5054 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
5055 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
5056 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
5057
5058 /* keep last */
5059 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
5060 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
5061 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
5062};
5063
5064/**
5065 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5066 * TDLS configuration to the host driver.
5067 *
5068 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5069 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5070 * represents the different TDLS trigger modes.
5071 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5072 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5073 * of packets shall meet the criteria for implicit TDLS setup.
5074 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
5075 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
5076 * to initiate a TDLS setup.
5077 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
5078 * a TDLS Discovery to the peer.
5079 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5080 * discovery attempts to know the TDLS capability of the peer. A peer is
5081 * marked as TDLS not capable if there is no response for all the attempts.
5082 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5083 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5084 * number of TX / RX frames meet the criteria for TDLS teardown.
5085 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
5086 * of Tx/Rx packets within a duration
5087 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
5088 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5089 * corresponding to the RSSI of the peer below which a TDLS setup is
5090 * triggered.
5091 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5092 * corresponding to the RSSI of the peer above which a TDLS teardown is
5093 * triggered.
5094 */
5095enum qca_wlan_vendor_attr_tdls_configuration {
5096 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5097 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5098
5099 /* Attributes configuring the TDLS Implicit Trigger */
5100 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5101 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5102 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5103 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5104 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5105 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5106 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5107 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5108
5109 /* keep last */
5110 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5111 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5112 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5113};
5114
5115/**
5116 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5117 * the driver
5118 *
5119 * The following are the different values for
5120 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5121 *
5122 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
5123 * the TDLS connection to a respective peer comes from the user space.
5124 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
5125 * TDLS_DISCOVER to do this.
5126 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5127 * setup/teardown to the eligible peer once the configured criteria
5128 * (such as TX/RX threshold, RSSI) is met. The attributes
5129 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5130 * the different configuration criteria for the TDLS trigger from the
5131 * host driver.
5132 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5133 * the TDLS setup / teardown through the implicit mode only to the
5134 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
5135 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
5136 * External mode works on top of the implicit mode. Thus the host driver
5137 * is expected to configure in TDLS Implicit mode too to operate in
5138 * External mode.
5139 * Configuring External mode alone without Implicit mode is invalid.
5140 *
5141 * All the above implementations work as expected only when the host driver
5142 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
5143 * that the TDLS message exchange is not internal to the host driver, but
5144 * depends on wpa_supplicant to do the message exchange.
5145 */
5146enum qca_wlan_vendor_tdls_trigger_mode {
5147 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5148 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5149 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5150};
5151
Dmitry Shmidt29333592017-01-09 12:27:11 -08005152/**
5153 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5154 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5155 * that is hard-coded in the Board Data File (BDF).
5156 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5157 * that is hard-coded in the Board Data File (BDF).
5158 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5159 * that is hard-coded in the Board Data File (BDF).
5160 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5161 * that is hard-coded in the Board Data File (BDF).
5162 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5163 * that is hard-coded in the Board Data File (BDF).
5164 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5165 * source of SAR power limits, thereby disabling the SAR power
5166 * limit feature.
5167 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5168 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005169 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5170 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005171 *
5172 * This enumerates the valid set of values that may be supplied for
5173 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005174 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5175 * the response to an instance of the
5176 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005177 */
5178enum qca_vendor_attr_sar_limits_selections {
5179 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5180 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5181 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5182 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5183 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5184 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5185 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005186 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005187};
5188
5189/**
5190 * enum qca_vendor_attr_sar_limits_spec_modulations -
5191 * SAR limits specification modulation
5192 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5193 * CCK modulation
5194 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5195 * OFDM modulation
5196 *
5197 * This enumerates the valid set of values that may be supplied for
5198 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5199 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5200 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07005201 * command or in the response to an instance of the
5202 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005203 */
5204enum qca_vendor_attr_sar_limits_spec_modulations {
5205 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5206 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5207};
5208
5209/**
5210 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5211 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005212 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08005213 * select which SAR power limit table should be used. Valid
5214 * values are enumerated in enum
5215 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5216 * power limit selection is unchanged if this attribute is not
5217 * present.
5218 *
5219 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5220 * which specifies the number of SAR power limit specifications
5221 * which will follow.
5222 *
5223 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5224 * limit specifications. The number of specifications is
5225 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5226 * specification contains a set of
5227 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5228 * specification is uniquely identified by the attributes
5229 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5230 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5231 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5232 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07005233 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
5234 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5235 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5236 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5237 * needed based upon the value of
5238 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005239 *
5240 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5241 * indicate for which band this specification applies. Valid
5242 * values are enumerated in enum %nl80211_band (although not all
5243 * bands may be supported by a given device). If the attribute is
5244 * not supplied then the specification will be applied to all
5245 * supported bands.
5246 *
5247 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5248 * to indicate for which antenna chain this specification
5249 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5250 * attribute is not supplied then the specification will be
5251 * applied to all chains.
5252 *
5253 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5254 * value to indicate for which modulation scheme this
5255 * specification applies. Valid values are enumerated in enum
5256 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5257 * is not supplied then the specification will be applied to all
5258 * modulation schemes.
5259 *
5260 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5261 * value to specify the actual power limit value in units of 0.5
5262 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07005263 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5264 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005265 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07005266 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5267 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5268 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5269 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5270 *
5271 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5272 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005273 */
5274enum qca_vendor_attr_sar_limits {
5275 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5276 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5277 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5278 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5279 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5280 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5281 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5282 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005283 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005284
5285 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5286 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5287 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5288};
5289
5290/**
5291 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
5292 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07005293 *
5294 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
5295 * should be set to any U8 value to indicate that the driver version
5296 * should be returned. When enabled in this manner, in a response this
5297 * attribute will contain a string representation of the driver version.
5298 *
5299 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
5300 * should be set to any U8 value to indicate that the firmware version
5301 * should be returned. When enabled in this manner, in a response this
5302 * attribute will contain a string representation of the firmware version.
5303 *
5304 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
5305 * should be set to any U32 value to indicate that the current radio
5306 * index should be returned. When enabled in this manner, in a response
5307 * this attribute will contain a U32 radio index value.
5308 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08005309 */
5310enum qca_wlan_vendor_attr_get_wifi_info {
5311 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
5312 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
5313 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005314 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005315
5316 /* keep last */
5317 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
5318 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
5319 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
5320};
5321
5322/*
5323 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
5324 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
5325 */
5326enum qca_wlan_vendor_attr_wifi_logger_start {
5327 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5328 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5329 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5330 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5331
5332 /* keep last */
5333 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5334 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
5335 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5336};
5337
5338enum qca_wlan_vendor_attr_logger_results {
5339 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
5340
5341 /* Unsigned 32-bit value; must match the request Id supplied by
5342 * Wi-Fi HAL in the corresponding subcmd NL msg.
5343 */
5344 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
5345
5346 /* Unsigned 32-bit value; used to indicate the size of memory
5347 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005348 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005349 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
5350
5351 /* keep last */
5352 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5353 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5354 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5355};
5356
Hai Shalomc3565922019-10-28 11:58:20 -07005357/**
5358 * enum qca_scan_freq_list_type: Frequency list types
5359 *
5360 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5361 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5362 * a preferred frequency list for roaming.
5363 *
5364 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5365 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5366 * a specific frequency list for roaming.
5367 */
5368enum qca_scan_freq_list_type {
5369 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5370 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5371};
5372
5373/**
5374 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5375 *
5376 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5377 * List of frequencies in MHz to be considered for a roam scan.
5378 *
5379 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5380 * Type of frequency list scheme being configured/gotten as defined by the
5381 * enum qca_scan_freq_list_type.
5382 */
5383enum qca_vendor_attr_scan_freq_list_scheme {
5384 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5385 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5386
5387 /* keep last */
5388 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5389 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5390 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5391};
5392
Hai Shalom899fcc72020-10-19 14:38:18 -07005393/**
5394 * enum qca_roam_scan_scheme: Scan scheme
5395 *
5396 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5397 * Indicates the driver to not scan on a Roam Trigger scenario, but
5398 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5399 * disconnect from the current connected AP by notifying a failure
5400 * code in the BTM response.
5401 *
5402 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5403 * trigger partial frequency scans. These frequencies are the ones learned
5404 * or maintained by the driver based on the probability of finding the
5405 * BSSIDs in the ESS for which the roaming is triggered.
5406 *
5407 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5408 * trigger the scan on all the valid frequencies to find better
5409 * candidates to roam.
5410 */
5411enum qca_roam_scan_scheme {
5412 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5413 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5414 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5415};
5416
Hai Shalomc3565922019-10-28 11:58:20 -07005417/*
5418 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5419 *
5420 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5421 * a bad packet error rates (PER).
5422 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5423 * based on beacon misses from the connected AP.
5424 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5425 * due to poor RSSI of the connected AP.
5426 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5427 * upon finding a BSSID with a better RSSI than the connected BSSID.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005428 * Also, set if the roam has to be triggered due to the high RSSI of the
5429 * current connected AP (better than
5430 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
5431 * the current BSSID need not be poor.
Hai Shalomc3565922019-10-28 11:58:20 -07005432 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5433 * by triggering a periodic scan to find a better AP to roam.
5434 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5435 * when the connected channel environment is too noisy/congested.
5436 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5437 * when BTM Request frame is received from the connected AP.
5438 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5439 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07005440 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5441 * based on the request from the user (space).
5442 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5443 * device receives Deauthentication/Disassociation frame from connected AP.
5444 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5445 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5446 * is determined to be a poor one.
5447 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5448 * based on continuous TX Data frame failures to the connected AP.
5449 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5450 * based on the scan results obtained from an external scan (not triggered
5451 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07005452 *
5453 * Set the corresponding roam trigger reason bit to consider it for roam
5454 * trigger.
5455 * Userspace can set multiple bits and send to the driver. The driver shall
5456 * consider all of them to trigger/initiate a roam scan.
5457 */
5458enum qca_vendor_roam_triggers {
5459 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
5460 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
5461 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
5462 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
5463 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
5464 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
5465 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
5466 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005467 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
5468 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
5469 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
5470 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
5471 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07005472};
5473
Hai Shalom60840252021-02-19 19:02:11 -08005474/*
5475 * enum qca_vendor_roam_fail_reasons: Defines the various roam
5476 * fail reasons. This enum value is used in
5477 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5478 *
5479 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5480 * able to trigger the scan.
5481 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5482 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5483 * scan.
5484 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
5485 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
5486 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
5487 * status code.
5488 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
5489 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
5490 * frame.
5491 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
5492 * with error status code.
5493 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
5494 * received.
5495 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
5496 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
5497 * frame.
5498 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
5499 * internally before transmission.
5500 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
5501 * Request frame.
5502 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
5503 * dropped internally.
5504 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
5505 * times out.
5506 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
5507 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
5508 * internally.
5509 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
5510 * M2 frame.
5511 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
5512 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
5513 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
5514 * internally.
5515 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
5516 * frame.
5517 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
5518 * started for final beacon miss case.
5519 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
5520 * received from the AP during roaming handoff.
5521 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
5522 * or host is suspended and gives the indication of the last roamed AP only
5523 * when the Apps is resumed. If the Apps is resumed while the roaming is in
5524 * progress, this ongoing roaming is aborted and the last roamed AP is
5525 * indicated to host.
5526 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
5527 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
5528 * out.
5529 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
Sunil Ravi640215c2023-06-28 23:08:09 +00005530 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
5531 * current network conditions are fine.
Hai Shalom60840252021-02-19 19:02:11 -08005532 */
5533enum qca_vendor_roam_fail_reasons {
5534 QCA_ROAM_FAIL_REASON_NONE = 0,
5535 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
5536 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
5537 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
5538 QCA_ROAM_FAIL_REASON_HOST = 4,
5539 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
5540 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
5541 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
5542 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
5543 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
5544 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
5545 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
5546 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
5547 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
5548 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
5549 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
5550 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
5551 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
5552 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
5553 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
5554 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
5555 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
5556 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
5557 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
5558 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
5559 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
5560 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
5561 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
5562 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
5563 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
Sunil Ravi640215c2023-06-28 23:08:09 +00005564 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
Hai Shalom60840252021-02-19 19:02:11 -08005565};
5566
5567/*
5568 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
5569 * invoke fail reasons. This enum value is used in
5570 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
5571 *
5572 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
5573 * in roam invoke command.
5574 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
5575 * enabled.
5576 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
5577 * length is invalid.
5578 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
5579 * in progress.
5580 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
5581 * of the AP in the roam invoke command to firmware. This reason is sent by the
5582 * firmware when the given AP is configured to be ignored or SSID/security
5583 * does not match.
5584 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
5585 * firmware internal reasons.
5586 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
5587 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
5588 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
5589 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
5590 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
5591 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
5592 */
5593enum qca_vendor_roam_invoke_fail_reasons {
5594 QCA_ROAM_INVOKE_STATUS_NONE = 0,
5595 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
5596 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
5597 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
5598 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
5599 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
5600 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
5601 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
5602 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
5603 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
5604 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
5605 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
5606 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
5607
5608};
5609
Hai Shalomc3565922019-10-28 11:58:20 -07005610/**
5611 * enum qca_vendor_attr_roam_candidate_selection_criteria:
5612 *
5613 * Each attribute carries a weightage in percentage (%).
5614 *
5615 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
5616 * Represents the weightage to be given for the RSSI selection
5617 * criteria among other parameters.
5618 *
5619 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
5620 * Represents the weightage to be given for the rate selection
5621 * criteria among other parameters.
5622 *
5623 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
5624 * Represents the weightage to be given for the band width selection
5625 * criteria among other parameters.
5626 *
5627 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
5628 * Represents the weightage to be given for the band selection
5629 * criteria among other parameters.
5630 *
5631 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
5632 * Represents the weightage to be given for the NSS selection
5633 * criteria among other parameters.
5634 *
5635 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
5636 * Represents the weightage to be given for the channel congestion
5637 * selection criteria among other parameters.
5638 *
5639 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
5640 * Represents the weightage to be given for the beamforming selection
5641 * criteria among other parameters.
5642 *
5643 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
5644 * Represents the weightage to be given for the OCE selection
5645 * criteria among other parameters.
5646 */
5647enum qca_vendor_attr_roam_candidate_selection_criteria {
5648 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
5649 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
5650 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
5651 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
5652 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
5653 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
5654 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
5655 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
5656
5657 /* keep last */
5658 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
5659 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
5660 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
5661};
5662
5663/**
5664 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00005665 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07005666 * configurations to/from the driver.
5667 * For the get, the attribute for the configuration to be queried shall
5668 * carry any of its acceptable values to the driver. In return, the driver
5669 * shall send the configured values within the same attribute to the user
5670 * space.
5671 *
5672 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
5673 * Signifies to enable/disable roam control in driver.
5674 * 1-enable, 0-disable
5675 * Enable: Mandates the driver to do the further roams using the
5676 * configuration parameters set through
5677 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
5678 * Disable: Disables the driver/firmware roaming triggered through
5679 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
5680 * expected to continue with the default configurations.
5681 *
5682 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
5683 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
5684 * Roam control status is obtained through this attribute.
5685 *
5686 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
5687 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5688 * is to be cleared in the driver.
5689 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5690 * and shall be ignored if used with other sub commands.
5691 * If this attribute is specified along with subcmd
5692 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5693 * all other attributes, if there are any.
5694 * If this attribute is not specified when the subcmd
5695 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
5696 * clear the data corresponding to the attributes specified.
5697 *
5698 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5699 * list of frequencies and its type, represented by
5700 * enum qca_vendor_attr_scan_freq_list_scheme.
5701 * Frequency list and its type are mandatory for this attribute to set
5702 * the frequencies.
5703 * Frequency type is mandatory for this attribute to get the frequencies
5704 * and the frequency list is obtained through
5705 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5706 * Frequency list type is mandatory for this attribute to clear the
5707 * frequencies.
5708 *
5709 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5710 * Carries the value of scan period in seconds to set.
5711 * The value of scan period is obtained with the same attribute for get.
5712 * Clears the scan period in the driver when specified with clear command.
5713 * Scan period is the idle time in seconds between each subsequent
5714 * channel scans.
5715 *
5716 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5717 * Carries the value of full scan period in seconds to set.
5718 * The value of full scan period is obtained with the same attribute for
5719 * get.
5720 * Clears the full scan period in the driver when specified with clear
5721 * command. Full scan period is the idle period in seconds between two
5722 * successive full channel roam scans.
5723 *
5724 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5725 * Carries a bitmap of the roam triggers specified in
5726 * enum qca_vendor_roam_triggers.
5727 * The driver shall enable roaming by enabling corresponding roam triggers
5728 * based on the trigger bits sent with this attribute.
5729 * If this attribute is not configured, the driver shall proceed with
5730 * default behavior.
5731 * The bitmap configured is obtained with the same attribute for get.
5732 * Clears the bitmap configured in driver when specified with clear
5733 * command.
5734 *
5735 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5736 * weightage in percentage (%) to be given for each selection criteria.
5737 * Different roam candidate selection criteria are represented by
5738 * enum qca_vendor_attr_roam_candidate_selection_criteria.
5739 * The driver shall select the roam candidate based on corresponding
5740 * candidate selection scores sent.
5741 *
5742 * An empty nested attribute is used to indicate that no specific
5743 * preference score/criteria is configured (i.e., to disable this mechanism
5744 * in the set case and to show that the mechanism is disabled in the get
5745 * case).
5746 *
5747 * Userspace can send multiple attributes out of this enum to the driver.
5748 * Since this attribute represents the weight/percentage of preference for
5749 * the respective selection criteria, it is preferred to configure 100%
5750 * total weightage. The value in each attribute or cumulative weight of the
5751 * values in all the nested attributes should not exceed 100%. The driver
5752 * shall reject such configuration.
5753 *
5754 * If the weights configured through this attribute are less than 100%,
5755 * the driver shall honor the weights (x%) passed for the corresponding
5756 * selection criteria and choose/distribute rest of the weight (100-x)%
5757 * for the other selection criteria, based on its internal logic.
5758 *
5759 * The selection criteria configured is obtained with the same
5760 * attribute for get.
5761 *
5762 * Clears the selection criteria configured in the driver when specified
5763 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07005764 *
5765 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5766 * Represents value of the scan frequency scheme from enum
5767 * qca_roam_scan_scheme.
5768 * It's an optional attribute. If this attribute is not configured, the
5769 * driver shall proceed with default behavior.
5770 *
5771 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5772 * signifying the RSSI threshold of the current connected AP, indicating
5773 * the driver to trigger roam only when the current connected AP's RSSI
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005774 * is less than this threshold. The RSSI threshold through this attribute
5775 * is only used by the STA when the connected AP asks it to roam through
5776 * a BTM request. Based on this threshold, the STA can either honor or
5777 * reject the AP's request to roam, and notify the status to the AP in a
5778 * BTM response.
Hai Shalom899fcc72020-10-19 14:38:18 -07005779 *
5780 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5781 * signifying the RSSI threshold of the candidate AP, indicating
5782 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08005783 * better than this threshold. If RSSI thresholds for candidate APs found
5784 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5785 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5786 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5787 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5788 * take precedence over the value configured using the
5789 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07005790 *
5791 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5792 * user defined reason code to be sent to the AP in response to AP's
5793 * request to trigger the roam if the roaming cannot be triggered.
5794 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5795 *
5796 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5797 * Carries a bitmap of the roam triggers specified in
5798 * enum qca_vendor_roam_triggers.
5799 * Represents the roam triggers for which the specific scan scheme from
5800 * enum qca_roam_scan_scheme has to be applied.
5801 * It's an optional attribute. If this attribute is not configured, but
5802 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5803 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5804 * all the roams.
5805 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5806 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5807 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005808 *
5809 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5810 * in dBm, signifying the RSSI threshold of the candidate AP found in the
5811 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5812 * AP found in the 2.4 GHz band only if its RSSI value is better than this
5813 * threshold. Optional attribute. If this attribute is not included, the
5814 * threshold value specified by the
5815 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5816 *
5817 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5818 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
5819 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5820 * found in the 5 GHz band only if its RSSI value is better than this
5821 * threshold. Optional attribute. If this attribute is not included, the
5822 * threshold value specified by tge
5823 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5824 *
5825 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5826 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
5827 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5828 * found in the 6 GHz band only if its RSSI value is better than this
5829 * threshold. Optional attribute. If this attribute is not included, the
5830 * threshold value specified by the
5831 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5832 *
5833 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5834 * Carries bitmask value of bits from &enum qca_set_band and represents
5835 * all the bands in which roaming is allowed. The configuration is valid
5836 * until next disconnection. If this attribute is not present, the
5837 * existing configuration shall be used. By default, roaming is allowed on
5838 * all bands supported by the local device. When the value is set to
5839 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
5840 *
5841 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5842 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5843 * bands. If this attribute is not configured, the driver shall proceed
5844 * with default behavior.
5845 *
5846 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5847 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
5848 * band. If this attribute is not configured, the driver shall proceed with
5849 * default behavior.
5850 *
5851 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5852 * Optional parameter. The minimum duration to stay on the connected AP
5853 * channel during the channel scanning. If this attribute is not
5854 * configured, the driver shall proceed with default behavior.
5855 *
5856 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5857 * Optional parameter. The maximum duration for which the radio can scan
5858 * foreign channels consecutively without coming back to home channel. If
5859 * this attribute is not configured, the driver shall proceed with default
5860 * behavior.
5861 *
5862 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5863 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5864 * If this attribute is not configured, the driver shall proceed with
5865 * default behavior.
5866 *
5867 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5868 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5869 * Channels. If this attribute is not configured, the driver shall proceed
5870 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00005871 *
5872 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5873 * Optional parameter. RX link speed threshold to disable roaming.
5874 * If the current RX link speed is above the threshold, roaming is not
5875 * needed. If this attribute is not configured, or if it is set to 0, the
5876 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00005877 *
5878 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5879 * Optional parameter. This configuration delays hand-off by the
5880 * specified duration to receive pending RX frames from the current BSS.
5881 *
5882 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5883 * value.
5884 * During the roam scan, if there are no desired APs found in the partial
5885 * frequency list, an immediate full scan on all the supported frequencies
5886 * is initiated as a fallback. This flag controls the frequency list
5887 * creation for the full scan on the following lines.
5888 * 1 - Full scan to exclude the frequencies that were already scanned by
5889 * the previous partial scan.
5890 * 0 - Full scan to include all the supported frequencies irrespective of
5891 * the ones part of the earlier partial scan.
5892 * If this flag is not specified, a full scan shall include all the
5893 * supported frequencies irrespective of the ones part of an earlier
5894 * partial scan.
5895 *
5896 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5897 * value.
5898 * During the roam scan, if there are no desired APs found in the partial
5899 * frequency list, an immediate full scan on all the supported frequencies
5900 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5901 * frequencies, including all PSC frequencies by default. This attribute
5902 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
5903 * as following.
5904 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5905 * prior discovery of any 6 GHz frequency support in the environment.
5906 * This discovery can happen through a prior RNR, 11k neighbor
5907 * request, 11v BTM request, host scan, etc.
5908 * 0 - Default behavior. Full scan to include all the supported 6 GHz
5909 * PSC frequencies regardless of whether 6 GHz BSSs have been
5910 * discovered.
5911 * The default behavior if this flag is not specified is to include all
5912 * the supported 6 GHz PSC frequencies in the roam full scan.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005913 *
5914 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
5915 * in dBm.
5916 * This attribute configures the low RSSI threshold of the connected AP,
5917 * based on which the STA can start looking for the neighbor APs and
5918 * trigger the roam eventually. STA keeps monitoring for the connected
5919 * AP's RSSI and will start scanning for neighboring APs once the RSSI
5920 * falls below this threshold. This attribute differs from
5921 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
5922 * threshold is used only when the connected AP asks the STA to roam
5923 * through a BTM request.
5924 *
5925 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
5926 * This attribute signifies the RSSI difference threshold between the
5927 * connected AP and the new candidate AP. This parameter influences the
5928 * STA to roam to the new candidate only when its RSSI is better than
5929 * the current connected one by this threshold.
5930 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
5931 *
5932 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
5933 * This attribute signifies the RSSI difference threshold between the
5934 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the
5935 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz
5936 * candidate only when its RSSI is better than the current connected one
5937 * by this threshold. This threshold overrides
5938 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
5939 * GHz to 6 GHz alone with the intention to have a different value to roam
5940 * to the preferred 6 GHz band.
5941 *
5942 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
5943 * This attribute signifies the RSSI offset that is added to low RSSI
5944 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
5945 * high RSSI threshold. STA is expected to trigger roam if the current
5946 * connected AP's RSSI gets above this high RSSI threshold. STA's roam
5947 * attempt on high RSSI threshold aims to find candidates from other
5948 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
5949 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
5950 * for 2.4 GHz BSS).
Hai Shalomc3565922019-10-28 11:58:20 -07005951 */
5952enum qca_vendor_attr_roam_control {
5953 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5954 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5955 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005956 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
Hai Shalomc3565922019-10-28 11:58:20 -07005957 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5958 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5959 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5960 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005961 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5962 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5963 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5964 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5965 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005966 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5967 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5968 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5969 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5970 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5971 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5972 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5973 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5974 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5975 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00005976 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00005977 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5978 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5979 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005980 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
5981 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
5982 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
5983 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
Hai Shalomc3565922019-10-28 11:58:20 -07005984
5985 /* keep last */
5986 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5987 QCA_ATTR_ROAM_CONTROL_MAX =
5988 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5989};
5990
5991/*
5992 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5993 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5994 *
5995 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5996 * Represents the different roam sub commands referred by
5997 * enum qca_wlan_vendor_roaming_subcmd.
5998 *
5999 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
6000 * Represents the Request ID for the specific set of commands.
6001 * This also helps to map specific set of commands to the respective
6002 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07006003 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07006004 * matching ID.
6005 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006006 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
6007 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07006008 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006009 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
6010 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006011 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006012 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
6013 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07006014 * represent the list of SSIDs to which the firmware/driver can consider
6015 * to roam to.
6016 *
6017 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
6018 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
6019 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
6020 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
6021 *
6022 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
6023 * value, RSSI threshold above which 5GHz RSSI is favored.
6024 *
6025 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
6026 * value, RSSI threshold below which 5GHz RSSI is penalized.
6027 *
6028 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
6029 * value, factor by which 5GHz RSSI is boosted.
6030 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
6031 *
6032 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
6033 * value, factor by which 5GHz RSSI is penalized.
6034 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
6035 *
6036 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
6037 * value, maximum boost that can be applied to a 5GHz RSSI.
6038 *
6039 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
6040 * value, boost applied to current BSSID to ensure the currently
6041 * associated BSSID is favored so as to prevent ping-pong situations.
6042 *
6043 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
6044 * value, RSSI below which "Alert" roam is enabled.
6045 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
6046 * because the RSSI is low, or because many successive beacons have been
6047 * lost or other bad link conditions.
6048 *
6049 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
6050 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08006051 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07006052 * the RSSI of the link is good. The parameters enabling the roaming are
6053 * configured through the PARAM_A_BAND_XX attrbutes.
6054 *
6055 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
6056 * represents the BSSIDs preferred over others while evaluating them
6057 * for the roaming.
6058 *
6059 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
6060 * 32-bit value. Represents the number of preferred BSSIDs set.
6061 *
6062 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
6063 * address representing the BSSID to be preferred.
6064 *
6065 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
6066 * 32-bit value, representing the modifier to be applied to the RSSI of
6067 * the BSSID for the purpose of comparing it with other roam candidate.
6068 *
6069 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006070 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07006071 *
6072 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07006073 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006074 *
6075 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07006076 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07006077 *
6078 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006079 * indicates this request to ignore the BSSID as a hint to the driver. The
6080 * driver can select this BSSID in the worst case (when no other BSSIDs are
6081 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07006082 *
6083 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
6084 * set/get/clear the roam control config as
6085 * defined @enum qca_vendor_attr_roam_control.
6086 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006087enum qca_wlan_vendor_attr_roaming_config_params {
6088 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
6089
6090 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
6091 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
6092
Hai Shaloma20dcd72022-02-04 13:43:00 -08006093 /* Attributes for wifi_set_ssid_allow_list */
6094 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
6095 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
6096 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006097
6098 /* Attributes for set_roam_params */
6099 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
6100 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
6101 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
6102 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
6103 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
6104 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
6105 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
6106
6107 /* Attribute for set_lazy_roam */
6108 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
6109
6110 /* Attribute for set_lazy_roam with preferences */
6111 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
6112 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
6113 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
6114 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
6115
Hai Shalom899fcc72020-10-19 14:38:18 -07006116 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006117 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
6118 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
6119 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07006120 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07006121 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006122
Hai Shalomc3565922019-10-28 11:58:20 -07006123 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
6124
Dmitry Shmidt29333592017-01-09 12:27:11 -08006125 /* keep last */
6126 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
6127 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
6128 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
6129};
6130
Hai Shaloma20dcd72022-02-04 13:43:00 -08006131/* old names for API compatibility */
6132#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
6133 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
6134#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
6135 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
6136#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
6137 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
6138
Dmitry Shmidt29333592017-01-09 12:27:11 -08006139/*
Hai Shalomc3565922019-10-28 11:58:20 -07006140 * enum qca_wlan_vendor_roaming_subcmd: Referred by
6141 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
6142 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006143 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
6144 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07006145 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006146 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
6147 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
6148 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07006149 *
6150 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
6151 * configure the Roam params. These parameters are evaluated on the GScan
6152 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
6153 * params.
6154 *
6155 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
6156 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
6157 * to enable/disable Lazy roam.
6158 *
6159 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
6160 * preference. Contains the attribute
6161 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
6162 * preference.
6163 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006164 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07006165 * to ignore in roaming decision. Uses
6166 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07006167 *
6168 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
6169 * roam control config to the driver with the attribute
6170 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6171 *
6172 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
6173 * roam control config from driver with the attribute
6174 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6175 * For the get, the attribute for the configuration to be queried shall
6176 * carry any of its acceptable value to the driver. In return, the driver
6177 * shall send the configured values within the same attribute to the user
6178 * space.
6179 *
6180 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
6181 * roam control config in the driver with the attribute
6182 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6183 * The driver shall continue with its default roaming behavior when data
6184 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08006185 */
Hai Shalomc3565922019-10-28 11:58:20 -07006186enum qca_wlan_vendor_roaming_subcmd {
6187 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006188 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07006189 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
6190 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
6191 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
6192 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006193 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07006194 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
6195 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
6196 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006197};
6198
Hai Shaloma20dcd72022-02-04 13:43:00 -08006199/* old names for API compatibility */
6200#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
6201 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
6202#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
6203 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
6204
Dmitry Shmidt29333592017-01-09 12:27:11 -08006205enum qca_wlan_vendor_attr_gscan_config_params {
6206 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
6207
6208 /* Unsigned 32-bit value */
6209 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
6210
6211 /* Attributes for data used by
6212 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
6213 */
6214 /* Unsigned 32-bit value */
6215 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
6216 = 2,
6217 /* Unsigned 32-bit value */
6218 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
6219 = 3,
6220
6221 /* Attributes for input params used by
6222 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
6223 */
6224
6225 /* Unsigned 32-bit value; channel frequency */
6226 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
6227 /* Unsigned 32-bit value; dwell time in ms. */
6228 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
6229 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
6230 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
6231 /* Unsigned 8-bit value; channel class */
6232 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
6233
6234 /* Unsigned 8-bit value; bucket index, 0 based */
6235 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
6236 /* Unsigned 8-bit value; band. */
6237 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
6238 /* Unsigned 32-bit value; desired period, in ms. */
6239 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
6240 /* Unsigned 8-bit value; report events semantics. */
6241 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
6242 /* Unsigned 32-bit value. Followed by a nested array of
6243 * GSCAN_CHANNEL_SPEC_* attributes.
6244 */
6245 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
6246
6247 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
6248 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6249 */
6250 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
6251
6252 /* Unsigned 32-bit value; base timer period in ms. */
6253 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
6254 /* Unsigned 32-bit value; number of APs to store in each scan in the
6255 * BSSID/RSSI history buffer (keep the highest RSSI APs).
6256 */
6257 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
6258 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
6259 * up AP.
6260 */
6261 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
6262 = 16,
6263
6264 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
6265 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
6266 * of the array is determined by NUM_BUCKETS.
6267 */
6268 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
6269
6270 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
6271 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
6272 */
6273 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
6274
6275 /* Unsigned 8-bit value */
6276 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
6277 = 19,
6278 /* Unsigned 32-bit value; maximum number of results to be returned. */
6279 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
6280 = 20,
6281
6282 /* An array of 6 x unsigned 8-bit value */
6283 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
6284 /* Signed 32-bit value */
6285 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
6286 /* Signed 32-bit value */
6287 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
6288 /* Unsigned 32-bit value */
6289 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
6290
6291 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
6292 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
6293 * array is determined by NUM_AP.
6294 */
6295 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
6296
6297 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
6298 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6299 */
6300 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
6301
6302 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
6303 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
6304 = 27,
6305 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6306 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
6307 = 28,
6308 /* Unsigned 32-bit value; number of APs breaching threshold. */
6309 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
6310 /* Unsigned 32-bit value; number of APs. Followed by an array of
6311 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
6312 */
6313 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
6314 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6315 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
6316 = 31,
6317 /* Unsigned 32-bit value. If max_period is non zero or different than
6318 * period, then this bucket is an exponential backoff bucket.
6319 */
6320 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
6321 /* Unsigned 32-bit value. */
6322 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
6323 /* Unsigned 32-bit value. For exponential back off bucket, number of
6324 * scans to perform for a given period.
6325 */
6326 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
6327 /* Unsigned 8-bit value; in number of scans, wake up AP after these
6328 * many scans.
6329 */
6330 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
6331 = 35,
6332
6333 /* Attributes for data used by
6334 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
6335 */
6336 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
6337 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
6338 = 36,
6339 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
6340 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
6341 * size of the array is determined by NUM_SSID.
6342 */
6343 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
6344 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
6345 * attributes.
6346 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
6347 */
6348 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
6349
6350 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6351 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
6352 /* Unsigned 8-bit value */
6353 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
6354 /* Signed 32-bit value */
6355 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
6356 /* Signed 32-bit value */
6357 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
6358 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
6359 */
6360 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
6361
6362 /* keep last */
6363 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
6364 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
6365 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
6366};
6367
6368enum qca_wlan_vendor_attr_gscan_results {
6369 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
6370
6371 /* Unsigned 32-bit value; must match the request Id supplied by
6372 * Wi-Fi HAL in the corresponding subcmd NL msg.
6373 */
6374 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
6375
6376 /* Unsigned 32-bit value; used to indicate the status response from
6377 * firmware/driver for the vendor sub-command.
6378 */
6379 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
6380
6381 /* GSCAN Valid Channels attributes */
6382 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
6383 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
6384 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
6385 * representing channel numbers.
6386 */
6387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
6388
6389 /* GSCAN Capabilities attributes */
6390 /* Unsigned 32-bit value */
6391 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
6392 /* Unsigned 32-bit value */
6393 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
6394 /* Unsigned 32-bit value */
6395 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
6396 = 7,
6397 /* Unsigned 32-bit value */
6398 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
6399 = 8,
6400 /* Signed 32-bit value */
6401 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6402 = 9,
6403 /* Unsigned 32-bit value */
6404 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6405 /* Unsigned 32-bit value */
6406 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6407 = 11,
6408 /* Unsigned 32-bit value */
6409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6410 = 12,
6411
6412 /* GSCAN Attributes used with
6413 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6414 */
6415
6416 /* Unsigned 32-bit value */
6417 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6418
6419 /* GSCAN attributes used with
6420 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6421 */
6422
6423 /* An array of NUM_RESULTS_AVAILABLE x
6424 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6425 */
6426 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6427
6428 /* Unsigned 64-bit value; age of sample at the time of retrieval */
6429 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6430 /* 33 x unsigned 8-bit value; NULL terminated SSID */
6431 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6432 /* An array of 6 x unsigned 8-bit value */
6433 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6434 /* Unsigned 32-bit value; channel frequency in MHz */
6435 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6436 /* Signed 32-bit value */
6437 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6438 /* Unsigned 32-bit value */
6439 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6440 /* Unsigned 32-bit value */
6441 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6442 /* Unsigned 16-bit value */
6443 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6444 /* Unsigned 16-bit value */
6445 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6446 /* Unsigned 32-bit value; size of the IE DATA blob */
6447 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6448 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6449 * information elements found in the beacon; this data should be a
6450 * packed list of wifi_information_element objects, one after the
6451 * other.
6452 */
6453 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6454
6455 /* Unsigned 8-bit value; set by driver to indicate more scan results are
6456 * available.
6457 */
6458 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6459
6460 /* GSCAN attributes for
6461 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6462 */
6463 /* Unsigned 8-bit value */
6464 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6465 /* Unsigned 32-bit value */
6466 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6467
6468 /* GSCAN attributes for
6469 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6470 */
6471 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6472 * to indicate number of results.
6473 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6474 * list of results.
6475 */
6476
6477 /* GSCAN attributes for
6478 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6479 */
6480 /* An array of 6 x unsigned 8-bit value */
6481 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6482 /* Unsigned 32-bit value */
6483 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6484 = 30,
6485 /* Unsigned 32-bit value. */
6486 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
6487 = 31,
6488 /* A nested array of signed 32-bit RSSI values. Size of the array is
6489 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
6490 */
6491 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
6492 = 32,
6493
6494 /* GSCAN attributes used with
6495 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
6496 */
6497 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6498 * to indicate number of gscan cached results returned.
6499 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
6500 * the list of gscan cached results.
6501 */
6502
6503 /* An array of NUM_RESULTS_AVAILABLE x
6504 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
6505 */
6506 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
6507 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
6508 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
6509 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
6510 */
6511 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
6512 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6513 * to indicate number of wifi scan results/bssids retrieved by the scan.
6514 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6515 * list of wifi scan results returned for each cached result block.
6516 */
6517
6518 /* GSCAN attributes for
6519 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
6520 */
6521 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
6522 * number of results.
6523 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6524 * list of wifi scan results returned for each
6525 * wifi_passpoint_match_result block.
6526 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
6527 */
6528
6529 /* GSCAN attributes for
6530 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
6531 */
6532 /* Unsigned 32-bit value */
6533 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
6534 = 36,
6535 /* A nested array of
6536 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
6537 * attributes. Array size =
6538 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
6539 */
6540 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
6541
6542 /* Unsigned 32-bit value; network block id for the matched network */
6543 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
6544 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6545 * list of wifi scan results returned for each
6546 * wifi_passpoint_match_result block.
6547 */
6548 /* Unsigned 32-bit value */
6549 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
6550 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
6551 * ANQP data in the information_element format.
6552 */
6553 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
6554
6555 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6556 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
6557 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6558 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
6559 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6560 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
6561 = 43,
6562 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006563 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08006564 = 44,
6565
6566 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
6567
Hai Shalomce48b4a2018-09-05 11:41:35 -07006568 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
6569 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07006570 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08006571 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07006572 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
6573 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006574 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07006575
Sunil Ravi036cec52023-03-29 11:35:17 -07006576 /* Attribute used for padding for 64-bit alignment */
6577 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
6578
Dmitry Shmidt29333592017-01-09 12:27:11 -08006579 /* keep last */
6580 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
6581 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
6582 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
6583};
6584
Hai Shaloma20dcd72022-02-04 13:43:00 -08006585/* old names for API compatibility */
6586#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
6587 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
6588#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
6589 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
6590
Dmitry Shmidt29333592017-01-09 12:27:11 -08006591enum qca_wlan_vendor_attr_pno_config_params {
6592 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
6593 /* Attributes for data used by
6594 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
6595 */
6596 /* Unsigned 32-bit value */
6597 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
6598 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
6599 * attributes. Array size =
6600 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
6601 */
6602 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
6603
6604 /* Unsigned 32-bit value */
6605 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
6606 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
6607 * realm, 0 if unspecified.
6608 */
6609 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
6610 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
6611 * match, 0 if unspecified.
6612 */
6613 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
6614 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
6615 * unspecified.
6616 */
6617 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
6618
6619 /* Attributes for data used by
6620 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
6621 */
6622 /* Unsigned 32-bit value */
6623 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
6624 /* Array of nested
6625 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
6626 * attributes. Array size =
6627 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
6628 */
6629 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
6630 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6631 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
6632 /* Signed 8-bit value; threshold for considering this SSID as found,
6633 * required granularity for this threshold is 4 dBm to 8 dBm.
6634 */
6635 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
6636 = 10,
6637 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
6638 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
6639 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
6640 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
6641 /* Unsigned 8-bit to indicate ePNO type;
6642 * It takes values from qca_wlan_epno_type
6643 */
6644 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
6645
6646 /* Nested attribute to send the channel list */
6647 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
6648
6649 /* Unsigned 32-bit value; indicates the interval between PNO scan
6650 * cycles in msec.
6651 */
6652 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
6653 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
6654 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
6655 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
6656 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
6657 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
6658 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
6659 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006660 /* Unsigned 32-bit value, representing the PNO Request ID */
6661 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006662
6663 /* keep last */
6664 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
6665 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
6666 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
6667};
6668
Paul Stewart092955c2017-02-06 09:13:09 -08006669/**
6670 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
6671 * the ACS has to be triggered. These values are used by
6672 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
6673 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
6674 */
6675enum qca_wlan_vendor_acs_select_reason {
6676 /* Represents the reason that the ACS triggered during the AP start */
6677 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
6678 /* Represents the reason that DFS found with the current channel */
6679 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
6680 /* Represents the reason that LTE co-exist in the current band. */
6681 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07006682 /* Represents the reason that generic, uncategorized interference has
6683 * been found in the current channel.
6684 */
6685 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6686 /* Represents the reason that excessive 802.11 interference has been
6687 * found in the current channel.
6688 */
6689 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6690 /* Represents the reason that generic Continuous Wave (CW) interference
6691 * has been found in the current channel.
6692 */
6693 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6694 /* Represents the reason that Microwave Oven (MWO) interference has been
6695 * found in the current channel.
6696 */
6697 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6698 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
6699 * (FHSS) interference has been found in the current channel. This may
6700 * include 802.11 waveforms.
6701 */
6702 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6703 /* Represents the reason that non-802.11 generic Frequency-Hopping
6704 * Spread Spectrum (FHSS) interference has been found in the current
6705 * channel.
6706 */
6707 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6708 /* Represents the reason that generic Wideband (WB) interference has
6709 * been found in the current channel. This may include 802.11 waveforms.
6710 */
6711 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6712 /* Represents the reason that non-802.11 generic Wideband (WB)
6713 * interference has been found in the current channel.
6714 */
6715 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6716 /* Represents the reason that Jammer interference has been found in the
6717 * current channel.
6718 */
6719 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07006720 /* Represents the reason that ACS triggered by AFC */
6721 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08006722};
6723
6724/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006725 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6726 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6727 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6728 * external ACS policies to select the channels w.r.t. the PCL weights.
6729 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6730 * their PCL weights.)
6731 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6732 * select a channel with non-zero PCL weight.
6733 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6734 * channel with non-zero PCL weight.
6735 *
6736 */
6737enum qca_wlan_vendor_attr_external_acs_policy {
6738 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6739 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6740};
6741
6742/**
Paul Stewart092955c2017-02-06 09:13:09 -08006743 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
6744 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
6745 */
6746enum qca_wlan_vendor_channel_prop_flags {
6747 /* Bits 0, 1, 2, and 3 are reserved */
6748
6749 /* Turbo channel */
6750 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
6751 /* CCK channel */
6752 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
6753 /* OFDM channel */
6754 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
6755 /* 2.4 GHz spectrum channel. */
6756 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
6757 /* 5 GHz spectrum channel */
6758 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
6759 /* Only passive scan allowed */
6760 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
6761 /* Dynamic CCK-OFDM channel */
6762 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
6763 /* GFSK channel (FHSS PHY) */
6764 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
6765 /* Radar found on channel */
6766 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
6767 /* 11a static turbo channel only */
6768 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
6769 /* Half rate channel */
6770 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
6771 /* Quarter rate channel */
6772 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
6773 /* HT 20 channel */
6774 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
6775 /* HT 40 with extension channel above */
6776 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
6777 /* HT 40 with extension channel below */
6778 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
6779 /* HT 40 intolerant */
6780 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
6781 /* VHT 20 channel */
6782 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
6783 /* VHT 40 with extension channel above */
6784 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
6785 /* VHT 40 with extension channel below */
6786 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
6787 /* VHT 80 channel */
6788 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
6789 /* HT 40 intolerant mark bit for ACS use */
6790 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6791 /* Channel temporarily blocked due to noise */
6792 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
6793 /* VHT 160 channel */
6794 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
6795 /* VHT 80+80 channel */
6796 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006797 /* HE 20 channel */
6798 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
6799 /* HE 40 with extension channel above */
6800 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
6801 /* HE 40 with extension channel below */
6802 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
6803 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07006804 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006805};
6806
6807/**
6808 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6809 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6810 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6811 */
6812enum qca_wlan_vendor_channel_prop_flags_2 {
6813 /* HE 40 intolerant mark bit for ACS use */
6814 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6815 /* HE 80 channel */
6816 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
6817 /* HE 160 channel */
6818 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
6819 /* HE 80+80 channel */
6820 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006821};
6822
6823/**
6824 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6825 * each channel. This is used by
6826 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6827 */
6828enum qca_wlan_vendor_channel_prop_flags_ext {
6829 /* Radar found on channel */
6830 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
6831 /* DFS required on channel */
6832 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
6833 /* DFS required on channel for 2nd band of 80+80 */
6834 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
6835 /* If channel has been checked for DFS */
6836 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
6837 /* Excluded in 802.11d */
6838 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
6839 /* Channel Switch Announcement received on this channel */
6840 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
6841 /* Ad-hoc is not allowed */
6842 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
6843 /* Station only channel */
6844 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07006845 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006846 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006847 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006848 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
6849};
6850
6851/**
6852 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6853 * information. These attributes are sent as part of
6854 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6855 * attributes correspond to a single channel.
6856 */
6857enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6858 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6859
6860 /* A bitmask (u32) with flags specified in
6861 * enum qca_wlan_vendor_channel_prop_flags.
6862 */
6863 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6864 /* A bitmask (u32) with flags specified in
6865 * enum qca_wlan_vendor_channel_prop_flags_ext.
6866 */
6867 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6868 /* frequency in MHz (u32) */
6869 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6870 /* maximum regulatory transmission power (u32) */
6871 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6872 /* maximum transmission power (u32) */
6873 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6874 /* minimum transmission power (u32) */
6875 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6876 /* regulatory class id (u8) */
6877 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6878 /* maximum antenna gain in (u8) */
6879 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6880 /* VHT segment 0 (u8) */
6881 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6882 /* VHT segment 1 (u8) */
6883 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006884 /* A bitmask (u32) with flags specified in
6885 * enum qca_wlan_vendor_channel_prop_flags_2.
6886 */
6887 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006888
Hai Shalomc3565922019-10-28 11:58:20 -07006889 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006890 * Segment 0 in MHz (u32).
6891 *
6892 * For 20/40/80 MHz bandwidth, this indicates the channel center
6893 * frequency index for the 20/40/80 MHz operating channel.
6894 * For 160 MHz bandwidth, this indicates the channel center
6895 * frequency of the primary 80 MHz channel.
6896 * For 320 MHz bandwidth, indicates the channel center frequency
6897 * of the primary 160 MHz channel.
6898 *
6899 * To maintain backward compatibility,
6900 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6901 * is also maintained.
6902 */
6903 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6904 /* Legacy alias for the Segment 0 attribute.
6905 *
Hai Shalomc3565922019-10-28 11:58:20 -07006906 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6907 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6908 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6909 * along with
6910 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6911 *
6912 * If both the driver and user-space application supports the 6 GHz
6913 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6914 * is deprecated and
6915 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6916 * should be used.
6917 *
6918 * To maintain backward compatibility,
6919 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6920 * is still used if either of the driver or user space application
6921 * doesn't support the 6 GHz band.
6922 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006923 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6924 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07006925
6926 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006927 * Segment 1 in MHz (u32).
6928 *
6929 * For 20/40/80 MHz bandwidth, this is set to 0.
6930 * For 160 MHz bandwidth, indicates the channel center frequency of the
6931 * 160 MHz channel.
6932 * For 320 MHz bandwidth, indicates the channel center frequency of the
6933 * 320 MHz channel.
6934 *
6935 * To maintain backward compatibility,
6936 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6937 * is also maintained.
6938 */
6939 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6940 /* Legacy alias for the Segment 1 attribute.
6941 *
Hai Shalomc3565922019-10-28 11:58:20 -07006942 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6943 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6944 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6945 * along with
6946 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6947 *
6948 * If both the driver and user-space application supports the 6 GHz
6949 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6950 * is deprecated and
6951 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6952 * should be considered.
6953 *
6954 * To maintain backward compatibility,
6955 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6956 * is still used if either of the driver or user space application
6957 * doesn't support the 6 GHz band.
6958 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006959 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6960 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07006961
Sunil Ravia04bd252022-05-02 22:54:18 -07006962 /*
6963 * 16-bit attribute of bits indicating the AP power modes supported by
6964 * the channel (u16).
6965 * Note: Currently, only 3 bits are used in the attribute and each bit
6966 * corresponds to the power mode mentioned in enum
6967 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6968 * set if the associated mode is supported.
6969 */
6970 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6971 = 14,
6972 /* Array of nested attributes for each power mode. It takes attr as
6973 * defined in enum
6974 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6975 */
6976 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006977 /*
6978 * This indicates the overlapping 320 MHz center frequency in MHz
6979 * (u32), if the given primary channel supports more than one
6980 * 320 MHz channel bonding.
6981 *
6982 * Example:
6983 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6984 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6985 * possible segment 2 frequencies for this (320 MHz center
6986 * frequencies):
6987 *
6988 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6989 * from frequency 5945 MHz - 6265 MHz
6990 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6991 * from frequency 6105 MHz - 6425 MHz
6992 *
6993 * In this case,
6994 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6995 * return 6185 MHz.
6996 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6997 * return 6105 MHz.
6998 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6999 * will return 6265 MHz.
7000 */
7001 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7002 = 16,
7003
Paul Stewart092955c2017-02-06 09:13:09 -08007004 /* keep last */
7005 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
7006 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
7007 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
7008};
7009
7010/**
Sunil Ravia04bd252022-05-02 22:54:18 -07007011 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
7012 * values that the vendor external ACS channel power attribute
7013 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
7014 * take.
7015 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
7016 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
7017 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
7018 */
7019enum qca_wlan_vendor_external_acs_chan_power_level {
7020 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
7021 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
7022 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
7023};
7024
7025/**
7026 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
7027 * attributes for power mode type and power values corresponding to that.
7028 * These attributes are sent as part of
7029 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
7030 */
7031enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
7032 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
7033 /*
7034 * Power mode (u8) takes the values defined in enum
7035 * qca_wlan_vendor_external_acs_chan_power_mode
7036 */
7037 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
7038 = 1,
7039 /*
7040 * Indicates if power value is a PSD/EIRP value (flag). If flag is
7041 * present, it indicates a PSD value.
7042 */
7043 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
7044 /*
7045 * Power value (u32) PSD/EIRP as indicated by
7046 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
7047 * for power mode corresponding to the
7048 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
7049 * Units for PSD - dBm/MHz
7050 * Units for EIRP - dBm
7051 */
7052 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
7053 = 3,
7054 /* keep last */
7055 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
7056 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
7057 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
7058};
7059
7060/**
Paul Stewart092955c2017-02-06 09:13:09 -08007061 * qca_wlan_vendor_attr_pcl: Represents attributes for
7062 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07007063 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
7064 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08007065 */
7066enum qca_wlan_vendor_attr_pcl {
7067 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
7068
7069 /* Channel number (u8) */
7070 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
7071 /* Channel weightage (u8) */
7072 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007073 /* Channel frequency (u32) in MHz */
7074 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
7075 /* Channel flags (u32)
7076 * bit 0 set: channel to be used for GO role,
7077 * bit 1 set: channel to be used on CLI role,
7078 * bit 2 set: channel must be considered for operating channel
7079 * selection & peer chosen operating channel should be
7080 * one of the channels with this flag set,
7081 * bit 3 set: channel should be excluded in GO negotiation
7082 */
7083 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07007084
7085 /* Keep last */
7086 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
7087 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08007088};
7089
7090/**
7091 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
7092 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
7093 * host driver.
7094 */
7095enum qca_wlan_vendor_attr_external_acs_event {
7096 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
7097
7098 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
7099 * This helps ACS module to understand why ACS needs to be started.
7100 */
7101 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
7102 /* Flag attribute to indicate if driver supports spectral scanning */
7103 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
7104 /* Flag attribute to indicate if 11ac is offloaded to firmware */
7105 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
7106 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07007107 * capability as part of scan operation
7108 */
Paul Stewart092955c2017-02-06 09:13:09 -08007109 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
7110 /* Flag attribute to indicate interface status is UP */
7111 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
7112 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07007113 * values.
7114 */
Paul Stewart092955c2017-02-06 09:13:09 -08007115 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
7116 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
7117 * This is the upper bound of channel width. ACS logic should try to get
7118 * a channel with the specified width and if not found, look for lower
7119 * values.
7120 */
7121 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
7122 /* This (u8) will hold values of one of enum nl80211_bands */
7123 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
7124 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07007125 * values
7126 */
Paul Stewart092955c2017-02-06 09:13:09 -08007127 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
7128 /* Array of (u32) supported frequency list among which ACS should choose
7129 * best frequency.
7130 */
7131 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
7132 /* Preferred channel list by the driver which will have array of nested
7133 * values as per enum qca_wlan_vendor_attr_pcl attribute.
7134 */
7135 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
7136 /* Array of nested attribute for each channel. It takes attr as defined
7137 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
7138 */
7139 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007140 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
7141 * It uses values defined in enum
7142 * qca_wlan_vendor_attr_external_acs_policy.
7143 */
7144 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007145 /* Reference RF Operating Parameter (RROP) availability information
7146 * (u16). It uses values defined in enum
7147 * qca_wlan_vendor_attr_rropavail_info.
7148 */
7149 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07007150 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
7151 * for External ACS
7152 */
7153 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08007154
7155 /* keep last */
7156 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
7157 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
7158 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
7159};
7160
7161/**
Hai Shalomc3565922019-10-28 11:58:20 -07007162 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08007163 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7164 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07007165 *
7166 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7167 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7168 *
7169 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7170 * Array of nested values for each channel with following attributes:
7171 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7172 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7173 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7174 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7175 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7176 * Note: If both the driver and user-space application supports the 6 GHz band,
7177 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7178 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7179 * To maintain backward compatibility,
7180 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7181 * is still used if either of the driver or user space application doesn't
7182 * support the 6 GHz band.
7183 *
7184 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7185 * Primary channel number
7186 * Note: If both the driver and user-space application supports the 6 GHz band,
7187 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7188 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7189 * To maintain backward compatibility,
7190 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7191 * is still used if either of the driver or user space application doesn't
7192 * support the 6 GHz band.
7193 *
7194 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7195 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7196 * Note: If both the driver and user-space application supports the 6 GHz band,
7197 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7198 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7199 * To maintain backward compatibility,
7200 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7201 * is still used if either of the driver or user space application
7202 * doesn't support the 6 GHz band.
7203 *
7204 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7205 * VHT seg0 channel number
7206 * Note: If both the driver and user-space application supports the 6 GHz band,
7207 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7208 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7209 * To maintain backward compatibility,
7210 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7211 * is still used if either of the driver or user space application
7212 * doesn't support the 6 GHz band.
7213 *
7214 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7215 * VHT seg1 channel number
7216 * Note: If both the driver and user-space application supports the 6 GHz band,
7217 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7218 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7219 * To maintain backward compatibility,
7220 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7221 * is still used if either of the driver or user space application
7222 * doesn't support the 6 GHz band.
7223 *
7224 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7225 * Takes one of enum nl80211_chan_width values.
7226 *
7227 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7228 * Array of nested values for each channel with following attributes:
7229 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7230 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7231 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7232 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7233 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7234 * Note: If user-space application has no support of the 6 GHz band, this
7235 * attribute is optional.
7236 *
7237 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7238 * Primary channel frequency in MHz
7239 * Note: If user-space application has no support of the 6 GHz band, this
7240 * attribute is optional.
7241 *
7242 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7243 * Secondary channel frequency in MHz used for HT 40 MHz channels.
7244 * Note: If user-space application has no support of the 6 GHz band, this
7245 * attribute is optional.
7246 *
7247 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7248 * VHT seg0 channel frequency in MHz
7249 * Note: If user-space application has no support of the 6GHz band, this
7250 * attribute is optional.
7251 *
7252 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7253 * VHT seg1 channel frequency in MHz
7254 * Note: If user-space application has no support of the 6 GHz band, this
7255 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00007256 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7257 * Puncture Bitmap for selected primary channel. Optional if no support
7258 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7259 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7260 * element.
Paul Stewart092955c2017-02-06 09:13:09 -08007261 */
7262enum qca_wlan_vendor_attr_external_acs_channels {
7263 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7264
7265 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7266 */
7267 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7268
7269 /* Array of nested values for each channel with following attributes:
7270 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7271 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7272 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7273 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7274 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7275 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7276 */
7277 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7278 /* This (u8) will hold values of one of enum nl80211_bands */
7279 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7280 /* Primary channel (u8) */
7281 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7282 /* Secondary channel (u8) used for HT 40 MHz channels */
7283 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7284 /* VHT seg0 channel (u8) */
7285 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7286 /* VHT seg1 channel (u8) */
7287 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7288 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7289 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7290
Hai Shalomc3565922019-10-28 11:58:20 -07007291 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7292 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7293 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7294 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7295 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007296 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Hai Shalomc3565922019-10-28 11:58:20 -07007297
Paul Stewart092955c2017-02-06 09:13:09 -08007298 /* keep last */
7299 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7300 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7301 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7302};
7303
7304enum qca_chip_power_save_failure_reason {
7305 /* Indicates if the reason for the failure is due to a protocol
7306 * layer/module.
7307 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007308 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08007309 /* Indicates if the reason for the failure is due to a hardware issue.
7310 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007311 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007312};
7313
7314/**
7315 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
7316 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
7317 * information leading to the power save failure.
7318 */
7319enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07007320 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
7321 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08007322 * These reasons are represented by
7323 * enum qca_chip_power_save_failure_reason.
7324 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007325 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007326
Roshan Pius3a1667e2018-07-03 15:17:14 -07007327 /* keep last */
7328 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
7329 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
7330 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
7331};
7332
7333/**
7334 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
7335 * data types for which the stats have to get collected.
7336 */
7337enum qca_wlan_vendor_nud_stats_data_pkt_flags {
7338 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
7339 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
7340 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
7341 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
7342 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
7343 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
7344 * to represent the stats of respective data type.
7345 */
7346 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
7347 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
7348 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
7349};
7350
7351enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
7352 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
7353 /* Represents the data packet type to be monitored (u32).
7354 * Host driver tracks the stats corresponding to each data frame
7355 * represented by these flags.
7356 * These data packets are represented by
7357 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
7358 */
7359 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
7360 /* Name corresponding to the DNS frame for which the respective DNS
7361 * stats have to get monitored (string). Max string length 255.
7362 */
7363 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
7364 /* source port on which the respective proto stats have to get
7365 * collected (u32).
7366 */
7367 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
7368 /* destination port on which the respective proto stats have to get
7369 * collected (u32).
7370 */
7371 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
7372 /* IPv4 address for which the destined data packets have to be
7373 * monitored. (in network byte order), u32.
7374 */
7375 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
7376 /* IPv6 address for which the destined data packets have to be
7377 * monitored. (in network byte order), 16 bytes array.
7378 */
7379 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
7380
7381 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
7382 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
7383 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007384};
7385
7386/**
7387 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
7388 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
7389 * information to start/stop the NUD statistics collection.
7390 */
7391enum qca_attr_nud_stats_set {
7392 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
7393
7394 /* Flag to start/stop the NUD statistics collection.
7395 * Start - If included, Stop - If not included
7396 */
7397 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007398 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08007399 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007400 /* Represents the list of data packet types to be monitored.
7401 * Host driver tracks the stats corresponding to each data frame
7402 * represented by these flags.
7403 * These data packets are represented by
7404 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7405 */
7406 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007407
7408 /* keep last */
7409 QCA_ATTR_NUD_STATS_SET_LAST,
7410 QCA_ATTR_NUD_STATS_SET_MAX =
7411 QCA_ATTR_NUD_STATS_SET_LAST - 1,
7412};
7413
Roshan Pius3a1667e2018-07-03 15:17:14 -07007414enum qca_attr_nud_data_stats {
7415 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7416 /* Data packet type for which the stats are collected (u32).
7417 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7418 */
7419 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7420 /* Name corresponding to the DNS frame for which the respective DNS
7421 * stats are monitored (string). Max string length 255.
7422 */
7423 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7424 /* source port on which the respective proto stats are collected (u32).
7425 */
7426 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7427 /* destination port on which the respective proto stats are collected
7428 * (u32).
7429 */
7430 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7431 /* IPv4 address for which the destined data packets have to be
7432 * monitored. (in network byte order), u32.
7433 */
7434 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7435 /* IPv6 address for which the destined data packets have to be
7436 * monitored. (in network byte order), 16 bytes array.
7437 */
7438 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7439 /* Data packet Request count received from netdev (u32). */
7440 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7441 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
7442 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7443 /* Data packet Request count received by lower MAC from upper MAC
7444 * (u32)
7445 */
7446 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7447 /* Data packet Request count successfully transmitted by the device
7448 * (u32)
7449 */
7450 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7451 /* Data packet Response count received by lower MAC (u32) */
7452 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7453 /* Data packet Response count received by upper MAC (u32) */
7454 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7455 /* Data packet Response count delivered to netdev (u32) */
7456 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7457 /* Data Packet Response count that are dropped out of order (u32) */
7458 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7459
7460 /* keep last */
7461 QCA_ATTR_NUD_DATA_STATS_LAST,
7462 QCA_ATTR_NUD_DATA_STATS_MAX =
7463 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7464};
7465
Paul Stewart092955c2017-02-06 09:13:09 -08007466/**
7467 * qca_attr_nud_stats_get: Attributes to vendor subcmd
7468 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7469 * NUD statistics collected when queried.
7470 */
7471enum qca_attr_nud_stats_get {
7472 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007473 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007474 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007475 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007476 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007477 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007478 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007479 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007480 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007481 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007482 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007483 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007484 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007485 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007486 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007487 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007488 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
7489 /* Flag indicating if the station's link to the AP is active.
7490 * Active Link - If included, Inactive link - If not included
7491 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007492 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08007493 /* Flag indicating if there is any duplicate address detected (DAD).
7494 * Yes - If detected, No - If not detected.
7495 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007496 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007497 /* List of Data packet types for which the stats are requested.
7498 * This list does not carry ARP stats as they are done by the
7499 * above attributes. Represented by enum qca_attr_nud_data_stats.
7500 */
7501 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007502
7503 /* keep last */
7504 QCA_ATTR_NUD_STATS_GET_LAST,
7505 QCA_ATTR_NUD_STATS_GET_MAX =
7506 QCA_ATTR_NUD_STATS_GET_LAST - 1,
7507};
7508
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007509enum qca_wlan_btm_candidate_status {
7510 QCA_STATUS_ACCEPT = 0,
7511 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
7512 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
7513 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
7514 QCA_STATUS_REJECT_LOW_RSSI = 4,
7515 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
7516 QCA_STATUS_REJECT_UNKNOWN = 6,
7517};
7518
7519enum qca_wlan_vendor_attr_btm_candidate_info {
7520 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
7521
7522 /* 6-byte MAC address representing the BSSID of transition candidate */
7523 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
7524 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
7525 * returned by the driver. It says whether the BSSID provided in
7526 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
7527 * the driver, if not it specifies the reason for rejection.
7528 * Note that the user-space can overwrite the transition reject reason
7529 * codes provided by driver based on more information.
7530 */
7531 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
7532
7533 /* keep last */
7534 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
7535 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
7536 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
7537};
7538
7539enum qca_attr_trace_level {
7540 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
7541 /*
7542 * Nested array of the following attributes:
7543 * QCA_ATTR_TRACE_LEVEL_MODULE,
7544 * QCA_ATTR_TRACE_LEVEL_MASK.
7545 */
7546 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
7547 /*
7548 * Specific QCA host driver module. Please refer to the QCA host
7549 * driver implementation to get the specific module ID.
7550 */
7551 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
7552 /* Different trace level masks represented in the QCA host driver. */
7553 QCA_ATTR_TRACE_LEVEL_MASK = 3,
7554
7555 /* keep last */
7556 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
7557 QCA_ATTR_TRACE_LEVEL_MAX =
7558 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
7559};
7560
7561/**
7562 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
7563 */
7564enum qca_wlan_vendor_attr_get_he_capabilities {
7565 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
7566 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07007567 * (u8 attribute: 0 = not supported, 1 = supported)
7568 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007569 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
7570 /* HE PHY capabilities, array of 3 u32 values */
7571 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
7572 /* HE MAC capabilities (u32 attribute) */
7573 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
7574 /* HE MCS map (u32 attribute) */
7575 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
7576 /* Number of SS (u32 attribute) */
7577 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
7578 /* RU count (u32 attribute) */
7579 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
7580 /* PPE threshold data, array of 8 u32 values */
7581 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
7582
7583 /* keep last */
7584 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
7585 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
7586 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
7587};
7588
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007589/**
7590 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7591 */
7592enum qca_wlan_vendor_attr_spectral_scan {
7593 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7594 /* Number of times the chip enters spectral scan mode before
7595 * deactivating spectral scans. When set to 0, chip will enter spectral
7596 * scan mode continuously. u32 attribute.
7597 */
7598 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7599 /* Spectral scan period. Period increment resolution is 256*Tclk,
7600 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7601 */
7602 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7603 /* Spectral scan priority. u32 attribute. */
7604 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7605 /* Number of FFT data points to compute. u32 attribute. */
7606 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7607 /* Enable targeted gain change before starting the spectral scan FFT.
7608 * u32 attribute.
7609 */
7610 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7611 /* Restart a queued spectral scan. u32 attribute. */
7612 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7613 /* Noise floor reference number for the calculation of bin power.
7614 * u32 attribute.
7615 */
7616 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7617 /* Disallow spectral scan triggers after TX/RX packets by setting
7618 * this delay value to roughly SIFS time period or greater.
7619 * u32 attribute.
7620 */
7621 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7622 /* Number of strong bins (inclusive) per sub-channel, below
7623 * which a signal is declared a narrow band tone. u32 attribute.
7624 */
7625 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7626 /* Specify the threshold over which a bin is declared strong (for
7627 * scan bandwidth analysis). u32 attribute.
7628 */
7629 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7630 /* Spectral scan report mode. u32 attribute. */
7631 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7632 /* RSSI report mode, if the ADC RSSI is below
7633 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7634 * then FFTs will not trigger, but timestamps and summaries get
7635 * reported. u32 attribute.
7636 */
7637 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7638 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
7639 * to ensure spectral scan reporting with normal error code.
7640 * u32 attribute.
7641 */
7642 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7643 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
7644 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7645 * u32 attribute.
7646 */
7647 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7648 /* Format of FFT report to software for spectral scan triggered FFTs.
7649 * 0: No FFT report (only spectral scan summary report)
7650 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7651 * report
7652 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7653 * bins (in-band) per FFT + spectral scan summary report
7654 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7655 * bins (all) per FFT + spectral scan summary report
7656 * u32 attribute.
7657 */
7658 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7659 /* Number of LSBs to shift out in order to scale the FFT bins.
7660 * u32 attribute.
7661 */
7662 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7663 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7664 * in dBm power. u32 attribute.
7665 */
7666 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7667 /* Per chain enable mask to select input ADC for search FFT.
7668 * u32 attribute.
7669 */
7670 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7671 /* An unsigned 64-bit integer provided by host driver to identify the
7672 * spectral scan request. This attribute is included in the scan
7673 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7674 * and used as an attribute in
7675 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7676 * specific scan to be stopped.
7677 */
7678 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007679 /* Skip interval for FFT reports. u32 attribute */
7680 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7681 /* Set to report only one set of FFT results.
7682 * u32 attribute.
7683 */
7684 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7685 /* Debug level for spectral module in driver.
7686 * 0 : Verbosity level 0
7687 * 1 : Verbosity level 1
7688 * 2 : Verbosity level 2
7689 * 3 : Matched filterID display
7690 * 4 : One time dump of FFT report
7691 * u32 attribute.
7692 */
7693 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7694 /* Type of spectral scan request. u32 attribute.
7695 * It uses values defined in enum
7696 * qca_wlan_vendor_attr_spectral_scan_request_type.
7697 */
7698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07007699 /* This specifies the frequency span over which spectral
7700 * scan would be carried out. Its value depends on the
7701 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7702 * the relation is as follows.
7703 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7704 * Not applicable. Spectral scan would happen in the
7705 * operating span.
7706 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7707 * Center frequency (in MHz) of the span of interest or
7708 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07007709 * in the span of interest. For 80+80 MHz agile spectral scan
7710 * request it represents center frequency (in MHz) of the primary
7711 * 80 MHz span or for convenience, center frequency (in MHz) of any
7712 * channel in the primary 80 MHz span. If agile spectral scan is
7713 * initiated without setting a valid frequency it returns the
7714 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07007715 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7716 * u32 attribute.
7717 */
7718 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7719 /* Spectral scan mode. u32 attribute.
7720 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7721 * If this attribute is not present, it is assumed to be
7722 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7723 */
7724 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7725 /* Spectral scan error code. u32 attribute.
7726 * It uses values defined in enum
7727 * qca_wlan_vendor_spectral_scan_error_code.
7728 * This attribute is included only in failure scenarios.
7729 */
7730 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7731 /* 8-bit unsigned value to enable/disable debug of the
7732 * Spectral DMA ring.
7733 * 1-enable, 0-disable
7734 */
7735 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7736 /* 8-bit unsigned value to enable/disable debug of the
7737 * Spectral DMA buffers.
7738 * 1-enable, 0-disable
7739 */
7740 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007741 /* This specifies the frequency span over which spectral scan would be
7742 * carried out. Its value depends on the value of
7743 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7744 * follows.
7745 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7746 * Not applicable. Spectral scan would happen in the operating span.
7747 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7748 * This attribute is applicable only for agile spectral scan
7749 * requests in 80+80 MHz mode. It represents center frequency (in
7750 * MHz) of the secondary 80 MHz span or for convenience, center
7751 * frequency (in MHz) of any channel in the secondary 80 MHz span.
7752 * u32 attribute.
7753 */
7754 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007755 /* This attribute specifies the bandwidth to be used for spectral scan
7756 * operation. This is an u8 attribute and uses the values in enum
7757 * nl80211_chan_width. This is an optional attribute.
7758 * If this attribute is not populated, the driver should configure the
7759 * spectral scan bandwidth to the maximum value supported by the target
7760 * for the current operating bandwidth.
7761 */
7762 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007763 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
7764 * Recapture can only be enabled for scan period greater than 52 us.
7765 * If this attribute is enabled, re-triggers will be enabled when AGC
7766 * gain changes.
7767 */
7768 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07007769 /* Attribute used for padding for 64-bit alignment */
7770 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Sunil Raviaf399a82024-05-05 20:56:55 +00007771 /* Spectral data transport mode. u32 attribute. It uses values
7772 * defined in enum qca_wlan_vendor_spectral_data_transport_mode.
7773 * This is an optional attribute. If this attribute is not populated,
7774 * the driver should configure the default transport mode to netlink.
7775 */
7776 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33,
7777 /* Spectral scan completion timeout. u32 attribute. This
7778 * attribute is used to configure a timeout value (in us). The
7779 * timeout value would be from the beginning of a spectral
7780 * scan. This is an optional attribute. If this attribute is
7781 * not populated, the driver would internally derive the
7782 * timeout value.
7783 */
7784 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007785
7786 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7787 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7788 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7789};
7790
Roshan Pius3a1667e2018-07-03 15:17:14 -07007791/**
7792 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7793 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7794 */
7795enum qca_wlan_vendor_attr_spectral_diag_stats {
7796 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7797 /* Number of spectral TLV signature mismatches.
7798 * u64 attribute.
7799 */
7800 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7801 /* Number of spectral phyerror events with insufficient length when
7802 * parsing for secondary 80 search FFT report. u64 attribute.
7803 */
7804 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7805 /* Number of spectral phyerror events without secondary 80
7806 * search FFT report. u64 attribute.
7807 */
7808 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7809 /* Number of spectral phyerror events with vht operation segment 1 id
7810 * mismatches in search fft report. u64 attribute.
7811 */
7812 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7813 /* Number of spectral phyerror events with vht operation segment 2 id
7814 * mismatches in search fft report. u64 attribute.
7815 */
7816 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07007817 /* Attribute used for padding for 64-bit alignment */
7818 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007819
7820 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7821 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7822 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7823};
7824
7825/**
7826 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7827 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7828 */
7829enum qca_wlan_vendor_attr_spectral_cap {
7830 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7831 /* Flag attribute to indicate phydiag capability */
7832 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7833 /* Flag attribute to indicate radar detection capability */
7834 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7835 /* Flag attribute to indicate spectral capability */
7836 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7837 /* Flag attribute to indicate advanced spectral capability */
7838 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7839 /* Spectral hardware generation. u32 attribute.
7840 * It uses values defined in enum
7841 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7842 */
7843 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007844 /* Spectral bin scaling formula ID. u16 attribute.
7845 * It uses values defined in enum
7846 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7847 */
7848 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7849 /* Spectral bin scaling param - low level offset.
7850 * s16 attribute.
7851 */
7852 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7853 /* Spectral bin scaling param - high level offset.
7854 * s16 attribute.
7855 */
7856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7857 /* Spectral bin scaling param - RSSI threshold.
7858 * s16 attribute.
7859 */
7860 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7861 /* Spectral bin scaling param - default AGC max gain.
7862 * u8 attribute.
7863 */
7864 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07007865 /* Flag attribute to indicate agile spectral scan capability
7866 * for 20/40/80 MHz modes.
7867 */
Hai Shalom81f62d82019-07-22 12:10:00 -07007868 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07007869 /* Flag attribute to indicate agile spectral scan capability
7870 * for 160 MHz mode.
7871 */
7872 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7873 /* Flag attribute to indicate agile spectral scan capability
7874 * for 80+80 MHz mode.
7875 */
7876 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007877 /* Number of spectral detectors used for scan in 20 MHz.
7878 * u32 attribute.
7879 */
7880 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7881 /* Number of spectral detectors used for scan in 40 MHz.
7882 * u32 attribute.
7883 */
7884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7885 /* Number of spectral detectors used for scan in 80 MHz.
7886 * u32 attribute.
7887 */
7888 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7889 /* Number of spectral detectors used for scan in 160 MHz.
7890 * u32 attribute.
7891 */
7892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7893 /* Number of spectral detectors used for scan in 80+80 MHz.
7894 * u32 attribute.
7895 */
7896 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007897 /* Flag attribute to indicate agile spectral scan capability
7898 * for 320 MHz mode.
7899 */
7900 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7901 /* Number of spectral detectors used for scan in 320 MHz.
7902 * u32 attribute.
7903 */
7904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007905
7906 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7907 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7908 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7909};
7910
7911/**
7912 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7913 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7914 */
7915enum qca_wlan_vendor_attr_spectral_scan_status {
7916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7917 /* Flag attribute to indicate whether spectral scan is enabled */
7918 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7919 /* Flag attribute to indicate whether spectral scan is in progress*/
7920 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07007921 /* Spectral scan mode. u32 attribute.
7922 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7923 * If this attribute is not present, normal mode
7924 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7925 * requested.
7926 */
7927 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007928
7929 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7930 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7931 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7932};
7933
7934/**
7935 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7936 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7937 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7938 * spectral scan request types.
7939 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7940 * set the spectral parameters and start scan.
7941 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7942 * only set the spectral parameters.
7943 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7944 * only start the spectral scan.
7945 */
7946enum qca_wlan_vendor_attr_spectral_scan_request_type {
7947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7948 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7949 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7950};
7951
7952/**
Hai Shalom81f62d82019-07-22 12:10:00 -07007953 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7954 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7955 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7956 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7957 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7958 * spectral scan modes.
7959 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7960 * spectral scan in the current operating span.
7961 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7962 * spectral scan in the configured agile span.
7963 */
7964enum qca_wlan_vendor_spectral_scan_mode {
7965 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7966 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7967};
7968
7969/**
7970 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7971 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7972 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7973 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7974 * of a parameter is not supported.
7975 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7976 * mode is not supported.
7977 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7978 * has invalid value.
7979 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7980 * is not initialized.
7981 */
7982enum qca_wlan_vendor_spectral_scan_error_code {
7983 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7984 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7985 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7986 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7987};
7988
7989/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007990 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7991 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7992 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7993 * spectral hardware generation.
7994 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7995 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7996 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7997 */
7998enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7999 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8000 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8001 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8002};
8003
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008004enum qca_wlan_vendor_tos {
8005 QCA_WLAN_VENDOR_TOS_BK = 0,
8006 QCA_WLAN_VENDOR_TOS_BE = 1,
8007 QCA_WLAN_VENDOR_TOS_VI = 2,
8008 QCA_WLAN_VENDOR_TOS_VO = 3,
8009};
8010
8011/**
8012 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
8013 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
8014 */
8015enum qca_wlan_vendor_attr_active_tos {
8016 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
8017 /* Type Of Service - Represented by qca_wlan_vendor_tos */
8018 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
8019 /* Flag attribute representing the start (attribute included) or stop
8020 * (attribute not included) of the respective TOS.
8021 */
8022 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
8023};
8024
8025enum qca_wlan_vendor_hang_reason {
8026 /* Unspecified reason */
8027 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
8028 /* No Map for the MAC entry for the received frame */
8029 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
8030 /* Peer deletion timeout happened */
8031 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
8032 /* Peer unmap timeout */
8033 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
8034 /* Scan request timed out */
8035 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
8036 /* Consecutive Scan attempt failures */
8037 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
8038 /* Unable to get the message buffer */
8039 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
8040 /* Current command processing is timedout */
8041 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
8042 /* Timeout for an ACK from FW for suspend request */
8043 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
8044 /* Timeout for an ACK from FW for resume request */
8045 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
8046 /* Transmission timeout for consecutive data frames */
8047 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
8048 /* Timeout for the TX completion status of data frame */
8049 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
8050 /* DXE failure for TX/RX, DXE resource unavailability */
8051 QCA_WLAN_HANG_DXE_FAILURE = 12,
8052 /* WMI pending commands exceed the maximum count */
8053 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07008054 /* Timeout for peer STA connection accept command's response from the
8055 * FW in AP mode. This command is triggered when a STA (peer) connects
8056 * to AP (DUT).
8057 */
8058 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
8059 /* Timeout for the AP connection accept command's response from the FW
8060 * in STA mode. This command is triggered when the STA (DUT) connects
8061 * to an AP (peer).
8062 */
8063 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
8064 /* Timeout waiting for the response to the MAC HW mode change command
8065 * sent to FW as a part of MAC mode switch among DBS (Dual Band
8066 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
8067 * Channel Concurrency) mode.
8068 */
8069 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
8070 /* Timeout waiting for the response from FW to configure the MAC HW's
8071 * mode. This operation is to configure the single/two MACs in either
8072 * SCC/MCC/DBS mode.
8073 */
8074 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
8075 /* Timeout waiting for response of VDEV start command from the FW */
8076 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
8077 /* Timeout waiting for response of VDEV restart command from the FW */
8078 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
8079 /* Timeout waiting for response of VDEV stop command from the FW */
8080 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
8081 /* Timeout waiting for response of VDEV delete command from the FW */
8082 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
8083 /* Timeout waiting for response of peer all delete request command to
8084 * the FW on a specific VDEV.
8085 */
8086 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08008087 /* WMI sequence mismatch between WMI command and Tx completion */
8088 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
8089 /* Write to Device HAL register failed */
8090 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
8091 /* No credit left to send the wow_wakeup_from_sleep to firmware */
8092 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
8093 /* Bus failure */
8094 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008095 /* tasklet/credit latency found */
8096 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00008097 /* MSDU buffers received in REO error ring, exceeding certain
8098 * threshold
8099 */
8100 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
8101 /* Vdev SM is out of sync and connect req received
8102 * when already connected
8103 */
8104 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
8105 /* Stats request timeout */
8106 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
8107 /* Leak in TX descriptor for a packet */
8108 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
8109 /* Scheduler watchdog timeout */
8110 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
8111 /* Failed to send self peer deletion cmd to firmware */
8112 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
8113 /* Received del self sta without del bss */
8114 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
8115 /* Recovery needed when sending flush completion to userspace */
8116 QCA_WLAN_HANG_FLUSH_LOGS = 35,
8117 /* Host wakeup because of page fault */
8118 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008119};
8120
8121/**
8122 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
8123 * QCA_NL80211_VENDOR_SUBCMD_HANG.
8124 */
8125enum qca_wlan_vendor_attr_hang {
8126 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
8127 /* Reason for the hang - u32 attribute with a value from enum
8128 * qca_wlan_vendor_hang_reason.
8129 */
8130 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008131 /* The binary blob data associated with the hang reason specified by
8132 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
8133 * contain the required dump to analyze the reason for the hang.
8134 * NLA_BINARY attribute, the max size is 1024 bytes.
8135 */
8136 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008137
8138 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
8139 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
8140 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
8141};
8142
Roshan Pius3a1667e2018-07-03 15:17:14 -07008143/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008144 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
8145 * the policy to flush pending frames, configured via
8146 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
8147 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
8148 *
8149 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
8150 * the flush policy configured before. This command basically disables the
8151 * flush config set by the user.
8152 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
8153 * the flush policy to be immediate. All pending packets for the peer/TID are
8154 * flushed when this command/policy is received.
8155 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
8156 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
8157 * are flushed when the end of TWT SP is reached.
8158 */
8159enum qca_wlan_vendor_flush_pending_policy {
8160 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
8161 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
8162 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
8163};
8164
8165/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008166 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
8167 * flushing pending traffic in firmware.
8168 *
8169 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
8170 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
8171 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
8172 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08008173 * flush packets with access category. This is optional. See below.
8174 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
8175 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
8176 * bit to 1 to act upon the TID. This is optional. Either this attribute or
8177 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
8178 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
8179 * it is an error.
8180 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
8181 * packets corresponding to the peer/TID provided. It is a u32 value,
8182 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
8183 * value is honored only when TID mask is provided. This is not honored when AC
8184 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008185 */
8186enum qca_wlan_vendor_attr_flush_pending {
8187 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
8188 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
8189 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008190 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
8191 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008192
8193 /* keep last */
8194 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
8195 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
8196 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
8197};
8198
8199/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008200 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8201 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8202 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8203 * Spectral bin scaling formula ID.
8204 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8205 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8206 * and RSSI threshold based formula.
8207 */
8208enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8209 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8210 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8211};
8212
8213/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008214 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8215 * RF Operating Parameter (RROP) information is available, and if so, at which
8216 * point in the application-driver interaction sequence it can be retrieved by
8217 * the application from the driver. This point may vary by architecture and
8218 * other factors. This is a u16 value.
8219 */
8220enum qca_wlan_vendor_attr_rropavail_info {
8221 /* RROP information is unavailable. */
8222 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8223 /* RROP information is available and the application can retrieve the
8224 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8225 * event from the driver.
8226 */
8227 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8228 /* RROP information is available only after a vendor specific scan
8229 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8230 * successfully completed. The application can retrieve the information
8231 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8232 * the driver.
8233 */
8234 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8235};
8236
8237/**
8238 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8239 * Representative RF Operating Parameter (RROP) information. It is sent for the
8240 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8241 * intended for use by external Auto Channel Selection applications. It provides
8242 * guidance values for some RF parameters that are used by the system during
8243 * operation. These values could vary by channel, band, radio, and so on.
8244 */
8245enum qca_wlan_vendor_attr_rrop_info {
8246 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8247
8248 /* Representative Tx Power List (RTPL) which has an array of nested
8249 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8250 */
8251 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8252
8253 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8254 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8255 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8256};
8257
8258/**
8259 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8260 * entry instances in the Representative Tx Power List (RTPL). It provides
8261 * simplified power values intended for helping external Auto channel Selection
8262 * applications compare potential Tx power performance between channels, other
8263 * operating conditions remaining identical. These values are not necessarily
8264 * the actual Tx power values that will be used by the system. They are also not
8265 * necessarily the max or average values that will be used. Instead, they are
8266 * relative, summarized keys for algorithmic use computed by the driver or
8267 * underlying firmware considering a number of vendor specific factors.
8268 */
8269enum qca_wlan_vendor_attr_rtplinst {
8270 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8271
Hai Shalomfdcde762020-04-02 11:19:20 -07008272 /* Primary channel number (u8).
8273 * Note: If both the driver and user space application support the
8274 * 6 GHz band, this attribute is deprecated and
8275 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8276 * maintain backward compatibility,
8277 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8278 * driver or user space application or both do not support the 6 GHz
8279 * band.
8280 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008281 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8282 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
8283 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8284 /* Representative Tx power in dBm (s32) with emphasis on range. */
8285 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07008286 /* Primary channel center frequency (u32) in MHz */
8287 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008288
8289 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8290 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8291 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8292};
8293
8294/**
8295 * enum qca_wlan_vendor_attr_config_latency_level - Level for
8296 * wlan latency module.
8297 *
8298 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8299 * power saving which would causing data exchange out of service, this
8300 * would be a big impact on latency. For latency sensitive applications over
8301 * Wi-Fi are intolerant to such operations and thus would configure them
8302 * to meet their respective needs. It is well understood by such applications
8303 * that altering the default behavior would degrade the Wi-Fi functionality
8304 * w.r.t the above pointed WLAN operations.
8305 *
8306 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8307 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008308 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8309 * Use XR level to benefit XR (extended reality) application to achieve
8310 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008311 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07008312 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07008313 * downloading or video streaming via constraint scan/adaptive PS.
8314 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8315 * Use ultra low latency level to benefit for gaming/voice
8316 * application via constraint scan/roaming/adaptive PS.
8317 */
8318enum qca_wlan_vendor_attr_config_latency_level {
8319 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8320 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008321 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8322 /* legacy name */
8323 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8324 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008325 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8326 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8327
8328 /* keep last */
8329 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8330 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8331 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8332};
8333
8334/**
8335 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
8336 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8337 */
8338enum qca_wlan_vendor_attr_mac {
8339 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8340
8341 /* MAC mode info list which has an array of nested values as
8342 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
8343 */
8344 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8345
8346 /* keep last */
8347 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8348 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8349 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8350};
8351
8352/**
8353 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8354 * Wi-Fi netdev interface on a respective MAC.
8355 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8356 */
8357enum qca_wlan_vendor_attr_mac_iface_info {
8358 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8359 /* Wi-Fi netdev's interface index (u32) */
8360 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8361 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
8362 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8363
8364 /* keep last */
8365 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8366 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8367 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8368};
8369
8370/**
8371 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8372 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8373 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8374 */
8375enum qca_wlan_vendor_attr_mac_info {
8376 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8377 /* Hardware MAC ID associated for the MAC (u32) */
8378 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8379 /* Band supported by the MAC at a given point.
8380 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
8381 * nl80211_band.
8382 */
8383 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8384 /* Refers to list of WLAN netdev interfaces associated with this MAC.
8385 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
8386 */
8387 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8388
8389 /* keep last */
8390 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8391 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8392 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8393};
8394
8395/**
8396 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
8397 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
8398 */
8399enum qca_wlan_vendor_attr_get_logger_features {
8400 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
8401 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
8402 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
8403 /* keep last */
8404 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
8405 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
8406 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
8407};
8408
8409/**
8410 * enum wifi_logger_supported_features - Values for supported logger features
8411 */
8412enum wifi_logger_supported_features {
8413 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
8414 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
8415 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8416 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8417 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8418 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8419 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8420 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8421 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8422};
8423
8424/**
8425 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8426 * capabilities features
8427 */
8428enum qca_wlan_tdls_caps_features_supported {
8429 WIFI_TDLS_SUPPORT = (1 << (0)),
8430 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008431 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
8432
8433 /* Indicates if the TDLS session can be formed with the peer using
8434 * higher bandwidth than the bandwidth of the AP path.
8435 */
8436 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
Roshan Pius3a1667e2018-07-03 15:17:14 -07008437};
8438
8439/**
8440 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8441 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8442 */
8443enum qca_wlan_vendor_attr_tdls_get_capabilities {
8444 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8445 /* Indicates the max concurrent sessions */
8446 /* Unsigned 32-bit value */
8447 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8448 /* Indicates the support for features */
8449 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8450 */
8451 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8452
8453 /* keep last */
8454 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8455 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8456 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8457};
8458
8459/**
8460 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8461 * command used as value for the attribute
8462 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8463 */
8464enum qca_wlan_offloaded_packets_sending_control {
8465 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8466 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8467 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8468};
8469
8470/**
8471 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8472 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8473 */
8474enum qca_wlan_vendor_attr_offloaded_packets {
8475 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8476 /* Takes valid value from the enum
8477 * qca_wlan_offloaded_packets_sending_control
8478 * Unsigned 32-bit value
8479 */
8480 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
8481 /* Unsigned 32-bit value */
8482 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
8483 /* array of u8 len: Max packet size */
8484 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
8485 /* 6-byte MAC address used to represent source MAC address */
8486 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
8487 /* 6-byte MAC address used to represent destination MAC address */
8488 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
8489 /* Unsigned 32-bit value, in milli seconds */
8490 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07008491 /* This optional unsigned 16-bit attribute is used for specifying
8492 * ethernet protocol type. If not specified ethertype defaults to IPv4.
8493 */
8494 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008495
8496 /* keep last */
8497 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
8498 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
8499 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
8500};
8501
8502/**
8503 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
8504 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
8505 */
8506enum qca_wlan_rssi_monitoring_control {
8507 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
8508 QCA_WLAN_RSSI_MONITORING_START,
8509 QCA_WLAN_RSSI_MONITORING_STOP,
8510};
8511
8512/**
8513 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
8514 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
8515 */
8516enum qca_wlan_vendor_attr_rssi_monitoring {
8517 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
8518 /* Takes valid value from the enum
8519 * qca_wlan_rssi_monitoring_control
8520 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
8521 */
8522 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
8523 /* Unsigned 32-bit value */
8524 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
8525 /* Signed 8-bit value in dBm */
8526 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
8527 /* Signed 8-bit value in dBm */
8528 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
8529 /* attributes to be used/received in callback */
8530 /* 6-byte MAC address used to represent current BSSID MAC address */
8531 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
8532 /* Signed 8-bit value indicating the current RSSI */
8533 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
8534 /* keep last */
8535 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
8536 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
8537 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
8538};
8539
8540/**
8541 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
8542 * QCA_NL80211_VENDOR_SUBCMD_NDP.
8543 */
8544enum qca_wlan_vendor_attr_ndp_params {
8545 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
8546 /* Unsigned 32-bit value
8547 * enum of sub commands values in qca_wlan_ndp_sub_cmd
8548 */
8549 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
8550 /* Unsigned 16-bit value */
8551 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
8552 /* NL attributes for data used NDP SUB cmds */
8553 /* Unsigned 32-bit value indicating a service info */
8554 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
8555 /* Unsigned 32-bit value; channel frequency in MHz */
8556 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
8557 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
8558 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
8559 /* Interface name on which NDP is being created */
8560 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
8561 /* Unsigned 32-bit value for security */
8562 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
8563 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
8564 /* Unsigned 32-bit value for QoS */
8565 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
8566 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
8567 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
8568 /* Unsigned 32-bit value for NDP instance Id */
8569 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
8570 /* Array of instance Ids */
8571 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
8572 /* Unsigned 32-bit value for initiator/responder NDP response code
8573 * accept/reject
8574 */
8575 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
8576 /* NDI MAC address. An array of 6 Unsigned int8 */
8577 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
8578 /* Unsigned 32-bit value errors types returned by driver
8579 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8580 * NanStatusType includes these values.
8581 */
8582 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
8583 /* Unsigned 32-bit value error values returned by driver
8584 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
8585 * NanInternalStatusType includes these values.
8586 */
8587 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
8588 /* Unsigned 32-bit value for Channel setup configuration
8589 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8590 * NanDataPathChannelCfg includes these values.
8591 */
8592 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
8593 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
8594 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
8595 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
8596 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
8597 /* Security Context Identifier that contains the PMKID
8598 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
8599 */
8600 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
8601 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
8602 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
8603 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
8604 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
8605 /* Unsigned 32-bit bitmap indicating schedule update
8606 * BIT_0: NSS Update
8607 * BIT_1: Channel list update
8608 */
8609 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
8610 /* Unsigned 32-bit value for NSS */
8611 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
8612 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
8613 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
8614 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
8615 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
8616 */
8617 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
8618 /* Array of channel/band width */
8619 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
8620 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
8621 * This attribute is used and optional for ndp request, ndp response,
8622 * ndp indication, and ndp confirm.
8623 */
8624 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
8625 /* Unsigned 16-bit value indicating transport port used by NDP.
8626 * This attribute is used and optional for ndp response, ndp indication,
8627 * and ndp confirm.
8628 */
8629 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
8630 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
8631 * the Internet Assigned Numbers Authority (IANA) as per:
8632 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
8633 * This attribute is used and optional for ndp response, ndp indication,
8634 * and ndp confirm.
8635 */
8636 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008637 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
8638 * 1:support 0:not support
8639 */
8640 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008641 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
8642 * 48 bits of the SHA-256 hash of the Service Name.
8643 * A lower-case representation of the Service Name shall be used to
8644 * calculate the Service ID.
8645 * Array of u8: length is 6 bytes
8646 * This attribute is used and optional for ndp indication.
8647 */
8648 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008649 /* Unsigned 8-bit value for Cipher Suite capabilities.
8650 * u8 attribute.
8651 * This attribute is used and optional in ndp request, ndp response,
8652 * ndp indication, and ndp confirm.
8653 * This attribute is used to indicate the Capabilities field of Cipher
8654 * Suite Information attribute (CSIA) of NDP frames as defined in
8655 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
8656 * Firmware can accept or ignore any of the capability bits.
8657 */
8658 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
8659 /* Indicate that GTK protection is required for NDP.
8660 * NLA_FLAG attribute.
8661 * This attribute can be used in ndp request, ndp response, ndp
8662 * indication, and ndp confirm.
8663 * GTK protection required is indicated in the NDPE attribute of NAN
8664 * action frame (NAF) during NDP negotiation as defined in
8665 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
8666 * If the device and peer supports GTKSA and if GTK protection required
8667 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
8668 * of Data Path Security Confirm and Data Path Security Install frames
8669 * of NDP negotiation to send and receive protected group addressed data
8670 * frames from each other.
8671 */
8672 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008673
8674 /* keep last */
8675 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
8676 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
8677 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
8678};
8679
8680enum qca_wlan_ndp_sub_cmd {
8681 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07008682 /* Command to create a NAN data path interface.
8683 * This command was initially designed to both create and start a NAN
8684 * data path interface. However, changes to Linux 5.12 no longer allow
8685 * interface creation via vendor commands. When the driver advertises
8686 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8687 * userspace must explicitly first create the interface using
8688 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
8689 * to start the interface.
8690 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008691 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07008692 /* Command to delete a NAN data path interface.
8693 * This command was initially designed to both stop and delete a NAN
8694 * data path interface. However, changes to Linux 5.12 no longer allow
8695 * interface deletion via vendor commands. When the driver advertises
8696 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8697 * userspace must explicitly delete the interface using
8698 * NL80211_CMD_DEL_INTERFACE after calling this command.
8699 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008700 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
8701 /* Command to initiate a NAN data path session */
8702 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
8703 /* Command to notify if the NAN data path session was sent */
8704 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
8705 /* Command to respond to NAN data path session */
8706 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
8707 /* Command to notify on the responder about the response */
8708 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
8709 /* Command to initiate a NAN data path end */
8710 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
8711 /* Command to notify the if end request was sent */
8712 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
8713 /* Command to notify the peer about the end request */
8714 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
8715 /* Command to confirm the NAN data path session is complete */
8716 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
8717 /* Command to indicate the peer about the end request being received */
8718 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
8719 /* Command to indicate the peer of schedule update */
8720 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
8721};
8722
8723/**
8724 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
8725 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
8726 */
8727enum qca_wlan_vendor_attr_nd_offload {
8728 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
8729 /* Flag to set Neighbour Discovery offload */
8730 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
8731 /* Keep last */
8732 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
8733 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
8734 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
8735};
8736
8737/**
8738 * enum packet_filter_sub_cmd - Packet filter sub commands
8739 */
8740enum packet_filter_sub_cmd {
8741 /**
8742 * Write packet filter program and/or data. The driver/firmware should
8743 * disable APF before writing into local buffer and re-enable APF after
8744 * writing is done.
8745 */
8746 QCA_WLAN_SET_PACKET_FILTER = 1,
8747 /* Get packet filter feature capabilities from driver */
8748 QCA_WLAN_GET_PACKET_FILTER = 2,
8749 /**
8750 * Write packet filter program and/or data. User space will send the
8751 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
8752 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
8753 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
8754 * enable/disable is given to user space with this command. Also,
8755 * user space sends the length of program portion in the buffer within
8756 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
8757 */
8758 QCA_WLAN_WRITE_PACKET_FILTER = 3,
8759 /* Read packet filter program and/or data */
8760 QCA_WLAN_READ_PACKET_FILTER = 4,
8761 /* Enable APF feature */
8762 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
8763 /* Disable APF feature */
8764 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
8765};
8766
8767/**
8768 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
8769 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
8770 */
8771enum qca_wlan_vendor_attr_packet_filter {
8772 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
8773 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
8774 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
8775 /* Unsigned 32-bit value indicating the packet filter version */
8776 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
8777 /* Unsigned 32-bit value indicating the packet filter id */
8778 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
8779 /**
8780 * Unsigned 32-bit value indicating the packet filter size including
8781 * program + data.
8782 */
8783 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
8784 /* Unsigned 32-bit value indicating the packet filter current offset */
8785 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
8786 /* Program and/or data in bytes */
8787 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
8788 /* Unsigned 32-bit value of the length of the program section in packet
8789 * filter buffer.
8790 */
8791 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
8792
8793 /* keep last */
8794 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
8795 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
8796 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
8797};
8798
8799/**
8800 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
8801 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
8802 */
8803enum qca_wlan_vendor_drv_info {
8804 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
8805 /* Maximum Message size info between firmware & HOST
8806 * Unsigned 32-bit value
8807 */
8808 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
8809 /* keep last */
8810 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
8811 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
8812 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
8813};
8814
8815/**
8816 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8817 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8818 */
8819enum qca_wlan_vendor_attr_wake_stats {
8820 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8821 /* Unsigned 32-bit value indicating the total count of wake event */
8822 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8823 /* Array of individual wake count, each index representing wake reason
8824 */
8825 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8826 /* Unsigned 32-bit value representing wake count array */
8827 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8828 /* Unsigned 32-bit total wake count value of driver/fw */
8829 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8830 /* Array of wake stats of driver/fw */
8831 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8832 /* Unsigned 32-bit total wake count value of driver/fw */
8833 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8834 /* Unsigned 32-bit total wake count value of packets received */
8835 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8836 /* Unsigned 32-bit wake count value unicast packets received */
8837 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8838 /* Unsigned 32-bit wake count value multicast packets received */
8839 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8840 /* Unsigned 32-bit wake count value broadcast packets received */
8841 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8842 /* Unsigned 32-bit wake count value of ICMP packets */
8843 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8844 /* Unsigned 32-bit wake count value of ICMP6 packets */
8845 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8846 /* Unsigned 32-bit value ICMP6 router advertisement */
8847 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8848 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
8849 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8850 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
8851 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8852 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8853 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8854 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8855 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8856 /* Unsigned 32-bit wake count value of receive side multicast */
8857 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8858 /* Unsigned 32-bit wake count value of a given RSSI breach */
8859 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8860 /* Unsigned 32-bit wake count value of low RSSI */
8861 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8862 /* Unsigned 32-bit value GSCAN count */
8863 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8864 /* Unsigned 32-bit value PNO complete count */
8865 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8866 /* Unsigned 32-bit value PNO match count */
8867 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8868 /* keep last */
8869 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8870 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8871 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8872};
8873
8874/**
Hai Shalomfdcde762020-04-02 11:19:20 -07008875 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07008876 * configured by userspace to the driver/firmware.
8877 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8878 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07008879 * The driver/firmware takes actions requested by userspace such as throttling
8880 * wifi TX etc. in order to mitigate high temperature.
8881 *
8882 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8883 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8884 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8885 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8886 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8887 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8888 */
8889enum qca_wlan_vendor_thermal_level {
8890 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8891 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8892 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8893 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8894 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8895 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8896};
8897
8898/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008899 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8900 * cmd value. Used for NL attributes for data used by
8901 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8902 */
8903enum qca_wlan_vendor_attr_thermal_cmd {
8904 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8905 /* The value of command, driver will implement different operations
8906 * according to this value. It uses values defined in
8907 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8908 * u32 attribute.
8909 */
8910 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008911 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07008912 * driver/firmware, or get thermal level from the driver/firmware.
8913 * Used in request or response, u32 attribute,
8914 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07008915 */
8916 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8917 /* Userspace uses this attribute to configure the time in which the
8918 * driver/firmware should complete applying settings it received from
8919 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8920 * command type. Used in request, u32 attribute, value is in
8921 * milliseconds. A value of zero indicates to apply the settings
8922 * immediately. The driver/firmware can delay applying the configured
8923 * thermal settings within the time specified in this attribute if
8924 * there is any critical ongoing operation.
8925 */
8926 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008927 /* Nested attribute, the driver/firmware uses this attribute to report
8928 * thermal statistics of different thermal levels to userspace when
8929 * requested using the
8930 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8931 * type. This attribute contains a nested array of records of thermal
8932 * statistics of multiple levels. The attributes used inside this nested
8933 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8934 */
8935 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008936
8937 /* keep last */
8938 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8939 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8940 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8941};
8942
8943/**
8944 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8945 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8946 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8947 * thermal command types sent to driver.
8948 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8949 * get thermal shutdown configuration parameters for display. Parameters
8950 * responded from driver are defined in
8951 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8952 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8953 * get temperature. Host should respond with a temperature data. It is defined
8954 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8955 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8956 * suspend action.
8957 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8958 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07008959 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8960 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07008961 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8962 * thermal level from the driver/firmware. The driver should respond with a
8963 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008964 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8965 * current thermal statistics from the driver/firmware. The driver should
8966 * respond with statistics of all thermal levels encapsulated in the attribute
8967 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8968 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8969 * the current thermal statistics for all thermal levels maintained in the
8970 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008971 */
8972enum qca_wlan_vendor_attr_thermal_cmd_type {
8973 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8974 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8975 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8976 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07008977 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07008978 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008979 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8980 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008981};
8982
8983/**
8984 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8985 * to get chip temperature by user.
8986 * enum values are used for NL attributes for data used by
8987 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8988 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8989 */
8990enum qca_wlan_vendor_attr_thermal_get_temperature {
8991 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8992 /* Temperature value (degree Celsius) from driver.
8993 * u32 attribute.
8994 */
8995 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8996
8997 /* keep last */
8998 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8999 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
9000 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
9001};
9002
9003/**
9004 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
9005 * to get configuration parameters of thermal shutdown feature. Enum values are
9006 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
9007 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9008 */
9009enum qca_wlan_vendor_attr_get_thermal_params_rsp {
9010 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
9011 /* Indicate if the thermal shutdown feature is enabled.
9012 * NLA_FLAG attribute.
9013 */
9014 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
9015 /* Indicate if the auto mode is enabled.
9016 * Enable: Driver triggers the suspend/resume action.
9017 * Disable: User space triggers the suspend/resume action.
9018 * NLA_FLAG attribute.
9019 */
9020 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
9021 /* Thermal resume threshold (degree Celsius). Issue the resume command
9022 * if the temperature value is lower than this threshold.
9023 * u16 attribute.
9024 */
9025 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
9026 /* Thermal warning threshold (degree Celsius). FW reports temperature
9027 * to driver if it's higher than this threshold.
9028 * u16 attribute.
9029 */
9030 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
9031 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
9032 * if the temperature value is higher than this threshold.
9033 * u16 attribute.
9034 */
9035 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
9036 /* FW reports temperature data periodically at this interval (ms).
9037 * u16 attribute.
9038 */
9039 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
9040
9041 /* keep last */
9042 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
9043 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
9044 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
9045};
9046
9047/**
9048 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
9049 * report thermal events from driver to user space.
9050 * enum values are used for NL attributes for data used by
9051 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
9052 */
9053enum qca_wlan_vendor_attr_thermal_event {
9054 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
9055 /* Temperature value (degree Celsius) from driver.
9056 * u32 attribute.
9057 */
9058 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
9059 /* Indication of resume completion from power save mode.
9060 * NLA_FLAG attribute.
9061 */
9062 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07009063 /* Thermal level from the driver.
9064 * u32 attribute. Possible values are defined in
9065 * enum qca_wlan_vendor_thermal_level.
9066 */
9067 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009068
9069 /* keep last */
9070 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
9071 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
9072 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
9073};
9074
9075/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009076 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9077 * to get thermal status from the driver/firmware.
9078 * enum values are used for NL attributes encapsulated inside the
9079 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9080 *
9081 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9082 * of a thermal level in Celsius. u32 size.
9083 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9084 * of a thermal level in Celsius. u32 size.
9085 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9086 * thermal level in milliseconds. u32 size.
9087 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9088 * of times the temperature crossed into the temperature range defined by the
9089 * thermal level from both higher and lower directions. u32 size.
9090 */
9091enum qca_wlan_vendor_attr_thermal_stats {
9092 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9093 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9094 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9095 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9096 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9097
9098 /* keep last */
9099 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9100 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9101 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9102};
9103
9104/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009105 * enum he_fragmentation_val - HE fragmentation support values
9106 * Indicates level of dynamic fragmentation that is supported by
9107 * a STA as a recipient.
9108 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
9109 * (HE MAC Capabilities Information field) and are used in HE Capabilities
9110 * element to advertise the support. These values are validated in the driver
9111 * to check the device capability and advertised in the HE Capabilities
9112 * element. These values are used to configure testbed device to allow the
9113 * advertised hardware capabilities to be downgraded for testing purposes.
9114 *
9115 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9116 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9117 * contained within an MPDU or S-MPDU, no support for dynamic fragments
9118 * within an A-MPDU that is not an S-MPDU.
9119 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9120 * contained within an MPDU or S-MPDU and support for up to one dynamic
9121 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
9122 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9123 * MPDU or S-MPDU.
9124 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9125 * contained within an MPDU or S-MPDU and support for multiple dynamic
9126 * fragments for each MSDU and for each A-MSDU if supported by the
9127 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9128 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9129 */
9130enum he_fragmentation_val {
9131 HE_FRAG_DISABLE,
9132 HE_FRAG_LEVEL1,
9133 HE_FRAG_LEVEL2,
9134 HE_FRAG_LEVEL3,
9135};
9136
9137/**
9138 * enum he_mcs_config - HE MCS support configuration
9139 *
9140 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9141 * These values are used in driver to configure the HE MCS map to advertise
9142 * Tx/Rx MCS map in HE capability and these values are applied for all the
9143 * streams supported by the device. To configure MCS for different bandwidths,
9144 * vendor command needs to be sent using this attribute with appropriate value.
9145 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9146 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
9147 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
9148 * These values are used to configure testbed device to allow the advertised
9149 * hardware capabilities to be downgraded for testing purposes. The enum values
9150 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
9151 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
9152 * These values are validated in the driver before setting the MCS map and
9153 * driver returns error if the input is other than these enum values.
9154 *
9155 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
9156 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
9157 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
9158 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
9159 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
9160 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
9161 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
9162 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
9163 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
9164 */
9165enum he_mcs_config {
9166 HE_80_MCS0_7 = 0,
9167 HE_80_MCS0_9 = 1,
9168 HE_80_MCS0_11 = 2,
9169 HE_160_MCS0_7 = 4,
9170 HE_160_MCS0_9 = 5,
9171 HE_160_MCS0_11 = 6,
9172 HE_80P80_MCS0_7 = 8,
9173 HE_80P80_MCS0_9 = 9,
9174 HE_80P80_MCS0_11 = 10,
9175};
9176
9177/**
9178 * enum qca_wlan_ba_session_config - BA session configuration
9179 *
9180 * Indicates the configuration values for BA session configuration attribute.
9181 *
9182 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9183 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9184 */
9185enum qca_wlan_ba_session_config {
9186 QCA_WLAN_ADD_BA = 1,
9187 QCA_WLAN_DELETE_BA = 2,
9188};
9189
9190/**
9191 * enum qca_wlan_ac_type - Access category type
9192 *
9193 * Indicates the access category type value.
9194 *
9195 * @QCA_WLAN_AC_BE: BE access category
9196 * @QCA_WLAN_AC_BK: BK access category
9197 * @QCA_WLAN_AC_VI: VI access category
9198 * @QCA_WLAN_AC_VO: VO access category
9199 * @QCA_WLAN_AC_ALL: All ACs
9200 */
9201enum qca_wlan_ac_type {
9202 QCA_WLAN_AC_BE = 0,
9203 QCA_WLAN_AC_BK = 1,
9204 QCA_WLAN_AC_VI = 2,
9205 QCA_WLAN_AC_VO = 3,
9206 QCA_WLAN_AC_ALL = 4,
9207};
9208
9209/**
9210 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9211 *
9212 * Indicates the HE LTF configuration value.
9213 *
9214 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
9215 * based on the GI setting
9216 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9217 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9218 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9219 */
9220enum qca_wlan_he_ltf_cfg {
9221 QCA_WLAN_HE_LTF_AUTO = 0,
9222 QCA_WLAN_HE_LTF_1X = 1,
9223 QCA_WLAN_HE_LTF_2X = 2,
9224 QCA_WLAN_HE_LTF_4X = 3,
9225};
9226
Hai Shalomc9e41a12018-07-31 14:41:42 -07009227/**
9228 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9229 *
9230 * Indicates the HE trigger frame MAC padding duration value.
9231 *
9232 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9233 * process the trigger frame.
9234 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9235 * trigger frame.
9236 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9237 * trigger frame.
9238 */
9239enum qca_wlan_he_mac_padding_dur {
9240 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9241 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9242 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9243};
9244
Hai Shalom74f70d42019-02-11 14:42:39 -08009245/**
9246 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9247 *
9248 * Indicates the HE Operating mode control channel width setting value.
9249 *
9250 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9251 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9252 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9253 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9254 */
9255enum qca_wlan_he_om_ctrl_ch_bw {
9256 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9257 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9258 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9259 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9260};
9261
9262/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009263 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9264 *
9265 * Indicates the frame types to use for keep alive data.
9266 *
9267 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9268 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9269 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9270 */
9271enum qca_wlan_keep_alive_data_type {
9272 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9273 QCA_WLAN_KEEP_ALIVE_DATA = 1,
9274 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9275};
9276
9277/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00009278 * enum eht_mcs_config - EHT MCS support configuration
9279 *
9280 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9281 * These values are used in the driver to configure the EHT MCS map to advertise
9282 * Tx/Rx MCS map in EHT capability and these values are applied for all the
9283 * streams supported by the device.
9284 * @EHT_MCS0_7: EHT MCS 0 to 7 support
9285 * @EHT_MCS0_9: EHT MCS 0 to 9 support
9286 * @EHT_MCS0_11: EHT MCS 0 to 11 support
9287 * @EHT_MCS0_13: EHT MCS 0 to 13 support
9288 */
9289enum eht_mcs_config {
9290 EHT_MCS0_7 = 0,
9291 EHT_MCS0_9 = 1,
9292 EHT_MCS0_11 = 2,
9293 EHT_MCS0_13 = 3,
9294};
9295
9296/**
9297 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9298 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9299 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9300 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9301 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9302 * multi-link multi radio mode.
9303 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9304 * multi-link multi radio mode.
9305 */
9306enum qca_wlan_eht_mlo_mode {
9307 QCA_WLAN_EHT_MODE_INVALID = 0,
9308 QCA_WLAN_EHT_MLSR = 1,
9309 QCA_WLAN_EHT_EMLSR = 2,
9310 QCA_WLAN_EHT_NON_STR_MLMR = 3,
9311 QCA_WLAN_EHT_STR_MLMR = 4,
9312};
9313
9314/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009315 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9316 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9317 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9318 */
9319enum qca_wlan_emlsr_mode {
9320 QCA_WLAN_EMLSR_MODE_ENTER = 0,
9321 QCA_WLAN_EMLSR_MODE_EXIT = 1,
9322};
9323
9324/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009325 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9326 * support
9327 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9328 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9329 * both DL and UL
9330 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9331 * different link set
9332 */
9333enum qca_wlan_ttlm_negotiation_support {
9334 QCA_WLAN_TTLM_DISABLE = 0,
9335 QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9336 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9337};
9338
9339/**
9340 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9341 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9342 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9343 */
9344enum qca_coex_traffic_shaping_mode {
9345 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9346 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9347};
9348
9349/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009350 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9351 * EHT operating mode control transmit request. These attributes are
9352 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
Hai Shalom74f70d42019-02-11 14:42:39 -08009353 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9354 *
9355 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9356 * indicates the maximum number of spatial streams, NSS, that the STA
9357 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9358 * and is set to NSS - 1.
9359 *
9360 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9361 * indicates the operating channel width supported by the STA for both
9362 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9363 *
9364 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9365 * indicates the all trigger based UL MU operations by the STA.
9366 * 0 - UL MU operations are enabled by the STA.
9367 * 1 - All triggered UL MU transmissions are suspended by the STA.
9368 *
9369 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9370 * indicates the maximum number of space-time streams, NSTS, that
9371 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07009372 *
9373 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9374 * combined with the UL MU Disable subfield and the recipient's setting
9375 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9376 * capabilities to determine which HE TB PPDUs are possible by the
9377 * STA to transmit.
9378 * 0 - UL MU data operations are enabled by the STA.
9379 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9380 * bit is not set, else UL MU Tx is suspended.
9381 *
Sunil Ravi640215c2023-06-28 23:08:09 +00009382 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9383 * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9384 * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9385 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9386 *
9387 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9388 * 320 MHz operating channel width supported by the EHT STA for both reception
9389 * and transmission.
9390 *
9391 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9392 * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9393 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9394 * that the STA supports in transmission for PPDU bandwidths less than or equal
9395 * to 80 MHz.
Hai Shalom74f70d42019-02-11 14:42:39 -08009396 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009397enum qca_wlan_vendor_attr_omi_tx {
Hai Shalom74f70d42019-02-11 14:42:39 -08009398 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9399 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9400 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9401 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9402 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07009403 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00009404 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9405 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9406 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
Hai Shalom74f70d42019-02-11 14:42:39 -08009407
9408 /* keep last */
Sunil Ravi640215c2023-06-28 23:08:09 +00009409 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9410 QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9411 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
Hai Shalom74f70d42019-02-11 14:42:39 -08009412};
9413
Sunil Ravi640215c2023-06-28 23:08:09 +00009414/* deprecated legacy names */
9415#define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9416 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9417#define qca_wlan_vendor_attr_he_omi_tx \
9418 qca_wlan_vendor_attr_omi_tx
9419#define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9420 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9421#define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9422 QCA_WLAN_VENDOR_ATTR_OMI_MAX
9423
Hai Shalom899fcc72020-10-19 14:38:18 -07009424 /**
9425 * enum qca_wlan_vendor_phy_mode - Different PHY modes
9426 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9427 *
9428 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9429 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9430 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9431 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9432 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9433 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9434 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9435 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9436 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9437 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9438 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9439 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9440 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9441 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9442 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9443 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9444 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9445 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9446 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9447 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9448 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9449 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9450 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9451 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9452 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9453 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9454 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9455 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9456 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9457 */
9458enum qca_wlan_vendor_phy_mode {
9459 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9460 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9461 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9462 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9463 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9464 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9465 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9466 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9467 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9468 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9469 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9470 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9471 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9472 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9473 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9474 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9475 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9476 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9477 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9478 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9479 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9480 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9481 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9482 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9483 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9484 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9485 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9486 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9487 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9488};
9489
Roshan Pius3a1667e2018-07-03 15:17:14 -07009490/* Attributes for data used by
9491 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9492 */
9493enum qca_wlan_vendor_attr_wifi_test_config {
9494 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9495 /* 8-bit unsigned value to configure the driver to enable/disable
9496 * WMM feature. This attribute is used to configure testbed device.
9497 * 1-enable, 0-disable
9498 */
9499 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9500
9501 /* 8-bit unsigned value to configure the driver to accept/reject
9502 * the addba request from peer. This attribute is used to configure
9503 * the testbed device.
9504 * 1-accept addba, 0-reject addba
9505 */
9506 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9507
9508 /* 8-bit unsigned value to configure the driver to send or not to
9509 * send the addba request to peer.
9510 * This attribute is used to configure the testbed device.
9511 * 1-send addba, 0-do not send addba
9512 */
9513 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9514
9515 /* 8-bit unsigned value to indicate the HE fragmentation support.
9516 * Uses enum he_fragmentation_val values.
9517 * This attribute is used to configure the testbed device to
9518 * allow the advertised hardware capabilities to be downgraded
9519 * for testing purposes.
9520 */
9521 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9522
9523 /* 8-bit unsigned value to indicate the HE MCS support.
9524 * Uses enum he_mcs_config values.
9525 * This attribute is used to configure the testbed device to
9526 * allow the advertised hardware capabilities to be downgraded
9527 * for testing purposes.
9528 */
9529 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9530
9531 /* 8-bit unsigned value to configure the driver to allow or not to
9532 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9533 * This attribute is used to configure the testbed device.
9534 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
9535 */
9536 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9537
9538 /* 8-bit unsigned value to configure the driver to add a
9539 * new BA session or delete the existing BA session for
9540 * given TID. ADDBA command uses the buffer size and TID
9541 * configuration if user specifies the values else default
9542 * value for buffer size is used for all TIDs if the TID
9543 * also not specified. For DEL_BA command TID value is
9544 * required to process the command.
9545 * Uses enum qca_wlan_ba_session_config values.
9546 * This attribute is used to configure the testbed device.
9547 */
9548 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9549
Hai Shalomce48b4a2018-09-05 11:41:35 -07009550 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07009551 * request and response frames.
9552 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07009553 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009554 */
9555 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9556
9557 /* 8-bit unsigned value to configure the buffer size in addba
9558 * request and response frames.
9559 * This attribute is used to configure the testbed device.
9560 */
9561 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9562
9563 /* 8-bit unsigned value to configure the no ack policy.
9564 * To configure no ack policy, access category value is
9565 * required to process the command.
9566 * This attribute is used to configure the testbed device.
9567 * 1 - enable no ack, 0 - disable no ack.
9568 */
9569 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9570
9571 /* 8-bit unsigned value to configure the AC for no ack policy
9572 * This attribute is used to configure the testbed device.
9573 * Uses the enum qca_wlan_ac_type values.
9574 */
9575 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9576
9577 /* 8-bit unsigned value to configure the HE LTF
9578 * This attribute is used to configure the testbed device.
9579 * Uses the enum qca_wlan_he_ltf_cfg values.
9580 */
9581 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9582
9583 /* 8-bit unsigned value to configure the tx beamformee.
9584 * This attribute is used to configure the testbed device.
9585 * 1-enable, 0-disable.
9586 */
9587 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9588
9589 /* 8-bit unsigned value to configure the tx beamformee number
9590 * of space-time streams.
9591 * This attribute is used to configure the testbed device.
9592 * The range of the value is 0 to 8.
9593 */
9594 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9595
9596 /* 8-bit unsigned value to configure the MU EDCA params for given AC
9597 * This attribute is used to configure the testbed device.
9598 * Uses the enum qca_wlan_ac_type values.
9599 */
9600 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9601
9602 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9603 * To configure MU EDCA AIFSN value, MU EDCA access category value
9604 * is required to process the command.
9605 * This attribute is used to configure the testbed device.
9606 */
9607 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9608
9609 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
9610 * given AC.
9611 * To configure MU EDCA ECW min value, MU EDCA access category value
9612 * is required to process the command.
9613 * This attribute is used to configure the testbed device.
9614 */
9615 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9616
9617 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
9618 * given AC.
9619 * To configure MU EDCA ECW max value, MU EDCA access category value
9620 * is required to process the command.
9621 * This attribute is used to configure the testbed device.
9622 */
9623 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9624
9625 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
9626 * To configure MU EDCA timer value, MU EDCA access category value
9627 * is required to process the command.
9628 * This attribute is used to configure the testbed device.
9629 */
9630 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9631
Hai Shalomc9e41a12018-07-31 14:41:42 -07009632 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
9633 * duration.
9634 * This attribute is used to configure the testbed device.
9635 * Uses the enum qca_wlan_he_mac_padding_dur values.
9636 */
9637 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9638
Hai Shalomce48b4a2018-09-05 11:41:35 -07009639 /* 8-bit unsigned value to override the MU EDCA params to defaults
9640 * regardless of the AP beacon MU EDCA params. If it is enabled use
9641 * the default values else use the MU EDCA params from AP beacon.
9642 * This attribute is used to configure the testbed device.
9643 * 1-enable, 0-disable.
9644 */
9645 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9646
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009647 /* 8-bit unsigned value to configure the support for receiving
9648 * an MPDU that contains an operating mode control subfield.
9649 * This attribute is used to configure the testbed device.
9650 * 1-enable, 0-disable.
9651 */
9652 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9653
9654 /* Nested attribute values required to setup the TWT session.
9655 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9656 * information to set up the session. It contains broadcast flags,
9657 * set_up flags, trigger value, flow type, flow ID, wake interval
9658 * exponent, protection, target wake time, wake duration, wake interval
9659 * mantissa. These nested attributes are used to setup a host triggered
9660 * TWT session.
9661 */
9662 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9663
9664 /* This nested attribute is used to terminate the current TWT session.
9665 * It does not currently carry any attributes.
9666 */
9667 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9668
9669 /* This nested attribute is used to suspend the current TWT session.
9670 * It does not currently carry any attributes.
9671 */
9672 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9673
9674 /* Nested attribute values to indicate the request for resume.
9675 * This attribute is used to resume the TWT session.
9676 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9677 * parameters required to resume the TWT session.
9678 */
9679 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9680
Hai Shalom74f70d42019-02-11 14:42:39 -08009681 /* 8-bit unsigned value to set the HE operating mode control
9682 * (OM CTRL) Channel Width subfield.
9683 * The Channel Width subfield indicates the operating channel width
9684 * supported by the STA for both reception and transmission.
9685 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9686 * This setting is cleared with the
9687 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9688 * flag attribute to reset defaults.
9689 * This attribute is used to configure the testbed device.
9690 */
9691 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9692
9693 /* 8-bit unsigned value to configure the number of spatial
9694 * streams in HE operating mode control field.
9695 * This setting is cleared with the
9696 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9697 * flag attribute to reset defaults.
9698 * This attribute is used to configure the testbed device.
9699 */
9700 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9701
9702 /* Flag attribute to configure the UL MU disable bit in
9703 * HE operating mode control field.
9704 * This setting is cleared with the
9705 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9706 * flag attribute to reset defaults.
9707 * This attribute is used to configure the testbed device.
9708 */
9709 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9710
9711 /* Flag attribute to clear the previously set HE operating mode
9712 * control field configuration.
9713 * This attribute is used to configure the testbed device to reset
9714 * defaults to clear any previously set HE operating mode control
9715 * field configuration.
9716 */
9717 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9718
9719 /* 8-bit unsigned value to configure HE single user PPDU
9720 * transmission. By default this setting is disabled and it
9721 * is disabled in the reset defaults of the device configuration.
9722 * This attribute is used to configure the testbed device.
9723 * 1-enable, 0-disable
9724 */
9725 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9726
9727 /* 8-bit unsigned value to configure action frame transmission
9728 * in HE trigger based PPDU transmission.
9729 * By default this setting is disabled and it is disabled in
9730 * the reset defaults of the device configuration.
9731 * This attribute is used to configure the testbed device.
9732 * 1-enable, 0-disable
9733 */
9734 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9735
9736 /* Nested attribute to indicate HE operating mode control field
9737 * transmission. It contains operating mode control field Nss,
9738 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9739 * These nested attributes are used to send HE operating mode control
9740 * with configured values.
Sunil Ravi640215c2023-06-28 23:08:09 +00009741 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
Hai Shalom74f70d42019-02-11 14:42:39 -08009742 * This attribute is used to configure the testbed device.
9743 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009744 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
Hai Shalom74f70d42019-02-11 14:42:39 -08009745
9746 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
9747 * support for the reception of a frame that carries an HE variant
9748 * HT Control field.
9749 * This attribute is used to configure the testbed device.
9750 * 1-enable, 0-disable
9751 */
9752 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9753
Hai Shalom021b0b52019-04-10 11:17:58 -07009754 /* 8-bit unsigned value to configure VHT support in 2.4G band.
9755 * This attribute is used to configure the testbed device.
9756 * 1-enable, 0-disable
9757 */
9758 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9759
9760 /* 8-bit unsigned value to configure HE testbed defaults.
9761 * This attribute is used to configure the testbed device.
9762 * 1-set the device HE capabilities to testbed defaults.
9763 * 0-reset the device HE capabilities to supported config.
9764 */
9765 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9766
9767 /* 8-bit unsigned value to configure TWT request support.
9768 * This attribute is used to configure the testbed device.
9769 * 1-enable, 0-disable.
9770 */
9771 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9772
Hai Shalom899fcc72020-10-19 14:38:18 -07009773 /* 8-bit unsigned value to configure protection for Management
9774 * frames when PMF is enabled for the association.
9775 * This attribute is used to configure the testbed device.
9776 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9777 */
9778 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9779
9780 /* Flag attribute to inject Disassociation frame to the connected AP.
9781 * This attribute is used to configure the testbed device.
9782 */
9783 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9784
9785 /* 8-bit unsigned value to configure an override for the RSNXE Used
9786 * subfield in the MIC control field of the FTE in FT Reassociation
9787 * Request frame.
9788 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9789 * This attribute is used to configure the testbed device.
9790 * This attribute can be configured only when STA is in associated state
9791 * and the configuration is valid until the disconnection.
9792 */
9793 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9794
9795 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9796 * Switch Announcement) when STA is in connected state.
9797 * 0 - Default behavior, 1 - Ignore CSA.
9798 * This attribute is used to configure the testbed device.
9799 * This attribute can be configured only when STA is in associated state
9800 * and the configuration is valid until the disconnection.
9801 */
9802 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9803
9804 /* Nested attribute values required to configure OCI (Operating Channel
9805 * Information). Attributes defined in enum
9806 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9807 * This attribute is used to configure the testbed device.
9808 * This attribute can be configured only when STA is in associated state
9809 * and the configuration is valid until the disconnection.
9810 */
9811 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9812
9813 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
9814 * Query timeout. If this configuration is enabled STA shall not send
9815 * Deauthentication frmae when SA Query times out (mainly, after a
9816 * channel switch when OCV is enabled).
9817 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9818 * This attribute is used to configure the testbed device.
9819 * This attribute can be configured only when STA is in associated state
9820 * and the configuration is valid until the disconnection.
9821 */
9822 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9823
9824 /* 8-bit unsigned value to configure the driver/firmware to start or
9825 * stop transmitting FILS discovery frames.
9826 * 0 - Stop transmitting FILS discovery frames
9827 * 1 - Start transmitting FILS discovery frames
9828 * This attribute is used to configure the testbed device.
9829 * This attribute can be configured only in AP mode and the
9830 * configuration is valid until AP restart.
9831 */
9832 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9833
Hai Shalom60840252021-02-19 19:02:11 -08009834 /* 8-bit unsigned value to configure the driver/firmware to enable or
9835 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9836 * information field.
9837 * 0 - Disable full bandwidth UL MU-MIMO subfield
9838 * 1 - Enable full bandwidth UL MU-MIMO subfield
9839 * This attribute is used to configure the testbed device.
9840 */
9841 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9842
9843 /* 16-bit unsigned value to configure the driver with a specific BSS
9844 * max idle period to advertise in the BSS Max Idle Period element
9845 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9846 * This attribute is used to configure the testbed device.
9847 */
9848 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9849
9850 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
9851 * for data transmission.
9852 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9853 * This attribute is used to configure the testbed device.
9854 */
9855 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9856
9857 /* 8-bit unsigned value to configure the driver to disable data and
9858 * management response frame transmission to test the BSS max idle
9859 * feature.
9860 * 0 - Default behavior, 1 - Disable data and management response Tx.
9861 * This attribute is used to configure the testbed device.
9862 */
9863 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9864
9865 /* 8-bit unsigned value to configure the driver/firmware to enable or
9866 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9867 * information field.
9868 * 0 - Disable Punctured Preamble Rx subfield
9869 * 1 - Enable Punctured Preamble Rx subfield
9870 * This attribute is used to configure the testbed device.
9871 */
9872 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9873
Hai Shaloma20dcd72022-02-04 13:43:00 -08009874 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9875 * requirement mismatch for 6 GHz connection.
9876 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9877 * This attribute is used to configure the testbed device.
9878 */
9879 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9880
9881 /* 8-bit unsigned value to configure the driver to allow 6 GHz
9882 * connection with all security modes.
9883 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9884 * modes.
9885 * This attribute is used for testing purposes.
9886 */
9887 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9888
9889 /* 8-bit unsigned value to configure the driver to transmit data with
9890 * ER SU PPDU type.
9891 *
9892 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9893 * This attribute is used for testing purposes.
9894 */
9895 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9896
9897 /* 8-bit unsigned value to configure the driver to use Data or
9898 * Management frame type for keep alive data.
9899 * Uses enum qca_wlan_keep_alive_data_type values.
9900 *
9901 * This attribute is used for testing purposes.
9902 */
9903 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9904
9905 /* 8-bit unsigned value to configure the driver to use scan request
9906 * BSSID value in Probe Request frame RA(A1) during the scan. The
9907 * driver saves this configuration and applies this setting to all user
9908 * space scan requests until the setting is cleared. If this
9909 * configuration is set, the driver uses the BSSID value from the scan
9910 * request to set the RA(A1) in the Probe Request frames during the
9911 * scan.
9912 *
9913 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9914 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9915 * This attribute is used for testing purposes.
9916 */
9917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9918
9919 /* 8-bit unsigned value to configure the driver to enable/disable the
9920 * BSS max idle period support.
9921 *
9922 * 0 - Disable the BSS max idle support.
9923 * 1 - Enable the BSS max idle support.
9924 * This attribute is used for testing purposes.
9925 */
9926 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9927
9928 /* 8-bit unsigned value to configure the driver/firmware to enable or
9929 * disable Rx control frame to MultiBSS subfield in the HE MAC
9930 * capabilities information field.
9931 * 0 - Disable Rx control frame to MultiBSS subfield
9932 * 1 - Enable Rx control frame to MultiBSS subfield
9933 * This attribute is used to configure the testbed device.
9934 */
9935 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9936
9937 /* 8-bit unsigned value to configure the driver/firmware to enable or
9938 * disable Broadcast TWT support subfield in the HE MAC capabilities
9939 * information field.
9940 * 0 - Disable Broadcast TWT support subfield
9941 * 1 - Enable Broadcast TWT support subfield
9942 * This attribute is used to configure the testbed device.
9943 */
9944 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9945
Sunil Ravia04bd252022-05-02 22:54:18 -07009946 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9947 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9948 * to 1, and if the firmware supports this capability too, the STA
9949 * advertises this capability to the AP over Association Request frame.
9950 * This attribute will not have any effect on legacy devices with no
9951 * IEEE 802.11be support.
9952 * 0 - Default behavior
9953 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9954 * This attribute is used to configure the testbed device.
9955 */
9956 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9957
Sunil Ravi89eba102022-09-13 21:04:37 -07009958 /* 8-bit unsigned value to configure the driver to enable/disable the
9959 * periodic sounding for Tx beamformer functionality. The default
9960 * behavior uses algorithm to do sounding based on packet stats.
9961 *
9962 * 0 - Default behavior.
9963 * 1 - Enable the periodic sounding for Tx beamformer.
9964 * This attribute is used for testing purposes.
9965 */
9966 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9967
Sunil Ravi77d572f2023-01-17 23:58:31 +00009968 /* 8-bit unsigned value to configure beamformee SS EHT capability
9969 * to indicate the maximum number of spatial streams that the STA
9970 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9971 * The range of the value is 3 to 7.
9972 * This attribute is used to configure the testbed device.
9973 */
9974 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9975
9976 /* 8-bit unsigned value to configure beamformee SS EHT capability
9977 * to indicate the maximum number of spatial streams that the STA
9978 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9979 * The range of the value is 3 to 7.
9980 * This attribute is used to configure the testbed device.
9981 */
9982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9983
9984 /* 8-bit unsigned value to configure beamformee SS EHT capability
9985 * to indicate the maximum number of spatial streams that the STA
9986 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9987 * The range of the value is 3 to 7.
9988 * This attribute is used to configure the testbed device.
9989 */
9990 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9991
9992 /* 8-bit unsigned value to configure the driver to exclude station
9993 * profile in Probe Request frame Multi-Link element.
9994 * 0 - Default behavior, sends the Probe Request frame with station
9995 * profile data included in the Multi-Link element.
9996 * 1 - Exclude station profile in Probe Request frame Multi-Link
9997 * element.
9998 * This attribute is used to configure the testbed device.
9999 */
10000 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10001
10002 /* 8-bit unsigned value to configure EHT testbed defaults.
10003 * This attribute is used to configure the testbed device.
10004 * 1 - Set the device EHT capabilities to testbed defaults.
10005 * 0 - Reset the device EHT capabilities to supported config.
10006 */
10007 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10008
10009 /* 8-bit unsigned value to indicate the EHT MCS support.
10010 * Uses enum eht_mcs_config values.
10011 * This attribute is used to configure the testbed device to
10012 * allow the advertised hardware capabilities to be downgraded
10013 * for testing purposes.
10014 */
10015 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10016
10017 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
10018 * Rate Limit capability.
10019 * This attribute is used to configure the testbed device.
10020 * 0 - Indicates no maximum supported data rate limitation.
10021 * 1 - Indicates the maximum supported data rate is the lower of
10022 * the 1500 Mb/s and the maximum supported data rate.
10023 */
10024 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10025
Sunil Ravi640215c2023-06-28 23:08:09 +000010026 /* 8-bit unsigned value to configure the support for receiving an MPDU
10027 * that contains an EHT operating mode control subfield.
10028 * This attribute is used to configure the testbed device.
10029 * 1-enable, 0-disable.
10030 */
10031 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10032
10033 /* 8-bit unsigned value to configure the driver with EMLSR padding delay
10034 * subfield value.
10035 *
10036 * 0 - 0 us
10037 * 1 - 32 us
10038 * 2 - 64 us
10039 * 3 - 128 us
10040 * 4 - 256 us
10041 * 5-255 - Reserved
10042 *
10043 * This attribute is used for testing purposes.
10044 */
10045 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10046
10047 /*
10048 * 8-bit unsigned value to indicate the firmware to force the active MLO
10049 * links to power save mode for the configured number of beacon periods.
10050 * This allows the firmware to suspend STA links for X beacon periods
10051 * and remain asleep even if the AP advertises TIM as opposed to regular
10052 * power save mode where STA links wake up if the AP indicates that it
10053 * has buffered data to send.
10054 * This attribute is used to configure the testbed device.
10055 */
10056 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10057
10058 /*
10059 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10060 * to enable simultaneous transmission of PPDUs on all active links.
10061 * 0 - Default behavior
10062 * 1 - Enter STR mode for simultaneous data transmission on all links
10063 */
10064 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10065
Sunil Ravi2a14cf12023-11-21 00:54:38 +000010066 /* Nested attribute to indicate EHT MLO links on which powersave to be
10067 * enabled. It contains link ID attributes. These nested attributes are
10068 * of the type u8 and are used to enable the powersave on associated
10069 * MLO links corresponding to the link IDs provided in the command.
10070 * This attribute is used to configure the testbed device.
10071 */
10072 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10073
10074 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10075 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10076 * testcase, STA can request information of non-Tx BSS through Tx BSS
10077 * by configuring non-Tx BSS MLD ID within the ML probe request that
10078 * is transmitted via host initiated scan request.
10079 *
10080 * This attribute is used for testing purposes.
10081 */
10082 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10083
Sunil Ravi72e01222024-03-09 01:25:43 +000010084 /* 8-bit unsigned value to configure the SCS traffic description
10085 * support in the EHT capabilities of an Association Request frame.
10086 * 1-enable, 0-disable
10087 * This attribute is used to configure the testbed device.
10088 */
10089 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
10090
Roshan Pius3a1667e2018-07-03 15:17:14 -070010091 /* keep last */
10092 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10093 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10094 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10095};
10096
10097/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010098 * enum qca_wlan_twt_operation - Operation of the config TWT request
10099 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -080010100 * The response for the respective operations can be either synchronous or
10101 * asynchronous (wherever specified). If synchronous, the response to this
10102 * operation is obtained in the corresponding vendor command reply to the user
10103 * space. For the asynchronous case the response is obtained as an event with
10104 * the same operation type.
10105 *
10106 * Drivers shall support either of these modes but not both simultaneously.
10107 * This support for asynchronous mode is advertised through the flag
10108 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10109 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -070010110 *
10111 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10112 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010113 * qca_wlan_vendor_attr_twt_setup. Depending upon the
10114 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10115 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010116 *
10117 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10118 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010119 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010120 *
10121 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10122 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10123 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010124 * This terminate can either get triggered by the user space or can as well be
10125 * a notification from the firmware if it initiates a terminate.
10126 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10127 * the request from user space can either be a synchronous or asynchronous
10128 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010129 *
10130 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10131 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10132 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010133 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10134 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010135 *
10136 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10137 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10138 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010139 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10140 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10141 * capability, this is either a synchronous or asynchronous operation.
10142 *
10143 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10144 * combination of suspend and resume in a single request. Required parameters
10145 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10146 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10147 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10148 * capability, this is either a synchronous or asynchronous operation.
10149 *
10150 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10151 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10152 * session is setup. It's a synchronous operation.
10153 *
10154 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10155 * Valid only after the TWT session is setup. It's a synchronous operation.
10156 *
10157 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10158 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10159 * operation.
10160 *
Sunil Ravia04bd252022-05-02 22:54:18 -070010161 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -080010162 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010163 *
10164 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10165 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10166 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -070010167 *
10168 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10169 * related information for example TWT required bit in AP capabilities etc.
10170 * The reason for the notification is sent using
10171 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -070010172 */
10173enum qca_wlan_twt_operation {
10174 QCA_WLAN_TWT_SET = 0,
10175 QCA_WLAN_TWT_GET = 1,
10176 QCA_WLAN_TWT_TERMINATE = 2,
10177 QCA_WLAN_TWT_SUSPEND = 3,
10178 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -080010179 QCA_WLAN_TWT_NUDGE = 5,
10180 QCA_WLAN_TWT_GET_STATS = 6,
10181 QCA_WLAN_TWT_CLEAR_STATS = 7,
10182 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10183 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010184 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -070010185 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -070010186};
10187
10188/**
10189 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10190 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10191 *
10192 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
10193 * operation of this request. Possible values are defined in enum
10194 * qca_wlan_twt_operation. The parameters for the respective operation is
10195 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10196 *
10197 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10198 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -080010199 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010200 * enum qca_wlan_vendor_attr_twt_set_param, or
10201 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -070010202 *
10203 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10204 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10205 * The values used by this attribute are defined in
10206 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -070010207 */
10208enum qca_wlan_vendor_attr_config_twt {
10209 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10210 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10211 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -070010212 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -070010213
10214 /* keep last */
10215 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10216 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10217 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10218};
10219
10220/**
Roshan Pius3a1667e2018-07-03 15:17:14 -070010221 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
10222 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10223 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
10224 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
10225 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
10226 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
10227 * statistics of an unassociated station by specifying the MAC address in
10228 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
10229 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
10230 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
10231 * the statistics of all unassociated stations by specifying the Broadcast MAC
10232 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
10233 * above procedure. In the response, driver shall specify statistics
10234 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
10235 */
10236enum qca_wlan_vendor_attr_bss_filter {
10237 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
10238 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
10239 /* Other BSS filter type, unsigned 8 bit value. One of the values
10240 * in enum qca_wlan_vendor_bss_filter_type.
10241 */
10242 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
10243 /* Other BSS filter action, unsigned 8 bit value. One of the values
10244 * in enum qca_wlan_vendor_bss_filter_action.
10245 */
10246 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
10247 /* Array of nested attributes where each entry is the statistics
10248 * information of the specified station that belong to another BSS.
10249 * Attributes for each entry are taken from enum
10250 * qca_wlan_vendor_bss_filter_sta_stats.
10251 * Other BSS station configured in
10252 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
10253 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
10254 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
10255 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
10256 */
10257 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
10258
10259 /* keep last */
10260 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
10261 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
10262 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
10263};
10264
10265/**
10266 * enum qca_wlan_vendor_bss_filter_type - Type of
10267 * filter used in other BSS filter operations. Used by the vendor command
10268 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10269 *
10270 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
10271 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
10272 */
10273enum qca_wlan_vendor_bss_filter_type {
10274 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
10275 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
10276};
10277
10278/**
10279 * enum qca_wlan_vendor_bss_filter_action - Type of
10280 * action in other BSS filter operations. Used by the vendor command
10281 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10282 *
10283 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
10284 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
10285 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
10286 */
10287enum qca_wlan_vendor_bss_filter_action {
10288 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
10289 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
10290 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
10291};
10292
10293/**
10294 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
10295 * the statistics of a specific unassociated station belonging to another BSS.
10296 * The statistics provides information of the unassociated station
10297 * filtered by other BSS operation - such as MAC, signal value.
10298 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10299 *
10300 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
10301 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
10302 * of the station. Unsigned 8 bit number containing RSSI.
10303 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
10304 * driver for the last received RSSI. Unsigned 64 bit number containing
10305 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -070010306 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
10307 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010308 */
10309enum qca_wlan_vendor_bss_filter_sta_stats {
10310 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
10311 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
10312 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
10313 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070010314 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -070010315
10316 /* keep last */
10317 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
10318 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
10319 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
10320};
10321
Hai Shalomce48b4a2018-09-05 11:41:35 -070010322/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10323 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10324 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10325 */
10326enum qca_wlan_nan_ext_subcmd_type {
10327 /* Subcmd of type NAN Enable Request */
10328 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10329 /* Subcmd of type NAN Disable Request */
10330 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10331};
10332
10333/**
10334 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10335 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10336 */
10337enum qca_wlan_vendor_attr_nan_params {
10338 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10339 /* Carries NAN command for firmware component. Every vendor command
10340 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10341 * payload containing the NAN command. NLA_BINARY attribute.
10342 */
10343 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10344 /* Indicates the type of NAN command sent with
10345 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10346 * describes the possible range of values. This attribute is mandatory
10347 * if the command being issued is either
10348 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10349 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10350 */
10351 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10352 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10353 * band. This attribute is mandatory when command type is
10354 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10355 */
10356 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10357 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10358 * band. This attribute is optional and should be included when command
10359 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10360 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10361 */
10362 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10363
10364 /* keep last */
10365 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10366 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10367 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10368};
10369
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010370/**
Hai Shalom60840252021-02-19 19:02:11 -080010371 * qca_wlan_twt_setup_state: Represents the TWT session states.
10372 *
10373 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10374 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10375 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10376 */
10377enum qca_wlan_twt_setup_state {
10378 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10379 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10380 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10381};
10382
10383/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010384 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10385 * TWT (Target Wake Time) setup request. These attributes are sent as part of
10386 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -070010387 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10388 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010389 *
10390 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10391 * Disable (flag attribute not present) - Individual TWT
10392 * Enable (flag attribute present) - Broadcast TWT.
10393 * Individual means the session is between the STA and the AP.
10394 * This session is established using a separate negotiation between
10395 * STA and AP.
10396 * Broadcast means the session is across multiple STAs and an AP. The
10397 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010398 * This is used in
10399 * 1. TWT SET Request and Response
10400 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010401 *
10402 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10403 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -070010404 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010405 *
10406 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10407 * Enable (flag attribute present) - TWT with trigger support.
10408 * Disable (flag attribute not present) - TWT without trigger support.
10409 * Trigger means the AP will send the trigger frame to allow STA to send data.
10410 * Without trigger, the STA will wait for the MU EDCA timer before
10411 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -070010412 * This is used in
10413 * 1. TWT SET Request and Response
10414 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010415 *
10416 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10417 * 0 - Announced TWT - In this mode, STA may skip few service periods to
10418 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10419 * NULL frame to AP.
10420 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010421 * This is a required parameter for
10422 * 1. TWT SET Request and Response
10423 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010424 *
10425 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10426 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -070010427 * If not provided then dialog ID will be set to zero.
10428 * This is an optional parameter for
10429 * 1. TWT SET Request and Response
10430 * 2. TWT GET Request and Response
10431 * 3. TWT TERMINATE Request and Response
10432 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -080010433 * Flow ID values from 0 to 254 represent a single TWT session
10434 * Flow ID value of 255 represents all TWT sessions for the following
10435 * 1. TWT TERMINATE Request and Response
10436 * 2. TWT SUSPEND Request and Response
10437 * 4. TWT CLEAR STATISTICS request
10438 * 5. TWT GET STATISTICS request and response
10439 * If an invalid dialog ID is provided, status
10440 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010441 *
10442 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10443 * This attribute (exp) is used along with the mantissa to derive the
10444 * wake interval using the following formula:
10445 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10446 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010447 * This is a required parameter for
10448 * 1. TWT SET Request and Response
10449 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010450 *
10451 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10452 * Enable (flag attribute present) - Protection required.
10453 * Disable (flag attribute not present) - Protection not required.
10454 * If protection is enabled, then the AP will use protection
10455 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -070010456 * This is used in
10457 * 1. TWT SET Request and Response
10458 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010459 *
10460 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10461 * This attribute is used as the SP offset which is the offset from
10462 * TSF after which the wake happens. The units are in microseconds. If
10463 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -070010464 * This is an optional parameter for
10465 * 1. TWT SET Request and Response
10466 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010467 *
10468 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -070010469 * This is the duration of the service period. This is specified as
10470 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
10471 * This is a required parameter for
10472 * 1. TWT SET Request and Response
10473 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010474 *
10475 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
10476 * This attribute is used to configure wake interval mantissa.
10477 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -070010478 * This is a required parameter for
10479 * 1. TWT SET Request and Response
10480 * 2. TWT GET Response
10481 *
10482 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
10483 * This field is applicable for TWT response only.
10484 * This contains status values in enum qca_wlan_vendor_twt_status
10485 * and is passed to the userspace. This is used in TWT SET operation.
10486 * This is a required parameter for
10487 * 1. TWT SET Response
10488 * 2. TWT TERMINATE Response
10489 * 3. TWT SUSPEND Response
10490 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -080010491 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -070010492 *
10493 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
10494 * This field is applicable for TWT response only.
10495 * This field contains response type from the TWT responder and is
10496 * passed to the userspace. The values for this field are defined in
10497 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10498 * response.
10499 *
10500 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -080010501 * In TWT setup command this field contains absolute TSF that will
10502 * be used by TWT requester during setup.
10503 * In TWT response this field contains absolute TSF value of the
10504 * wake time received from the TWT responder and is passed to
10505 * the userspace.
10506 * This is an optional parameter for
10507 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -070010508 * This is a required parameter for
10509 * 1. TWT SET Response
10510 * 2. TWT GET Response
10511 *
10512 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10513 * Enable (flag attribute present) - Indicates that the TWT responder
10514 * supports reception of TWT information frame from the TWT requestor.
10515 * Disable (flag attribute not present) - Indicates that the responder
10516 * doesn't support reception of TWT information frame from requestor.
10517 * This is used in
10518 * 1. TWT SET Response
10519 * 2. TWT GET Response
10520 *
10521 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10522 * Represents the MAC address of the peer for which the TWT session
10523 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -080010524 * client.
10525 * In AP mode, this is a required parameter in response for
10526 * 1. TWT SET
10527 * 2. TWT GET
10528 * 3. TWT TERMINATE
10529 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -070010530 * In STA mode, this is an optional parameter in request and response for
10531 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010532 * In AP mode, this is a required parameter in request for
10533 * 1. TWT GET
10534 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -080010535 *
10536 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10537 * Minimum tolerance limit of wake interval parameter in microseconds.
10538 *
10539 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10540 * Maximum tolerance limit of wake interval parameter in microseconds.
10541 *
10542 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10543 * Minimum tolerance limit of wake duration parameter in microseconds.
10544 *
10545 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10546 * Maximum tolerance limit of wake duration parameter in microseconds.
10547 *
10548 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10549 * TWT state for the given dialog id. The values for this are represented
10550 * by enum qca_wlan_twt_setup_state.
10551 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010552 *
10553 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10554 * This attribute is used to configure wake interval mantissa.
10555 * The unit is microseconds. This attribute, when specified, takes
10556 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10557 * This parameter is used for
10558 * 1. TWT SET Request and Response
10559 * 2. TWT GET Response
10560 *
10561 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10562 * This attribute is used to configure Broadcast TWT ID.
10563 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10564 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10565 * This parameter is used for
10566 * 1. TWT SET Request
10567 * 2. TWT TERMINATE Request
10568 *
10569 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10570 * This attribute is used to configure Broadcast TWT recommendation.
10571 * The Broadcast TWT Recommendation subfield contains a value that indicates
10572 * recommendations on the types of frames that are transmitted by TWT
10573 * scheduled STAs and scheduling AP during the broadcast TWT SP.
10574 * The allowed values are 0 - 3.
10575 * This parameter is used for
10576 * 1. TWT SET Request
10577 *
10578 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10579 * This attribute is used to configure Broadcast TWT Persistence.
10580 * The Broadcast TWT Persistence subfield indicates the number of
10581 * TBTTs during which the Broadcast TWT SPs corresponding to this
10582 * broadcast TWT Parameter set are present. The number of beacon intervals
10583 * during which the Broadcast TWT SPs are present is equal to the value in the
10584 * Broadcast TWT Persistence subfield plus 1 except that the value 255
10585 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10586 * This parameter is used for
10587 * 1. TWT SET Request
10588 *
10589 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10590 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
10591 * from TWT response frame.
10592 * This parameter is used for
10593 * 1. TWT SET Response
10594 * 2. TWT GET Response
10595 *
10596 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10597 * This attribute is used to configure the announce timeout value (in us) in
10598 * the firmware. This timeout value is only applicable for the announced TWT. If
10599 * the timeout value is non-zero the firmware waits up to the timeout value to
10600 * use Data frame as an announcement frame. If the timeout value is 0 the
10601 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
10602 * start. The default value in the firmware is 0.
10603 * This parameter is used for
10604 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -070010605 *
10606 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
10607 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010608 */
10609enum qca_wlan_vendor_attr_twt_setup {
10610 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10611 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10612 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10613 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10614 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10615 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10616 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10617 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10618 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10619 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10620 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10621
Hai Shalom899fcc72020-10-19 14:38:18 -070010622 /* TWT Response only attributes */
10623 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10624 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10625 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10626 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10627
10628 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -080010629 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10630 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10631 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10632 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10633 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -070010634
Hai Shaloma20dcd72022-02-04 13:43:00 -080010635 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10636
10637 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10638 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10639 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10640
10641 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10642 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10643
Sunil Ravi036cec52023-03-29 11:35:17 -070010644 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
10645
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010646 /* keep last */
10647 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10648 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10649 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10650};
10651
10652/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010653 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10654 * TWT operation
10655 *
10656 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10657 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10658 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10659 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10660 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10661 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10662 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10663 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10664 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10665 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10666 * request/response frame
10667 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10668 * frame
10669 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10670 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10671 * unknown reason
10672 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10673 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -080010674 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10675 * invalid IE in the received TWT frame
10676 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10677 * the responder are not in the specified range
10678 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10679 * session due to request from the responder. Used on the TWT_TERMINATE
10680 * notification from the firmware.
10681 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10682 * session due to roaming. Used on the TWT_TERMINATE notification from the
10683 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010684 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10685 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
10686 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10687 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10688 * request due to roaming in progress.
10689 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10690 * setup request due to channel switch in progress.
10691 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10692 * request due to scan in progress.
10693 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10694 * terminate an existing TWT session on power save exit request from userspace.
10695 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -070010696 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10697 * required bit in its capabilities.
10698 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10699 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -070010700 */
10701enum qca_wlan_vendor_twt_status {
10702 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10703 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10704 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10705 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10706 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10707 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10708 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10709 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10710 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10711 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10712 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10713 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10714 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10715 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -080010716 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10717 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10718 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10719 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010720 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10721 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10722 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10723 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10724 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -070010725 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10726 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -070010727};
10728
10729/**
10730 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010731 * TWT (Target Wake Time) resume request. These attributes are sent as part of
10732 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -070010733 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10734 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010735 *
10736 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -070010737 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10738 * These attributes are used as the SP offset which is the offset from TSF after
10739 * which the wake happens. The units are in microseconds. Please note that
10740 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10741 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10742 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10743 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010744 *
10745 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10746 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -070010747 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10748 * and 4 for 64 bits.
10749 *
10750 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10751 * Flow ID is the unique identifier for each TWT session. This attribute
10752 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -080010753 * Flow ID values from 0 to 254 represent a single TWT session
10754 * Flow ID value of 255 represents all TWT sessions.
10755 * If an invalid dialog id is provided, status
10756 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -070010757 *
10758 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10759 * Represents the MAC address of the peer to which TWT Resume is
10760 * being sent. This is used in AP mode to represent the respective
10761 * client and is a required parameter. In STA mode, this is an optional
10762 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010763 */
10764enum qca_wlan_vendor_attr_twt_resume {
10765 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10766 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10767 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070010768 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10769 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10770 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010771
10772 /* keep last */
10773 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10774 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10775 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10776};
10777
10778/**
Hai Shalom60840252021-02-19 19:02:11 -080010779 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10780 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10781 * and resume in a single request. These attributes are sent as part of
10782 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10783 *
10784 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10785 * Flow ID is the unique identifier for each TWT session. This attribute
10786 * represents the respective TWT session to suspend and resume.
10787 * Flow ID values from 0 to 254 represent a single TWT session
10788 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10789 * and response.
10790 * If an invalid dialog id is provided, status
10791 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10792 *
10793 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10794 * This attribute is used as the SP offset which is the offset from
10795 * TSF after which the wake happens. The units are in microseconds.
10796 *
10797 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10798 * This attribute represents the next TWT subfield size.
10799 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10800 * and 4 for 64 bits.
10801 *
10802 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10803 * Represents the MAC address of the peer to which TWT Suspend and Resume is
10804 * being sent. This is used in AP mode to represent the respective
10805 * client and is a required parameter. In STA mode, this is an optional
10806 * parameter.
10807 *
10808 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10809 * This field contains absolute TSF value of the time at which the TWT
10810 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -070010811 *
10812 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10813 * This field will be used when device supports Flexible TWT.
10814 * This field contains an offset value by which to shift the starting time
10815 * of the next service period. The value of offset can be negative or positive.
10816 * If provided, this attribute will override
10817 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10818 *
Sunil Ravi036cec52023-03-29 11:35:17 -070010819 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
10820 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -080010821 */
10822enum qca_wlan_vendor_attr_twt_nudge {
10823 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10824 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10825 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10826 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10827 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10828 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070010829 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -070010830 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -080010831
10832 /* keep last */
10833 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10834 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10835 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10836};
10837
10838/**
10839 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10840 * TWT (Target Wake Time) get statistics and clear statistics request.
10841 * These attributes are sent as part of
10842 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10843 *
10844 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10845 * Flow ID is the unique identifier for each TWT session. This attribute
10846 * represents the respective TWT session for get and clear TWT statistics.
10847 * Flow ID values from 0 to 254 represent a single TWT session
10848 * Flow ID value of 255 represents all TWT sessions in
10849 * 1) TWT GET STATISTICS request and response
10850 * 2) TWT CLEAR STATISTICS request
10851 *
10852 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10853 * Represents the MAC address of the peer for which TWT Statistics
10854 * is required.
10855 * In AP mode this is used to represent the respective
10856 * client and is a required parameter for
10857 * 1) TWT GET STATISTICS request and response
10858 * 2) TWT CLEAR STATISTICS request and response
10859 * In STA mode, this is an optional parameter.
10860 *
10861 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10862 * This is the duration of the service period in microseconds.
10863 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10864 *
10865 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10866 * Average of the actual wake duration observed so far. Unit is microseconds.
10867 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10868 *
10869 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10870 * The number of TWT service periods elapsed so far.
10871 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10872 *
10873 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10874 * This is the minimum value of the wake duration observed across
10875 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10876 * microseconds.
10877 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10878 *
10879 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
10880 * This is the maximum value of wake duration observed across
10881 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10882 * microseconds.
10883 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10884 *
10885 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10886 * Average number of MPDUs transmitted successfully across
10887 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10888 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10889 *
10890 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10891 * Average number of MPDUs received successfully across
10892 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10893 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10894 *
10895 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10896 * Average number of bytes transmitted successfully across
10897 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10898 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10899 *
10900 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
10901 * Average number of bytes received successfully across
10902 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10903 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10904 *
10905 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10906 * Status of the TWT GET STATISTICS request.
10907 * This contains status values in enum qca_wlan_vendor_twt_status
10908 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10909 */
10910enum qca_wlan_vendor_attr_twt_stats {
10911 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10912 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10913 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10914 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10915 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10916 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10917 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10918 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10919 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10920 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10921 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10922 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10923 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10924
10925 /* keep last */
10926 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10927 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10928 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10929};
10930
10931/**
10932 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
10933 * supported by the device and the peer.
10934 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10935 *
10936 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10937 * TWT non-scheduling STA. This capability is advertised in the HE
10938 * Capability/Extended Capabilities information element in the
10939 * Association Request frame by the device.
10940 *
10941 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
10942 * the TWT scheduling AP. This capability is advertised in the Extended
10943 * Capabilities/HE Capabilities information element.
10944 *
10945 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
10946 * for the broadcast TWT functionality. On the responder side, this indicates
10947 * support for the role of broadcast TWT scheduling functionality. This
10948 * capability is advertised in the HE Capabilities information element.
10949 *
10950 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
10951 * This capability is advertised in the HE Capabilities information element.
10952 *
10953 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10954 * that it mandates the associated HE STAs to support TWT. This capability is
10955 * advertised by AP in the HE Operation Parameters field of the HE Operation
10956 * information element.
10957 */
10958enum qca_wlan_twt_capa {
10959 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10960 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10961 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10962 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
10963 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
10964};
10965
10966/**
10967 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
10968 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10969 * operation.
10970 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10971 * Represents the MAC address of the peer for which the TWT capabilities
10972 * are being queried. This is used in AP mode to represent the respective
10973 * client. In STA mode, this is an optional parameter.
10974 *
10975 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10976 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10977 * enum qca_wlan_twt_capa.
10978 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10979 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10980 * enum qca_wlan_twt_capa.
10981 */
10982enum qca_wlan_vendor_attr_twt_capability {
10983 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10984 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10985 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10986 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10987
10988 /* keep last */
10989 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10990 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10991 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10992};
10993
10994/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010995 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10996 * TWT (Target Wake Time) related parameters. It is used when
10997 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10998 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10999 *
11000 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
11001 * This attribute configures AC parameters to be used for all TWT
11002 * sessions in AP mode.
11003 * Uses the enum qca_wlan_ac_type values.
11004 */
11005enum qca_wlan_vendor_attr_twt_set_param {
11006 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
11007 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
11008
11009 /* keep last */
11010 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
11011 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
11012 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
11013};
11014
11015/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011016 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
11017 * the TWT responder
11018 *
11019 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
11020 * parameters that are different from TWT requesting STA suggested
11021 * or demanded TWT parameters
11022 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
11023 * parameters that are different from TWT requesting STA TWT suggested
11024 * or demanded parameters
11025 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
11026 * setup
11027 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
11028 * setup.
11029 */
11030enum qca_wlan_vendor_twt_setup_resp_type {
11031 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
11032 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
11033 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
11034 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
11035};
11036
11037/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011038 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11039 * Represents the setup type being requested for TWT.
11040 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11041 * parameters but relying on AP to fill the parameters during the negotiation.
11042 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11043 * values which the AP may accept or AP may provide alternative parameters
11044 * which the STA may accept.
11045 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11046 * alternate parameters than the requested ones.
11047 */
11048enum qca_wlan_vendor_twt_setup_req_type {
11049 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11050 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11051 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
11052};
11053
11054/**
11055 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
11056 *
11057 * Indicates the type of roam scan event sent by firmware/driver.
11058 *
11059 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
11060 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
11061 */
11062enum qca_wlan_roam_scan_event_type {
11063 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
11064 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
11065};
11066
11067/**
11068 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
11069 *
11070 * Indicates the reason for triggering roam scan by firmware/driver.
11071 *
11072 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
11073 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
11074 */
11075enum qca_wlan_roam_scan_trigger_reason {
11076 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
11077 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
11078};
11079
11080/**
11081 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
11082 * roam scan related details from driver/firmware to user space. enum values
11083 * are used for NL attributes sent with
11084 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
11085 */
11086enum qca_wlan_vendor_attr_roam_scan {
11087 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
11088 /* Encapsulates type of roam scan event being reported. enum
11089 * qca_wlan_roam_scan_event_type describes the possible range of
11090 * values. u32 attribute.
11091 */
11092 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
11093 /* Encapsulates reason for triggering roam scan. enum
11094 * qca_wlan_roam_scan_trigger_reason describes the possible range of
11095 * values. u32 attribute.
11096 */
11097 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
11098
11099 /* keep last */
11100 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
11101 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
11102 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
11103};
11104
11105/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011106 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11107 * transport modes and is used by the attribute
11108 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
11109 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11110 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
11111 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11112 * data. The data shall be encapsulated within
11113 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
11114 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11115 */
11116enum qca_wlan_vendor_cfr_data_transport_modes {
11117 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11118 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11119};
11120
11121/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011122 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11123 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11124 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070011125 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
11126 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
11127 * with phase
11128 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011129 */
11130enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011131 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070011132 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11133 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11134};
11135
11136/**
11137 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11138 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11139 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11140 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11141 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11142 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11143 * is provided by one or more of below attributes:
11144 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11145 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11146 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11147 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11148 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11149 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11150 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11151 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11152 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11153 */
11154enum qca_wlan_vendor_cfr_capture_type {
11155 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11156 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11157 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11158 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11159 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11160 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011161};
11162
11163/**
11164 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11165 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11166 * Channel Frequency Response capture parameters and enable periodic CFR
11167 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070011168 *
11169 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11170 * MAC address of peer. This is for CFR version 1 only.
11171 *
11172 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11173 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
11174 * capture. If this attribute is not present, peer CFR capture is disabled.
11175 *
11176 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11177 * BW of measurement, attribute uses the values in enum nl80211_chan_width
11178 * Supported values: 20, 40, 80, 80+80, 160.
11179 * Note that all targets may not support all bandwidths.
11180 * This attribute is mandatory for version 1 if attribute
11181 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11182 *
11183 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11184 * Periodicity of CFR measurement in milliseconds.
11185 * Periodicity should be a multiple of Base timer.
11186 * Current Base timer value supported is 10 milliseconds (default).
11187 * 0 for one shot capture.
11188 * This attribute is mandatory for version 1 if attribute
11189 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11190 *
11191 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11192 * Method used to capture Channel Frequency Response.
11193 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11194 * This attribute is mandatory for version 1 if attribute
11195 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11196 *
11197 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11198 * Enable periodic CFR capture.
11199 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11200 * If this attribute is not present, periodic CFR capture is disabled.
11201 *
11202 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
11203 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11204 * can't be enabled at same time. This attribute is mandatory if target
11205 * support both versions and use one of them.
11206 *
11207 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11208 * This attribute is mandatory for version 2 if
11209 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11210 * Bits 15:0 bitfield indicates which group is to be enabled.
11211 * Bits 31:16 Reserved for future use.
11212 *
11213 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11214 * CFR capture duration in microsecond. This attribute is mandatory for
11215 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11216 *
11217 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11218 * CFR capture interval in microsecond. This attribute is mandatory for
11219 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11220 *
11221 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11222 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11223 * This attribute is mandatory for version 2.
11224 *
11225 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11226 * Bitfield indicating which user in the current UL MU transmissions are
11227 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
11228 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
11229 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
11230 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
11231 * reserved for future use. This is for CFR version 2 only.
11232 *
11233 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11234 * Indicates the number of consecutive RX frames to be skipped before CFR
11235 * capture is enabled again. This is for CFR version 2 only.
11236 *
11237 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11238 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11239 *
11240 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11241 * the following group attributes:
11242 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11243 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11244 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11245 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11246 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11247 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11248 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11249 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11250 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11251 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11252 *
11253 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11254 * Target supports multiple groups for some configurations. The group number
11255 * can be any value between 0 and 15. This is for CFR version 2 only.
11256 *
11257 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11258 * Transmitter address which is used to filter frames. This MAC address takes
11259 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
11260 * version 2 only.
11261 *
11262 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11263 * Receiver address which is used to filter frames. This MAC address takes
11264 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
11265 * version 2 only.
11266 *
11267 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11268 * Mask of transmitter address which is used to filter frames. This is for CFR
11269 * version 2 only.
11270 *
11271 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11272 * Mask of receiver address which is used to filter frames. This is for CFR
11273 * version 2 only.
11274 *
11275 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11276 * Indicates frames with a specific NSS will be filtered for CFR capture.
11277 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
11278 * capture to be done for frames matching the NSS specified within this bitmask.
11279 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
11280 * bit 0 : NSS 1
11281 * bit 1 : NSS 2
11282 * ...
11283 * bit 7 : NSS 8
11284 *
11285 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11286 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
11287 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
11288 * capture to be done for frames matching the bandwidths specified within this
11289 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
11290 * numerated in enum nl80211_band (although not all bands may be supported
11291 * by a given device).
11292 *
11293 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11294 * Management frames matching the subtype filter categories will be filtered in
11295 * by MAC for CFR capture. This is a bitmask in which each bit represents the
11296 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
11297 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
11298 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
11299 *
11300 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11301 * Control frames matching the subtype filter categories will be filtered in by
11302 * MAC for CFR capture. This is a bitmask in which each bit represents the
11303 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
11304 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
11305 *
11306 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11307 * Data frames matching the subtype filter categories will be filtered in by
11308 * MAC for CFR capture. This is a bitmask in which each bit represents the
11309 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
11310 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011311 *
11312 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11313 * Userspace can use this attribute to specify the driver about which transport
11314 * mode shall be used by the driver to send CFR data to userspace. Uses values
11315 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11316 * not present, the driver shall use the default transport mechanism which is
11317 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11318 *
11319 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11320 * Userspace can use this attribute to specify the nl port id of the application
11321 * which receives the CFR data and processes it further so that the drivers can
11322 * unicast the netlink events to a specific application. Optionally included
11323 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11324 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11325 * shall multicast the netlink events when this attribute is not included.
11326 *
11327 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11328 * This attribute will be used by the driver to encapsulate and send CFR data
11329 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11330 * asynchronous event when the driver is configured to send CFR data using
11331 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070011332 *
11333 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
11334 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011335 */
11336enum qca_wlan_vendor_peer_cfr_capture_attr {
11337 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011338 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011339 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011340 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011341 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011342 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011343 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070011344 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11345 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11346 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11347 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11348 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11349 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11350 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11351 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11352 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11353 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11354 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
11355 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
11356 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
11357 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
11358 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
11359 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
11360 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
11361 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
11362 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011363 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
11364 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
11365 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070011366 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011367
11368 /* Keep last */
11369 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
11370 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
11371 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
11372};
11373
Hai Shalom74f70d42019-02-11 14:42:39 -080011374/**
11375 * enum qca_wlan_throughput_level - Current throughput level
11376 *
11377 * Indicates the current level of throughput calculated by the driver. The
11378 * driver may choose different thresholds to decide whether the throughput level
11379 * is low or medium or high based on variety of parameters like physical link
11380 * capacity of the current connection, the number of packets being dispatched
11381 * per second, etc. The throughput level events might not be consistent with the
11382 * actual current throughput value being observed.
11383 *
11384 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
11385 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
11386 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
11387 */
11388enum qca_wlan_throughput_level {
11389 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
11390 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
11391 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
11392};
11393
11394/**
11395 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
11396 * report throughput changes from the driver to user space. enum values are used
11397 * for netlink attributes sent with
11398 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
11399 */
11400enum qca_wlan_vendor_attr_throughput_change {
11401 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
11402 /* Indicates the direction of throughput in which the change is being
11403 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
11404 */
11405 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
11406 /* Indicates the newly observed throughput level. enum
11407 * qca_wlan_throughput_level describes the possible range of values.
11408 * u8 attribute.
11409 */
11410 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
11411 /* Indicates the driver's guidance on the new value to be set to
11412 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
11413 * driver may optionally include this attribute.
11414 */
11415 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
11416 /* Indicates the driver's guidance on the new value to be set to
11417 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
11418 * values are from -31 to 31. The driver may optionally include this
11419 * attribute.
11420 */
11421 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
11422 /* Indicates the driver's guidance on the new value to be set to
11423 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
11424 * optionally include this attribute.
11425 */
11426 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
11427
11428 /* keep last */
11429 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
11430 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
11431 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
11432};
11433
11434/**
11435 * enum qca_coex_config_profiles - This enum defines different types of
11436 * traffic streams that can be prioritized one over the other during coex
11437 * scenarios.
11438 * The types defined in this enum are categorized in the below manner.
11439 * 0 - 31 values corresponds to WLAN
11440 * 32 - 63 values corresponds to BT
11441 * 64 - 95 values corresponds to Zigbee
11442 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
11443 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
11444 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
11445 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
11446 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
11447 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
11448 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
11449 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
11450 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
11451 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
11452 * @QCA_BT_A2DP: Prioritize BT A2DP
11453 * @QCA_BT_BLE: Prioritize BT BLE
11454 * @QCA_BT_SCO: Prioritize BT SCO
11455 * @QCA_ZB_LOW: Prioritize Zigbee Low
11456 * @QCA_ZB_HIGH: Prioritize Zigbee High
11457 */
11458enum qca_coex_config_profiles {
11459 /* 0 - 31 corresponds to WLAN */
11460 QCA_WIFI_STA_DISCOVERY = 0,
11461 QCA_WIFI_STA_CONNECTION = 1,
11462 QCA_WIFI_STA_CLASS_3_MGMT = 2,
11463 QCA_WIFI_STA_DATA = 3,
11464 QCA_WIFI_STA_ALL = 4,
11465 QCA_WIFI_SAP_DISCOVERY = 5,
11466 QCA_WIFI_SAP_CONNECTION = 6,
11467 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
11468 QCA_WIFI_SAP_DATA = 8,
11469 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070011470 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080011471 /* 32 - 63 corresponds to BT */
11472 QCA_BT_A2DP = 32,
11473 QCA_BT_BLE = 33,
11474 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070011475 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080011476 /* 64 - 95 corresponds to Zigbee */
11477 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070011478 QCA_ZB_HIGH = 65,
11479 QCA_ZB_CASE_MAX = 95,
11480 /* 0xff is default value if the u8 profile value is not set. */
11481 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
11482};
11483
11484/**
11485 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
11486 * This enum defines the valid set of values of coex configuration types. These
11487 * values may used by attribute
11488 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
11489 *
11490 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
11491 * weights to default values.
11492 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
11493 * weights with configurability value.
11494 */
11495enum qca_vendor_attr_coex_config_types {
11496 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11497 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11498 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080011499};
11500
11501/**
11502 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
11503 *
11504 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
11505 * length array of 8-bit values from enum qca_coex_config_profiles.
11506 * FW will prioritize the profiles in the order given in the array encapsulated
11507 * in this attribute.
11508 * For example:
11509 * -----------------------------------------------------------------------
11510 * | 1 | 34 | 32 | 65 |
11511 * -----------------------------------------------------------------------
11512 * If the attribute contains the values defined in above array then it means
11513 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
11514 * 2) BT_SCO has priority over BT_A2DP.
11515 * 3) BT_A2DP has priority over ZIGBEE HIGH.
11516 * Profiles which are not listed in this array shall not be preferred over the
11517 * profiles which are listed in the array as a part of this attribute.
11518 */
11519enum qca_vendor_attr_coex_config {
11520 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11521 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
11522
11523 /* Keep last */
11524 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
11525 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
11526 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
11527};
11528
11529/**
Hai Shalom021b0b52019-04-10 11:17:58 -070011530 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11531 * attributes
11532 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11533 *
11534 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11535 * Indicate config type.
11536 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
11537 *
11538 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11539 * Indicate the Priority 1 profiles.
11540 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11541 * In same priority level, maximum to 4 profiles can be set here.
11542 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11543 * Indicate the Priority 2 profiles.
11544 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11545 * In same priority level, maximum to 4 profiles can be set here.
11546 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11547 * Indicate the Priority 3 profiles.
11548 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11549 * In same priority level, maximum to 4 profiles can be set here.
11550 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11551 * Indicate the Priority 4 profiles.
11552 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11553 * In same priority level, maximum to 4 profiles can be set here.
11554 * NOTE:
11555 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11556 * arrangement:
11557 * 1: In the same u32 attribute (priority x), the profiles enum values own
11558 * same priority level.
11559 * 2: 0xff is default value if the u8 profile value is not set.
11560 * 3: max to 4 rules/profiles in same priority level.
11561 * 4: max to 4 priority level (priority 1 - priority 4)
11562 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
11563 * hybrid rules not support.
11564 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11565 * remain blank to reset all parameters.
11566 * For example:
11567 *
11568 * If the attributes as follow:
11569 * priority 1:
11570 * ------------------------------------
11571 * | 0xff | 0 | 1 | 2 |
11572 * ------------------------------------
11573 * priority 2:
11574 * -------------------------------------
11575 * | 0xff | 0xff | 0xff | 32 |
11576 * -------------------------------------
11577 * priority 3:
11578 * -------------------------------------
11579 * | 0xff | 0xff | 0xff | 65 |
11580 * -------------------------------------
11581 * then it means:
11582 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11583 * owns same priority level.
11584 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11585 * has priority over BT_A2DP and ZB_HIGH.
11586 * 3: BT_A2DP has priority over ZB_HIGH.
11587 */
Hai Shalom021b0b52019-04-10 11:17:58 -070011588enum qca_vendor_attr_coex_config_three_way {
11589 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11590 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11591 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11592 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11593 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11594 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11595
11596 /* Keep last */
11597 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11598 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11599 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11600};
11601
11602/**
Hai Shalom74f70d42019-02-11 14:42:39 -080011603 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
11604 *
11605 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
11606 * (STA/AP) for the connected link.
11607 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
11608 * &struct nl80211_sta_flag_update for the respective connected link. MAC
11609 * address of the peer represented by
11610 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
11611 */
11612enum qca_wlan_vendor_attr_link_properties {
11613 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
11614 /* 1 - 3 are reserved */
11615 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
11616 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
11617
11618 /* Keep last */
11619 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
11620 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
11621 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
11622};
11623
Hai Shalom021b0b52019-04-10 11:17:58 -070011624/**
11625 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11626 * This enum defines the valid set of values of peer stats cache types. These
11627 * values are used by attribute
11628 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
11629 *
11630 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
11631 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
11632 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
11633 * statistics
11634 */
11635enum qca_vendor_attr_peer_stats_cache_type {
11636 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11637
11638 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11639 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11640 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11641};
11642
11643/**
11644 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11645 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11646 * Information in these attributes is used to flush peer rate statistics from
11647 * the driver to user application.
11648 *
11649 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11650 * Indicate peer statistics cache type.
11651 * The statistics types are 32-bit values from
11652 * enum qca_vendor_attr_peer_stats_cache_type.
11653 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11654 * of size 6 octets, representing the peer MAC address.
11655 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11656 * containing buffer of statistics to send to application layer entity.
11657 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11658 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070011659 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
11660 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070011661 */
11662enum qca_wlan_vendor_attr_peer_stats_cache_params {
11663 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11664
11665 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11666 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11667 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11668 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070011669 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070011670
11671 /* Keep last */
11672 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11673 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11674 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11675};
11676
11677/**
11678 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
11679 * This enum defines all the possible states of Zigbee, which can be
11680 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
11681 *
11682 * @ZIGBEE_IDLE: Zigbee in idle state
11683 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
11684 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
11685 * @ZIGBEE_JOIN: Zigbee joining network
11686 * @ZIGBEE_NETWORK_UP: Zigbee network is up
11687 * @ZIGBEE_HMI: Zigbee in HMI mode
11688 */
11689enum qca_mpta_helper_attr_zigbee_state {
11690 ZIGBEE_IDLE = 0,
11691 ZIGBEE_FORM_NETWORK = 1,
11692 ZIGBEE_WAIT_JOIN = 2,
11693 ZIGBEE_JOIN = 3,
11694 ZIGBEE_NETWORK_UP = 4,
11695 ZIGBEE_HMI = 5,
11696};
11697
11698/*
11699 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
11700 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
11701 */
11702enum qca_mpta_helper_vendor_attr {
11703 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
11704 /* Optional attribute used to update Zigbee state.
11705 * enum qca_mpta_helper_attr_zigbee_state.
11706 * NLA_U32 attribute.
11707 */
11708 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
11709 /* Optional attribute used to configure WLAN duration for Shape-OCS
11710 * during interrupt.
11711 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
11712 * Value range 0 ~ 300 (ms).
11713 * NLA_U32 attribute.
11714 */
11715 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
11716 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
11717 * during interrupt.
11718 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
11719 * Value range 0 ~ 300 (ms).
11720 * NLA_U32 attribute.
11721 */
11722 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
11723 /* Optional attribute used to configure WLAN duration for Shape-OCS
11724 * monitor period.
11725 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11726 * Value range 0 ~ 300 (ms)
11727 * NLA_U32 attribute
11728 */
11729 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11730 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
11731 * monitor period.
11732 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11733 * Value range 0 ~ 300 (ms)
11734 * NLA_U32 attribute
11735 */
11736 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
11737 /* Optional attribute used to configure OCS interrupt duration.
11738 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11739 * Value range 1000 ~ 20000 (ms)
11740 * NLA_U32 attribute
11741 */
11742 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
11743 /* Optional attribute used to configure OCS monitor duration.
11744 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11745 * Value range 1000 ~ 20000 (ms)
11746 * NLA_U32 attribute
11747 */
11748 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
11749 /* Optional attribute used to notify WLAN firmware the current Zigbee
11750 * channel.
11751 * Value range 11 ~ 26
11752 * NLA_U32 attribute
11753 */
11754 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11755 /* Optional attribute used to configure WLAN mute duration.
11756 * Value range 0 ~ 400 (ms)
11757 * NLA_U32 attribute
11758 */
11759 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
11760
11761 /* keep last */
11762 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11763 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11764 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11765};
11766
Hai Shalom81f62d82019-07-22 12:10:00 -070011767/**
11768 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11769 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
11770 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11771 *
11772 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11773 * to request the driver to start reporting Beacon frames.
11774 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
11775 * request the driver to stop reporting Beacon frames.
11776 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11777 * userspace to report received Beacon frames.
11778 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11779 * to indicate that the driver is going to pause reporting Beacon frames.
11780 */
11781enum qca_wlan_vendor_beacon_reporting_op_types {
11782 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11783 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11784 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11785 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11786};
11787
11788/**
11789 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
11790 * of reasons for which the driver is pausing reporting Beacon frames. Will be
11791 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11792 *
11793 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11794 * reasons.
11795 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11796 * driver/firmware is starting a scan.
11797 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11798 * driver/firmware disconnects from the ESS and indicates the disconnection to
11799 * userspace (non-seamless roaming case). This reason code will be used by the
11800 * driver/firmware to indicate stopping of beacon report events. Userspace will
11801 * need to start beacon reporting again (if desired) by sending vendor command
11802 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11803 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11804 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11805 * completed.
11806 */
11807enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11808 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11809 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11810 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11811};
11812
11813/*
11814 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11815 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11816 */
11817enum qca_wlan_vendor_attr_beacon_reporting_params {
11818 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11819 /* Specifies the type of operation that the vendor command/event is
11820 * intended for. Possible values for this attribute are defined in
11821 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11822 */
11823 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11824 /* Optionally set by userspace to request the driver to report Beacon
11825 * frames using asynchronous vendor events when the
11826 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11827 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11828 * If this flag is not set, the driver will only update Beacon frames in
11829 * cfg80211 scan cache but not send any vendor events.
11830 */
11831 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11832 /* Optionally used by userspace to request the driver/firmware to report
11833 * Beacon frames periodically when the
11834 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11835 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11836 * u32 attribute, indicates the period of Beacon frames to be reported
11837 * and in the units of beacon interval.
11838 * If this attribute is missing in the command, then the default value
11839 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11840 * Zero is an invalid value.
11841 * If a valid value is received for this attribute, the driver will
11842 * update the cfg80211 scan cache periodically as per the value received
11843 * in this attribute in addition to updating the cfg80211 scan cache
11844 * when there is significant change in Beacon frame IEs.
11845 */
11846 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11847 /* Used by the driver to encapsulate the SSID when the
11848 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11849 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11850 * u8 array with a maximum size of 32.
11851 *
11852 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11853 * will be taken from the SSID element of the received Beacon frame.
11854 *
11855 * When generating beacon report from Multiple BSSID Beacon frame and if
11856 * the BSSID of the current connected BSS matches the BSSID of the
11857 * transmitting BSS, the SSID will be taken from the SSID element of the
11858 * received Beacon frame.
11859 *
11860 * When generating beacon report from Multiple BSSID Beacon frame and if
11861 * the BSSID of the current connected BSS matches the BSSID of one of
11862 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
11863 * included in the nontransmitted BSS profile whose derived BSSID is
11864 * same as the BSSID of the current connected BSS. When there is no
11865 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11866 * of current connected* BSS, this attribute will not be present.
11867 */
11868 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11869 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
11870 * currently connected to when the
11871 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11872 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11873 * fixed size of 6 bytes.
11874 *
11875 * When generating beacon report from a Multiple BSSID beacon and the
11876 * current connected BSSID matches one of the nontransmitted BSSIDs in a
11877 * Multiple BSSID set, this BSSID will be that particular nontransmitted
11878 * BSSID and not the transmitted BSSID (i.e., the transmitting address
11879 * of the Beacon frame).
11880 */
11881 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11882 /* Used by the driver to encapsulate the frequency in MHz on which
11883 * the Beacon frame was received when the
11884 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11885 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11886 * u32 attribute.
11887 */
11888 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11889 /* Used by the driver to encapsulate the Beacon interval
11890 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11891 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11892 * u16 attribute. The value will be copied from the Beacon frame and the
11893 * units are TUs.
11894 */
11895 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11896 /* Used by the driver to encapsulate the Timestamp field from the Beacon
11897 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
11898 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11899 * u64 attribute.
11900 */
11901 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11902 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11903 * Beacon frame is received in the driver when the
11904 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11905 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11906 * the units of nanoseconds. This value is expected to have accuracy of
11907 * about 10 ms.
11908 */
11909 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11910 /* Used by the driver to encapsulate the IEs of the Beacon frame from
11911 * which this event is generated when the
11912 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11913 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11914 */
11915 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11916 /* Used by the driver to specify the reason for the driver/firmware to
11917 * pause sending beacons to userspace when the
11918 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11919 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11920 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11921 * attribute.
11922 */
11923 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11924 /* Used by the driver to specify whether the driver will automatically
11925 * resume reporting beacon events to userspace later (for example after
11926 * the ongoing off-channel activity is completed etc.) when the
11927 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11928 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11929 */
11930 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11931 /* Optionally set by userspace to request the driver not to resume
11932 * beacon reporting after a pause is completed, when the
11933 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11934 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11935 * If this flag is set, the driver will not resume beacon reporting
11936 * after any pause in beacon reporting is completed. Userspace has to
11937 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11938 * to initiate beacon reporting again. If this flag is set in the recent
11939 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11940 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11941 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11942 * set by the driver. Setting this flag until and unless there is a
11943 * specific need is not recommended as there is a chance of some beacons
11944 * received after pause command and next start command being not
11945 * reported.
11946 */
11947 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070011948 /* Attribute used for padding for 64-bit alignment */
11949 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070011950
11951 /* Keep last */
11952 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11953 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11954 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11955};
11956
11957/**
11958 * enum qca_vendor_interop_issues_ap_type - Interop issue types
11959 * This enum defines the valid set of values of interop issue types. These
11960 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
11961 *
11962 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
11963 * when the STA's Qpower feature is enabled.
11964 */
11965enum qca_vendor_interop_issues_ap_type {
11966 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
11967 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
11968};
11969
11970/**
11971 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
11972 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
11973 *
11974 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
11975 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
11976 * 32-bit unsigned value. The values defined in enum
11977 * qca_vendor_interop_issues_ap_type are used.
11978 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
11979 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
11980 * It is present and mandatory for the command but is not used for the event
11981 * since only a single BSSID is reported in an event.
11982 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
11983 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
11984 * attribute in command case and without such encapsulation in the event case.
11985 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
11986 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
11987 */
11988enum qca_vendor_attr_interop_issues_ap {
11989 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
11990 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
11991 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
11992 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
11993 /* keep last */
11994 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
11995 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
11996 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
11997};
11998
Hai Shalomc3565922019-10-28 11:58:20 -070011999/**
12000 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
12001 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
12002 *
12003 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
12004 * a virtual device.
12005 *
12006 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
12007 * a physical device.
12008 */
12009enum qca_vendor_oem_device_type {
12010 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
12011 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
12012};
12013
12014/**
12015 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
12016 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
12017 *
Hai Shalom899fcc72020-10-19 14:38:18 -070012018 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
12019 * used to set/query the data to/from the firmware. On query, the same
12020 * attribute is used to carry the respective data in the reply sent by the
12021 * driver to userspace. The request to set/query the data and the format of the
12022 * respective data from the firmware are embedded in the attribute. The
12023 * maximum size of the attribute payload is 1024 bytes.
12024 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
12025 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012026 *
12027 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
12028 * based on this field. This optional attribute is included to specify whether
12029 * the device type is a virtual device or a physical device for the
12030 * command/event. This attribute can be omitted for a virtual device (default)
12031 * command/event.
12032 * This u8 attribute is used to carry information for the device type using
12033 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070012034 *
12035 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
12036 * is set when the userspace queries data from the firmware. This attribute
12037 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012038 */
12039enum qca_wlan_vendor_attr_oem_data_params {
12040 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
12041 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
12042 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070012043 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070012044
12045 /* keep last */
12046 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
12047 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
12048 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
12049};
12050
12051/**
12052 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
12053 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
12054 *
12055 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
12056 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012057 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
12058 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
12059 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070012060 *
12061 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
12062 * Starting center frequency in MHz.
12063 *
12064 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
12065 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012066 *
12067 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
12068 * s32 attribute, optional. It is a per frequency range attribute.
12069 * The maximum TX power limit from user space is to be applied on an
12070 * unrestricted interface for corresponding frequency range. It is also
12071 * possible that the actual TX power may be even lower than this cap due to
12072 * other considerations such as regulatory compliance, SAR, etc. In absence of
12073 * this attribute the driver shall follow current behavior which means
12074 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
12075 * power derived by the driver based on regulatory/SAR during interface up.
12076 *
12077 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
12078 * u32 attribute, optional. Indicates all the interface types which are
12079 * restricted for all frequency ranges provided in
12080 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
12081 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
12082 * This attribute encapsulates bitmasks of interface types defined in
12083 * enum nl80211_iftype. If an interface is marked as restricted the driver must
12084 * move to a safe channel and if no safe channel is available the driver shall
12085 * terminate that interface functionality. In absence of this attribute,
12086 * interface (SAP/P2P) can still continue operating on an unsafe channel with
12087 * TX power limit derived from either
12088 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
12089 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
12090 * is not provided.
Sunil Raviaf399a82024-05-05 20:56:55 +000012091 *
12092 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional.
12093 * This specifies the interface index (netdev) for which the corresponding
12094 * configurations are applied. If the interface index is not specified, the
12095 * configurations are applied based on
12096 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK.
12097 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this
12098 * attribute shall have the matching nl80211_iftype.
Hai Shalomc3565922019-10-28 11:58:20 -070012099 */
12100enum qca_wlan_vendor_attr_avoid_frequency_ext {
12101 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
12102 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
12103 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
12104 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012105 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
12106 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Sunil Raviaf399a82024-05-05 20:56:55 +000012107 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6,
Hai Shalomc3565922019-10-28 11:58:20 -070012108
12109 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
12110 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
12111 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
12112};
12113
12114/*
12115 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
12116 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
12117 */
12118enum qca_wlan_vendor_attr_add_sta_node_params {
12119 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
12120 /* 6 byte MAC address of STA */
12121 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
12122 /* Authentication algorithm used by the station of size u16;
12123 * defined in enum nl80211_auth_type.
12124 */
12125 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
12126
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012127 /*
12128 * This flag attribute is set if the node being added is an
12129 * MLD STA node.
12130 */
12131 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
12132
Hai Shalomc3565922019-10-28 11:58:20 -070012133 /* keep last */
12134 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12135 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12136 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12137};
12138
12139/**
12140 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12141 * This enum defines the valid set of values of BT coex chain mode.
12142 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12143 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12144 *
Sunil Ravi89eba102022-09-13 21:04:37 -070012145 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12146 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12147 * separated, hybrid mode.
12148 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12149 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070012150 */
12151enum qca_btc_chain_mode {
12152 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070012153 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12154 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070012155};
12156
Sunil Ravi89eba102022-09-13 21:04:37 -070012157/* deprecated legacy name */
12158#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12159
Hai Shalomc3565922019-10-28 11:58:20 -070012160/**
12161 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12162 * chain mode.
12163 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12164 *
12165 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12166 * Indicates the BT coex chain mode, are 32-bit values from
12167 * enum qca_btc_chain_mode. This attribute is mandatory.
12168 *
12169 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12170 * If set, vdev should be restarted when BT coex chain mode is updated.
12171 * This attribute is optional.
12172 */
12173enum qca_vendor_attr_btc_chain_mode {
12174 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12175 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12176 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12177
12178 /* Keep last */
12179 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12180 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12181 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12182};
12183
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012184/**
12185 * enum qca_vendor_wlan_sta_flags - Station feature flags
12186 * Bits will be set to 1 if the corresponding features are enabled.
12187 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12188 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12189 for the station
12190 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12191 for the station
12192 */
12193enum qca_vendor_wlan_sta_flags {
12194 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12195 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12196 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12197};
12198
12199/**
12200 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12201 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12202 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12203 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12204 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12205 */
12206enum qca_vendor_wlan_sta_guard_interval {
12207 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12208 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12209 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12210 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12211};
12212
12213/**
12214 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12215 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12216 *
12217 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070012218 * Required attribute in request for AP mode only, 6-byte MAC address,
12219 * corresponding to the station's MAC address for which information is
12220 * requested. For STA mode this is not required as the info always correspond
12221 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012222 *
12223 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12224 * Optionally used in response, u32 attribute, contains a bitmap of different
12225 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12226 *
12227 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12228 * Optionally used in response, u32 attribute, possible values are defined in
12229 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12230 * Guard interval used by the station.
12231 *
12232 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12233 * Optionally used in response, u32 attribute, used in AP mode only.
12234 * Value indicates the number of data frames received from station with retry
12235 * bit set to 1 in FC.
12236 *
12237 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12238 * Optionally used in response, u32 attribute, used in AP mode only.
12239 * Counter for number of data frames with broadcast or multicast address in
12240 * the destination address received from the station.
12241 *
12242 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12243 * Optionally used in response, u32 attribute, used in both STA and AP modes.
12244 * Value indicates the number of data frames successfully transmitted only
12245 * after retrying the packets and for which the TX status has been updated
12246 * back to host from target.
12247 *
12248 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012249 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012250 * Value indicates the number of data frames not transmitted successfully even
12251 * after retrying the packets for the number of times equal to the total number
12252 * of retries allowed for that packet and for which the TX status has been
12253 * updated back to host from target.
12254 *
12255 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12256 * Optionally used in response, u32 attribute, used in AP mode only.
12257 * Counter in the target for the number of data frames successfully transmitted
12258 * to the station.
12259 *
12260 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12261 * Optionally used in response, u32 attribute, used in AP mode only.
12262 * Value indicates the number of data frames successfully transmitted only
12263 * after retrying the packets.
12264 *
12265 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012266 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012267 * Value indicates the number of data frames not transmitted successfully even
12268 * after retrying the packets for the number of times equal to the total number
12269 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070012270 *
12271 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12272 * the STA mode only. Represent the number of probe requests sent by the STA
12273 * while attempting to roam on missing certain number of beacons from the
12274 * connected AP. If queried in the disconnected state, this represents the
12275 * count for the last connected state.
12276 *
12277 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12278 * the STA mode. Represent the number of probe responses received by the station
12279 * while attempting to roam on missing certain number of beacons from the
12280 * connected AP. When queried in the disconnected state, this represents the
12281 * count when in last connected state.
12282 *
12283 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12284 * STA mode only. Represents the total number of frames sent out by STA
12285 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12286 * only for the connect session. Represents the count of last connected session,
12287 * when queried in the disconnected state.
12288 *
12289 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12290 * Total number of RTS sent out by the STA. This data is maintained per connect
12291 * session. Represents the count of last connected session, when queried in the
12292 * disconnected state.
12293 *
12294 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12295 * STA mode.Represent the number of RTS transmission failure that reach retry
12296 * limit. This data is maintained per connect session. Represents the count of
12297 * last connected session, when queried in the disconnected state.
12298 *
12299 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12300 * the STA mode. Represent the total number of non aggregated frames transmitted
12301 * by the STA. This data is maintained per connect session. Represents the count
12302 * of last connected session, when queried in the disconnected state.
12303 *
12304 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12305 * STA mode. Represent the total number of aggregated frames transmitted by the
12306 * STA. This data is maintained per connect session. Represents the count of
12307 * last connected session, when queried in the disconnected state.
12308 *
12309 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12310 * the STA mode. Represents the number of received frames with a good PLCP. This
12311 * data is maintained per connect session. Represents the count of last
12312 * connected session, when queried in the disconnected state.
12313 *
12314 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12315 * used in the STA mode. Represents the number of occasions that no valid
12316 * delimiter is detected by A-MPDU parser. This data is maintained per connect
12317 * session. Represents the count of last connected session, when queried in the
12318 * disconnected state.
12319 *
12320 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12321 * STA mode. Represents the number of frames for which CRC check failed in the
12322 * MAC. This data is maintained per connect session. Represents the count of
12323 * last connected session, when queried in the disconnected state.
12324 *
12325 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12326 * STA mode. Represents the number of unicast ACKs received with good FCS. This
12327 * data is maintained per connect session. Represents the count of last
12328 * connected session, when queried in the disconnected state.
12329 *
12330 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12331 * mode. Represents the number of received Block Acks. This data is maintained
12332 * per connect session. Represents the count of last connected session, when
12333 * queried in the disconnected state.
12334 *
12335 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12336 * mode. Represents the number of beacons received from the connected BSS. This
12337 * data is maintained per connect session. Represents the count of last
12338 * connected session, when queried in the disconnected state.
12339 *
12340 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12341 * STA mode. Represents the number of beacons received by the other BSS when in
12342 * connected state (through the probes done by the STA). This data is maintained
12343 * per connect session. Represents the count of last connected session, when
12344 * queried in the disconnected state.
12345 *
12346 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12347 * the STA mode. Represents the number of received DATA frames with good FCS and
12348 * matching Receiver Address when in connected state. This data is maintained
12349 * per connect session. Represents the count of last connected session, when
12350 * queried in the disconnected state.
12351 *
12352 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
12353 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
12354 * when in the connected state. This data is maintained per connect session.
12355 * Represents the count of last connected session, when queried in the
12356 * disconnected state.
12357 *
12358 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
12359 * STA mode. This represents the target power in dBm for the transmissions done
12360 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
12361 * connect session. Represents the count of last connected session, when
12362 * queried in the disconnected state.
12363 *
12364 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
12365 * STA mode. This represents the Target power in dBm for transmissions done to
12366 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12367 * session. Represents the count of last connected session, when queried in the
12368 * disconnected state.
12369 *
12370 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
12371 * STA mode. This represents the Target power in dBm for transmissions done to
12372 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
12373 * Represents the count of last connected session, when queried in the
12374 * disconnected state.
12375 *
12376 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
12377 * STA mode. This represents the Target power in dBm for transmissions done to
12378 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12379 * session. Represents the count of last connected session, when queried in
12380 * the disconnected state.
12381 *
12382 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012383 * STA mode. This represents the Target power in dBm for transmissions done
Hai Shalomfdcde762020-04-02 11:19:20 -070012384 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
12385 * Represents the count of last connected session, when queried in the
12386 * disconnected state.
12387 *
12388 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
12389 * in the STA mode. This represents the Nested attribute representing the
12390 * overflow counts of each receive buffer allocated to the hardware during the
12391 * STA's connection. The number of hw buffers might vary for each WLAN
12392 * solution and hence this attribute represents the nested array of all such
12393 * HW buffer count. This data is maintained per connect session. Represents
12394 * the count of last connected session, when queried in the disconnected state.
12395 *
12396 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
12397 * allowed as per the regulatory requirements for the current or last connected
12398 * session. Used in the STA mode.
12399 *
12400 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
12401 * (dBm) used by the station in its latest unicast frame while communicating
12402 * to the AP in the connected state. When queried in the disconnected state,
12403 * this represents the TX power used by the STA with last AP communication
12404 * when in connected state.
12405 *
12406 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
12407 * level used to adjust the RX sensitivity. Represents the current ANI level
12408 * when queried in the connected state. When queried in the disconnected
12409 * state, this corresponds to the latest ANI level at the instance of
12410 * disconnection.
12411 *
12412 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
12413 * the raw information elements from Beacon frames. Represents the Beacon frames
12414 * of the current BSS in the connected state. When queried in the disconnected
12415 * state, these IEs correspond to the last connected BSSID.
12416 *
12417 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
12418 * containing the raw information elements from Probe Response frames.
12419 * Represents the Probe Response frames of the current BSS in the connected
12420 * state. When queried in the disconnected state, these IEs correspond to the
12421 * last connected BSSID.
12422 *
12423 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
12424 * disconnect reason for the last disconnection if the disconnection is
12425 * triggered from the host driver. The values are referred from
12426 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070012427 *
12428 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
12429 * only. This represents the number of group addressed robust management frames
12430 * received from this station with an invalid MIC or a missing MME when PMF is
12431 * enabled.
12432 *
12433 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
12434 * only. This represents the number of group addressed robust management frames
12435 * received from this station with the packet number less than or equal to the
12436 * last received packet number when PMF is enabled.
12437 *
12438 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
12439 * mode only. This represents the number of Beacon frames received from this
12440 * station with an invalid MIC or a missing MME when beacon protection is
12441 * enabled.
12442 *
12443 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
12444 * only. This represents number of Beacon frames received from this station with
12445 * the packet number less than or equal to the last received packet number when
12446 * beacon protection is enabled.
12447 *
12448 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
12449 * STA mode only. The driver uses this attribute to populate the connection
12450 * failure reason codes and the values are defined in
12451 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
12452 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
12453 * a connection failure indication from the driver. The driver shall not
12454 * include this attribute in response to the
12455 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
12456 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080012457 *
12458 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
12459 * used by the station in its last TX frame while communicating to the AP in the
12460 * connected state. When queried in the disconnected state, this represents the
12461 * rate used by the STA in the last TX frame to the AP when it was connected.
12462 * This attribute is used for STA mode only.
12463 *
12464 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
12465 * This represents the rate index used by the STA for the last TX frame to the
12466 * AP. When queried in the disconnected state, this gives the last RIX used by
12467 * the STA in the last TX frame to the AP when it was connected.
12468 *
12469 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
12470 * mode only. This represents the number of times the STA TSF goes out of sync
12471 * from the AP after the connection. If queried in the disconnected state, this
12472 * gives the count of TSF out of sync for the last connection.
12473 *
12474 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
12475 * mode only. This represents the roam trigger reason for the last roaming
12476 * attempted by the firmware. This can be queried either in connected state or
12477 * disconnected state. Each bit of this attribute represents the different
12478 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
12479 *
12480 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
12481 * only. This represents the roam fail reason for the last failed roaming
12482 * attempt by the firmware. Different roam failure reason codes are specified
12483 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
12484 * connected state or disconnected state.
12485 *
12486 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
12487 * STA mode only. This represents the roam invoke fail reason for the last
12488 * failed roam invoke. Different roam invoke failure reason codes
12489 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
12490 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012491 *
12492 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
12493 * This represents the average congestion duration of uplink frames in MAC
12494 * queue in unit of ms. This can be queried either in connected state or
12495 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070012496 *
12497 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
12498 * values, used in AP mode. This represents the MPDU packet count per MCS
12499 * rate value of TX packets. Every index of this nested attribute corresponds
12500 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
12501 * queried in connected state.
12502 *
12503 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
12504 * values, used in AP mode. This represents the MPDU packet count per MCS
12505 * rate value of RX packets. Every index of this nested attribute corresponds
12506 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
12507 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070012508 *
12509 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
12510 * 64-bit alignment.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012511 */
12512enum qca_wlan_vendor_attr_get_sta_info {
12513 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12514 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12515 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12516 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12517 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12518 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12519 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12520 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12521 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12522 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12523 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070012524 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12525 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12526 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12527 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12528 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12529 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12530 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12531 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12532 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12533 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12534 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12535 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12536 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12537 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12538 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12539 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12540 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12541 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12542 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12543 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12544 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12545 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12546 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12547 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12548 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12549 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
12550 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
12551 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070012552 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12553 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12554 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12555 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12556 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080012557 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12558 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12559 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12560 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12561 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12562 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012563 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070012564 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12565 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070012566 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012567
12568 /* keep last */
12569 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12570 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12571 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12572};
12573
Hai Shalomfdcde762020-04-02 11:19:20 -070012574/**
12575 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
12576 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
12577 *
12578 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
12579 * Used in STA mode. This attribute represents the list of channel center
12580 * frequencies in MHz (u32) the station has learnt during the last connection
12581 * or roaming attempt. This information shall not signify the channels for
12582 * an explicit scan request from the user space. Host drivers can update this
12583 * information to the user space in both connected and disconnected state.
12584 * In the disconnected state this information shall signify the channels
12585 * scanned in the last connection/roam attempt that lead to the disconnection.
12586 */
12587enum qca_wlan_vendor_attr_update_sta_info {
12588 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
12589 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
12590
12591 /* keep last */
12592 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
12593 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
12594 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
12595};
12596
12597/**
12598 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12599 * Used when the driver triggers the STA to disconnect from the AP.
12600 *
12601 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12602 * disconnection with the AP due to unspecified reasons.
12603 *
12604 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12605 * disconnection with the AP due to a roaming failure. This roaming is triggered
12606 * internally (host driver/firmware).
12607 *
12608 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12609 * the AP when the user/external triggered roaming fails.
12610 *
12611 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12612 * by the host driver whenever gateway reachability failure is detected and the
12613 * driver disconnects with AP.
12614 *
12615 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12616 * the AP on a channel switch announcement from it with an unsupported channel.
12617 *
12618 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12619 * with indoor channels disabled and if the STA is connected on one of these
12620 * disabled channels, the host driver disconnected the STA with this reason
12621 * code.
12622 *
12623 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12624 * explicit request from the user to disable the current operating channel.
12625 *
12626 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12627 * the internal host driver/firmware recovery.
12628 *
12629 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12630 * a timeout for the key installations from the user space.
12631 *
12632 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12633 * STA on a band change request from the user space to a different band from the
12634 * current operation channel/band.
12635 *
12636 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12637 * interface down trigger from the user space.
12638 *
12639 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12640 * STA on getting continuous transmission failures for multiple Data frames.
12641 *
12642 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12643 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12644 * represents inactivity from AP on such transmissions.
12645
12646 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12647 * disconnection when SA Query times out (AP does not respond to SA Query).
12648 *
12649 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12650 * STA on missing the beacons continuously from the AP.
12651 *
12652 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12653 * able to move to the channel mentioned by the AP in CSA.
12654 *
12655 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12656 */
12657enum qca_disconnect_reason_codes {
12658 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12659 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12660 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12661 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12662 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12663 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12664 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12665 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12666 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
12667 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
12668 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
12669 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
12670 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
12671 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
12672 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
12673 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
12674 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
12675};
12676
12677/**
12678 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
12679 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
12680 *
12681 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
12682 * This attribute represents the driver specific reason codes (local
12683 * driver/firmware initiated reasons for disconnection) defined
12684 * in enum qca_disconnect_reason_codes.
12685 */
12686enum qca_wlan_vendor_attr_driver_disconnect_reason {
12687 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
12688 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
12689
12690 /* keep last */
12691 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
12692 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
12693 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
12694};
12695
Hai Shalom899fcc72020-10-19 14:38:18 -070012696/**
12697 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
12698 *
12699 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
12700 */
12701enum qca_wlan_tspec_operation {
12702 QCA_WLAN_TSPEC_ADD = 0,
12703 QCA_WLAN_TSPEC_DEL = 1,
12704 QCA_WLAN_TSPEC_GET = 2,
12705};
12706
12707/**
12708 * enum qca_wlan_tspec_direction - Direction in TSPEC
12709 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
12710 *
12711 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
12712 */
12713enum qca_wlan_tspec_direction {
12714 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
12715 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
12716 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
12717 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
12718};
12719
12720/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012721 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
Hai Shalom899fcc72020-10-19 14:38:18 -070012722 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
12723 *
12724 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
12725 */
12726enum qca_wlan_tspec_ack_policy {
12727 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
12728 QCA_WLAN_TSPEC_NO_ACK = 1,
12729 /* Reserved */
12730 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
12731};
12732
12733/**
12734 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
12735 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
12736 *
12737 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
12738 * u8 attribute. Specify the TSPEC operation of this request. Possible values
12739 * are defined in enum qca_wlan_tspec_operation.
12740 * Mandatory attribute for all kinds of config TSPEC requests.
12741 *
12742 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
12743 * u8 attribute. TS ID. Possible values are 0-7.
12744 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
12745 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
12746 *
12747 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
12748 * u8 attribute. Direction of data carried by the TS. Possible values are
12749 * defined in enum qca_wlan_tspec_direction.
12750 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12751 *
12752 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
12753 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
12754 * with the TS. set - enabled, not set - disabled.
12755 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12756 *
12757 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
12758 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
12759 * belonging to this TS. Possible values are 0-7.
12760 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12761 *
12762 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
12763 * u8 attribute. Indicate whether MAC acknowledgements are required for
12764 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
12765 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
12766 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12767 *
12768 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
12769 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
12770 * belonging to this TS.
12771 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12772 *
12773 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
12774 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
12775 * belonging to this TS.
12776 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12777 *
12778 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
12779 * u32 attribute. Specify the minimum interval in microseconds between the
12780 * start of two successive SPs.
12781 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12782 *
12783 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
12784 * u32 attribute. Specify the maximum interval in microseconds between the
12785 * start of two successive SPs.
12786 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12787 *
12788 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
12789 * u32 attribute. Specify the minimum interval in microseconds that can elapse
12790 * without arrival or transfer of an MPDU belonging to the TS before this TS
12791 * is deleted by the MAC entity at the HC.
12792 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12793 *
12794 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
12795 * u32 attribute. Specify the minimum interval in microseconds that can elapse
12796 * without arrival or transfer of an MSDU belonging to the TS before the
12797 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
12798 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
12799 * interval is always less than or equal to the inactivity interval.
12800 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12801 *
12802 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
12803 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
12804 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12805 * bounds of this TSPEC.
12806 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12807 *
12808 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
12809 * u32 attribute. Indicate the average data rate in bps specified at the MAC
12810 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12811 * bounds of this TSPEC.
12812 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12813 *
12814 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
12815 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
12816 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
12817 * the bounds of this TSPEC.
12818 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12819 *
12820 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
12821 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
12822 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
12823 * value of 0 indicates that there are no bursts.
12824 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12825 *
12826 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
12827 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
12828 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
12829 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12830 *
12831 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
12832 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12833 * and above the stated application rates required to transport an MSDU/A-MSDU
12834 * belonging to the TS in this TSPEC.
12835 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12836 */
12837enum qca_wlan_vendor_attr_config_tspec {
12838 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12839 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12840 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12841 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12842 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12843 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12844 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12845 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12846 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12847 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12848 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12849 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12850 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12851 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12852 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12853 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12854 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12855 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12856 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12857
12858 /* keep last */
12859 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12860 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12861 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12862};
12863
12864/**
12865 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12866 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12867 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12868 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12869 * frame
12870 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12871 * Request frame.
12872 */
12873enum qca_wlan_vendor_oci_override_frame_type {
12874 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12875 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12876 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12877 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12878};
12879
12880/**
12881 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12882 * OCI override request. These attributes are used inside nested attribute
12883 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12884 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12885 *
12886 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12887 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12888 * attribute to specify the frame type in which the OCI is to be overridden.
12889 *
12890 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12891 * OCI frequency (in MHz) to override in the specified frame type.
12892 */
12893enum qca_wlan_vendor_attr_oci_override {
12894 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12895 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12896 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12897
12898 /* keep last */
12899 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12900 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12901 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12902};
12903
12904/**
12905 * enum qca_wlan_medium_assess_type - Type of medium assess request
12906 *
12907 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12908 */
12909enum qca_wlan_medium_assess_type {
12910 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12911 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12912};
12913
12914/**
12915 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12916 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12917 *
12918 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12919 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12920 * Specify the type of medium assess request and indicate its type in response.
12921 * Possible values are defined in enum qca_wlan_medium_assess_type.
12922 *
12923 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12924 * u32 attribute. Mandatory in CCA request.
12925 * Specify the assessment period in terms of seconds. Assessment result will be
12926 * sent as the response to the CCA request after the assessment period.
12927 *
12928 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12929 * u32 attribute. Mandatory in response to CCA request.
12930 * Total timer tick count of the assessment cycle.
12931 *
12932 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12933 * u32 attribute. Mandatory in response to CCA request.
12934 * Timer tick count of idle time in the assessment cycle.
12935 *
12936 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12937 * u32 attribute. Mandatory in response to CCA request.
12938 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12939 *
12940 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12941 * u32 attribute. Mandatory in response to CCA request.
12942 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12943 *
12944 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12945 * s32 attribute. Mandatory in response to CCA request.
12946 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12947 *
12948 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12949 * s32 attribute. Mandatory in response to CCA request.
12950 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12951 *
12952 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12953 * u8 attribute. Mandatory in congestion report request.
12954 * 1-enable 0-disable.
12955 *
12956 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12957 * u8 attribute. Mandatory in congestion report enable request and will be
12958 * ignored if present in congestion report disable request. Possible values are
12959 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12960 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12961 * congestion percentage reaches the configured threshold.
12962 *
12963 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12964 * u8 attribute. Optional in congestion report enable request and will be
12965 * ignored if present in congestion report disable request.
12966 * Specify the interval of congestion report event in terms of seconds. Possible
12967 * values are 1-255. Default value 1 will be used if this attribute is omitted
12968 * or using invalid values.
12969 *
12970 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12971 * u8 attribute. Mandatory in congestion report event.
12972 * Indicate the actual congestion percentage. Possible values are 0-100.
12973 */
12974enum qca_wlan_vendor_attr_medium_assess {
12975 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12976 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12977
12978 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12979 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12980 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12981 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12982 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12983 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12984 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12985
12986 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12987 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12988 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12989 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12990
12991 /* keep last */
12992 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12993 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12994 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12995};
12996
12997/**
12998 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12999 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
13000 *
13001 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
13002 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
13003 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
13004 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013005 *
13006 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
13007 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
13008 *
13009 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
13010 * u8 attribute, required. Indicates group id of Tx VDEV.
13011 *
13012 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
13013 * Nested attribute. This attribute shall be used by the driver to send
13014 * group information. The attributes defined in enum
13015 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
13016 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070013017 */
13018enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
13019 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
13020 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013021 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
13022 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
13023 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070013024
13025 /* keep last */
13026 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
13027 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
13028 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
13029};
13030
13031/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013032 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
13033 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
13034 *
13035 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
13036 * u32 attribute, required. Contains interface index.
13037 *
13038 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
13039 * u8 attribute, required. 0 - means vdev is in down state.
13040 * 1 - means vdev is in up state.
13041 */
13042enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
13043 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
13044 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
13045 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
13046
13047 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
13048 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
13049 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
13050};
13051
13052/**
13053 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
13054 *
13055 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
13056 * STA interface has to be given while selecting the connection policies
13057 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
13058 * An interface is set as primary through the attribute
13059 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
13060 * applicable if the primary interface has not been set earlier.
13061 *
13062 * The intention is not to downgrade the primary STA performance, such as:
13063 * - Do not reduce the number of TX/RX chains of primary connection.
13064 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
13065 * chains.
13066 * - If using MCC, should set the MCC duty cycle of the primary connection to
13067 * be higher than the secondary connection.
13068 *
13069 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
13070 * subsequent STA connection shall be chosen to balance with the existing
13071 * concurrent STA's performance.
13072 * Such as
13073 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
13074 * capability.
13075 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
13076 * to the secondary.
13077 * - Prefer BSSID candidates which will help provide the best "overall"
13078 * performance for all the STA connections.
13079 */
13080enum qca_wlan_concurrent_sta_policy_config {
13081 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
13082 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
13083};
13084
13085/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013086 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080013087 *
Sunil8cd6f4d2022-06-28 18:40:46 +000013088 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
13089 * interface.
13090 *
13091 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
13092 * to meet gaming audio latency requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013093 * This policy is used only when the driver advertises support for
13094 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +000013095 *
13096 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
13097 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013098 * This policy is used only when the driver advertises support for
13099 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013100 *
13101 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
13102 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000013103 */
13104enum qca_wlan_concurrent_ap_policy_config {
13105 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
13106 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
13107 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013108 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000013109};
13110
13111/**
13112 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
13113 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
13114 *
13115 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080013116 * u8 attribute. Configures the concurrent STA policy configuration.
13117 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000013118
13119 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
13120 * u8 attribute. Configures the concurrent AP policy configuration.
13121 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013122 */
Sunil8cd6f4d2022-06-28 18:40:46 +000013123enum qca_wlan_vendor_attr_concurrent_policy {
13124 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
13125 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
13126 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013127
13128 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000013129 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
13130 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
13131 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013132
13133};
13134
Sunil8cd6f4d2022-06-28 18:40:46 +000013135/* Compatibility defines for previously used enum
13136 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
13137 * in any new implementation.
13138 */
13139#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
13140 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
13141#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
13142 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
13143#define qca_wlan_vendor_attr_concurrent_sta_policy \
13144 qca_wlan_vendor_attr_concurrent_policy
13145
Hai Shaloma20dcd72022-02-04 13:43:00 -080013146/**
Hai Shalom899fcc72020-10-19 14:38:18 -070013147 * enum qca_sta_connect_fail_reason_codes - Defines values carried
13148 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
13149 * attribute.
13150 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
13151 * for unicast Probe Request frame.
13152 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
13153 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
13154 * auth request.
13155 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
13156 * received from AP.
13157 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
13158 * Association Request frame.
13159 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
13160 * Association Request frame.
13161 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
13162 * frame is not received from AP.
13163 */
13164enum qca_sta_connect_fail_reason_codes {
13165 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
13166 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
13167 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
13168 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
13169 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
13170 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
13171 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
13172};
13173
Hai Shaloma20dcd72022-02-04 13:43:00 -080013174/**
13175 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
13176 * filters defined in this enum are used in attribute
13177 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
13178 *
13179 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
13180 * shall filter the channels which are not usable because of coexistence with
13181 * cellular radio.
13182 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
13183 * shall filter the channels which are not usable because of existing active
13184 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13185 *
13186 */
13187enum qca_wlan_vendor_usable_channels_filter {
13188 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13189 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13190};
13191
13192/**
13193 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13194 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13195 *
13196 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13197 * u32 attribute, required. Indicates the center frequency of the primary
13198 * channel in MHz.
13199 *
13200 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13201 * u32 attribute. Indicates the center frequency of the primary segment of the
13202 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13203 * 160 MHz, and 320 MHz channels.
13204 *
13205 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13206 * u32 attribute. Indicates the center frequency of the secondary segment of
13207 * 80+80 channel in MHz. This attribute is required only when
13208 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13209 *
13210 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13211 * u32 attribute, required. Indicates the bandwidth of the channel, possible
13212 * values are defined in enum nl80211_chan_width.
13213 *
13214 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13215 * u32 attribute, required. Indicates all the interface types for which this
13216 * channel is usable. This attribute encapsulates bitmasks of interface types
13217 * defined in enum nl80211_iftype.
13218 *
13219 */
13220enum qca_wlan_vendor_attr_chan_info {
13221 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13222 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13223 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13224 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13225 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13226 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13227
13228 /* keep last */
13229 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13230 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13231 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13232};
13233
13234/**
13235 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13236 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13237 *
13238 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13239 * u32 attribute. Indicates the bands from which the channels should be reported
13240 * in response. This attribute encapsulates bit masks of bands defined in enum
13241 * nl80211_band. Optional attribute, if not present in the request the driver
13242 * shall return channels from all supported bands.
13243 *
13244 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13245 * u32 attribute. Indicates all the interface types for which the usable
13246 * channels information is requested. This attribute encapsulates bitmasks of
13247 * interface types defined in enum nl80211_iftype. Optional attribute, if not
13248 * present in the request the driver shall send information of all supported
13249 * interface modes.
13250 *
13251 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13252 * u32 attribute. This attribute carries information of all filters that shall
13253 * be applied while populating usable channels information by the driver. This
13254 * attribute carries bit masks of different filters defined in enum
13255 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13256 * in the request the driver shall send information of channels without applying
13257 * any of the filters that can be configured through this attribute.
13258 *
13259 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13260 * Nested attribute. This attribute shall be used by the driver to send
13261 * usability information of each channel. The attributes defined in enum
13262 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13263 */
13264enum qca_wlan_vendor_attr_usable_channels {
13265 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13266 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13267 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13268 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13269 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13270
13271 /* keep last */
13272 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13273 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13274 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13275};
13276
13277/**
13278 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13279 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13280 *
13281 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13282 * the list of radar history entries.
13283 * Each entry contains freq, timestamp, and radar signal detect flag.
13284 * The driver shall add an entry when CAC has finished, or radar signal
13285 * has been detected post AP beaconing. The driver shall maintain at least
13286 * 8 entries in order to save CAC result for a 160 MHz channel.
13287 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13288 * Channel frequency in MHz.
13289 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13290 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13291 * or radar detection.
13292 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13293 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013294 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
13295 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013296 */
13297enum qca_wlan_vendor_attr_radar_history {
13298 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13299
13300 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13301 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13302 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13303 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070013304 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013305
13306 /* keep last */
13307 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13308 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13309 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13310};
13311
13312/**
13313 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13314 *
13315 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13316 * target exited MCC state and cleared the quota information. In the
13317 * command it clears MCC quota setting and restores adaptive scheduling.
13318 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13319 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070013320 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013321 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13322 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070013323 * This quota type is only present in event.
13324 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13325 * by the target for low latency.
13326 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013327 */
13328enum qca_wlan_vendor_mcc_quota_type {
13329 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13330 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13331 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070013332 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013333};
13334
13335/**
13336 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
13337 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
13338 * quota information or as a command to set the required MCC quota for an
13339 * interface.
13340 *
13341 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
13342 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
13343 * In a command this specifies the MCC quota type to be set for the interface.
13344 * In an event this provides the current quota type in force.
13345 * This is required in a command and an event.
13346 *
13347 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
13348 * the list of channel quota entries.
13349 * In an event each entry contains the frequency and respective time quota for
13350 * all the MCC interfaces.
13351 * In a command it specifies the interface index and respective time quota.
13352 * In a command only one entry (ifindex, quota pair) may be specified.
13353 *
13354 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
13355 * Channel frequency in MHz. This is present only in an event.
13356 *
13357 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
13358 * Channel time quota expressed as percentage.
13359 * This is present in an event and a command.
13360 * In an command, the user shall specify the quota to be allocated for the
13361 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
13362 * In an event this provides the existing quota for the channel.
13363 *
13364 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
13365 * Specifies the interface index (netdev) for which the corresponding
13366 * configurations are applied. This is required in a command only. Only one
13367 * interface index may be specified. If not specified, the configuration is
13368 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013369 *
13370 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
13371 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
13372 * low latency mode. The firmware will do optimization for low
13373 * latency in Multi-Channel concurrency state if enabled. And all existing
13374 * user quota setting will be overwritten by the target.
13375 * 0 - disable(default), 1 - enable.
13376 * It is only present in a command with quota type of
13377 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013378 */
13379enum qca_wlan_vendor_attr_mcc_quota {
13380 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
13381 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
13382 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
13383 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
13384 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
13385 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070013386 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013387
13388 /* keep last */
13389 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
13390 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
13391 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
13392};
13393
13394/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013395 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
13396 * are used by the attribute
13397 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
13398 *
13399 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
13400 * invoke roam.
13401 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
13402 * detection failed when the roam trigger.
13403 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
13404 */
13405
13406enum qca_wlan_roam_stats_invoke_reason {
13407 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
13408 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
13409 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
13410};
13411
13412/**
13413 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
13414 * values are used by the attribute
13415 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
13416 *
13417 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
13418 * roam by kickout.
13419 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
13420 * trigger by kickout.
13421 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
13422 * roam trigger by kickout.
13423 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
13424 * roam trigger by kickout.
13425 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
13426 * disappeared, and all TX is failing when roam trigger by kickout.
13427 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
13428 * timeout when roam trigger by kickout.
13429 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
13430 * peer has roamed to a repeater.
13431 */
13432enum qca_wlan_roam_stats_tx_failures_reason {
13433 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
13434 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
13435 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
13436 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
13437 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
13438 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
13439 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
13440};
13441
13442/**
13443 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
13444 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
13445 *
13446 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
13447 * detailed reason for roam scan being aborted.
13448 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
13449 * started due to high data RSSI during LOW-RSSI roaming.
13450 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
13451 * started due to good link speed during LOW-RSSI roaming.
13452 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
13453 * due to high data RSSI during background roaming.
13454 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
13455 * started due to high beacon RSSI during background roaming
13456 */
13457enum qca_wlan_roam_stats_abort_reason {
13458 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
13459 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
13460 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
13461 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
13462 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
13463};
13464
13465/**
Sunil Ravi036cec52023-03-29 11:35:17 -070013466 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
13467 * These values are used by the attribute
13468 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
13469 *
13470 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
13471 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
13472 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
13473 * This is generally used in BTM events to indicate BTM frame exchange logs.
13474 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
13475 * from 2.4 GHz to 5 GHz or 6 GHz
13476 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
13477 * 5 GHz to 6 GHz
13478 */
13479enum qca_wlan_roam_stats_scan_type {
13480 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
13481 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
13482 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
13483 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
13484 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
13485};
13486
13487/**
13488 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
13489 * These values are used by the attribute
13490 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
13491 *
13492 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
13493 * detailed roam scan type.
13494 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
13495 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
13496 */
13497enum qca_wlan_roam_stats_scan_dwell_type {
13498 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
13499 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
13500 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
13501};
13502
13503/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013504 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
13505 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
13506 */
13507enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
13508 /* 32-bit unsigned value to indicate center frequency of the primary
13509 * channel in MHz for each roam scan channel.
13510 */
13511 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13512 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070013513 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013514 */
13515 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13516 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
13517 * for each roam scan channel.
13518 */
13519 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13520
13521 /* keep last */
13522 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13523 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13524 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13525};
13526
13527/**
13528 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13529 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13530 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013531 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
13532 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013533 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13534 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13535 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13536 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13537 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13538 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013539 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
13540 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013541 */
13542enum qca_wlan_roam_stats_frame_subtype {
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013543 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
13544 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013545 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13546 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13547 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13548 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13549 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13550 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013551 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
13552 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013553};
13554
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013555/* Compatibility defines for previously used names.
13556 * These values should not be used in any new implementation.
13557 */
13558#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
13559 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
13560#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
13561 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
13562
Sunil Ravi77d572f2023-01-17 23:58:31 +000013563/**
13564 * enum roam_frame_status - Specifies the valid values the vendor roam frame
13565 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13566 *
13567 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13568 * sent or received successfully.
13569 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13570 * receiving failed.
13571 */
13572enum qca_wlan_roam_stats_frame_status {
13573 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13574 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13575};
13576
13577/**
13578 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13579 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13580 */
13581enum qca_wlan_vendor_attr_roam_stats_frame_info {
13582 /* 8-bit unsigned value to indicate the frame subtype during
13583 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13584 */
13585 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13586 /* 8-bit unsigned value to indicate the frame is successful or failed
13587 * during roaming, one of the values in
13588 * qca_wlan_roam_stats_frame_status.
13589 */
13590 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13591 /* 64-bit unsigned value to indicate the timestamp for frame of
13592 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13593 * when sent or received during roaming, timestamp in milliseconds
13594 * from system boot.
13595 */
13596 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070013597 /* Attribute used for padding for 64-bit alignment */
13598 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013599 /* This attribute indicates a 6-byte MAC address representing
13600 * the BSSID of the AP.
13601 * For non-MLO scenario, it indicates the AP BSSID.
13602 * For MLO scenario, it indicates the AP BSSID which may be the primary
13603 * link BSSID or a nonprimary link BSSID.
13604 */
13605 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013606
13607 /* keep last */
13608 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13609 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13610 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13611};
13612
13613/**
13614 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13615 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13616 */
13617enum qca_wlan_vendor_attr_roam_stats_info {
13618 /* 64-bit unsigned value to indicate the timestamp when roam was
13619 * triggered by the firmware, timestamp in milliseconds from system
13620 * boot.
13621 */
13622 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13623 /* 32-bit unsigned value to indicate the roam trigger reason for the
13624 * last roaming attempted by the firmware. This can be queried either
13625 * in a connected state or disconnected state. The values of this
13626 * attribute represent the roam trigger reason codes, which
13627 * are defined in enum qca_roam_reason.
13628 */
13629 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13630 /* 8-bit unsigned value to indicate percentage of packets for which
13631 * the RX rate is lower than the RX rate threshold in total RX packets,
13632 * used for roaming trigger by per.
13633 */
13634 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13635 /* 8-bit unsigned value to indicate percentage of packets for which
13636 * the TX rate is lower than TX rate threshold in total TX packets,
13637 * used for roaming trigger by per.
13638 */
13639 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13640 /* 32-bit unsigned value to indicate final beacon miss count for
13641 * trigger reason of beacon miss.
13642 */
13643 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13644 /* 32-bit unsigned value to indicate consecutive beacon miss count
13645 * for trigger reason of beacon miss.
13646 */
13647 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13648 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13649 * reason of beacon miss, 0 - success, 1 - fail.
13650 * If QOS-NULL TX status is successful, beacon miss final count and
13651 * consecutive beacon miss count will be reset to zero, and roam will
13652 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13653 * count and consecutive beacon miss count continue to calculate until
13654 * roaming trigger by beacon miss.
13655 */
13656 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070013657 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013658 * for trigger reason of poor RSSI.
13659 */
13660 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070013661 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013662 * for trigger reason of poor RSSI.
13663 */
13664 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13665 /* 8-bit unsigned value to indicate RX link speed status
13666 * for trigger reason of poor RSSI, 0 - good link speed,
13667 * 1 - bad link speed.
13668 */
13669 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070013670 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013671 * for trigger reason of better RSSI.
13672 */
13673 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070013674 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013675 * for trigger reason of better RSSI.
13676 */
13677 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
13678 /* 32-bit unsigned value to indicate RX throughput in bytes per second
13679 * for trigger reason of congestion.
13680 */
13681 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
13682 /* 32-bit unsigned value to indicate TX throughput in bytes per second
13683 * for trigger reason of congestion.
13684 */
13685 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
13686 /* 8-bit unsigned value to indicate roamable AP count
13687 * for trigger reason of congestion.
13688 */
13689 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
13690 /* 8-bit unsigned value to indicate invoke reason, one of the values
13691 * defined in qca_wlan_roam_stats_invoke_reason.
13692 */
13693 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
13694 /* 8-bit unsigned value to indicate request mode for trigger reason
13695 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
13696 */
13697 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
13698 /* 32-bit unsigned value to indicate disassociate time in milliseconds
13699 * for trigger reason of BTM.
13700 */
13701 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
13702 /* 32-bit unsigned value to indicate preferred candidate list valid
13703 * interval in milliseconds for trigger reason of BTM.
13704 */
13705 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
13706 /* 8-bit unsigned value to indicate the number of preferred
13707 * candidates for trigger reason of BTM.
13708 */
13709 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
13710 /* 8-bit unsigned value to indicate response status for trigger
13711 * reason of BTM, values are defined in IEEE Std 802.11-2020,
13712 * Table 9-428 (BTM status code definitions).
13713 */
13714 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
13715 /* 32-bit unsigned value to indicate BSS termination timeout value
13716 * in milliseconds for trigger reason of BTM.
13717 */
13718 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
13719 /* 32-bit unsigned value to indicate MBO associate retry timeout
13720 * value in milliseconds for trigger reason of BTM.
13721 */
13722 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
13723 /* 8-bit unsigned value to indicate dialog token number
13724 * for trigger reason of BTM.
13725 */
13726 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
13727 /* 8-bit unsigned value to indicate percentage of connected AP
13728 * channel congestion utilization for trigger reason of BSS load.
13729 */
13730 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
13731 /* 8-bit unsigned value to indicate disconnection type
13732 * for trigger reason of disconnection. 1 - Deauthentication,
13733 * 2 - Disassociation.
13734 */
13735 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
13736 /* 16-bit unsigned value to indicate deauthentication or disassociation
13737 * reason for trigger reason of disconnection, values are defined
13738 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
13739 */
13740 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
13741 /* 32-bit unsigned value to indicate milliseconds of roam scan
13742 * periodicity when needing to roam to find a better AP for trigger
13743 * reason of periodic timer.
13744 */
13745 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070013746 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000013747 * trigger reason of background scan.
13748 */
13749 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070013750 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000013751 * of background scan.
13752 */
13753 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070013754 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013755 * for trigger reason of background scan.
13756 */
13757 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
13758 /* 32-bit unsigned value to indicate consecutive TX failure threshold
13759 * for trigger reason of TX failures.
13760 */
13761 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
13762 /* 8-bit unsigned value to indicate TX failure reason for trigger
13763 * reason of TX failures, one of the values defined in
13764 * qca_wlan_roam_stats_tx_failures_reason.
13765 */
13766 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
13767 /* 8-bit unsigned value to indicate detail abort reason. One of the
13768 * values in enum qca_wlan_roam_stats_abort_reason.
13769 */
13770 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070013771 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000013772 * roam scan.
13773 */
13774 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070013775 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000013776 * aborting the roam scan.
13777 */
13778 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
13779 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
13780 * speed status when aborting the roam scan.
13781 * 0 - good link speed, 1 - bad link speed
13782 */
13783 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
13784 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070013785 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013786 */
13787 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
13788 /* 8-bit unsigned value to indicate roaming result, used in STA mode
13789 * only.
13790 * 0-Roaming is successful, 1-Roaming is failed
13791 */
13792 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
13793 /* 8-bit unsigned value to indicate the roam fail reason for the
13794 * last failed roaming attempt by the firmware. Different roam failure
13795 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
13796 * This can be queried either in connected state or disconnected state.
13797 */
13798 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
13799 /* Nested attribute. Indicate roam scan info for each channel, the
13800 * attributes defined in enum
13801 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
13802 * this attribute.
13803 */
13804 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
13805 /* 32-bit unsigned value to indicate total scan time during roam scan
13806 * all channels, time in milliseconds.
13807 */
13808 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
13809 /* Nested attribute. This attribute shall be used by the driver to
13810 * send roam information of each subtype. The attributes defined in
13811 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
13812 * this attribute.
13813 */
13814 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070013815 /* Attribute used for padding for 64-bit alignment */
13816 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013817 /* 6-byte MAC address used by the driver to send roam stats information
13818 * of the original AP BSSID. The original AP is the connected AP before
13819 * roam happens, regardless of the roam resulting in success or failure.
13820 * This attribute is only present when
13821 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13822 * 0 (success) or 1 (failure).
13823 * For non-MLO scenario, it indicates the original connected AP BSSID.
13824 * For MLO scenario, it indicates the original BSSID of the link
13825 * for which the reassociation occurred during the roam.
13826 */
13827 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
13828 /* 6-byte MAC address used by the driver to send roam stats information
13829 * of the roam candidate AP BSSID when roam failed. This is only present
13830 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13831 * 1 (failure). If the firmware updates more than one candidate AP BSSID
13832 * to the driver, the driver only fills the last candidate AP BSSID and
13833 * reports it to user space.
13834 * For non-MLO scenario, it indicates the last candidate AP BSSID.
13835 * For MLO scenario, it indicates the AP BSSID which may be the primary
13836 * link BSSID or a nonprimary link BSSID.
13837 */
13838 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
13839 /* 6-byte MAC address used by the driver to send roam stats information
13840 * of the roamed AP BSSID when roam succeeds. This is only present when
13841 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13842 * 0 (success).
13843 * For non-MLO scenario, it indicates the new AP BSSID to which has
13844 * been successfully roamed.
13845 * For MLO scenario, it indicates the new AP BSSID of the link on
13846 * which the reassociation occurred during the roam.
13847 */
13848 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013849
13850 /* keep last */
13851 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
13852 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
13853 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
13854};
13855
13856/**
13857 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
13858 * report cached roam info from the driver to user space, enum values are used
13859 * for netlink attributes sent with the
13860 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
13861 */
13862enum qca_wlan_vendor_attr_roam_cached_stats {
13863 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
13864 /* Nested attribute, this attribute contains nested array roam info
13865 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
13866 */
13867 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
13868
13869 /* keep last */
13870 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
13871 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
13872 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
13873};
13874
13875/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013876 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
13877 * radio configurations present in each radio combination.
13878 *
13879 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
13880 * the band info in the radio configuration. Uses the enum qca_set_band values.
13881 *
13882 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
13883 * the number of antennas info in the radio configuration.
13884 */
13885enum qca_wlan_vendor_attr_supported_radio_cfg {
13886 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
13887 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
13888 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
13889
13890 /* keep last */
13891 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
13892 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
13893 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
13894};
13895
13896/**
13897 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13898 * radio combinations supported by the device.
13899 *
13900 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13901 * provides the radio configurations present in the radio combination.
13902 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13903 * This attribute provides the values for radio combination matrix.
13904 * For standalone config, the number of config values is one and the config
13905 * carries the band and antenna information for standalone configuration. For
13906 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13907 * configuration the number of config values is two and the config carries the
13908 * band and antenna information for each simultaneous radio.
13909 */
13910enum qca_wlan_vendor_attr_radio_combination {
13911 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13912 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13913
13914 /* keep last */
13915 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13916 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13917 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13918};
13919
13920/**
13921 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13922 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13923 *
13924 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13925 * provides the radio combinations supported by the device.
13926 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13927 * For example, in the radio combination matrix for a device which has two
13928 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13929 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13930 * combinations is 5 and the radio combinations are
13931 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13932 * {{5 GHz 2X2}}, //Standalone 5 GHz
13933 * {{6 GHz 2X2}}, //Standalone 6 GHz
13934 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13935 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13936 * The band and antenna info together as nested data provides one radio config.
13937 * Standalone configuration has one config with band and antenna nested data.
13938 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13939 * have two nested band and antenna info data.
13940 */
13941enum qca_wlan_vendor_attr_radio_combination_matrix {
13942 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13943 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13944
13945 /* keep last */
13946 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13947 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13948 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13949};
13950
13951/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013952 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13953 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13954 *
13955 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13956 * Enable mDNS offload. This attribute is mandatory to enable
13957 * mDNS offload feature. If this attribute is not present, mDNS offload
13958 * is disabled.
13959 *
13960 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13961 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13962 * attribute is mandatory when enabling the feature, and not required when
13963 * disabling the feature.
13964 *
13965 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13966 * the following attributes:
13967 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13968 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13969 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13970 *
13971 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13972 * It consists of a hostname and ".local" as the domain name. The character
13973 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13974 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
13975 * supported per vdev.
13976 * For example: myphone.local
13977 *
13978 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13979 * u16 attribute. It specifies the total number of resource records present
13980 * in the answer section of the answer payload. This attribute is needed by the
13981 * firmware to populate the mDNS response frame for mDNS queries without having
13982 * to parse the answer payload.
13983 *
13984 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
13985 * attribute sent by the mdnsResponder from userspace. It contains resource
13986 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
13987 * payload is passed down to the firmware and is transmitted in response to
13988 * mDNS queries.
13989 * The maximum supported size of the answer payload is 512 bytes.
13990 */
13991enum qca_wlan_vendor_attr_mdns_offload {
13992 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13993 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13994 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13995 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13996 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13997 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13998 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13999
14000 /* keep last */
14001 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
14002 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
14003 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
14004};
14005
14006/**
14007 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14008 * Data frame types to be sent over the monitor interface.
14009 */
14010enum qca_wlan_vendor_monitor_data_frame_type {
14011 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14012 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
14013 */
14014 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14015 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14016 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14017 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14018 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14019 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14020 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14021 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14022 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14023 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14024 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14025 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14026 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14027 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14028 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14029 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14030 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14031};
14032
14033/**
14034 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14035 * Management frame types to be sent over the monitor interface.
14036 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
14037 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
14038 * except the Beacon frame.
14039 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14040 * BSSID Beacon frames. Valid only in the connected state.
14041 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14042 * the Beacon frames obtained during the scan (off channel and connected
14043 * channel), when in connected state.
14044 */
14045enum qca_wlan_vendor_monitor_mgmt_frame_type {
14046 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14047 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
14048 */
14049 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
14050 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14051 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14052};
14053
14054/**
14055 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14056 * Control frame types to be sent over the monitor interface.
14057 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
14058 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
14059 */
14060enum qca_wlan_vendor_monitor_ctrl_frame_type {
14061 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14062 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
14063 */
14064 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14065};
14066
14067/**
14068 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14069 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14070 * monitor mode.
14071 *
14072 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
14073 * Represents the TX Data frame types to be monitored (u32). These Data frames
14074 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14075 *
14076 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
14077 * Represents the RX Data frame types to be monitored (u32). These Data frames
14078 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14079 *
14080 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
14081 * Represents the TX Management frame types to be monitored (u32). These
14082 * Management frames are represented by
14083 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14084 *
14085 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
14086 * Represents the RX Management frame types to be monitored (u32). These
14087 * Management frames are represented by
14088 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14089 *
14090 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
14091 * Represents the TX Control frame types to be monitored (u32). These Control
14092 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14093 *
14094 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
14095 * Represents the RX Control frame types to be monitored (u32). These Control
14096 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14097 *
14098 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
14099 * attribute.
14100 * Represents the interval in milliseconds only for the connected Beacon frames,
14101 * expecting the connected BSS's Beacon frames to be sent on the monitor
14102 * interface at this specific interval.
14103 */
14104enum qca_wlan_vendor_attr_set_monitor_mode {
14105 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14106 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14107 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14108 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14109 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14110 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14111 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14112 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
14113
14114 /* keep last */
14115 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14116 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14117 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14118};
14119
14120/**
14121 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14122 * Bits will be set to 1 if the corresponding state is enabled.
14123 *
14124 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14125 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14126 */
14127enum qca_wlan_vendor_roam_scan_state {
14128 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14129 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14130};
14131
14132/**
14133 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14134 * Bits will be set to 1 if the corresponding event is notified.
14135 *
14136 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14137 * carries the trigger reason. When set, it is expected that the roam event
14138 * carries the respective reason via the attribute
14139 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14140 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14141 *
14142 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14143 * carries the roam fail reason. When set, it is expected that the roam event
14144 * carries the respective reason via the attribute
14145 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14146 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14147 *
14148 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14149 * event carries the roam invoke fail reason. When set, it is expected that
14150 * the roam event carries the respective reason via the attribute
14151 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14152 *
14153 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14154 * carries the roam scan state. When set, it is expected that the roam event
14155 * carries the respective scan state via the attribute
14156 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14157 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14158 */
14159enum qca_wlan_vendor_roam_event_type {
14160 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14161 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14162 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14163 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14164};
14165
14166/**
14167 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14168 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14169 *
14170 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14171 * representing the BSSID of the AP to which the roam is attempted.
14172 *
14173 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14174 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14175 * attempted.
14176 *
14177 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
14178 * on which the roam is attempted.
14179 *
14180 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14181 * STA mode only. This represents the roam fail reason for the last failed
14182 * roaming attempt by the firmware for the specific BSSID. Different roam
14183 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14184 */
14185enum qca_wlan_vendor_attr_roam_events_candidate_info {
14186 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14187 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14188 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14189 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14190 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14191
14192 /* keep last */
14193 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14194 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14195 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14196};
14197
14198/**
14199 * enum qca_wlan_vendor_attr_roam_events - Used by the
14200 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14201 * roam events to the driver or notify these events from the driver.
14202 *
14203 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14204 * driver/firmware to enable/disable the notification of roam events. It's a
14205 * mandatory attribute and used only in the request from the userspace to the
14206 * host driver. 1-Enable, 0-Disable.
14207 * If the roaming is totally offloaded to the firmware, this request when
14208 * enabled shall mandate the firmware to notify all the relevant roam events
14209 * represented by the below attributes. If the host is in the suspend mode,
14210 * the behavior of the firmware to notify these events is guided by
14211 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14212 * these events in the suspend state, the firmware is expected to wake up the
14213 * host before the respective events are notified. Please note that such a
14214 * request to get the events in the suspend state will have a definite power
14215 * implication.
14216 *
14217 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14218 * that the roam events need to be notified in the suspend state too. By
14219 * default, these roam events are notified in the resume state. With this flag,
14220 * the roam events are notified in both resume and suspend states.
14221 * This attribute is used in the request from the userspace to the host driver.
14222 *
14223 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14224 * Represents the different roam event types, signified by the enum
14225 * qca_wlan_vendor_roam_event_type.
14226 * Each bit of this attribute represents the different roam even types reported
14227 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14228 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14229 *
14230 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14231 * mode only. This represents the roam trigger reason for the last roaming
14232 * attempted by the firmware. Each bit of this attribute represents the
14233 * different roam trigger reason code which are defined in enum
14234 * qca_vendor_roam_triggers.
14235 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14236 *
14237 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14238 * STA mode only. This represents the roam invoke fail reason for the last
14239 * failed roam invoke. Different roam invoke failure reason codes
14240 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14241 *
14242 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14243 * for which the roam is attempted. Each entry is a nested attribute defined
14244 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14245 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14246 *
14247 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14248 * the scan state on which the roam events need to be notified. The values for
14249 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14250 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14251 *
14252 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14253 * u32 values. List of frequencies in MHz considered for a roam scan.
14254 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14255 */
14256enum qca_wlan_vendor_attr_roam_events {
14257 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14258 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14259 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14260 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14261 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14262 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14263 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14264 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14265 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14266
14267 /* keep last */
14268 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14269 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014270 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014271};
14272
14273/**
14274 * enum qca_wlan_ratemask_params_type - Rate mask config type
14275 *
14276 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
14277 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14278 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14279 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
Sunil Ravi72e01222024-03-09 01:25:43 +000014280 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
Hai Shaloma20dcd72022-02-04 13:43:00 -080014281 */
14282enum qca_wlan_ratemask_params_type {
14283 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14284 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14285 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14286 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
Sunil Ravi72e01222024-03-09 01:25:43 +000014287 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014288};
14289
14290/**
14291 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
14292 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14293 * This is used to set the rate mask value to be used in rate selection.
14294 *
14295 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14296 * Array of nested containing attributes
14297 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14298 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14299 *
14300 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14301 * the different PHY types to which the rate mask config is to be applied.
14302 * The values for this attribute are referred from enum
14303 * qca_wlan_vendor_ratemask_params_type.
14304 *
14305 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14306 * A bit value of 1 represents rate is enabled and a value of 0
14307 * represents rate is disabled.
Sunil Raviaf399a82024-05-05 20:56:55 +000014308 * For EHT targets,
14309 * b0-1 => NSS1, MCS 14-15
14310 * b2-15 => NSS1, MCS 0-13
14311 * b16-29 => NSS2, MCS 0-13
14312 * For HE targets, 14 bits correspond to one NSS setting.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014313 * b0-13 => NSS1, MCS 0-13
14314 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14315 * For VHT targets, 10 bits correspond to one NSS setting.
14316 * b0-9 => NSS1, MCS 0-9
14317 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14318 * For HT targets, 8 bits correspond to one NSS setting.
14319 * b0-7 => NSS1, MCS 0-7
14320 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14321 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
Sunil Raviaf399a82024-05-05 20:56:55 +000014322 *
14323 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the
14324 * MLO link ID of a link to be configured. Optional attribute.
14325 * No need of this attribute in non-MLO cases. If the attribute is
14326 * not provided, ratemask will be applied for setup link.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014327 */
14328enum qca_wlan_vendor_attr_ratemask_params {
14329 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
14330 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14331 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14332 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
Sunil Raviaf399a82024-05-05 20:56:55 +000014333 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014334
14335 /* keep last */
14336 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14337 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14338 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14339};
14340
Sunil8cd6f4d2022-06-28 18:40:46 +000014341/**
14342 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
14343 * traffic.
14344 *
14345 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
14346 * Send audio traffic through the host processor.
14347 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
14348 * Send audio traffic using the low power DSP to/from the encoder.
14349 */
14350enum qca_wlan_audio_data_path {
14351 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
14352 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
14353};
14354
14355/**
14356 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14357 * for) or drop existing PASN security association for the listed the
14358 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14359 * to userspace.
14360 *
14361 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14362 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14363 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14364 * the driver to userspace to inform that the existing PASN keys of the
14365 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14366 * not valid anymore.
14367 */
14368enum qca_wlan_vendor_pasn_action {
14369 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14370 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14371};
14372
14373/**
14374 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14375 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14376 *
14377 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14378 * event from the driver to userspace and represents the local MAC address
14379 * to be used for PASN handshake. When this attribute is present, userspace
14380 * shall use the source address specified in this attribute by the driver
14381 * for PASN handshake with peer device.
14382 * This attribute is required in a command response from userspace to the
14383 * driver and represents the MAC address that was used in PASN handshake
14384 * with the peer device.
14385 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14386 * peer device to which PASN handshake is requested in an event from the
14387 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14388 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14389 * Indicates the MAC address of the peer device for which the keys are to
14390 * be invalidated in an event from the driver to userspace when
14391 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14392 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14393 * Indicates the MAC address of the peer device for which the status is
14394 * being sent in a status report from userspace to the driver.
14395 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14396 * in the event from the driver to userspace. When set, userspace is
14397 * required to derive LTF key seed from KDK and set it to the driver.
14398 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14399 * attribute is used in the command response from userspace to the driver.
14400 * If present, it indicates the successful PASN handshake with the peer. If
14401 * this flag is not present, it indicates that the PASN handshake with the
14402 * peer device failed.
14403 */
14404enum qca_wlan_vendor_attr_pasn_peer {
14405 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14406 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14407 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14408 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14409 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14410
14411 /* keep last */
14412 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14413 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14414 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14415};
14416
14417/**
14418 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14419 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
14420 *
14421 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14422 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
14423 * from the driver to userspace.
14424 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14425 * details for each peer and used in both an event and a command response.
14426 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14427 * defined in enum qca_wlan_vendor_attr_pasn_peer.
14428 */
14429enum qca_wlan_vendor_attr_pasn {
14430 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14431 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14432 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
14433
14434 /* keep last */
14435 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14436 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14437 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14438};
14439
14440/**
14441 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14442 * the ranging security context derived from PASN for each peer. Used in
14443 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14444 *
14445 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14446 * context for the peer.
14447 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
14448 * context for the peer.
14449 */
14450enum qca_wlan_vendor_secure_ranging_ctx_action {
14451 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
14452 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
14453};
14454
14455/**
14456 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
14457 * used for deriving PASN keys to the driver. Used in
14458 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
14459 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
14460 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
14461 */
14462enum qca_wlan_vendor_sha_type {
14463 QCA_WLAN_VENDOR_SHA_256,
14464 QCA_WLAN_VENDOR_SHA_384,
14465};
14466
14467/**
14468 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
14469 * to set security context for the PASN peer from userspace to the driver.
14470 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
14471 *
14472 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
14473 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
14474 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
14475 * was used during the PASN handshake.
14476 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
14477 * the peer device for which secure ranging context is being configured.
14478 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
14479 * hash algorithm to be used, possible values are defined in enum
14480 * qca_wlan_vendor_sha_type.
14481 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
14482 * the temporal key generated from the PASN handshake. The length of this
14483 * attribute is dependent on the value of
14484 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
14485 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
14486 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
14487 * (e.g., 0x000FAC04).
14488 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
14489 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
14490 * The length of this attribute is dependent on the value of
14491 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
14492
14493 */
14494enum qca_wlan_vendor_attr_secure_ranging_ctx {
14495 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
14496 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
14497 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
14498 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
14499 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
14500 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
14501 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
14502 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
14503
14504 /* keep last */
14505 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
14506 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
14507 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
14508};
14509
Sunil Ravi89eba102022-09-13 21:04:37 -070014510/**
14511 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
14512 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
14513 * nested attribute. The packets that match a filter will be replied with
14514 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
14515 *
14516 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
14517 * u32 attribute. Destination IPv4 address in network byte order, the
14518 * IPv4 packets with different address will be filtered out.
14519 * This attribute is optional.
14520 *
14521 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
14522 * Flag attribute. If it's present, indicates that
14523 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
14524 * address; while if not, indicates that the address is a unicast/multicast
14525 * address.
14526 * This attribute is optional.
14527 *
14528 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
14529 * NLA_BINARY attribute, length is 16 bytes.
14530 * Destination IPv6 address in network byte order, the IPv6 packets
14531 * with different destination address will be filtered out.
14532 * This attribute is optional.
14533 *
14534 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
14535 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
14536 * Packets on both IPv4 and IPv6 will be processed if both are configured.
14537 *
14538 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
14539 * u16 attribute. Destination UDP port, the packets with different destination
14540 * UDP port will be filtered out.
14541 * This attribute is mandatory.
14542 *
14543 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
14544 * u32 attribute. Represents the offset (in UDP payload) of the data
14545 * to be matched.
14546 * This attribute is mandatory.
14547 *
14548 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
14549 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
14550 * Binary data that is compared bit-by-bit against the data (specified
14551 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
14552 * payload, the packets don't match will be filtered out.
14553 * This attribute is mandatory.
14554 */
14555enum qca_wlan_vendor_attr_coap_offload_filter {
14556 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
14557 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
14558 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
14559 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
14560 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
14561 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
14562 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
14563
14564 /* keep last */
14565 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
14566 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
14567 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
14568};
14569
14570/**
14571 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
14572 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14573 *
14574 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14575 * u32 attribute. Source address (in network byte order) for replying
14576 * the matching broadcast/multicast IPv4 packets.
14577 * This attribute is optional.
14578 *
14579 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14580 * NLA_BINARY attribute, length is 16 bytes.
14581 * Source address (in network byte order) for replying the matching
14582 * multicast IPv6 packets.
14583 * This attribute is optional.
14584 *
14585 * For broadcast/multicast offload reply, one of
14586 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14587 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14588 * configured according to version of the IP address(es) configured in
14589 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14590 * while for unicast case, firmware will take the destination IP address
14591 * in the received matching packet as the source address for replying.
14592 *
14593 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14594 * Nested attribute. Filter for the received UDP packets, only the matching
14595 * packets will be replied and cached.
14596 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14597 * attributes.
14598 * This attribute is mandatory.
14599 *
14600 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14601 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14602 * CoAP message (UDP payload) to be sent upon receiving matching packets.
14603 * Firmware is responsible for adding any necessary protocol headers.
14604 * This attribute is mandatory.
14605 *
14606 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14607 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14608 * A cached message will be dropped by firmware if it's expired.
14609 * This attribute is optional. A default value of 40000 will be used in the
14610 * absence of it.
14611 */
14612enum qca_wlan_vendor_attr_coap_offload_reply {
14613 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14614 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14615 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14616 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14617 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14618 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14619
14620 /* keep last */
14621 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14622 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14623 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14624};
14625
14626/**
14627 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14628 * CoAP message (UDP) transmitting on IPv4.
14629 *
14630 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14631 * u32 attribute. Source address (in network byte order) for transmitting
14632 * packets on IPv4.
14633 * This attribute is mandatory.
14634 *
14635 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14636 * u16 attribute. Source UDP port.
14637 * This attribute is optional, a random port is taken if it's not present.
14638 *
14639 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14640 * u32 attribute. Destination IPv4 address (in network byte order).
14641 * This attribute is mandatory.
14642 *
14643 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14644 * Flag attribute. If it's present, indicates that
14645 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14646 * address; while if not, indicates that the address is unicast/multicast
14647 * address.
14648 * This attribute is optional.
14649 *
14650 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14651 * u16 attribute. Destination UDP port.
14652 * This attribute is mandatory.
14653 */
14654enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14655 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14656 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14657 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14658 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14659 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14660 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14661
14662 /* keep last */
14663 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
14664 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
14665 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
14666};
14667
14668/**
14669 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
14670 * CoAP message (UDP) transmitting on IPv6.
14671 *
14672 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
14673 * NLA_BINARY attribute, length is 16 bytes.
14674 * Source address (in network byte order) for transmitting packets on IPv6.
14675 * This attribute is mandatory.
14676 *
14677 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14678 * u16 attribute. Source UDP port.
14679 * This attribute is optional, a random port is taken if it's not present.
14680 *
14681 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14682 * NLA_BINARY attribute, length is 16 bytes.
14683 * Destination IPv6 address (in network byte order).
14684 * This attribute is mandatory.
14685 *
14686 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14687 * u16 attribute. Destination UDP port.
14688 * This attribute is mandatory.
14689 */
14690enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14691 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14692 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14693 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14694 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14695 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14696
14697 /* keep last */
14698 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14699 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14700 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14701};
14702
14703/**
14704 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14705 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14706 *
14707 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14708 * Nested attribute. The IPv4 source/destination address/port for offload
14709 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14710 * of supported attributes.
14711 * This attribute is optional.
14712 *
14713 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14714 * Nested attribute. The IPv6 source/destination address/port for offload
14715 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14716 * of supported attributes.
14717 * This attribute is optional.
14718 *
14719 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14720 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14721 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14722 * configured.
14723 *
14724 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14725 * u32 attribute. Period in milliseconds for the periodic transmitting.
14726 * This attribute is mandatory.
14727 *
14728 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14729 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14730 * CoAP message (UDP payload) to be periodically transmitted. Firmware
14731 * is responsible for adding any necessary protocol headers.
14732 * This attribute is mandatory.
14733 */
14734enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14735 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14736 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14737 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14738 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14739 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14740
14741 /* keep last */
14742 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14743 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14744 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14745};
14746
14747/**
14748 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14749 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14750 *
14751 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14752 * u64 attribute. Received time (since system booted in microseconds) of
14753 * the cached CoAP message.
14754 * This attribute is mandatory.
14755 *
14756 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14757 * u32 attribute. Source IPv4 address (in network byte order) of the cached
14758 * CoAP message.
14759 * This attribute is optional.
14760 *
14761 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14762 * NLA_BINARY attribute, length is 16 bytes.
14763 * Source IPv6 address (in network byte order) of the cached CoAP message.
14764 * This attribute is optional.
14765 *
14766 * At most and at least one of
14767 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14768 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14769 * an entry.
14770 *
14771 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14772 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14773 * The cached CoAP message (UDP payload). If the actual message size is
14774 * greater than the maximum size, it will be truncated and leaving only
14775 * the first 1152 bytes.
14776 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070014777 *
14778 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
14779 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070014780 */
14781enum qca_wlan_vendor_attr_coap_offload_cache_info {
14782 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14783 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14784 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14785 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14786 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070014787 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070014788
14789 /* keep last */
14790 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14791 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14792 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14793};
14794
14795/**
14796 * enum qca_wlan_vendor_coap_offload_action - Actions for
14797 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14798 *
14799 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14800 * Enable CoAP offload reply.
14801 * If it's enabled, firmware will start offload processing on each suspend
14802 * and stop on each resume.
14803 *
14804 * Offload reply on match works as follows:
14805 * Reply the packets that match the filter with the given CoAP
14806 * message (with necessary protocol headers), increase the CoAP message
14807 * ID in the given CoAP message by one for the next use after each successful
14808 * transmission, and try to store the information of the received packet,
14809 * including the received time, source IP address, and CoAP message (UDP
14810 * payload).
14811 *
14812 * Firmware has a limit to the maximum stored entries, it takes the source IP
14813 * address as the key of an entry, and keeps at most one entry for each key.
14814 * A packet won't be stored if no entry for the same key is present and the
14815 * total number of the existing unexpired entries reaches the maximum value.
14816 *
14817 * If any configured item is changed, user space should disable offload reply
14818 * first and then issue a new enable request.
14819 *
14820 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14821 * Disable CoAP offload reply and return information of any cached CoAP
14822 * messages.
14823 *
14824 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14825 * Enable CoAP offload periodic transmitting.
14826 * If it's enabled, firmware will start offload periodic transmitting on
14827 * each suspend and stop on each resume.
14828 *
14829 * Offload periodic transmitting works as follows:
14830 * Send the given CoAP message (with necessary protocol headers) with the given
14831 * source/destination IP address/UDP port periodically based on the given
14832 * period and increase the CoAP message ID in the given CoAP message by one
14833 * for the next use after each successful transmission.
14834 *
14835 * If any configured item is changed, user space should disable offload
14836 * periodic transmitting first and then issue a new enable request.
14837 *
14838 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14839 * Disable CoAP offload periodic transmitting.
14840 *
14841 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14842 * Get information of the CoAP messages cached during offload reply
14843 * processing. The cache is cleared after retrieval.
14844 */
14845enum qca_wlan_vendor_coap_offload_action {
14846 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14847 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14848 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14849 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14850 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14851};
14852
14853/**
14854 * enum qca_wlan_vendor_attr_coap_offload - Used by the
14855 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14856 * This is used to set parameters for CoAP offload processing, or get
14857 * cached CoAP messages from firmware.
14858 *
14859 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14860 * u32 attribute. Action to take in this vendor command.
14861 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14862 * This attribute is mandatory.
14863 *
14864 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14865 * u32 attribute. Represents the Request ID for the CoAP offload
14866 * configuration, which can help to identify the user entity starting
14867 * the CoAP offload processing and accordingly stop the respective
14868 * ones/get the cached CoAP messages with the matching ID.
14869 * This attribute is mandatory.
14870 *
14871 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14872 * Nested attribute. Parameters for offload reply.
14873 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14874 * supported attributes.
14875 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14876 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14877 * otherwise.
14878 *
14879 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14880 * Nested attribute. Parameters for offload periodic transmitting.
14881 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14882 * supported attributes.
14883 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14884 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14885 * otherwise.
14886 *
14887 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14888 * Array of nested attributes. Information of the cached CoAP messages,
14889 * where each entry is taken from
14890 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14891 * This attribute is used for reporting the cached CoAP messages
14892 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14893 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14894 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14895 * cached item if this attribute is not present.
14896 */
14897enum qca_wlan_vendor_attr_coap_offload {
14898 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14899 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14900 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14901 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14902 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14903 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14904
14905 /* keep last */
14906 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14907 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14908 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14909};
14910
14911/**
14912 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14913 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14914 * Service (SCS) rule.
14915 *
14916 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14917 * Represents the unique id of SCS rule to be configured.
14918
14919 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14920 * Represents the request type: add, remove, or change.
14921 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14922 * Type definitions).
14923 *
14924 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14925 * in case of add/change request type.
14926 * Represents the output traffic identifier (TID) to be assigned to the flow
14927 * matching the rule.
14928 *
14929 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14930 * attribute in case of add/change request type.
14931 * Represents type of classifier parameters present in SCS rule.
14932 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14933 * Only classifier types 4 and 10 are supported for SCS.
14934 *
14935 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14936 * in case of add/change request type when classifier type is TCLAS4.
14937 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14938 *
14939 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14940 * attribute in case of add/change request type when classifier type is TCLAS4
14941 * and version attribute is IPv4.
14942 * Represents the source IPv4 address in the rule which is to be compared
14943 * against the source IP address in the IPv4 header.
14944 *
14945 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14946 * attribute in case of add/change request type when classifier type is TCLAS4
14947 * and version attribute is IPv4.
14948 * Represents the destination IPv4 address in the rule which is to be compared
14949 * against the destination IP address in the IPv4 header.
14950 *
14951 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14952 * attribute in case of add/change request type when classifier type is TCLAS4
14953 * and version attribute is IPv6.
14954 * Represents the source IPv6 address in the rule which is to be compared
14955 * against the source IP address in the IPv6 header.
14956 *
14957 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14958 * attribute in case of add/change request type when classifier type is TCLAS4
14959 * and version attribute is IPv6.
14960 * Represents the destination IPv6 address in the rule which is to be compared
14961 * against the destination IP address in the IPv6 header.
14962 *
14963 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14964 * in case of add/change request type when classifier type is TCLAS4.
14965 * Represents the source port number in the rule which is to be compared against
14966 * the source port number in the protocol header.
14967 *
14968 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14969 * in case of add/change request type when classifier type is TCLAS4.
14970 * Represents the destination port number in the rule which is to be compared
14971 * against the destination port number in the protocol header.
14972 *
14973 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14974 * in case of add/change request type when classifier type is TCLAS4.
14975 * Represents the DSCP value in the rule which is to be compared against the
14976 * DSCP field present in the IP header.
14977 *
14978 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14979 * attribute in case of add/change request type when classifier type is TCLAS4.
14980 * Represents the protocol/next header in the rule which is to be compared
14981 * against the protocol/next header field present in the IPv4/IPv6 header.
14982 *
14983 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14984 * attribute of size 3 bytes present in case of add/change request type
14985 * when classifier type is TCLAS4 and version is IPv6.
14986 * Represents the flow label value in the rule which is to be compared against
14987 * the flow label field present in the IPv6 header.
14988 *
14989 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14990 * attribute in case of add/change request type when classifier type is TCLAS10.
14991 * Represents the protocol instance number in the rule.
14992 *
14993 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14994 * attribute in case of add/change request type when classifier type is TCLAS10.
14995 * Represents the protocol/next header in the rule which is to be compared
14996 * against the protocol/next header field present in the IPv4/IPv6 header.
14997 *
14998 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14999 * attribute of variable length present when request type is add/change and
15000 * classifier type is TCLAS10.
15001 * Represents the mask to be used for masking the header contents of the header
15002 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15003 * attribute.
15004 *
15005 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15006 * attribute of variable length present when request type is add/change and
15007 * classifier type is TCLAS10.
15008 * Represents the value to be compared against after masking the header contents
15009 * of the header specified by the
15010 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15011 * filter mask specified by the
15012 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015013 *
15014 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15015 * attribute.
15016 * Represents the service class id of the configured SCS rule.
15017 *
15018 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15019 * MAC address.
15020 * Represents the destination MAC address in the rule.
15021 *
15022 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15023 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070015024 */
15025enum qca_wlan_vendor_attr_scs_rule_config {
15026 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15027 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15028 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15029 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15030 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15031 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15032 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15033 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15034 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15035 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15036 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15037 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15038 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15039 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15040 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15041 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15042 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15043 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15044 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015045 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15046 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15047 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070015048
15049 /* Keep last */
15050 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15051 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15052 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15053};
15054
15055/**
15056 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
15057 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
15058 *
15059 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
15060 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
15061 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
15062 */
15063enum qca_wlan_vendor_attr_mlo_links {
15064 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
15065 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
15066 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
15067 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
15068
15069 /* Keep last */
15070 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
15071 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
15072 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
15073};
15074
15075/**
15076 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15077 * used in the firmware.
15078 *
15079 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15080 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15081 *
15082 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15083 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15084 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15085 * groups.
15086 *
15087 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15088 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15089 * CTL group but user can choose up to 3 SAR set index only, as the top half
15090 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15091 * the SAR index (3 to 5) is used for DBS mode.
Sunil Ravi72e01222024-03-09 01:25:43 +000015092 *
15093 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
15094 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
15095 * for power limit computation in collaboration with WWAN.
15096 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
15097 *
15098 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
15099 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
15100 * instead of fixed static SAR power limit firmware uses time averaging
15101 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
15102 * In this mode firmware has up to 43 indexes.
Sunil Ravi89eba102022-09-13 21:04:37 -070015103 */
15104enum qca_wlan_vendor_sar_version {
15105 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15106 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15107 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15108 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
Sunil Ravi72e01222024-03-09 01:25:43 +000015109 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
15110 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015111};
15112
15113/**
15114 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15115 * CTL grouping is enabled or disabled in the firmware.
15116 *
15117 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15118 * is enabled in firmware.
15119 *
15120 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15121 * is disabled in firmware.
15122 *
15123 */
15124enum qca_wlan_vendor_sar_ctl_group_state {
15125 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15126 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15127 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15128};
15129
15130/**
15131 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15132 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15133 * supported by the firmware.
15134
15135 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15136 * u32 attribute. This field describes current SAR version supported by the
15137 * firmware.
15138 * See enum qca_wlan_vendor_sar_version for more information.
15139 * This attribute is mandatory.
15140
15141 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15142 * u32 attribute. This field describes whether CTL groups are enabled
15143 * or disabled in the firmware.
15144 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15145 * This attribute is optional.
15146 */
15147
15148enum qca_wlan_vendor_attr_sar_capability {
15149 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15150 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15151 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15152
15153 /* Keep last */
15154 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15155 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15156 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15157};
15158
15159/**
15160 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15161 * These statistics are sent from the driver in a response when userspace
15162 * queries to get the statistics using the operation
15163 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15164 * by the driver when the SR feature is enabled, when the driver receives
15165 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15166 *
15167 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15168 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15169 * This represents the number of non-SRG TX opportunities.
15170 *
15171 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15172 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15173 * This represents the number of non-SRG PPDUs tried to transmit.
15174 *
15175 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15176 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15177 * This represents the number of non-SRG PPDUs successfully transmitted.
15178 *
15179 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15180 * Mandatory only when SRG is supported by the AP and optional otherwise.
15181 * This represents the number of SRG TX opportunities.
15182 *
15183 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15184 * Mandatory only when SRG is supported by the AP and optional otherwise.
15185 * This represents the number of SRG PPDUs tried to transmit.
15186 *
15187 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15188 * Mandatory only when SRG is supported by the AP and optional otherwise.
15189 * This represents the number of SRG PPDUs successfully transmitted.
15190 */
15191enum qca_wlan_vendor_attr_sr_stats {
15192 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15193 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15194 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15195 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15196 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15197 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15198 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15199
15200 /* Keep last */
15201 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15202 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15203 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15204};
15205
15206/**
15207 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15208 * Spatial Reuse feature.
15209 *
15210 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15211 * roaming to an AP that doesn't support/supports SR feature, respectively.
15212 *
15213 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15214 * to change in concurrent interfaces that are supported by the driver.
15215 */
15216enum qca_wlan_sr_reason_code {
15217 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15218 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15219};
15220
15221/**
15222 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15223 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15224 *
15225 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15226 * driver to enable the Spatial Reuse feature. Attributes
15227 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15228 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15229 * operation.
15230 *
15231 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15232 * driver to disable the Spatial Reuse feature.
15233 *
15234 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15235 * asynchronous event sent to userspace when the SR feature is disabled.
15236 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15237 * and sent along with the asynchronous event.
15238 *
15239 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15240 * asynchronous event when the SR feature is enabled again after the SR feature
15241 * was suspended by the driver earlier. The enable reason is
15242 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15243 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15244 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15245 *
15246 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15247 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15248 * reuse transmissions. Userspace sends this operation to the driver.
15249 * The driver/firmware upon receiving this operation shall prohibit PSR-based
15250 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15251 *
15252 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15253 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15254 * reuse transmissions. Userspace sends this operation to the driver.
15255 * The driver/firmware upon receiving this operation shall allow PSR-based
15256 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15257 *
15258 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15259 * driver to get the SR statistics and the driver sends a synchronous response
15260 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15261 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15262 *
15263 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15264 * driver to clear the SR statistics and upon receiving this operation
15265 * the driver/firmware shall clear the SR statistics.
15266 *
15267 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15268 * driver to get the SR parameters and the driver sends the synchronous response
15269 * with the following required attributes:
15270 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15271 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15272 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15273 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15274 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15275 *
15276 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15277 * asynchronous event to userspace to update any changes in SR parameters.
15278 * The following attributes are used with this operation:
15279 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15280 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15281 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15282 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15283 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15284 */
15285enum qca_wlan_sr_operation {
15286 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15287 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15288 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15289 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15290 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15291 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15292 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15293 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15294 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15295 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15296};
15297
15298/**
15299 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15300 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15301 *
15302 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15303 * This attribute is optionally set in response to
15304 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15305 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15306 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15307 * about HESIGA_Spatial_reuse_value15_allowed.
15308 *
15309 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15310 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15311 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15312 * allowed or not at non-AP STAs that are associated with the AP. If present
15313 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15314 *
15315 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15316 * attribute. This attribute is used in response to
15317 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15318 * Min Offset field which contains an unsigned integer that is added to -82 dBm
15319 * to generate the value of the SRG OBSS PD Min parameter.
15320 *
15321 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15322 * attribute. This attribute is used in response to
15323 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15324 * Max Offset field which contains an unsigned integer that is added to -82 dBm
15325 * to generate the value of the SRG OBSS PD Max parameter.
15326 *
15327 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15328 * attribute. This attribute is used in response to
15329 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15330 * PD Max Offset field which contains an unsigned integer that is added to -82
15331 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15332 *
15333 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15334 * Userspace optionally sends this attribute with
15335 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15336 * preferred SRG PD threshold. The driver shall send this attribute to
15337 * userspace in SR resume event to indicate the PD threshold being used for SR.
15338 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15339 * the driver shall indicate the userspace the newly configured SRG PD threshold
15340 * using an asynchronous event.
15341 *
15342 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15343 * Userspace optionally sends this attribute with
15344 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15345 * preferred non-SRG PD threshold. The driver shall send this attribute to
15346 * userspace in SR resume event to indicate the PD threshold being used for SR.
15347 * When there is change in non-SRG PD threshold (for example, due to roaming,
15348 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15349 * threshold using an asynchronous event.
15350 *
15351 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15352 * values are defined in enum qca_wlan_sr_reason_code. This
15353 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15354 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15355 */
15356enum qca_wlan_vendor_attr_sr_params {
15357 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15358 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15359 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15360 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15361 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15362 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15363 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15364 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15365 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15366
15367 /* keep last */
15368 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15369 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15370 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15371};
15372
15373/**
15374 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15375 * command QCA_NL80211_VENDOR_SUBCMD_SR.
15376 *
15377 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15378 * from userspace to the driver. Possible values are defined in enum
15379 * qca_wlan_sr_operation.
15380 *
15381 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15382 * configuration parameters. The possible attributes inside this attribute are
15383 * defined in enum qca_wlan_vendor_attr_sr_params.
15384 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15385 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15386 * also in response from the driver to userspace when the response is sent for
15387 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15388 * The driver uses this attribute in asynchronous events in which the operation
15389 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15390 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15391 *
15392 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15393 * statistics. These attributes used inside this are defined in enum
15394 * qca_wlan_vendor_attr_sr_stats.
15395 * This attribute is used in response from the driver to a command in which
15396 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15397 * %QCA_WLAN_SR_OPERATION_GET_STATS.
15398 */
15399enum qca_wlan_vendor_attr_sr {
15400 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15401 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15402 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15403 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15404
15405 /* Keep last */
15406 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15407 QCA_WLAN_VENDOR_ATTR_SR_MAX =
15408 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15409};
15410
Sunil Ravi77d572f2023-01-17 23:58:31 +000015411/**
15412 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15413 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15414 *
15415 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15416 * used by the peer on the link that corresponds to the link used for sending
15417 * the event notification.
15418 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15419 * MLD MAC address of the peer.
15420 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15421 * used to pass ifindex of the primary netdev.
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015422 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
15423 * used to pass ifindex of the MLD netdev.
15424 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
15425 * used to indicate the number of links that the non-AP MLD negotiated to be
15426 * used in the ML connection.
15427 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
15428 * attribute, contains information regarding links of the non-AP MLD.
15429 * User applications need to know all the links of a non-AP MLD that are
15430 * participating in the ML association. The possible attributes inside this
15431 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015432 */
15433enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15434 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15435 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15436 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15437 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015438 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
15439 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
15440 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015441
15442 /* keep last */
15443 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15444 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15445 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15446};
15447
15448/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015449 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
15450 * non-AP MLD link parameters used by the attribute
15451 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
15452 *
15453 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
15454 * to pass the netdev ifindex of the non-AP MLD link.
15455 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
15456 * the non-AP MLD link.
15457 */
15458enum qca_wlan_vendor_attr_mlo_link_info {
15459 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
15460 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
15461 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
15462
15463 /* keep last */
15464 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
15465 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
15466 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
15467};
15468
15469/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000015470 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15471 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15472 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15473 * and PSD information.
15474 *
15475 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15476 * u32. This attribute is used to indicate the start of the queried frequency
15477 * range in MHz.
15478 *
15479 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15480 * This attribute is used to indicate the end of the queried frequency range
15481 * in MHz.
15482 *
15483 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
15484 * This attribute will contain the PSD information for a single range as
15485 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
15486 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
15487 *
15488 * The PSD power info (dBm/MHz) from user space should be multiplied
15489 * by a factor of 100 when sending to the driver to preserve granularity
15490 * up to 2 decimal places.
15491 * Example:
15492 * PSD power value: 10.21 dBm/MHz
15493 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
15494 *
15495 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
15496 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
15497 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
15498 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15499 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15500 *
15501 * The following set of attributes will be used to exchange frequency and
15502 * corresponding PSD information for AFC between the user space and the driver.
15503 */
15504enum qca_wlan_vendor_attr_afc_freq_psd_info {
15505 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
15506 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
15507 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
15508 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
15509
15510 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
15511 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
15512 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
15513};
15514
15515/**
15516 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
15517 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
15518 * channel list and corresponding EIRP information.
15519 *
15520 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
15521 * This attribute is used to indicate queried channel from
15522 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
15523 *
15524 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
15525 * This attribute is used to configure the EIRP power info corresponding
15526 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
15527 * The EIRP power info(dBm) from user space should be multiplied
15528 * by a factor of 100 when sending to Driver to preserve granularity up to
15529 * 2 decimal places.
15530 * Example:
15531 * EIRP power value: 34.23 dBm
15532 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
15533 *
15534 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
15535 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15536 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
15537 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15538 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
15539 *
15540 * The following set of attributes will be used to exchange Channel and
15541 * corresponding EIRP information for AFC between the user space and Driver.
15542 */
15543enum qca_wlan_vendor_attr_afc_chan_eirp_info {
15544 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
15545 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
15546 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
15547
15548 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
15549 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
15550 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
15551};
15552
15553/**
15554 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
15555 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15556 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
15557 * channel, and EIRP related information.
15558 *
15559 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
15560 * This attribute is used to indicate the operating class, as listed under
15561 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
15562 *
15563 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
15564 * for updating the channel number and EIRP power information.
15565 * It uses the attributes defined in
15566 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
15567 *
15568 * Operating class information packing format for
15569 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15570 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15571 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
15572 *
15573 * m - Total number of operating classes.
15574 * n, j - Number of queried channels for the corresponding operating class.
15575 *
15576 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15577 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15578 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15579 * .....
15580 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15581 * ....
15582 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15583 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15584 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15585 * ....
15586 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15587 *
15588 * Operating class information packing format for
15589 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15590 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15591 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15592 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15593 *
15594 * m - Total number of operating classes.
15595 * n, j - Number of channels for the corresponding operating class.
15596 *
15597 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15598 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15599 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15600 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15601 * .....
15602 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15603 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
15604 * ....
15605 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15606 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15607 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15608 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15609 * ....
15610 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15611 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
15612 *
15613 * The following set of attributes will be used to exchange operating class
15614 * information for AFC between the user space and the driver.
15615 */
15616enum qca_wlan_vendor_attr_afc_opclass_info {
15617 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
15618 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
15619 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15620
15621 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15622 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15623 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15624};
15625
15626/**
15627 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15628 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15629 *
15630 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15631 * driver to userspace in order to query the new AFC power values.
15632 *
15633 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15634 * complete event will be sent from the driver to userspace to indicate
15635 * processing of the AFC response.
15636 *
15637 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15638 * will be sent from the driver to userspace to indicate last received
15639 * AFC response data has been cleared on the AP due to invalid data
15640 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15641 *
15642 * The following enum defines the different event types that will be
15643 * used by the driver to help trigger corresponding AFC functionality in user
15644 * space.
15645 */
15646enum qca_wlan_vendor_afc_event_type {
15647 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15648 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15649 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15650};
15651
15652/**
15653 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15654 * deployment type.
15655 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15656 *
15657 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15658 *
15659 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15660 *
15661 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
15662 *
15663 * The following enum defines different deployment modes that the AP might
15664 * come up in. This information will be essential to retrieve deployment-type
15665 * specific SP power values for AFC operation.
15666 */
15667enum qca_wlan_vendor_afc_ap_deployment_type {
15668 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
15669 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
15670 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
15671};
15672
15673/**
15674 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
15675 * indicate AFC response status.
15676 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
15677 *
15678 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
15679 *
15680 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
15681 * command was not received within the expected time of the AFC expiry event
15682 * being triggered.
15683 *
15684 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
15685 * parsing error by the driver.
15686 *
15687 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
15688 * error.
15689 *
15690 * The following enum defines the status codes that the driver will use to
15691 * indicate whether the AFC data is valid or not.
15692 */
15693enum qca_wlan_vendor_afc_evt_status_code {
15694 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
15695 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
15696 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
15697 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
15698};
15699
15700/**
15701 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
15702 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
15703 * support sending only a single request to the user space at a time.
15704 *
15705 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
15706 * Used with event to notify the type of AFC event received.
15707 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
15708 *
15709 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
15710 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15711 * otherwise unused.
15712 *
15713 * This attribute is used to indicate the AP deployment type in the AFC request.
15714 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
15715 *
15716 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
15717 * Unique request identifier generated by the AFC client for every
15718 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
15719 * The user space application is responsible for ensuring no duplicate values
15720 * are in-flight with the server, e.g., by delaying a request, should the same
15721 * value be received from different radios in parallel.
15722 *
15723 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
15724 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15725 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
15726 *
15727 * This attribute indicates the AFC spec version information. This will
15728 * indicate the AFC version AFC client must use to query the AFC data.
15729 * Bits 15:0 - Minor version
15730 * Bits 31:16 - Major version
15731 *
15732 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
15733 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15734 * otherwise unused.
15735 * This attribute indicates the minimum desired power (in dBm) for
15736 * the queried spectrum.
15737 *
15738 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
15739 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15740 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15741 *
15742 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
15743 * This attribute is used to indicate if there were any errors parsing the
15744 * AFC response.
15745 *
15746 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15747 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15748 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15749 *
15750 * This attribute indicates the AFC response code. The AFC response codes are
15751 * in the following categories:
15752 * -1: General Failure.
15753 * 0: Success.
15754 * 100 - 199: General errors related to protocol.
15755 * 300 - 399: Error events specific to message exchange
15756 * for the Available Spectrum Inquiry.
15757 *
15758 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15759 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15760 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15761 *
15762 * This attribute indicates the date until which the current response is
15763 * valid for in UTC format.
15764 * Date format: bits 7:0 - DD (Day 1-31)
15765 * bits 15:8 - MM (Month 1-12)
15766 * bits 31:16 - YYYY (Year)
15767 *
15768 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15769 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15770 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15771 *
15772 * This attribute indicates the time until which the current response is
15773 * valid for in UTC format.
15774 * Time format: bits 7:0 - SS (Seconds 0-59)
15775 * bits 15:8 - MM (Minutes 0-59)
15776 * bits 23:16 - HH (Hours 0-23)
15777 * bits 31:24 - Reserved
15778 *
15779 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15780 * for updating the list of frequency ranges to be queried.
15781 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15782 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15783 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15784 * It uses the attributes defined in
15785 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15786 *
15787 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15788 * for updating the list of operating classes and corresponding channels to be
15789 * queried.
15790 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15791 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15792 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15793 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15794 */
15795enum qca_wlan_vendor_attr_afc_event {
15796 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15797 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15798 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15799 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15800 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15801 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15802 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15803 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15804 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15805 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15806 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15807 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15808
15809 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15810 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15811 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15812};
15813
15814/**
15815 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15816 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15817 * will support sending only a single AFC response to the driver at a time.
15818 *
15819 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15820 * This attribute will be used to send a single Spectrum Inquiry response object
15821 * from the 'availableSpectrumInquiryResponses' array object from the response
15822 * JSON.
15823 *
15824 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15825 *
15826 * This attribute indicates the period (in seconds) for which the response
15827 * data received is valid for.
15828 *
15829 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15830 *
15831 * This attribute indicates the request ID for which the corresponding
15832 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15833 *
15834 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15835 *
15836 * This attribute indicates the date until which the current response is
15837 * valid for in UTC format.
15838 * Date format: bits 7:0 - DD (Day 1-31)
15839 * bits 15:8 - MM (Month 1-12)
15840 * bits 31:16 - YYYY (Year)
15841 *
15842 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15843 *
15844 * This attribute indicates the time until which the current response is
15845 * valid for in UTC format.
15846 * Time format: bits 7:0 - SS (Seconds 0-59)
15847 * bits 15:8 - MM (Minutes 0-59)
15848 * bits 23:16 - HH (Hours 0-23)
15849 * bits 31:24 - Reserved
15850 *
15851 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15852 *
15853 * This attribute indicates the AFC response code. The AFC response codes are
15854 * in the following categories:
15855 * -1: General Failure.
15856 * 0: Success.
15857 * 100 - 199: General errors related to protocol.
15858 * 300 - 399: Error events specific to message exchange
15859 * for the Available Spectrum Inquiry.
15860 *
15861 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15862 * for PSD info of all the queried frequency ranges. It uses the attributes
15863 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15864 *
15865 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15866 * attributes for EIRP info of all queried operating class/channels. It uses
15867 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15868 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15869 *
15870 */
15871enum qca_wlan_vendor_attr_afc_response {
15872 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15873 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15874 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15875 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15876 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15877 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15878 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15879 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15880 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15881
15882 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15883 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15884 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15885};
15886
15887/**
15888 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15889 *
15890 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15891 *
15892 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15893 * beaconing at higher beacon interval with Rx disabled.
15894 */
15895enum qca_wlan_dozed_ap_state {
15896 QCA_WLAN_DOZED_AP_DISABLE = 0,
15897 QCA_WLAN_DOZED_AP_ENABLE = 1,
15898};
15899
15900/**
15901 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15902 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15903 * configuration.
15904 *
15905 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15906 * Configures the doze state for an AP interface. Possible values are defined
15907 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15908 * gets triggered asynchronously to provide updated AP interface configuration.
15909 *
15910 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15911 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15912 * command, which is used later to maintain synchronization between commands
15913 * and asynchronous events.
15914 *
15915 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15916 * Used in event to indicate the next TBTT TSF timer value after applying the
15917 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15918 * the first beacon after entering or exiting dozed mode.
15919 *
15920 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15921 * Used with event to inform the periodicity of beacon transmission that would
15922 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070015923 *
15924 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
15925 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015926 */
15927enum qca_wlan_vendor_attr_dozed_ap {
15928 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15929 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15930 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15931 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15932 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070015933 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015934
15935 /* Keep last */
15936 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15937 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15938 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15939};
15940
15941/**
15942 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
15943 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
15944 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
15945 * capture running status.
15946 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
15947 * capture running status.
15948 **/
15949
15950enum qca_wlan_vendor_monitor_mode_status {
15951 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
15952 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
15953};
15954
15955/**
15956 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
15957 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
15958 * information regarding the local packet capture over the monitor mode.
15959 *
15960 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
15961 * represents the status of the start capture commands. The values used with
15962 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
15963 * is returned by the driver in the response to the command.
15964 */
15965
15966enum qca_wlan_vendor_attr_get_monitor_mode {
15967 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
15968 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
15969
15970 /* Keep last */
15971 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
15972 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
15973 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
15974};
15975
Sunil Ravi036cec52023-03-29 11:35:17 -070015976/**
15977 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
15978 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
15979 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
15980 *
15981 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
15982 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
15983 */
15984enum qca_wlan_vendor_link_state_op_types {
15985 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
15986 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
15987};
15988
15989/**
15990 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
15991 * links state control modes. This enum is used by
15992 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
15993 *
15994 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
15995 * by the driver.
15996 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
15997 * user space.
15998 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
15999 * desired number of MLO links to operate in active state at any given time.
16000 * The driver will choose which MLO links should operate in the active state.
16001 * See enum qca_wlan_vendor_link_state for active state definition.
16002 */
16003enum qca_wlan_vendor_link_state_control_modes {
16004 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16005 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16006 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16007};
16008
16009/**
16010 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16011 * links state operation modes. This enum is used by
16012 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16013 *
16014 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16015 * mode, the driver selects the operating mode of the links, without any
16016 * guidance from the user space.
16017 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16018 * operation mode the driver should select MLO links that will achieve low
16019 * latency.
16020 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16021 * throughput operation mode the driver should select MLO links that will
16022 * achieve higher throughput.
16023 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16024 * operation mode the driver should select MLO links that will achieve low
16025 * power.
16026 */
16027enum qca_wlan_vendor_link_state_operation_modes {
16028 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16029 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16030 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16031 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16032};
16033
16034/**
16035 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16036 * MLO link.
16037 *
16038 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
16039 * be used for data transmission but it can have TIDs mapped to it. It will be
16040 * in doze state always and does not monitor the beacons.
16041 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
16042 * used for data TX/RX and monitors the beacons to check TIM bit indication.
16043 * It may enter doze state and comes out based on the transmit data traffic and
16044 * TIM bit indication in the beacon.
16045 */
16046enum qca_wlan_vendor_link_state {
16047 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16048 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16049};
16050
16051/**
16052 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16053 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16054 *
16055 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16056 * MLO link.
16057 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16058 * enum qca_wlan_vendor_link_state for possible MLO link states.
16059 */
16060
16061enum qca_wlan_vendor_attr_link_state_config {
16062 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16063 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16064 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16065
16066 /* Keep last */
16067 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16068 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16069 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16070};
16071
16072/**
16073 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16074 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16075 *
16076 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16077 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16078 * Required only in a command. Possible values for this attribute are defined in
16079 * enum qca_wlan_vendor_link_state_op_types.
16080 *
16081 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16082 * links control mode type. Optional attribute in a command when
16083 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16084 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16085 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16086 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16087 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16088 *
16089 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16090 * Indicates the state of the each MLO link affiliated with the interface.
16091 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16092 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16093 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16094 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16095 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16096 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16097 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16098 *
16099 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16100 * Represents the number of active state links. See enum
16101 * qca_wlan_vendor_link_state for active state definition.
16102 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16103 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16104 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16105 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16106 *
16107 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16108 * links operation mode type. Optional attribute in a command when
16109 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16110 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16111 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16112 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16113 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16114 * modes.
16115 */
16116enum qca_wlan_vendor_attr_mlo_link_state {
16117 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16118 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16119 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16120 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16121 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16122 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16123
16124 /* keep last */
16125 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16126 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16127 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16128};
16129
Sunil Ravi640215c2023-06-28 23:08:09 +000016130/**
16131 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16132 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16133 *
16134 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16135 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16136 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16137 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16138 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16139 * traffic for that link.
16140 *
16141 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16142 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16143 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16144 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16145 * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16146 * downlink traffic for that link.
16147 */
16148enum qca_wlan_vendor_attr_tid_link_map_status {
16149 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16150 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16151 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16152
16153 /* keep last */
16154 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16155 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16156 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16157};
16158
16159/*
16160 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16161 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16162 *
16163 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16164 * AP MLD address with which this TID-to-link negotiation mapping is
16165 * established/updated.
16166 *
16167 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16168 * nested attributes containing TID-to-links mapping information. This will have
16169 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16170 * map information. If this attribute is not present the default TID-to-link
16171 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16172 * downlink traffic.
16173 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16174 */
16175enum qca_wlan_vendor_attr_tid_to_link_map {
16176 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16177 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16178 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16179
16180 /* keep last */
16181 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16182 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16183 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16184};
16185
16186/**
16187 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16188 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16189 *
16190 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16191 * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16192 *
16193 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16194 * A bitmap of the removed setup links link IDs.
16195 */
16196enum qca_wlan_vendor_attr_link_reconfig {
Sunil Ravi640215c2023-06-28 23:08:09 +000016197 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16198 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16199 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16200
16201 /* keep last */
16202 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16203 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16204 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
16205};
16206
16207/**
16208 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16209 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16210 *
16211 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16212 * Indicates the MLO link id on which the TDLS discovery response
16213 * frame is to be transmitted.
16214 */
16215enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16216 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16217 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16218
16219 /* Keep last */
16220 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16221 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16222 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16223};
16224
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016225/**
16226 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16227 *
16228 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16229 * for all stations.
16230 *
16231 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16232 * establish the session.
16233 *
16234 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16235 * established.
16236 *
16237 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16238 * session is established using MCC.
16239 *
16240 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16241 * established, but is temporarily dropped currently.
16242 *
16243 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16244 */
16245enum qca_wlan_vendor_tdls_state {
16246 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16247 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16248 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16249 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16250 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16251 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16252};
16253
16254/**
16255 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16256 *
16257 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16258 *
16259 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16260 *
16261 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16262 *
16263 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16264 *
16265 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16266 * than through direct link.
16267 *
16268 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16269 * session anymore.
16270 */
16271
16272enum qca_wlan_vendor_tdls_reason {
16273 QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16274 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16275 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16276 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16277 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16278 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16279};
16280
16281/**
16282 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16283 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16284 *
16285 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16286 * station to enable the TDLS session. Optional attribute. The driver sends the
16287 * TDLS session result as an asynchronous response using the command
16288 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16289 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16290 *
16291 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16292 * channel on which the TDLS session to be established. Required only when
16293 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16294 *
16295 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16296 * Indicates the global operating class of the TDLS session to be established.
16297 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16298 *
16299 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16300 * the maximum latency of the WLAN packets to be transmitted/received in
16301 * milliseconds on TDLS session. Required only when
16302 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16303 *
16304 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16305 * Indicates the minimum bandwidth to be used to establish the TDLS session
16306 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16307 * present.
16308 */
16309enum qca_wlan_vendor_attr_tdls_enable {
16310 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
16311 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
16312 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
16313 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
16314 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
16315 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
16316
16317 /* keep last */
16318 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
16319 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
16320 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
16321};
16322
16323/**
16324 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
16325 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
16326 *
16327 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
16328 * station to disable the TDLS session. Optional attribute.
16329 */
16330enum qca_wlan_vendor_attr_tdls_disable {
16331 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
16332 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
16333
16334 /* keep last */
16335 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
16336 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
16337 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
16338};
16339
16340/**
16341 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
16342 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
16343 *
16344 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
16345 * peer station. Optional attribute. Used in
16346 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
16347 *
16348 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
16349 * TDLS session state with the peer specified in
16350 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
16351 * enum qca_wlan_vendor_tdls_state. Used in
16352 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16353 *
16354 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
16355 * reason for the TDLS session state indicated in
16356 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
16357 * qca_wlan_vendor_tdls_reason. Used in
16358 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16359 *
16360 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
16361 * channel of the TDLS session established with
16362 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16363 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16364 *
16365 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
16366 * Indicates the global operating class of the TDLS session established with
16367 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16368 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16369 *
16370 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
16371 * the current number of active TDLS sessions. This is indicated in the response
16372 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16373 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16374 *
16375 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
16376 * whether the driver can initiate new TDLS session. This is indicated in the
16377 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16378 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16379 */
16380enum qca_wlan_vendor_attr_tdls_get_status {
16381 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
16382 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
16383 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
16384 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
16385 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
16386 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
16387 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
16388 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
16389
16390 /* keep last */
16391 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
16392 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
16393 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
16394};
16395
16396/**
16397 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
16398 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
16399 *
16400 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
16401 * peer station. Required attribute.
16402 *
16403 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
16404 * the current TDLS state. Required attribute. Uses the values from
16405 * enum qca_wlan_vendor_tdls_state.
16406 *
16407 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
16408 * reason of the current TDLS session state. Required attribute. Uses the values
16409 * from enum qca_wlan_vendor_tdls_reason.
16410 *
16411 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
16412 * TDLS session channel. Required attribute.
16413 *
16414 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
16415 * Indicates the TDLS session global operating class. Required attribute.
16416 */
16417enum qca_wlan_vendor_attr_tdls_state {
16418 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
16419 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
16420 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
16421 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
16422 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
16423 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
16424
16425 /* keep last */
16426 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
16427 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
16428 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
16429};
16430
16431/*
16432 * enum qca_wlan_vendor_opm_mode - Modes supported by
16433 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
16434 *
16435 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
16436 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
16437 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
16438 * to configure power save inactivity timeout and speculative wake up
16439 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
16440 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
16441 */
16442
16443enum qca_wlan_vendor_opm_mode {
16444 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
16445 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
16446 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
16447};
16448
16449/*
16450 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
16451 * types.
16452 *
16453 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
16454 * from: An MSDU is presented to the driver
16455 * to: the MSDU is queued into TCL SRNG
16456 *
16457 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
16458 * from: the MSDU is queued into TCL SRNG
16459 * to: the MSDU is released by the driver
16460 *
16461 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
16462 * from: the MSDU is presented to the hardware
16463 * to: the MSDU is released by the hardware
16464 *
16465 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
16466 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
16467 * from: A PPDU is presented to the hardware LMAC
16468 * to: over-the-air transmission is started for the PPDU
16469 */
16470enum qca_wlan_vendor_tx_latency_type {
16471 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
16472 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
16473 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
16474 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
16475};
16476
16477/**
16478 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
16479 * used inside nested attributes
16480 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
16481 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
16482 *
16483 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
16484 * Indicates the latency type.
16485 * See enum qca_wlan_vendor_tx_latency_type for the supported types.
16486 *
16487 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
16488 * Indicates the granularity (in microseconds) of the distribution for the
16489 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
16490 * must be positive.
16491 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
16492 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
16493 * of 1000, and the maximum allowed value is 15000 (us).
16494 *
16495 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
16496 * Indicates the average of the latency (in microseconds) for the type
16497 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
16498 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
16499 * otherwise, it represents the quotient of <accumulated latency of the
16500 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
16501 * MSDUs/MPDUs in a cycle>.
16502 *
16503 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
16504 * Array of u32, 4 elements in total, represents the latency distribution for
16505 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
16506 * Each element holds the count of MSDUs/PPDUs (according to the latency type)
16507 * within a range:
16508 * element[0]: latency >= 0 && latency < granularity
16509 * element[1]: latency >= granularity && latency < granularity * 2
16510 * element[2]: latency >= granularity * 2 && latency < granularity * 3
16511 * element[3]: latency >= granularity * 3
16512 */
16513enum qca_wlan_vendor_attr_tx_latency_bucket {
16514 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
16515 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
16516 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
16517 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
16518 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
16519
16520 /* keep last */
16521 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
16522 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
16523 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
16524};
16525
16526/**
16527 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
16528 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
16529 *
16530 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
16531 * Indicates link MAC address of the remote peer. For example, when running
16532 * in station mode, it's the BSSID of the link; while when running in AP
16533 * mode, it's the link MAC address of the remote station.
16534 *
16535 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
16536 * Array of nested attribute.
16537 * Represents the transmit latency statistics for the link specified by
16538 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16539 * Each entry represents the statistics for one of the types defined in
16540 * enum qca_wlan_vendor_tx_latency_type.
16541 * Each defined type has and must have one entry.
16542 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
16543 */
16544enum qca_wlan_vendor_attr_tx_latency_link {
16545 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
16546 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
16547 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
16548
16549 /* keep last */
16550 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
16551 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
16552 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
16553};
16554
16555/**
16556 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
16557 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
16558 *
16559 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
16560 * Disable transmit latency monitoring.
16561 *
16562 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
16563 * Enable transmit latency monitoring.
16564 *
16565 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
16566 * Get transmit latency statistics of the last cycle (period is specified by
16567 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
16568 */
16569enum qca_wlan_vendor_tx_latency_action {
16570 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
16571 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
16572 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
16573};
16574
16575/**
16576 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
16577 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
16578 * per-link transmit latency statistics.
16579 *
16580 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
16581 * 1) used as a command to enable the feature
16582 * Precondition(s):
16583 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16584 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
16585 * Mandatory attribute(s):
16586 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16587 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
16588 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
16589 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16590 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
16591 * Notes:
16592 * The driver will monitor the transmit latency for the active links
16593 * and save the statistics for each cycle (period is set by
16594 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
16595 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
16596 * report is required.
16597 *
16598 * 2) used as a command to disable the feature
16599 * Precondition(s):
16600 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16601 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
16602 * Mandatory attribute(s):
16603 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16604 *
16605 * 3) used as a command to retrieve the statistics for all the active links on
16606 * the requested interface
16607 * Precondition(s):
16608 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16609 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16610 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
16611 * Mandatory attribute(s):
16612 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16613 * Notes:
16614 * The driver returns failure directly if the feature is not enabled or
16615 * there is no active link.
16616 * The driver returns the statistics of the last cycle in the case of
16617 * success.
16618 *
16619 * 4) used as a command to retrieve the statistics for the specified links
16620 * Precondition(s):
16621 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16622 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16623 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
16624 * Mandatory attribute(s):
16625 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16626 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
16627 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16628 * Notes:
16629 * The driver returns failure directly if the feature is not enabled or
16630 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
16631 * does not exist or is not in active state.
16632 *
16633 * 5) used as a command response for #3 or #4
16634 * Precondition(s):
16635 * Userspace issues command #3 or #4, and the driver gets corresponding
16636 * statistics successfully.
16637 * Mandatory attribute(s):
16638 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16639 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16640 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16641 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16642 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16643 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16644 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16645 *
16646 * 6) used as an asynchronous event to report the statistics periodically
16647 * Precondition(s):
16648 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
16649 * #1.
16650 * One or more links are in active state.
16651 * Mandatory attribute(s):
16652 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16653 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16654 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16655 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16656 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16657 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16658 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16659 *
16660 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
16661 *
16662 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
16663 * Action to take in this vendor command.
16664 * See enum qca_wlan_vendor_tx_latency_action for supported actions.
16665 *
16666 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
16667 * Enable (flag attribute present) - The driver needs to report transmit latency
16668 * statistics at the end of each statistical period.
16669 * Disable (flag attribute not present) - The driver doesn't need to report
16670 * transmit latency statistics periodically.
16671 *
16672 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
16673 * Indicates statistical period for transmit latency in terms of milliseconds,
16674 * the minimal allowed value is 100 and the maximum allowed value is 60000.
16675 *
16676 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
16677 * Each entry represents the latency buckets configuration for one of the types
16678 * defined in enum qca_wlan_vendor_tx_latency_type.
16679 * Each defined type has and must have one entry.
16680 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
16681 * supported attributes.
16682 *
16683 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
16684 * Information of the links, each entry represents for one link.
16685 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
16686 * supported attributes for each entry.
16687 */
16688enum qca_wlan_vendor_attr_tx_latency {
16689 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
16690 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
16691 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
16692 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
16693 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
16694 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
16695
16696 /* keep last */
16697 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
16698 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
16699 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
16700};
16701
16702/**
16703 * enum qca_chan_width_update_type - Represents the possible values for
16704 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
16705 *
16706 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
16707 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
16708 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
16709 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
16710 * with AP to indicate the change in the maximum allowed operating bandwidth.
16711 *
16712 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
16713 * bandwidth only to Tx path. In this case the driver doesn't need to conduct
16714 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
16715 * expected to be less than the current connection maximum negotiated bandwidth.
16716 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
16717 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
16718 * to 80 MHz only in the Tx path.
16719 *
16720 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
16721 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
16722 * phymode bandwidth to avoid interoperability issues with APs which don't
16723 * handle the maximum bandwidth change indication correctly.
16724 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
16725 * bandwidth configured is 20 MHz, now the driver indicates the change in
16726 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
16727 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
16728 * interoperability issues with APs which still use 40 MHz for sending the
16729 * frames though it received maximum allowed bandwidth indication as 20 MHz
16730 * from the STA.
16731 */
16732enum qca_chan_width_update_type {
16733 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
16734 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
16735 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
16736};
16737
Sunil Ravi72e01222024-03-09 01:25:43 +000016738/**
16739 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
16740 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
16741 *
16742 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
16743 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
16744 * frequency. If non PSD power, carries either 20 MHz bandwidth's center
16745 * channel frequency or 40 MHz bandwidth's center channel frequency
16746 * (or 80/160 MHz bandwidth's center channel frequency).
16747 *
16748 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
16749 * If PSD power, carries PSD power value of the
16750 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
16751 * If non PSD power, carries EIRP power value of bandwidth mentioned
16752 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
16753 */
16754enum qca_wlan_vendor_attr_tpc_pwr_level {
16755 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
16756 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
16757 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
16758
16759 /* keep last */
16760 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
16761 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
16762 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
16763};
16764
16765/**
16766 * enum qca_wlan_vendor_tpc - Definition of link attributes
16767 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
16768 *
16769 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
16770 * For MLO STA, AP BSSID indicates the AP's link address.
16771 *
16772 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
16773 * Indicates using PSD power mode if this flag is present.
16774 *
16775 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
16776 * value in dBm
16777 *
16778 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
16779 * AP, refer to Table E-12-Regulatory Info subfield encoding in
16780 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
16781 *
16782 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
16783 * (dBm) advertised by AP in Power Constraint element, refer to
16784 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
16785 *
16786 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
16787 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
16788 * If PSD power, each power level describes each 20 MHz subchannel PSD
16789 * power value. If non PSD power, each power level describes each supported
16790 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
16791 * each level attribute contains corresponding bandwidth's center channel
16792 * frequency and its EIRP power value.
16793 */
16794enum qca_wlan_vendor_attr_tpc {
16795 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
16796 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
16797 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
16798 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
16799 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
16800 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
16801 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
16802
16803 /* keep last */
16804 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
16805 QCA_WLAN_VENDOR_ATTR_TPC_MAX =
16806 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
16807};
16808
16809/**
16810 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
16811 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
16812 *
16813 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
16814 * per-link TPC information of all the active links of MLO STA.
16815 * For non MLO STA, only one link TPC information will be returned
16816 * for connected AP in this nested attribute.
16817 * The attributes used inside this nested attributes are defined
16818 * in enum qca_wlan_vendor_attr_tpc.
16819 */
16820enum qca_wlan_vendor_attr_tpc_links {
16821 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
16822 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
16823
16824 /* keep last */
16825 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
16826 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
16827 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
16828};
16829
16830/**
16831 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
16832 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
16833 *
16834 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
16835 * associated with the firmware page fault that is expected to contain the
16836 * required dump to analyze frequent page faults.
16837 * NLA_BINARY attribute, the maximum size is 1024 bytes.
16838 */
16839enum qca_wlan_vendor_attr_fw_page_fault_report {
16840 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
16841 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
16842
16843 /* keep last */
16844 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
16845 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
16846 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
16847};
16848
Sunil Raviaf399a82024-05-05 20:56:55 +000016849/**
16850 * enum qca_wlan_btm_support: BTM support configuration
16851 *
16852 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
16853 * follows the BSS Transition bit in the Extended Capabilities element from the
16854 * connect request IEs with the default BTM support policy.
16855 *
16856 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
16857 * (re)association attempts. The driver shall restore the default BTM support
16858 * policy during the first disconnection after successful association. When this
16859 * configuration is enabled, the driver shall overwrite the BSS Transition bit
16860 * as zero in the Extended Capabilities element while sending (Re)Association
16861 * Request frames. Also, the driver shall drop the BTM frames from userspace and
16862 * the connected AP when this configuration is enabled.
16863 */
16864enum qca_wlan_btm_support {
16865 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
16866 QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
16867};
16868
16869/**
16870 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for
16871 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE.
16872 *
16873 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code
16874 * used in OFDM/CCK.
16875 *
16876 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index.
16877 *
16878 */
16879enum qca_wlan_vendor_data_rate_type {
16880 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0,
16881 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1,
16882};
16883
16884/**
16885 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition
16886 * of data rate related attributes which is used inside nested attribute
16887 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG.
16888 *
16889 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type.
16890 * For this attribute, valid values are enumerated in enum
16891 * %qca_wlan_vendor_data_rate_type.
16892 *
16893 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value.
16894 * This attribute value is interpreted according to the value of attribute
16895 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config
16896 * type, this attribute value is defined in the units of 0.5 Mbps.
16897 * For non legacy config type, this attribute carries the MCS index number.
16898 *
16899 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm.
16900 * Usually the target computes a final transmit power that is the maximum
16901 * power level that doesn't exceed the limits enforced by various sources
16902 * like chip-specific conformance test limits (CTL), Specific Absorption
16903 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific
16904 * limits, channel avoidance limits, Automated Frequency Coordination (AFC),
16905 * and others. In some cases it may be desirable to use a power level that is
16906 * lower than the maximum power level allowed by all of these limits, so this
16907 * attribute provides an additional limit that can be used to reduce the
16908 * transmit power level.
16909 *
16910 */
16911enum qca_wlan_vendor_attr_adjust_tx_power_rate {
16912 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0,
16913 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1,
16914 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2,
16915 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3,
16916
16917 /* keep last */
16918 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST,
16919 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX =
16920 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1,
16921};
16922
16923/**
16924 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition
16925 * of chain related attributes which is used inside nested attribute
16926 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG.
16927 *
16928 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value.
16929 * Represents a particular chain for which transmit power adjustment needed.
16930 *
16931 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested
16932 * attribute containing data rate related information to adjust transmit
16933 * power. The attributes used inside this nested attributes are defined in
16934 * enum qca_wlan_vendor_attr_adjust_tx_power_rate.
16935 */
16936enum qca_wlan_vendor_attr_adjust_tx_power_chain_config {
16937 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0,
16938 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1,
16939 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2,
16940
16941 /* keep last */
16942 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST,
16943 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX =
16944 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1,
16945};
16946
16947/**
16948 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition
16949 * of band related attributes which is used inside nested attribute
16950 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG.
16951 *
16952 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to
16953 * indicate band for which configuration applies. Valid values are enumerated
16954 * in enum %nl80211_band.
16955 *
16956 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested
16957 * attribute containing per chain related information to adjust transmit
16958 * power. The attributes used inside this nested attribute are defined in
16959 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config.
16960 *
16961 */
16962enum qca_wlan_vendor_attr_adjust_tx_power_band_config {
16963 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0,
16964 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1,
16965 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2,
16966
16967 /* keep last */
16968 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST,
16969 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX =
16970 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1,
16971};
16972
16973/**
16974 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes
16975 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand.
16976 *
16977 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute
16978 * containing per band related information to adjust transmit power.
16979 * The attributes used inside this nested attributes are defined in
16980 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config.
16981 */
16982enum qca_wlan_vendor_attr_adjust_tx_power {
16983 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0,
16984 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1,
16985
16986 /* keep last */
16987 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST,
16988 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX =
16989 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1,
16990};
16991
16992/**
16993 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute
16994 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE.
16995 *
16996 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to
16997 * send spectral data to userspace applications.
16998 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface
16999 * to send spectral data to userspace applications.
17000 */
17001enum qca_wlan_vendor_spectral_data_transport_mode {
17002 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0,
17003 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1,
17004};
17005
17006/* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute
17007 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to
17008 * indicate the completion status for a spectral scan.
17009 *
17010 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL:
17011 * Indicates a successful completion of the scan.
17012 *
17013 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates
17014 * a timeout has occured while processing the spectral reports.
17015 */
17016enum qca_wlan_vendor_spectral_scan_complete_status {
17017 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0,
17018 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1,
17019};
17020
17021/* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of
17022 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE
17023 * to indicate scan status and samples received from hardware.
17024 *
17025 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute
17026 *
17027 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute.
17028 * Indicates completion status, either the scan is successful or a timeout
17029 * is issued by the driver.
17030 * See enum qca_wlan_vendor_spectral_scan_complete_status.
17031 *
17032 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32
17033 * attribute. Number of spectral samples received after the scan has started.
17034 */
17035enum qca_wlan_vendor_attr_spectral_scan_complete {
17036 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0,
17037 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1,
17038 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2,
17039
17040 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST,
17041 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX =
17042 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1,
17043};
17044
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080017045#endif /* QCA_VENDOR_H */