blob: a5bbc781a275726c988be213dde2f0f7772bebe2 [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 Ravib0ac25f2024-07-12 01:42:03 +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.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001051 */
1052enum qca_nl80211_vendor_subcmds {
1053 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
1054 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001055 /* subcmds 2..8 not yet allocated */
1056 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001057 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001058 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001059 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001060 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001061 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
1062 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
1063 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
1064 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
1065 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
1066 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
1067 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
1068 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
1069 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
1070 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
1071 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
1072 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
1073 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
1074 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
1075 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
1076 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
1077 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
1078 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
1079 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
1080 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
1081 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
1082 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
1083 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
1084 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
1085 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
1086 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
1087 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
1088 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
1089 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
1090 /* 43..49 - reserved for QCA */
1091 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
1092 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
1093 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001094 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001095 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1096 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001097 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1098 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1099 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1100 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1101 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001102 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1103 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1104 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1105 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1106 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1107 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1108 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1109 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1110 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1111 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1112 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1113 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1114 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001115 /* Wi-Fi configuration subcommands */
1116 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1117 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001118 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1119 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1120 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1121 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1122 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1123 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1124 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1125 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1126 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1127 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1128 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001129 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001130 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1131 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1132 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1133 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1134 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1135 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1136 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1137 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1138 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -07001139 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001140 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1141 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1142 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1143 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001144 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1145 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1146 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1147 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1148 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001149 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001150 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1151 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001152 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001153 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1154 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001155 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001156 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1157 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1158 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001159 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1160 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001161 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1162 /* FTM/indoor location subcommands */
1163 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1164 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1165 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1166 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1167 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1168 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1169 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1170 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1171 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001172 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1173 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001174 /* DMG low level RF sector operations */
1175 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1176 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1177 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1178 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1179 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001180 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001181 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001182 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001183 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1184 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1185 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1186 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001187 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1188 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001189 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1190 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1191 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1192 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1193 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001194 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1195 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1196 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1197 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1198 /* Flush peer pending data */
1199 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1200 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1201 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1202 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1203 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1204 /* Thermal shutdown commands to protect wifi chip */
1205 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1206 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1207 /* Wi-Fi test configuration subcommand */
1208 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1209 /* Frame filter operations for other BSSs/unassociated STAs */
1210 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001211 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001212 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1213 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001214 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1215 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1216 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001217 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1218 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1219 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001220 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1221 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001222 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1223 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1224 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1225 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001226 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001227 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1228 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1229 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001230 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1231 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1232 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1233 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1234 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1235 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1236 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001237 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001238 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1239 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1240 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1241 /* 201 - reserved for QCA */
1242 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1243 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1244 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1245 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001246 /* 206..212 - reserved for QCA */
1247 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1248 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1249 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1250 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001251 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1252 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1253 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1254 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001255 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1256 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1257 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1258 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1259 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1260 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001261 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Sunil Ravi640215c2023-06-28 23:08:09 +00001262 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1263 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1264 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1265 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001266 /* 232 - reserved for QCA */
1267 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1268 /* 234 - reserved for QCA */
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001269 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
1270 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
1271 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
1272 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
1273 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
1274 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001275};
1276
Sunil8cd6f4d2022-06-28 18:40:46 +00001277/* Compatibility defines for previously used subcmd names.
1278 * These values should not be used in any new implementation.
1279 */
1280#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1281 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1282
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001283enum qca_wlan_vendor_attr {
1284 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1285 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1286 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001287 /* Used only when driver sends vendor events to the userspace under the
1288 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1289 * commands to the driver.
1290 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001291 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001292 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1293 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001294 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1295 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001296 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001297 * by enum qca_roaming_policy.
1298 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001299 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1300 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001301 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1302 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001303 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001304 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1305 /* Unsigned 32-bit value. */
1306 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1307 /* Unsigned 32-bit value */
1308 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1309 /* Unsigned 32-bit value */
1310 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001311 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1312 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1313 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1314 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1315 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001316 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001317 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001318 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1319 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1320 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1321 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1322 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1323 */
1324 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1325 /* Indoor location capabilities, returned by
1326 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1327 * see enum qca_wlan_vendor_attr_loc_capa.
1328 */
1329 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1330 /* Array of nested attributes containing information about each peer
1331 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1332 * for supported attributes for each peer.
1333 */
1334 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1335 /* Array of nested attributes containing measurement results for
1336 * one or more peers, reported by the
1337 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1338 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1339 * attributes.
1340 */
1341 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1342 /* Flag attribute for enabling or disabling responder functionality. */
1343 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1344 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1345 * command to specify the LCI report that will be sent by
1346 * the responder during a measurement exchange. The format is
1347 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1348 */
1349 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1350 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1351 * command to specify the location civic report that will
1352 * be sent by the responder during a measurement exchange.
1353 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1354 */
1355 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1356 /* Session/measurement completion status code,
1357 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1358 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1359 * see enum qca_vendor_attr_loc_session_status.
1360 */
1361 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1362 /* Initial dialog token used by responder (0 if not specified),
1363 * unsigned 8 bit value.
1364 */
1365 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1366 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1367 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1368 * AOA measurements are needed as part of an FTM session.
1369 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1370 * enum qca_wlan_vendor_attr_aoa_type.
1371 */
1372 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1373 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1374 * by indoor location measurements. Refers to the antenna
1375 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1376 */
1377 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1378 /* AOA measurement data. Its contents depends on the AOA measurement
1379 * type and antenna array mask:
1380 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1381 * phase of the strongest CIR path for each antenna in the measured
1382 * array(s).
1383 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1384 * values, phase and amplitude of the strongest CIR path for each
1385 * antenna in the measured array(s).
1386 */
1387 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001388 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1389 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001390 * the corresponding antenna RSSI value
1391 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001392 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1393 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001394 * to report the specific antenna RSSI value (unsigned 32 bit value)
1395 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001396 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001397 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1398 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1399 /* TSF timer value, unsigned 64 bit value.
1400 * May be returned by various commands.
1401 */
1402 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1403 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1404 * 0..127 for sector indices or 65535 as special value used to
1405 * unlock sector selection in
1406 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1407 */
1408 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1409 /* DMG RF sector type, unsigned 8 bit value. One of the values
1410 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1411 */
1412 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1413 /* Bitmask of DMG RF modules for which information is requested. Each
1414 * bit corresponds to an RF module with the same index as the bit
1415 * number. Unsigned 32 bit number but only low 8 bits can be set since
1416 * all DMG chips currently have up to 8 RF modules.
1417 */
1418 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1419 /* Array of nested attributes where each entry is DMG RF sector
1420 * configuration for a single RF module.
1421 * Attributes for each entry are taken from enum
1422 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1423 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1424 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1425 */
1426 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1427 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1428 * to report frame aggregation statistics to userspace.
1429 */
1430 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1431 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001432 /* Unsigned 8-bit value representing MBO transition reason code as
1433 * provided by the AP used by subcommand
1434 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1435 * specified by the userspace in the request to the driver.
1436 */
1437 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1438 /* Array of nested attributes, BSSID and status code, used by subcommand
1439 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1440 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1441 * The userspace space specifies the list/array of candidate BSSIDs in
1442 * the order of preference in the request. The driver specifies the
1443 * status code, for each BSSID in the list, in the response. The
1444 * acceptable candidates are listed in the order preferred by the
1445 * driver.
1446 */
1447 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001448 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1449 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1450 */
1451 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1452 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1453 * to define the number of antennas to use for BRP.
1454 * different purpose in each ANT_LIMIT_MODE:
1455 * DISABLE - ignored
1456 * EFFECTIVE - upper limit to number of antennas to be used
1457 * FORCE - exact number of antennas to be used
1458 * unsigned 8 bit value
1459 */
1460 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1461 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001462 * to report the corresponding antenna index to the chain RSSI value
1463 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001464 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001465 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1466 * the specific antenna EVM value (unsigned 32 bit value). With a
1467 * determinate group of antennas, the driver specifies the EVM value
1468 * for each antenna ID, and application extract them in user space.
1469 */
1470 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001471 /*
1472 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1473 * wlan firmware current state. FW state is an unsigned 8 bit value,
1474 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1475 */
1476 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001477
Hai Shalom899fcc72020-10-19 14:38:18 -07001478 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1479 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1480 * of single values from enum qca_set_band are valid. This attribute
1481 * uses bitmask combinations to define the respective allowed band
1482 * combinations and this attributes takes precedence over
1483 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1484 */
1485 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1486
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001487 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1488 * This field describes the maximum number of links supported by the
1489 * chip for MLO association.
1490 * This is an optional attribute.
1491 */
1492 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
1493
1494 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1495 * This field describes the maximum number of Simultaneous Transmit
1496 * and Receive (STR) links used in Multi-Link Operation.
1497 * The maximum number of STR links used can be different
1498 * from the maximum number of radios supported by the chip.
1499 * This is a static configuration of the chip.
1500 * This is an optional attribute.
1501 */
1502 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
1503
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001504 /* keep last */
1505 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1506 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1507};
1508
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001509enum qca_roaming_policy {
1510 QCA_ROAMING_NOT_ALLOWED,
1511 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1512};
1513
Hai Shalom021b0b52019-04-10 11:17:58 -07001514/**
1515 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1516 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1517 *
1518 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1519 * reasons.
1520 *
1521 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1522 * the configured threshold.
1523 *
1524 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1525 * beacon misses from the then connected AP.
1526 *
1527 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1528 * by the connected AP.
1529 *
1530 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1531 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1532 *
1533 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1534 * or environment being very noisy or congested.
1535 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001536 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001537 * from the user (user space).
1538 *
1539 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1540 * the connected AP.
1541 *
1542 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1543 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001544 *
1545 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1546 * transition request.
1547 *
1548 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1549 * data activity with the AP and the current RSSI falls below a certain
1550 * threshold.
1551 *
1552 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1553 * Disassociation frames received from the connected AP.
1554 *
1555 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1556 * that happens when there is no candidate AP found during the poor RSSI scan
1557 * trigger.
1558 *
1559 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1560 * obtained from an external scan (not aimed at roaming).
1561 *
1562 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1563 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001564 *
1565 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1566 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001567 */
1568enum qca_roam_reason {
1569 QCA_ROAM_REASON_UNKNOWN,
1570 QCA_ROAM_REASON_PER,
1571 QCA_ROAM_REASON_BEACON_MISS,
1572 QCA_ROAM_REASON_POOR_RSSI,
1573 QCA_ROAM_REASON_BETTER_RSSI,
1574 QCA_ROAM_REASON_CONGESTION,
1575 QCA_ROAM_REASON_USER_TRIGGER,
1576 QCA_ROAM_REASON_BTM,
1577 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001578 QCA_ROAM_REASON_WTC,
1579 QCA_ROAM_REASON_IDLE,
1580 QCA_ROAM_REASON_DISCONNECTION,
1581 QCA_ROAM_REASON_PERIODIC_TIMER,
1582 QCA_ROAM_REASON_BACKGROUND_SCAN,
1583 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001584 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001585};
1586
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001587enum qca_wlan_vendor_attr_roam_auth {
1588 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001589 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1590 * of the roamed AP for MLO roaming.
1591 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001592 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1593 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1594 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1595 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1596 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1597 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1598 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001599 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001600 /* Indicates the status of re-association requested by user space for
1601 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1602 * Type u16.
1603 * Represents the status code from AP. Use
1604 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1605 * real status code for failures.
1606 */
1607 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1608 /* This attribute indicates that the old association was maintained when
1609 * a re-association is requested by user space and that re-association
1610 * attempt fails (i.e., cannot connect to the requested BSS, but can
1611 * remain associated with the BSS with which the association was in
1612 * place when being requested to roam). Used along with
1613 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1614 * re-association status. Type flag.
1615 * This attribute is applicable only for re-association failure cases.
1616 */
1617 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1618 /* This attribute specifies the PMK if one was newly generated during
1619 * FILS roaming. This is added to the PMKSA cache and is used in
1620 * subsequent connections with PMKSA caching.
1621 */
1622 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1623 /* This attribute specifies the PMKID used/generated for the current
1624 * FILS roam. This is used in subsequent connections with PMKSA caching.
1625 */
1626 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1627 /* A 16-bit unsigned value specifying the next sequence number to use
1628 * in ERP message in the currently associated realm. This is used in
1629 * doing subsequent ERP based connections in the same realm.
1630 */
1631 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001632 /* A 16-bit unsigned value representing the reasons for the roaming.
1633 * Defined by enum qca_roam_reason.
1634 */
1635 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001636 /* A nested attribute containing per-link information of all the links
1637 * of MLO connection done while roaming. The attributes used inside this
1638 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1639 */
1640 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001641
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001642 /* keep last */
1643 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1644 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1645 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1646};
1647
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001648enum qca_wlan_vendor_attr_p2p_listen_offload {
1649 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1650 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1651 * of the social channels.
1652 */
1653 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1654 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1655 */
1656 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1657 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1658 */
1659 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1660 /* A 32-bit unsigned value; number of interval times the firmware needs
1661 * to run the offloaded P2P listen operation before it stops.
1662 */
1663 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1664 /* An array of arbitrary binary data with one or more 8-byte values.
1665 * The device types include both primary and secondary device types.
1666 */
1667 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1668 /* An array of unsigned 8-bit characters; vendor information elements.
1669 */
1670 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1671 /* A 32-bit unsigned value; a control flag to indicate whether listen
1672 * results need to be flushed to wpa_supplicant.
1673 */
1674 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1675 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1676 * event.
1677 */
1678 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1679 /* keep last */
1680 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1681 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1682 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1683};
1684
Hai Shalomc3565922019-10-28 11:58:20 -07001685/**
1686 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1687 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1688 *
1689 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1690 * Used with event to notify the primary channel number selected in ACS
1691 * operation.
1692 * Note: If both the driver and user-space application supports the 6 GHz band,
1693 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1694 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1695 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1696 * is still used if either of the driver or user space application doesn't
1697 * support the 6 GHz band.
1698 *
1699 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1700 * Used with event to notify the secondary channel number selected in ACS
1701 * operation.
1702 * Note: If both the driver and user-space application supports the 6 GHz band,
1703 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1704 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1705 * To maintain backward compatibility,
1706 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1707 * the driver or user space application doesn't support 6 GHz band.
1708 *
1709 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1710 * (a) Used with command to configure hw_mode from
1711 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1712 * (b) Also used with event to notify the hw_mode of selected primary channel
1713 * in ACS operation.
1714 *
1715 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1716 * Used with command to configure ACS operation for HT mode.
1717 * Disable (flag attribute not present) - HT disabled and
1718 * Enable (flag attribute present) - HT enabled.
1719 *
1720 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1721 * Used with command to configure ACS operation for HT40 mode.
1722 * Disable (flag attribute not present) - HT40 disabled and
1723 * Enable (flag attribute present) - HT40 enabled.
1724 *
1725 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1726 * Used with command to configure ACS operation for VHT mode.
1727 * Disable (flag attribute not present) - VHT disabled and
1728 * Enable (flag attribute present) - VHT enabled.
1729 *
1730 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1731 * mandatory with event.
1732 * If specified in command path, ACS operation is configured with the given
1733 * channel width (in MHz).
1734 * In event path, specifies the channel width of the primary channel selected.
1735 *
1736 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1737 * Used with command to configure channel list using an array of
1738 * channel numbers (u8).
1739 * Note: If both the driver and user-space application supports the 6 GHz band,
1740 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1741 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1742 *
1743 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1744 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001745 * ACS operation. The value is the index of the channel center frequency for
1746 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1747 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001748 * Note: If both the driver and user-space application supports the 6 GHz band,
1749 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1750 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1751 * To maintain backward compatibility,
1752 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1753 * the driver or user space application doesn't support the 6 GHz band.
1754 *
1755 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1756 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001757 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1758 * The value is the index of the channel center frequency for 160 MHz channels
1759 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1760 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001761 * Note: If both the driver and user-space application supports the 6 GHz band,
1762 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1763 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1764 * To maintain backward compatibility,
1765 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1766 * the driver or user space application doesn't support the 6 GHz band.
1767 *
1768 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1769 * Used with command to configure the channel list using an array of channel
1770 * center frequencies in MHz (u32).
1771 * Note: If both the driver and user-space application supports the 6 GHz band,
1772 * the driver first parses the frequency list and if it fails to get a frequency
1773 * list, parses the channel list specified using
1774 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1775 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1776 *
1777 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1778 * Used with event to notify the primary channel center frequency (MHz) selected
1779 * in ACS operation.
1780 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1781 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1782 *
1783 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1784 * Used with event to notify the secondary channel center frequency (MHz)
1785 * selected in ACS operation.
1786 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1787 * includes this attribute along with
1788 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1789 *
1790 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1791 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1792 * selected in ACS operation.
1793 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1794 * includes this attribute along with
1795 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1796 *
1797 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1798 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1799 * selected in ACS operation.
1800 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1801 * includes this attribute along with
1802 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001803 *
1804 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1805 * Used with command to notify the driver of EDMG request for ACS
1806 * operation.
1807 *
1808 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1809 * Used with event to notify the EDMG channel number selected in ACS
1810 * operation.
1811 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001812 *
1813 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1814 * Used with event to notify the puncture pattern selected in ACS operation.
1815 * Encoding for this attribute will follow the convention used in the Disabled
1816 * Subchannel Bitmap field of the EHT Operation IE.
1817 *
1818 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1819 * Used with command to configure ACS operation for EHT mode.
1820 * Disable (flag attribute not present) - EHT disabled and
1821 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001822 *
1823 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1824 * Used with command to configure how older scan can be considered for ACS
1825 * scoring. In case scan was performed on a partial set of channels configured
1826 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1827 * (in ms), scan only the remaining channels.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001828 *
1829 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
1830 * Used with command to configure ACS operation for a specific link affiliated
1831 * to an AP MLD.
1832 *
Hai Shalomc3565922019-10-28 11:58:20 -07001833 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001834enum qca_wlan_vendor_attr_acs_offload {
1835 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001836 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1837 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1838 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1839 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1840 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1841 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1842 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1843 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1844 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1845 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1846 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1847 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1848 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1849 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1850 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001851 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1852 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001853 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1854 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001855 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001856 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
Hai Shalomc3565922019-10-28 11:58:20 -07001857
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001858 /* keep last */
1859 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1860 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1861 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1862};
1863
Hai Shalomc3565922019-10-28 11:58:20 -07001864/**
1865 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1866 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1867 *
1868 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1869 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1870 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1871 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1872 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1873 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1874 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001875enum qca_wlan_vendor_acs_hw_mode {
1876 QCA_ACS_MODE_IEEE80211B,
1877 QCA_ACS_MODE_IEEE80211G,
1878 QCA_ACS_MODE_IEEE80211A,
1879 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001880 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001881 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001882};
1883
1884/**
1885 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1886 *
1887 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1888 * management offload, a mechanism where the station's firmware
1889 * does the exchange with the AP to establish the temporal keys
1890 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001891 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1892 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001893 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001894 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001895 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1896 * Listen offload; a mechanism where the station's firmware takes care of
1897 * responding to incoming Probe Request frames received from other P2P
1898 * Devices whilst in Listen state, rather than having the user space
1899 * wpa_supplicant do it. Information from received P2P requests are
1900 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001901 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1902 * specific features.
1903 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1904 * features.
1905 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1906 * specific features only. If a Device sets this bit but not the
1907 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1908 * this Device may not support all OCE AP functionalities but can support
1909 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001910 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1911 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001912 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001913 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1914 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001915 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1916 * and applying thermal configuration through
1917 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1918 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1919 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001920 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1921 * With Adaptive 11r feature, access points advertise the vendor
1922 * specific IEs and MDE but do not include FT AKM in the RSNE.
1923 * The Adaptive 11r supported stations are expected to identify
1924 * such vendor specific IEs and connect to the AP in FT mode though
1925 * the profile is configured in non-FT mode.
1926 * The driver-based SME cases also need to have this support for
1927 * Adaptive 11r to handle the connection and roaming scenarios.
1928 * This flag indicates the support for the same to the user space.
1929 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1930 * concurrent network sessions on different Wi-Fi bands. This feature
1931 * capability is attributed to the hardware's capability to support
1932 * the same (e.g., DBS).
1933 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1934 * responses for the respective TWT operations are asynchronous (separate
1935 * event message) from the driver. If not specified, the responses are
1936 * synchronous (in vendor command reply) to the request. Each TWT
1937 * operation is specifically mentioned (against its respective
1938 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001939 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001940 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001941 * generic nl80211 commands for NDP interface create/delete and to
1942 * register/unregister the netdev instead of creating/deleting the NDP
1943 * interface using the vendor commands
1944 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1945 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001946 * (5.12 version onward), interface creation/deletion is not allowed using
1947 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1948 * during the register/unregister of netdev. Create and delete NDP
1949 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1950 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07001951 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1952 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1953 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1954 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1955 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1956 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1957 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1958 * station mode supports secure RTT measurement exchange. If
1959 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1960 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1961 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1962 * mode supports secure RTT measurement exchange. If
1963 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1964 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1965 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1966 * the device in station mode supports protection of range negotiation and
1967 * measurement management frames. If
1968 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1969 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1970 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1971 * the device in AP mode supports protection of range negotiation and
1972 * measurement management frames. If
1973 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1974 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Sunil Ravi640215c2023-06-28 23:08:09 +00001975 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
1976 * in AP mode supports configuring allowed frequency list for AP operation
1977 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
1978 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
1979 * that the device supports enhanced audio experience over WLAN feature.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001980 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1981 */
1982enum qca_wlan_vendor_features {
1983 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001984 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001985 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001986 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001987 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1988 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1989 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001990 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00001991 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001992 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1993 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001994 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001995 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1996 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1997 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07001998 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07001999 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
2000 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
2001 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
2002 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
2003 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
2004 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Sunil Ravi640215c2023-06-28 23:08:09 +00002005 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
2006 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002007 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
2008};
2009
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07002010/**
2011 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
2012 *
2013 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
2014 * the offloaded data.
2015 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
2016 * data.
2017 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
2018 * indication.
2019 */
2020enum qca_wlan_vendor_attr_data_offload_ind {
2021 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
2022 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
2023 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
2024 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
2025
2026 /* keep last */
2027 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
2028 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
2029 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
2030};
Ravi Joshie6ccb162015-07-16 17:45:41 -07002031
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002032/**
2033 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
2034 * OCB config
2035 *
2036 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
2037 * configuration
2038 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
2039 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
2040 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
2041 * scheduled
2042 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
2043 * information
2044 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
2045 * active state configuration
2046 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
2047 * OCB_CONFIG_FLAG_80211_FRAME_MODE
2048 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
2049 * use in the case that a packet is sent without a TX control header
2050 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
2051 * last TA received that the local time set by TA is synchronous to other
2052 * communicating OCB STAs.
2053 */
2054enum qca_wlan_vendor_attr_ocb_set_config {
2055 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
2056 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
2057 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
2058 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
2059 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
2060 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
2061 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
2062 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
2063 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
2064 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2065 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
2066 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
2067 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
2068};
2069
2070/**
2071 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
2072 * UTC time
2073 *
2074 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
2075 * 10 bytes
2076 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
2077 * 5 bytes
2078 */
2079enum qca_wlan_vendor_attr_ocb_set_utc_time {
2080 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
2081 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
2082 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
2083 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
2084 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
2085 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
2086};
2087
2088/**
2089 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
2090 * to start sending timing advert frames
2091 *
2092 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
2093 * on which to send the frames
2094 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
2095 * the frame is sent in 5 seconds
2096 */
2097enum qca_wlan_vendor_attr_ocb_start_timing_advert {
2098 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
2099 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
2100 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
2101 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
2102 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
2103 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
2104};
2105
2106/**
2107 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
2108 * to stop timing advert
2109 *
2110 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
2111 * frequency on which to stop the timing advert
2112 */
2113enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
2114 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
2115 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
2116 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
2117 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
2118 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
2119};
2120
2121/**
2122 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
2123 * get TSF timer value
2124 *
2125 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2126 * timer
2127 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2128 */
2129enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2130 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2131 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2132 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2133 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2134 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2135 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2136};
2137
Ravi Joshie6ccb162015-07-16 17:45:41 -07002138enum qca_vendor_attr_get_preferred_freq_list {
2139 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2140 /* A 32-unsigned value; the interface type/mode for which the preferred
2141 * frequency list is requested (see enum qca_iface_type for possible
2142 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2143 * kernel and in the kernel response back to user-space.
2144 */
2145 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2146 /* An array of 32-unsigned values; values are frequency (MHz); sent
2147 * from kernel space to user space.
2148 */
2149 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002150 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2151 * attribute. Each element contains frequency (MHz), weight, and flag
2152 * bit mask indicating how the frequency should be used in P2P
2153 * negotiation; sent from kernel space to user space.
2154 */
2155 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07002156 /* keep last */
2157 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2158 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2159 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2160};
2161
2162enum qca_vendor_attr_probable_oper_channel {
2163 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2164 /* 32-bit unsigned value; indicates the connection/iface type likely to
2165 * come on this channel (see enum qca_iface_type).
2166 */
2167 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2168 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2169 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2170 /* keep last */
2171 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2172 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2173 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2174};
2175
2176enum qca_iface_type {
2177 QCA_IFACE_TYPE_STA,
2178 QCA_IFACE_TYPE_AP,
2179 QCA_IFACE_TYPE_P2P_CLIENT,
2180 QCA_IFACE_TYPE_P2P_GO,
2181 QCA_IFACE_TYPE_IBSS,
2182 QCA_IFACE_TYPE_TDLS,
2183};
2184
2185enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07002186 QCA_SETBAND_AUTO = 0,
2187 QCA_SETBAND_5G = BIT(0),
2188 QCA_SETBAND_2G = BIT(1),
2189 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07002190};
2191
Dmitry Shmidt17022322016-04-06 13:28:42 -07002192/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002193 * enum qca_access_policy - Access control policy
2194 *
2195 * Access control policy is applied on the configured IE
2196 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2197 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2198 *
2199 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2200 * the specific configuration (IE) set, i.e., allow all the
2201 * connections which do not match the configuration.
2202 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2203 * the specific configuration (IE) set, i.e., deny all the
2204 * connections which do not match the configuration.
2205 */
2206enum qca_access_policy {
2207 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2208 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2209};
2210
2211/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002212 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2213 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2214 * Specify the TSF command. Possible values are defined in
2215 * &enum qca_tsf_cmd.
2216 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2217 * This attribute contains TSF timer value. This attribute is only available
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002218 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
2219 * response.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002220 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2221 * This attribute contains SOC timer value at TSF capture. This attribute is
2222 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2223 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2224 * This attribute is used to provide TSF sync interval and only applicable when
2225 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2226 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002227 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2228 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002229 */
2230enum qca_vendor_attr_tsf_cmd {
2231 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2232 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2233 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2234 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002235 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002236 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002237 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2238 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2239 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2240};
2241
2242/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002243 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002244 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2245 * @QCA_TSF_GET: Get TSF capture value
2246 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002247 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2248 * will automatically send TSF report to the host. To query
2249 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2250 * initiated first.
2251 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2252 * will not automatically send TSF report to the host. If
2253 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2254 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2255 * operation needs to be initiated.
2256 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2257 * fetches TSF and host time mapping from the firmware with interval configured
2258 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2259 * interval value is not provided the driver will use the default value. The
2260 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2261 * command.
2262 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002263 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
2264 * starts beaconing on a new channel. The driver synchronously responds with the
2265 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
2266 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
2267 * on the AP interface. This TSF can be sent via OOB mechanism to connected
2268 * clients.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002269 */
2270enum qca_tsf_cmd {
2271 QCA_TSF_CAPTURE,
2272 QCA_TSF_GET,
2273 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002274 QCA_TSF_AUTO_REPORT_ENABLE,
2275 QCA_TSF_AUTO_REPORT_DISABLE,
2276 QCA_TSF_SYNC_START,
2277 QCA_TSF_SYNC_STOP,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002278 QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002279};
2280
2281/**
2282 * enum qca_vendor_attr_wisa_cmd
2283 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2284 * WISA setup vendor commands
2285 */
2286enum qca_vendor_attr_wisa_cmd {
2287 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2288 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2289 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2290 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2291 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2292};
2293
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002294/* IEEE 802.11 Vendor Specific elements */
2295
2296/**
2297 * enum qca_vendor_element_id - QCA Vendor Specific element types
2298 *
2299 * These values are used to identify QCA Vendor Specific elements. The
2300 * payload of the element starts with the three octet OUI (OUI_QCA) and
2301 * is followed by a single octet type which is defined by this enum.
2302 *
2303 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2304 * This element can be used to specify preference order for supported
2305 * channels. The channels in this list are in preference order (the first
2306 * one has the highest preference) and are described as a pair of
2307 * (global) Operating Class and Channel Number (each one octet) fields.
2308 *
2309 * This extends the standard P2P functionality by providing option to have
2310 * more than one preferred operating channel. When this element is present,
2311 * it replaces the preference indicated in the Operating Channel attribute.
2312 * For supporting other implementations, the Operating Channel attribute is
2313 * expected to be used with the highest preference channel. Similarly, all
2314 * the channels included in this Preferred channel list element are
2315 * expected to be included in the Channel List attribute.
2316 *
2317 * This vendor element may be included in GO Negotiation Request, P2P
2318 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002319 *
2320 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2321 * This element can be used for pre-standard publication testing of HE
2322 * before P802.11ax draft assigns the element ID. The payload of this
2323 * vendor specific element is defined by the latest P802.11ax draft.
2324 * Please note that the draft is still work in progress and this element
2325 * payload is subject to change.
2326 *
2327 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2328 * This element can be used for pre-standard publication testing of HE
2329 * before P802.11ax draft assigns the element ID. The payload of this
2330 * vendor specific element is defined by the latest P802.11ax draft.
2331 * Please note that the draft is still work in progress and this element
2332 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002333 *
2334 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2335 * element).
2336 * This element can be used for pre-standard publication testing of HE
2337 * before P802.11ax draft assigns the element ID extension. The payload of
2338 * this vendor specific element is defined by the latest P802.11ax draft
2339 * (not including the Element ID Extension field). Please note that the
2340 * draft is still work in progress and this element payload is subject to
2341 * change.
2342 *
2343 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2344 * This element can be used for pre-standard publication testing of HE
2345 * before P802.11ax draft assigns the element ID extension. The payload of
2346 * this vendor specific element is defined by the latest P802.11ax draft
2347 * (not including the Element ID Extension field). Please note that the
2348 * draft is still work in progress and this element payload is subject to
2349 * change.
2350 *
2351 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2352 * This element can be used for pre-standard publication testing of HE
2353 * before P802.11ax draft assigns the element ID extension. The payload of
2354 * this vendor specific element is defined by the latest P802.11ax draft
2355 * (not including the Element ID Extension field). Please note that the
2356 * draft is still work in progress and this element payload is subject to
2357 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002358 *
2359 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002360 */
2361enum qca_vendor_element_id {
2362 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002363 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2364 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002365 QCA_VENDOR_ELEM_RAPS = 3,
2366 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2367 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002368 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002369};
2370
2371/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002372 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2373 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2374 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2375 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2376 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2377 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2378 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2379 */
2380enum qca_wlan_vendor_scan_priority {
2381 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2382 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2383 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2384 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2385 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2386};
2387
2388/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002389 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2390 *
2391 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2392 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2393 * with frequencies to be scanned (in MHz)
2394 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2395 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2396 * rates to be included
2397 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002398 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002399 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2400 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002401 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002402 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002403 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002404 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002405 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002406 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002407 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002408 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2409 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002410 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2411 * microseconds. This is a common value which applies across all
2412 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002413 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2414 * other scan requests. It is a u32 attribute and takes values from enum
2415 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2416 * If this attribute is not configured, the driver shall use
2417 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002418 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2419 * alignment.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002420 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
2421 * when AP is operating as MLD to specify which link is requesting the
2422 * scan or which link the scan result is for. No need of this attribute
2423 * in other cases.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002424 */
2425enum qca_wlan_vendor_attr_scan {
2426 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002427 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2428 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2429 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2430 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2431 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2432 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2433 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2434 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2435 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2436 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2437 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002438 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002439 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002440 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002441 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002442 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2443 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2444 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2445};
2446
2447/**
2448 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002449 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002450 *
2451 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002452 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002453 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2454 */
2455enum scan_status {
2456 VENDOR_SCAN_STATUS_NEW_RESULTS,
2457 VENDOR_SCAN_STATUS_ABORTED,
2458 VENDOR_SCAN_STATUS_MAX,
2459};
2460
2461/**
2462 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2463 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2464 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2465 */
2466enum qca_vendor_attr_ota_test {
2467 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2468 /* 8-bit unsigned value to indicate if OTA test is enabled */
2469 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2470 /* keep last */
2471 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2472 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2473 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2474};
2475
2476/**
2477 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2478 *
2479 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2480 */
2481enum qca_vendor_attr_txpower_scale {
2482 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2483 /* 8-bit unsigned value to indicate the scaling of tx power */
2484 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2485 /* keep last */
2486 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2487 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2488 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2489};
2490
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002491/**
2492 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2493 *
2494 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2495 */
2496enum qca_vendor_attr_txpower_decr_db {
2497 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2498 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002499 * a virtual interface.
2500 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002501 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2502 /* keep last */
2503 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2504 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2505 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2506};
2507
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002508/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002509 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2510 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002511 */
2512enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002513 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002514 /* Unsigned 32-bit value to set the DTIM period.
2515 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2516 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2517 * DTIM beacons.
2518 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002519 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002520 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2521 * used to calculate statistics like average the TSF offset or average
2522 * number of frame leaked.
2523 * For instance, upon Beacon frame reception:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002524 * current_avg = ((beacon_TSF - TBTT) * factor +
2525 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002526 * For instance, when evaluating leaky APs:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002527 * current_avg = ((num frame received within guard time) * factor +
2528 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002529 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002530 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002531 /* Unsigned 32-bit value to configure guard time, i.e., when
2532 * implementing IEEE power management based on frame control PM bit, how
2533 * long the driver waits before shutting down the radio and after
2534 * receiving an ACK frame for a Data frame with PM bit set.
2535 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002536 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002537 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002538 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002539 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002540 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002541 /* Unsigned 32-bit value to configure the number of continuous
2542 * Beacon Miss which shall be used by the firmware to penalize
2543 * the RSSI.
2544 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002545 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002546 /* Unsigned 8-bit value to configure the channel avoidance indication
2547 * behavior. Firmware to send only one indication and ignore duplicate
2548 * indications when set to avoid multiple Apps wakeups.
2549 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002550 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002551 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002552 * aggregation.
2553 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002554 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002555 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002556 * aggregation.
2557 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002558 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002559 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002560 * retry threshold (0 disable, 31 max).
2561 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002562 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002563 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002564 * retry threshold (0 disable, 31 max).
2565 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002566 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002567 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002568 * retry threshold (0 disable, 31 max).
2569 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002570 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002571 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002572 * retry threshold (0 disable, 31 max).
2573 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002574 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002575 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002576 * 2G/5G band (0~63, units in us)
2577 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002578 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002579 /* Unsigned 32-bit value to configure the number of unicast TX fail
2580 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002581 * reached.
2582 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002583 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002584 /* Attribute used to set scan default IEs to the driver.
2585 *
2586 * These IEs can be used by scan operations that will be initiated by
2587 * the driver/firmware.
2588 *
2589 * For further scan requests coming to the driver, these IEs should be
2590 * merged with the IEs received along with scan request coming to the
2591 * driver. If a particular IE is present in the scan default IEs but not
2592 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002593 * sent in the Probe Request frames for that scan request.
2594 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002595 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002596 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002597 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002598 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002599 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002600 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002601 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002602 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002603 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2604 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002605 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002606 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002607 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2608 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002609 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002610 /* Unsigned 32-bit, defining the access policy.
2611 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002612 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2613 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002614 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002615 /* Sets the list of full set of IEs for which a specific access policy
2616 * has to be applied. Used along with
2617 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002618 * Zero length payload can be used to clear this access constraint.
2619 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002620 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002621 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2622 * corresponding configurations are applied. If the interface index is
2623 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002624 * wiphy.
2625 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002626 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002627 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002628 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002629 /* 8-bit unsigned value to configure the driver and below layers to
2630 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002631 * 1-Ignore, 0-Don't ignore
2632 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002633 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002634 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002635 * 1-Enable, 0-Disable
2636 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002637 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002638 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002639 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002640 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002641 * 1-Enable, 0-Disable
2642 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002643 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002644 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002645 * the unit is micro-second
2646 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002647 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2648 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2649 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2650 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2651 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2652 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2653 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2654 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2655 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2656 /* 6-byte MAC address to point out the specific peer */
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002657 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
2658 /* Backward compatibility with the original name */
2659 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
2660 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002661 /* 32-bit unsigned value to set window size for specific peer */
2662 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002663 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2664 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2665 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2666 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002667 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2668 * station device while in disconnect state. The attribute use the
2669 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2670 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2671 * 10 MHz channel width, the station will not connect to a BSS using 20
2672 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002673 * clear this constraint.
2674 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002675 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2676 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002677 * for 2G/5G band (units in us)
2678 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002679 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2680 /* 32-bit unsigned value to set probe period */
2681 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2682 /* 32-bit unsigned value to set stay period */
2683 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2684 /* 32-bit unsigned value to set snr diff */
2685 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2686 /* 32-bit unsigned value to set probe dwell time */
2687 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2688 /* 32-bit unsigned value to set mgmt snr weight */
2689 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2690 /* 32-bit unsigned value to set data snr weight */
2691 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2692 /* 32-bit unsigned value to set ack snr weight */
2693 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2694 /* 32-bit unsigned value to configure the listen interval.
2695 * This is in units of beacon intervals. This configuration alters
2696 * the negotiated listen interval with the AP during the connection.
2697 * It is highly recommended to configure a value less than or equal to
2698 * the one negotiated during the association. Configuring any greater
2699 * value can have adverse effects (frame loss, AP disassociating STA,
2700 * etc.).
2701 */
2702 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2703 /*
2704 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2705 * disable operations that would cause the AP/GO to leave its operating
2706 * channel.
2707 *
2708 * This will restrict the scans to the AP/GO operating channel and the
2709 * channels of the other band, if DBS is supported.A STA/CLI interface
2710 * brought up after this setting is enabled, will be restricted to
2711 * connecting to devices only on the AP/GO interface's operating channel
2712 * or on the other band in DBS case. P2P supported channel list is
2713 * modified, to only include AP interface's operating-channel and the
2714 * channels of the other band if DBS is supported.
2715 *
2716 * These restrictions are only applicable as long as the AP/GO interface
2717 * is alive. If the AP/GO interface is brought down then this
2718 * setting/restriction is forgotten.
2719 *
2720 * If this variable is set on an AP/GO interface while a multi-channel
2721 * concurrent session is active, it has no effect on the operation of
2722 * the current interfaces, other than restricting the scan to the AP/GO
2723 * operating channel and the other band channels if DBS is supported.
2724 * However, if the STA is brought down and restarted then the new STA
2725 * connection will either be formed on the AP/GO channel or on the
2726 * other band in a DBS case. This is because of the scan being
2727 * restricted on these channels as mentioned above.
2728 *
2729 * 1-Restrict / 0-Don't restrict offchannel operations.
2730 */
2731 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2732 /*
2733 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2734 * on an interface.
2735 * 1 - Enable, 0 - Disable.
2736 */
2737 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2738
2739 /*
2740 * 8 bit unsigned value to globally enable/disable scan
2741 * 1 - Enable, 0 - Disable.
2742 */
2743 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2744
2745 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002746 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002747 */
2748 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2749
2750 /* Unsigned 32-bit value to configure the number of continuous
2751 * Beacon Miss which shall be used by the firmware to penalize
2752 * the RSSI for BTC.
2753 */
2754 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2755
2756 /* 8-bit unsigned value to configure the driver and below layers to
2757 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002758 * 0-enable, 1-disable
2759 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002760 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002761
Roshan Pius3a1667e2018-07-03 15:17:14 -07002762 /* 16-bit unsigned value to configure the level of WLAN latency
2763 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2764 */
2765 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2766
2767 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2768 * the connect interface. Exclusively used for the scenarios where the
2769 * device is used as a test bed device with special functionality and
2770 * not recommended for production. This helps driver to not validate the
2771 * RSNE passed from user space and thus allow arbitrary IE data to be
2772 * used for testing purposes.
2773 * 1-enable, 0-disable.
2774 * Applications set/reset this configuration. If not reset, this
2775 * parameter remains in use until the driver is unloaded.
2776 */
2777 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2778
2779 /* 8-bit unsigned value to trigger green Tx power saving.
2780 * 1-Enable, 0-Disable
2781 */
2782 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2783
Hai Shalomc3565922019-10-28 11:58:20 -07002784 /* Attribute to configure disconnect IEs to the driver.
2785 * This carries an array of unsigned 8-bit characters.
2786 *
2787 * If this is configured, driver shall fill the IEs in disassoc/deauth
2788 * frame.
2789 * These IEs are expected to be considered only for the next
2790 * immediate disconnection (disassoc/deauth frame) originated by
2791 * the DUT, irrespective of the entity (user space/driver/firmware)
2792 * triggering the disconnection.
2793 * The host drivers are not expected to use the IEs set through
2794 * this interface for further disconnections after the first immediate
2795 * disconnection initiated post the configuration.
2796 * If the IEs are also updated through cfg80211 interface (after the
2797 * enhancement to cfg80211_disconnect), host driver is expected to
2798 * take the union of IEs from both of these interfaces and send in
2799 * further disassoc/deauth frames.
2800 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002801 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002802
2803 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002804 * 0 - Disable eLNA bypass.
2805 * 1 - Enable eLNA bypass.
2806 * 2 - Reset eLNA bypass configuration, the driver should
2807 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002808 */
2809 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2810
Hai Shalomfdcde762020-04-02 11:19:20 -07002811 /* 8-bit unsigned value. This attribute enables/disables the host driver
2812 * to send the Beacon Report Response with failure reason for the
2813 * scenarios where STA cannot honor the Beacon Report Request from AP.
2814 * 1-Enable, 0-Disable.
2815 */
2816 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2817
2818 /* 8-bit unsigned value. This attribute enables/disables the host driver
2819 * to send roam reason information in the Reassociation Request frame to
2820 * the target AP when roaming within the same ESS.
2821 * 1-Enable, 0-Disable.
2822 */
2823 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2824
Hai Shalom899fcc72020-10-19 14:38:18 -07002825 /* 32-bit unsigned value to configure different PHY modes to the
2826 * driver/firmware. The possible values are defined in
2827 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2828 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2829 * the driver.
2830 */
2831 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2832
2833 /* 8-bit unsigned value to configure the maximum supported channel width
2834 * for STA mode. If this value is configured when STA is in connected
2835 * state, it should not exceed the negotiated channel width. If it is
2836 * configured when STA is in disconnected state, the configured value
2837 * will take effect for the next immediate connection.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002838 * This configuration can be sent inside
2839 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
2840 * supported channel width per-MLO link.
Sunil Ravi036cec52023-03-29 11:35:17 -07002841 *
2842 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07002843 */
2844 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2845
2846 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2847 * This attribute is only applicable for STA mode. When dynamic
2848 * bandwidth adjustment is disabled, STA will use static channel width
2849 * the value of which is negotiated during connection.
2850 * 1-enable (default), 0-disable
2851 */
2852 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2853
2854 /* 8-bit unsigned value to configure the maximum number of subframes of
2855 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2856 * it is decided by the hardware.
2857 */
2858 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2859
2860 /* 8-bit unsigned value to configure the maximum number of subframes of
2861 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2862 * it is decided by the hardware.
2863 */
2864 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2865
2866 /* 8-bit unsigned value. This attribute is used to dynamically
2867 * enable/disable the LDPC capability of the device. When configured in
2868 * the disconnected state, the updated configuration will be considered
2869 * for the immediately following connection attempt. If this
2870 * configuration is modified while the device is in the connected state,
2871 * the LDPC TX will be updated with this configuration immediately,
2872 * while the LDPC RX configuration update will take place starting from
2873 * the subsequent association attempt.
2874 * 1-Enable, 0-Disable.
2875 */
2876 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2877
2878 /* 8-bit unsigned value. This attribute is used to dynamically
2879 * enable/disable the TX STBC capability of the device. When configured
2880 * in the disconnected state, the updated configuration will be
2881 * considered for the immediately following connection attempt. If the
2882 * connection is formed with TX STBC enabled and if this configuration
2883 * is disabled during that association, the TX will be impacted
2884 * immediately. Further connection attempts will disable TX STBC.
2885 * However, enabling the TX STBC for a connected session with disabled
2886 * capability is not allowed and will fail.
2887 * 1-Enable, 0-Disable.
2888 */
2889 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2890
2891 /* 8-bit unsigned value. This attribute is used to dynamically
2892 * enable/disable the RX STBC capability of the device. When configured
2893 * in the disconnected state, the updated configuration will be
2894 * considered for the immediately following connection attempt. If the
2895 * configuration is modified in the connected state, there will be no
2896 * impact for the current association, but further connection attempts
2897 * will use the updated configuration.
2898 * 1-Enable, 0-Disable.
2899 */
2900 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2901
2902 /* 8-bit unsigned value. This attribute is used to dynamically configure
2903 * the number of spatial streams. When configured in the disconnected
2904 * state, the updated configuration will be considered for the
2905 * immediately following connection attempt. If the NSS is updated after
2906 * the connection, the updated NSS value is notified to the peer using
2907 * the Operating Mode Notification/Spatial Multiplexing Power Save
2908 * frame. The updated NSS value after the connection shall not be
2909 * greater than the one negotiated during the connection. Any such
2910 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002911 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2912 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2913 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2914 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002915 */
2916 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002917 /* 8-bit unsigned value to configure Optimized Power Management mode:
2918 * Modes are defined by enum qca_wlan_vendor_opm_mode.
2919 *
2920 * This attribute shall be configured along with
2921 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
2922 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
2923 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
Hai Shalom899fcc72020-10-19 14:38:18 -07002924 */
2925 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2926
2927 /* 8-bit unsigned value. This attribute takes the QoS/access category
2928 * value represented by the enum qca_wlan_ac_type and expects the driver
2929 * to upgrade the UDP frames to this access category. The value of
2930 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2931 * DSCP value configured in the frame with the intention to only upgrade
2932 * the access category. That said, it is not intended to downgrade the
2933 * access category for the frames.
2934 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2935 * disabled, as BK is of the lowest priority and an upgrade to it does
2936 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00002937 *
2938 * If only UDP frames of BE or BK access category needs to be upgraded
2939 * without changing the access category of VO or VI UDP frames, refer to
2940 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2941 *
2942 * This attribute is not recommended to be used as it blindly forces all
2943 * UDP packets to a higher access category which could impact the
2944 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07002945 */
2946 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2947
2948 /* 8-bit unsigned value. This attribute is used to dynamically configure
2949 * the number of chains to be used for transmitting data. This
2950 * configuration is allowed only when in connected state and will be
2951 * effective until disconnected. The driver rejects this configuration
2952 * if the number of spatial streams being used in the current connection
2953 * cannot be supported by this configuration.
2954 */
2955 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2956 /* 8-bit unsigned value. This attribute is used to dynamically configure
2957 * the number of chains to be used for receiving data. This
2958 * configuration is allowed only when in connected state and will be
2959 * effective until disconnected. The driver rejects this configuration
2960 * if the number of spatial streams being used in the current connection
2961 * cannot be supported by this configuration.
2962 */
2963 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2964
2965 /* 8-bit unsigned value to configure ANI setting type.
2966 * See &enum qca_wlan_ani_setting for possible values.
2967 */
2968 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2969 /* 32-bit signed value to configure ANI level. This is used when
2970 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2971 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2972 * is invalid, the driver will return a failure.
2973 */
2974 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2975
Hai Shalom60840252021-02-19 19:02:11 -08002976 /* 8-bit unsigned value. This attribute is used to dynamically configure
2977 * the number of spatial streams used for transmitting the data. When
2978 * configured in the disconnected state, the configured value will
2979 * be considered for the following connection attempt.
2980 * If the NSS is updated after the connection, the updated NSS value
2981 * is notified to the peer using the Operating Mode Notification/Spatial
2982 * Multiplexing Power Save frame.
2983 * The TX NSS value configured after the connection shall not be greater
2984 * than the value negotiated during the connection. Any such higher
2985 * value configuration shall be treated as invalid configuration by
2986 * the driver. This attribute shall be configured along with
2987 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2988 * configuration (such as 2X2 or 1X1) or the asymmetric
2989 * configuration (such as 1X2).
2990 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2991 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2992 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2993 */
2994 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2995
2996 /* 8-bit unsigned value. This attribute is used to dynamically configure
2997 * the number of spatial streams used for receiving the data. When
2998 * configured in the disconnected state, the configured value will
2999 * be considered for the following connection attempt.
3000 * If the NSS is updated after the connection, the updated NSS value
3001 * is notified to the peer using the Operating Mode Notification/Spatial
3002 * Multiplexing Power Save frame.
3003 * The RX NSS value configured after the connection shall not be greater
3004 * than the value negotiated during the connection. Any such higher
3005 * value configuration shall be treated as invalid configuration by
3006 * the driver. This attribute shall be configured along with
3007 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
3008 * configuration (such as 2X2 or 1X1) or the asymmetric
3009 * configuration (such as 1X2).
3010 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3011 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
3012 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
3013 */
3014 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
3015
Hai Shaloma20dcd72022-02-04 13:43:00 -08003016 /*
3017 * 8-bit unsigned value. This attribute, when set, indicates whether the
3018 * specified interface is the primary STA interface when there are more
3019 * than one STA interfaces concurrently active.
3020 *
3021 * This configuration helps the firmware/hardware to support certain
3022 * features (e.g., roaming) on this primary interface, if the same
3023 * cannot be supported on the concurrent STA interfaces simultaneously.
3024 *
3025 * This configuration is only applicable for a single STA interface on
3026 * a device and gives the priority for it only over other concurrent STA
3027 * interfaces.
3028 *
3029 * If the device is a multi wiphy/soc, this configuration applies to a
3030 * single STA interface across the wiphys.
3031 *
3032 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
3033 */
3034 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
3035
3036 /*
3037 * 8-bit unsigned value. This attribute can be used to configure the
3038 * driver to enable/disable FT-over-DS feature. Possible values for
3039 * this attribute are 1-Enable and 0-Disable.
3040 */
3041 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
3042
3043 /*
3044 * 8-bit unsigned value. This attribute can be used to configure the
3045 * firmware to enable/disable ARP/NS offload feature. Possible values
3046 * for this attribute are 0-Disable and 1-Enable.
3047 *
3048 * This attribute is only applicable for STA/P2P-Client interface,
3049 * and is optional, default behavior is ARP/NS offload enabled.
3050 *
3051 * This attribute can be set in disconnected and connected state, and
3052 * will restore to the default behavior if the interface is closed.
3053 */
3054 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
3055
Sunil8cd6f4d2022-06-28 18:40:46 +00003056 /*
3057 * 8-bit unsigned value. This attribute can be used to configure the
3058 * data path mode to be followed for audio traffic. Possible values
3059 * are defined in enum qca_wlan_audio_data_path.
Sunil Ravi640215c2023-06-28 23:08:09 +00003060 *
3061 * This attribute is used only when the driver advertises support for
3062 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +00003063 */
3064 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
3065
Sunil Ravi89eba102022-09-13 21:04:37 -07003066 /*
3067 * 8-bit unsigned value. This attribute can be used to configure the
3068 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
3069 * this attribute are defined in the enum qca_wlan_dbam_config.
3070 */
3071 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
3072
Sunil Ravi77d572f2023-01-17 23:58:31 +00003073 /* 8-bit unsigned value. This attribute takes the QoS/access category
3074 * value represented by the enum qca_wlan_ac_type and expects the driver
3075 * to upgrade the UDP frames of BE or BK access category to this access
3076 * category. This attribute will not modify UDP frames of VO or VI
3077 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
3078 * attribute.
3079 *
3080 * This will override the DSCP value configured in the frame with the
3081 * intention to only upgrade the access category. That said, it is not
3082 * intended to downgrade the access category for the frames.
3083 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3084 * disabled, as BK is of the lowest priority and an upgrade to it does
3085 * not result in any changes for the frames.
3086 *
3087 * This attribute behavior is similar to
3088 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
3089 * only UDP frames of BE or BK access category are upgraded and not
3090 * UDP frames of VI or VO access category.
3091 *
3092 * This attribute is not recommended to be used as it blindly forces all
3093 * UDP packets of BE or BK access category to a higher access category
3094 * which could impact the traffic pattern of all apps using UDP and can
3095 * cause unknown behavior.
3096 */
3097 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
3098
3099 /* 8-bit unsigned value to configure the driver to enable/disable the
3100 * periodic sounding for Tx beamformer functionality. The default
3101 * behavior uses algorithm to do sounding based on packet stats.
3102 *
3103 * 0 - Default behavior.
3104 * 1 - Enable the periodic sounding for Tx beamformer.
3105 */
3106 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
3107
3108 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
3109 * userspace sends this information to the driver/firmware to configure
3110 * wfc state. The driver/firmware uses this information to
3111 * optimize power savings, rate adaption, roaming, etc.
3112 *
3113 * 1 - wfc is on.
3114 * 0 - wfc is off.
3115 */
3116 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
3117
3118 /* 8-bit unsigned value to configure the driver to enable/disable the
3119 * EHT EML capability in management frame EHT capabilities.
3120 * 1 - Enable, 0 - Disable.
3121 */
3122 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
3123
3124 /* 8-bit unsigned value to configure the driver with EHT MLO max
3125 * simultaneous links to be used for MLO connection.
3126 * The range of the value is 0 to 14.
3127 */
3128 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
3129
3130 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003131 * number of links to be used for MLO connection. Value 0 restores the
3132 * default value of the maximum MLO links capability of the device.
3133 * The range of the value is 0 to 15.
3134 *
3135 * 0 - Restore default device limit.
3136 * 1 to 15 - Set the maximum number of links to be used for an MLO
3137 * connection.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003138 */
3139 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
3140
3141 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
3142 * Uses enum qca_wlan_eht_mlo_mode values.
3143 */
3144 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
3145
Sunil Ravi640215c2023-06-28 23:08:09 +00003146 /* Nested attribute with frequencies in u32 attributes to configure a
3147 * list of allowed 20 MHz channel center frequencies in MHz for AP
3148 * operation. Whenever performing a channel selection operation, the
3149 * driver shall generate a new list based on this provided list by
3150 * filtering out channels that cannot be used at that time due to
3151 * regulatory or other constraints. The resulting list is used as the
3152 * list of all allowed channels, i.e., operation on any channel that is
3153 * not included is not allowed, whenever performing operations like ACS
3154 * and DFS.
3155 *
3156 * Userspace shall configure this before starting the AP and the
3157 * configuration is valid only from the next BSS start and until the
3158 * BSS is stopped. The driver shall clear this configuration when the
3159 * AP is stopped and fall back to the default behavior for subsequent
3160 * AP operation.
3161 *
3162 * The default behavior when this configuration is not applicable is the
3163 * driver can choose any of the channels supported by the hardware
3164 * except the channels that cannot be used due to regulatory or other
3165 * constraints.
3166 *
3167 * The driver shall reject this configuration if done after the AP is
3168 * started. This attribute can be used to specify user's choice of
3169 * frequencies and static puncture channel list, etc.
3170 */
3171 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3172
3173 /* Nested attribute to indicate EHT MLO links to be forced active.
3174 * It contains link MAC address attributes. These nested attributes are
3175 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3176 * MLO links corresponding to the indicated link MAC addresses.
3177 * Subsequently, the links corresponding to the link MAC addresses that
3178 * are not indicated are forced inactive.
3179 */
3180 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3181
3182 /* 8-bit unsigned value to configure EMLSR mode entry or exit.
3183 * Uses enum qca_wlan_emlsr_mode values.
3184 */
3185 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3186
3187 /* 8-bit unsigned value to configure the channel bandwidth
3188 * for CTS frame transmission during the dymamic bandwidth
3189 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3190 * 10.3.2.9 CTS and DMG CTS procedure.
3191 * This configuration is used for testing purposes.
3192 *
3193 * This uses values defined in enum nl80211_chan_width.
3194 */
3195 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3196
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003197 /* 8-bit unsigned value. This attribute is used to dynamically
3198 * enable/suspend trigger based UL MU transmission.
3199 * This is supported in STA mode and the device sends Operating
3200 * Mode Indication to inform the change as described in
3201 * IEEE Std 802.11ax-2021, 26.9.
3202 *
3203 * This attribute can be configured when the STA is associated
3204 * to an AP and the configuration is maintained until the current
3205 * association terminates.
3206 *
3207 * By default all UL MU transmissions are enabled.
3208 *
3209 * Uses enum qca_ul_mu_config values.
3210 */
3211 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
3212
3213 /* 8-bit unsigned value. Optionally specified along with
3214 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
3215 * state. This configuration is applicable only for the current
3216 * connection. This configuration not allowed in disconnected state.
3217 * This configuration can be sent inside
3218 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3219 * supported channel width update type per-MLO link.
3220 *
3221 * Uses enum qca_chan_width_update_type values.
3222 */
3223 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
3224
3225 /* 8-bit unsigned value to set EPCS (Emergency Preparedness
3226 * Communications Service) feature capability
3227 * 1 - Enable, 0 - Disable.
3228 *
3229 * This configuration is used for testing purposes.
3230 */
3231 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
3232
3233 /* 8-bit unsigned value to enable/disable EPCS priority access
3234 * 1 - Enable, 0 - Disable.
3235 * The EPCS priority access shall be enabled only when EPCS feature
3236 * capability is also enabled (see
3237 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
3238 *
3239 * This configuration is used for testing purposes.
3240 */
3241 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
3242
3243 /* 8-bit unsigned value. Used to specify the MLO link ID of a link
3244 * that is being configured. This attribute must be included in each
3245 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
3246 * may be included without nesting to indicate the link that is the
3247 * target of other configuration attributes.
3248 */
3249 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
3250
3251 /* Array of nested links each identified by
3252 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
3253 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
3254 * added for the attributes in enum qca_wlan_vendor_attr_config to
3255 * support per-MLO link configuration through
3256 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
3257 *
3258 * Userspace can configure a single link or multiple links with this
3259 * attribute by nesting the corresponding configuration attributes and
3260 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3261 *
3262 * Userspace can fetch the configuration attribute values for a single
3263 * link or multiple links with this attribute by nesting the
3264 * corresponding configuration attributes and
3265 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3266 *
3267 * For STA interface, this attribute is applicable only in connected
3268 * state when the current connection is MLO capable. The valid values of
3269 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
3270 * connected AP MLD links.
3271 *
3272 * For AP interface, this configuration applicable only after adding
3273 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
3274 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
3275 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
3276 * the AP interface.
3277 */
3278 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
3279
3280 /* 16-bit unsigned value to configure power save inactivity timeout in
3281 * milliseconds.
3282 *
3283 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
3284 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
3285 *
3286 * This attribute shall be configured along with
3287 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
3288 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3289 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3290 */
3291 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
3292
3293 /* 16-bit unsigned value to configure speculative wake interval in
3294 * milliseconds.
3295 *
3296 * STA speculatively wakes up to look for buffered data by AP at
3297 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
3298 * entering into power save. If configured zero, STA wakes up at
3299 * upcoming DTIM beacon.
3300 *
3301 * This attribute shall be configured along with
3302 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3303 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3304 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3305 */
3306 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
3307
3308 /*
3309 * 16-bit unsigned value to configure TX max A-MPDU count.
3310 *
3311 * For STA interface, this attribute is applicable only in connected
3312 * state, peer MAC address is not required to be provided.
3313 *
3314 * For AP interface, this attribute is applicable only in started
3315 * state and one of the associated peer STAs must be specified with
3316 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
3317 * association, the peer MAC address provided is the link address of
3318 * the non-AP MLD.
3319 *
3320 * This attribute runtime configures the TX maximum aggregation size.
3321 * The value must be in range of 1 to BA window size for the specific
3322 * peer.
3323 */
3324 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
3325
3326 /*
3327 * 8-bit unsigned value to configure TID-to-link mapping negotiation
3328 * type.
3329 * Uses enum qca_wlan_ttlm_negotiation_support values.
3330 *
3331 * This value applies to the complete AP/non-AP MLD interface, and the
3332 * MLD advertises it within the Basic Multi-Link element in the
3333 * association frames. If a new value is configured during an active
3334 * connection, it will take effect in the subsequent associations and
3335 * is not reset during disconnection.
3336 *
3337 * This attribute is used for testing purposes.
3338 */
3339 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
3340
3341 /* 8-bit unsigned value.
3342 *
3343 * This attribute configures a traffic shaping mode
3344 * applied during coex scenarios.
3345 * By default all coex traffic shaping modes are enabled,
3346 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
3347 * To shape traffic, STA may enter in power save mode
3348 * and AP may send CTS-to-self frame.
3349 *
3350 * Uses enum qca_coex_traffic_shaping_mode values.
3351 */
3352 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
3353
Sunil Ravib0ac25f2024-07-12 01:42:03 +00003354 /* 8-bit unsigned value.
3355 *
3356 * This attribute is used to specify whether an associated peer is a QCA
3357 * device. The associated peer is specified with
3358 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
3359 * address of the peer is used.
3360 * 1 - QCA device, 0 - non-QCA device.
3361 */
3362 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
3363
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003364 /* keep last */
3365 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3366 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3367 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3368};
3369
Hai Shalomfdcde762020-04-02 11:19:20 -07003370/* Compatibility defines for previously used incorrect enum
3371 * qca_wlan_vendor_attr_config names. These values should not be used in any
3372 * new implementation. */
3373#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3374 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3375#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3376 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3377
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003378/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003379 * enum qca_ul_mu_config - UL MU configuration
3380 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
3381 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
3382 */
3383enum qca_ul_mu_config {
3384 QCA_UL_MU_SUSPEND = 0,
3385 QCA_UL_MU_ENABLE = 1,
3386};
3387
3388/**
Sunil Ravi89eba102022-09-13 21:04:37 -07003389 * enum qca_dbam_config - Specifies DBAM config mode
3390 * @QCA_DBAM_DISABLE: Firmware disables DBAM
3391 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3392 * internal criteria are met.
3393 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3394 */
3395enum qca_dbam_config {
3396 QCA_DBAM_DISABLE = 0,
3397 QCA_DBAM_ENABLE = 1,
3398 QCA_DBAM_FORCE_ENABLE = 2,
3399};
3400
3401/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003402 * enum qca_wlan_ani_setting - ANI setting type
3403 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3404 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3405 */
3406enum qca_wlan_ani_setting {
3407 QCA_WLAN_ANI_SETTING_AUTO = 0,
3408 QCA_WLAN_ANI_SETTING_FIXED = 1,
3409};
3410
3411/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003412 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07003413 *
3414 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3415 * Channel number on which Access Point should restart.
3416 * Note: If both the driver and user space application supports the 6 GHz band,
3417 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3418 * should be used.
3419 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3420 * is still used if either of the driver or user space application doesn't
3421 * support the 6 GHz band.
3422 *
3423 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3424 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003425 */
3426enum qca_wlan_vendor_attr_sap_config {
3427 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07003428 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3429
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003430 /* List of frequencies on which AP is expected to operate.
3431 * This is irrespective of ACS configuration. This list is a priority
3432 * based one and is looked for before the AP is created to ensure the
3433 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3434 * the system.
3435 */
3436 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07003437 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003438
3439 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3440 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3441 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3442};
3443
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003444/**
3445 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3446 * conditional channel switch
3447 */
3448enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3449 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3450 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07003451 * order)
3452 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003453 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3454 /* Status of the conditional switch (u32).
3455 * 0: Success, Non-zero: Failure
3456 */
3457 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3458
3459 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3460 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3461 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3462};
3463
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003464/**
3465 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003466 *
3467 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3468 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3469 * for the available values.
3470 *
3471 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3472 * value to specify the GPIO number.
3473 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3474 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3475 *
3476 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3477 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3478 * for the available values.
3479 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3480 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3481 *
Hai Shalom60840252021-02-19 19:02:11 -08003482 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003483 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3484 * for the available values.
3485 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003486 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3487 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3488 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3489 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003490 *
Hai Shalom60840252021-02-19 19:02:11 -08003491 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003492 * value to specify the GPIO interrupt mode. Please refer to enum
3493 * qca_gpio_interrupt_mode for the available values.
3494 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003495 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3496 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3497 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3498 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003499 *
Hai Shalom60840252021-02-19 19:02:11 -08003500 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003501 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3502 * for the available values.
3503 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003504 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3505 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3506 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3507 * attribute is present.
3508 *
3509 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3510 * Value to specify the mux config. Meaning of a given value is dependent
3511 * on the target chipset and GPIO pin. Must be of the range 0-15.
3512 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3513 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3514 *
3515 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3516 * Value to specify the drive, refer to enum qca_gpio_drive.
3517 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3518 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3519 *
3520 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3521 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3522 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3523 * other parameters for the given GPIO will be obtained from internal
3524 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3525 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003526 */
3527enum qca_wlan_gpio_attr {
3528 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3529 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07003530 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003531 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003532 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003533 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003534 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003535 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07003536 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003537 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07003538 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3539 /* Unsigned 32-bit attribute for GPIO direction to configure */
3540 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08003541 /* Unsigned 32-bit attribute for GPIO mux config */
3542 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3543 /* Unsigned 32-bit attribute for GPIO drive */
3544 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3545 /* Flag attribute for using internal GPIO configuration */
3546 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003547
3548 /* keep last */
3549 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3550 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3551 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3552};
3553
3554/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003555 * enum gpio_cmd_type - GPIO configuration command type
3556 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3557 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3558 */
3559enum qca_gpio_cmd_type {
3560 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3561 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3562};
3563
3564/**
3565 * enum qca_gpio_pull_type - GPIO pull type
3566 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3567 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3568 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3569 */
3570enum qca_gpio_pull_type {
3571 QCA_WLAN_GPIO_PULL_NONE = 0,
3572 QCA_WLAN_GPIO_PULL_UP = 1,
3573 QCA_WLAN_GPIO_PULL_DOWN = 2,
3574 QCA_WLAN_GPIO_PULL_MAX,
3575};
3576
3577/**
3578 * enum qca_gpio_direction - GPIO direction
3579 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3580 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3581 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3582 */
3583enum qca_gpio_direction {
3584 QCA_WLAN_GPIO_INPUT = 0,
3585 QCA_WLAN_GPIO_OUTPUT = 1,
3586 QCA_WLAN_GPIO_DIR_MAX,
3587};
3588
3589/**
3590 * enum qca_gpio_value - GPIO Value
3591 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3592 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3593 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3594 */
3595enum qca_gpio_value {
3596 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3597 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3598 QCA_WLAN_GPIO_LEVEL_MAX,
3599};
3600
3601/**
3602 * enum gpio_interrupt_mode - GPIO interrupt mode
3603 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3604 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3605 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3606 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3607 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3608 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3609 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3610 */
3611enum qca_gpio_interrupt_mode {
3612 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3613 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3614 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3615 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3616 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3617 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3618 QCA_WLAN_GPIO_INTMODE_MAX,
3619};
3620
3621/**
Hai Shalom60840252021-02-19 19:02:11 -08003622 * enum qca_gpio_drive - GPIO drive
3623 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3624 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3625 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3626 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3627 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3628 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3629 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3630 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3631 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3632 */
3633enum qca_gpio_drive {
3634 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3635 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3636 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3637 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3638 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3639 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3640 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3641 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3642 QCA_WLAN_GPIO_DRIVE_MAX,
3643};
3644
3645/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003646 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3647 * MSDUQ depth threshold per peer per tid in the target
3648 *
3649 * Associated Vendor Command:
3650 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3651 */
3652enum qca_wlan_set_qdepth_thresh_attr {
3653 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3654 /* 6-byte MAC address */
3655 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3656 /* Unsigned 32-bit attribute for holding the TID */
3657 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3658 /* Unsigned 32-bit attribute for holding the update mask
3659 * bit 0 - Update high priority msdu qdepth threshold
3660 * bit 1 - Update low priority msdu qdepth threshold
3661 * bit 2 - Update UDP msdu qdepth threshold
3662 * bit 3 - Update Non UDP msdu qdepth threshold
3663 * rest of bits are reserved
3664 */
3665 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3666 /* Unsigned 32-bit attribute for holding the threshold value */
3667 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3668
3669 /* keep last */
3670 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3671 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3672 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3673};
3674
3675/**
Hai Shalomc3565922019-10-28 11:58:20 -07003676 * enum qca_acs_dfs_mode - Defines different types of DFS channel
3677 * configurations for ACS operation.
3678 *
3679 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3680 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3681 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3682 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3683 */
3684enum qca_acs_dfs_mode {
3685 QCA_ACS_DFS_MODE_NONE = 0,
3686 QCA_ACS_DFS_MODE_ENABLE = 1,
3687 QCA_ACS_DFS_MODE_DISABLE = 2,
3688 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3689};
3690
3691/**
3692 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3693 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3694 *
3695 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3696 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3697 *
3698 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3699 * channel number hint for ACS operation, if valid channel is specified then
3700 * ACS operation gives priority to this channel.
3701 * Note: If both the driver and user space application supports the 6 GHz band,
3702 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3703 * should be used.
3704 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3705 * is still used if either of the driver or user space application doesn't
3706 * support the 6 GHz band.
3707 *
3708 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3709 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3710 * frequency is specified, ACS operation gives priority to this channel.
3711 */
3712enum qca_wlan_vendor_attr_acs_config {
3713 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3714 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3715 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3716 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3717
3718 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3719 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3720 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3721};
3722
3723/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003724 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3725 */
3726enum qca_wlan_vendor_attr_get_hw_capability {
3727 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3728 /* Antenna isolation
3729 * An attribute used in the response.
3730 * The content of this attribute is encoded in a byte array. Each byte
3731 * value is an antenna isolation value. The array length is the number
3732 * of antennas.
3733 */
3734 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3735 /* Request HW capability
3736 * An attribute used in the request.
3737 * The content of this attribute is a u32 array for one or more of
3738 * hardware capabilities (attribute IDs) that are being requested. Each
3739 * u32 value has a value from this
3740 * enum qca_wlan_vendor_attr_get_hw_capability
3741 * identifying which capabilities are requested.
3742 */
3743 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3744
3745 /* keep last */
3746 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3747 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3748 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3749};
3750
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003751/**
3752 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3753 * offload which is an extension for LL_STATS.
3754 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3755 * If MAC counters do not exceed the threshold, FW will report monitored
3756 * link layer counters periodically as this setting. The first report is
3757 * always triggered by this timer.
3758 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3759 * For each MAC layer counter, FW holds two copies. One is the current value.
3760 * The other is the last report. Once a current counter's increment is larger
3761 * than the threshold, FW will indicate that counter to host even if the
3762 * monitoring timer does not expire.
3763 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3764 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3765 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3766 * failure code.
3767 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3768 * 1: TX packet discarded
3769 * 2: No ACK
3770 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003771 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3772 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3773 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3774 * Threshold for all monitored parameters. If per counter dedicated threshold
3775 * is not enabled, this threshold will take effect.
3776 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3777 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3778 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3779 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3780 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3781 * Bit0: TX counter unit in MSDU
3782 * Bit1: TX counter unit in MPDU
3783 * Bit2: TX counter unit in PPDU
3784 * Bit3: TX counter unit in byte
3785 * Bit4: Dropped MSDUs
3786 * Bit5: Dropped Bytes
3787 * Bit6: MPDU retry counter
3788 * Bit7: MPDU failure counter
3789 * Bit8: PPDU failure counter
3790 * Bit9: MPDU aggregation counter
3791 * Bit10: MCS counter for ACKed MPDUs
3792 * Bit11: MCS counter for Failed MPDUs
3793 * Bit12: TX Delay counter
3794 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3795 * Bit0: MAC RX counter unit in MPDU
3796 * Bit1: MAC RX counter unit in byte
3797 * Bit2: PHY RX counter unit in PPDU
3798 * Bit3: PHY RX counter unit in byte
3799 * Bit4: Disorder counter
3800 * Bit5: Retry counter
3801 * Bit6: Duplication counter
3802 * Bit7: Discard counter
3803 * Bit8: MPDU aggregation size counter
3804 * Bit9: MCS counter
3805 * Bit10: Peer STA power state change (wake to sleep) counter
3806 * Bit11: Peer STA power save counter, total time in PS mode
3807 * Bit12: Probe request counter
3808 * Bit13: Other management frames counter
3809 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3810 * Bit0: Idle time
3811 * Bit1: TX time
3812 * Bit2: time RX in current bss
3813 * Bit3: Out of current bss time
3814 * Bit4: Wireless medium busy time
3815 * Bit5: RX in bad condition time
3816 * Bit6: TX in bad condition time
3817 * Bit7: time wlan card not available
3818 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3819 * Bit0: Per channel SNR counter
3820 * Bit1: Per channel noise floor counter
3821 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3822 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3823 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3824 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3825 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3826 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3827 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3828 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3829 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3830 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3831 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3832 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3833 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3834 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3835 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3836 * aggregation stats buffer length
3837 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3838 * buffer for ACKed MPDUs.
3839 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3840 * buffer for failed MPDUs.
3841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3842 * length of delay stats array.
3843 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3844 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3845 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3846 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3848 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3849 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3850 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3851 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3852 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3853 * flagged as retransmissions
3854 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3855 * flagged as duplicated
3856 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3857 * packets discarded
3858 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3859 * stats buffer.
3860 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3861 * stats buffer.
3862 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3863 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3864 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3865 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3866 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3867 * requests received
3868 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3869 * frames received
3870 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3871 * there is no TX, nor RX, nor interference.
3872 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3873 * transmitting packets.
3874 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3875 * for receiving.
3876 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3877 * interference detected.
3878 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3879 * receiving packets with errors.
3880 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3881 * TX no-ACK.
3882 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3883 * the chip is unable to work in normal conditions.
3884 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3885 * receiving packets in current BSS.
3886 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3887 * receiving packets not in current BSS.
3888 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3889 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3890 * This is a container for per antenna signal stats.
3891 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3892 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3894 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3896 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3897 * message, user layer APP could call gettimeofday to get another
3898 * timestamp and calculate transfer delay for the message.
3899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3900 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07003901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
3902 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003903 */
3904enum qca_wlan_vendor_attr_ll_stats_ext {
3905 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3906
3907 /* Attributes for configurations */
3908 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3909 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3910
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003911 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003912 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3913
3914 /* TX failure event */
3915 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3916 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3917 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3918
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003919 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3920 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3921
3922 /* MAC counters */
3923 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3924 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3925 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3926 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3927 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3928 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3929 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3930 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3931 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3932 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3933 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3934 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3935
3936 /* Sub-attributes for PEER_AC_TX */
3937 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3938 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3939 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3940 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3941 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3942 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3943 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3944 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3945 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3946 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3947 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3948 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3949 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3950 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3951 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3952 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3953 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3954
3955 /* Sub-attributes for PEER_AC_RX */
3956 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3957 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3958 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3959 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3960 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3961 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3962 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3963 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3964 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3965 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3966 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3967 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3968 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3969 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3970 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3971 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3972
3973 /* Sub-attributes for CCA_BSS */
3974 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3975 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3976 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3977 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3978 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3979 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3980 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3981
3982 /* sub-attribute for BSS_RX_TIME */
3983 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3985
3986 /* Sub-attributes for PEER_SIGNAL */
3987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3988 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3989 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3990 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3991
3992 /* Sub-attributes for IFACE_BSS */
3993 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3994 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3995
Roshan Pius3a1667e2018-07-03 15:17:14 -07003996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07003998 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003999
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004000 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
4001 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
4002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
4003};
4004
4005/* Attributes for FTM commands and events */
4006
4007/**
4008 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
4009 *
4010 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
4011 * enum qca_wlan_vendor_attr_loc_capa_flags.
4012 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
4013 * of measurement sessions that can run concurrently.
4014 * Default is one session (no session concurrency).
4015 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
4016 * peers that are supported in running sessions. For example,
4017 * if the value is 8 and maximum number of sessions is 2, you can
4018 * have one session with 8 unique peers, or 2 sessions with 4 unique
4019 * peers each, and so on.
4020 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
4021 * of bursts per peer, as an exponent (2^value). Default is 0,
4022 * meaning no multi-burst support.
4023 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
4024 * of measurement exchanges allowed in a single burst.
4025 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
4026 * types. A bit mask (unsigned 32 bit value), each bit corresponds
4027 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
4028 */
4029enum qca_wlan_vendor_attr_loc_capa {
4030 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
4031 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
4032 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
4033 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
4034 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
4035 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
4036 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
4037 /* keep last */
4038 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
4039 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
4040 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
4041};
4042
4043/**
4044 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
4045 *
4046 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
4047 * can be configured as an FTM responder (for example, an AP that
4048 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
4049 * will be supported if set.
4050 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
4051 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
4052 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004053 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004054 * supports immediate (ASAP) response.
4055 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
4056 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
4057 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
4058 * requesting AOA measurements as part of an FTM session.
4059 */
4060enum qca_wlan_vendor_attr_loc_capa_flags {
4061 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
4062 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
4063 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
4064 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
4065 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
4066};
4067
4068/**
4069 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
4070 * a single peer in a measurement session.
4071 *
4072 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
4073 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
4074 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004075 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004076 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
4077 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
4078 * list of supported attributes.
4079 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
4080 * secure measurement.
4081 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
4082 * measurement every <value> bursts. If 0 or not specified,
4083 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004084 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
4085 * the measurement frames are exchanged. Optional; if not
4086 * specified, try to locate the peer in the kernel scan
4087 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004088 */
4089enum qca_wlan_vendor_attr_ftm_peer_info {
4090 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
4091 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
4092 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004093 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004094 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
4095 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004096 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004097 /* keep last */
4098 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
4099 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
4100 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
4101};
4102
4103/**
4104 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
4105 * per-peer
4106 *
4107 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
4108 * immediate (ASAP) response from peer.
4109 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
4110 * LCI report from peer. The LCI report includes the absolute
4111 * location of the peer in "official" coordinates (similar to GPS).
4112 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
4113 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
4114 * Location civic report from peer. The LCR includes the location
4115 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
4116 * 11.24.6.7 for more information.
4117 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
4118 * request a secure measurement.
4119 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
4120 */
4121enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
4122 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
4123 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
4124 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
4125 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
4126};
4127
4128/**
4129 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
4130 *
4131 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
4132 * to perform in a single burst.
4133 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
4134 * perform, specified as an exponent (2^value).
4135 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
4136 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
4137 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
4138 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
4139 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
4140 */
4141enum qca_wlan_vendor_attr_ftm_meas_param {
4142 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
4143 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
4144 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
4145 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
4146 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
4147 /* keep last */
4148 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
4149 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
4150 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
4151};
4152
4153/**
4154 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
4155 *
4156 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
4157 * peer.
4158 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
4159 * request for this peer.
4160 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
4161 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
4162 * to measurement results for this peer.
4163 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
4164 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
4165 * request failed and peer requested not to send an additional request
4166 * for this number of seconds.
4167 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
4168 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4169 * 9.4.2.22.10.
4170 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
4171 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4172 * 9.4.2.22.13.
4173 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
4174 * overridden some measurement request parameters. See
4175 * enum qca_wlan_vendor_attr_ftm_meas_param.
4176 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
4177 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
4178 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
4179 * results. Each entry is a nested attribute defined
4180 * by enum qca_wlan_vendor_attr_ftm_meas.
4181 */
4182enum qca_wlan_vendor_attr_ftm_peer_result {
4183 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
4184 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
4185 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
4186 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
4187 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
4188 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
4189 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
4190 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
4191 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
4192 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
4193 /* keep last */
4194 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
4195 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
4196 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
4197};
4198
4199/**
4200 * enum qca_wlan_vendor_attr_ftm_peer_result_status
4201 *
4202 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
4203 * will be provided. Peer may have overridden some measurement parameters,
4204 * in which case overridden parameters will be report by
4205 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
4206 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
4207 * of performing the measurement request. No more results will be sent
4208 * for this peer in this session.
4209 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
4210 * failed, and requested not to send an additional request for number
4211 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
4212 * attribute.
4213 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
4214 * failed. Request was not sent over the air.
4215 */
4216enum qca_wlan_vendor_attr_ftm_peer_result_status {
4217 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
4218 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
4219 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
4220 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
4221};
4222
4223/**
4224 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
4225 * for measurement result, per-peer
4226 *
4227 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
4228 * measurement completed for this peer. No more results will be reported
4229 * for this peer in this session.
4230 */
4231enum qca_wlan_vendor_attr_ftm_peer_result_flags {
4232 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
4233};
4234
4235/**
4236 * enum qca_vendor_attr_loc_session_status: Session completion status code
4237 *
4238 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
4239 * successfully.
4240 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
4241 * by request.
4242 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
4243 * was invalid and was not started.
4244 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
4245 * and did not complete normally (for example out of resources).
4246 */
4247enum qca_vendor_attr_loc_session_status {
4248 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
4249 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
4250 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
4251 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
4252};
4253
4254/**
4255 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
4256 *
4257 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
4258 * recorded by responder, in picoseconds.
4259 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4260 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
4261 * initiator, in picoseconds.
4262 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4263 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
4264 * initiator, in picoseconds.
4265 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4266 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
4267 * responder, in picoseconds.
4268 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4269 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
4270 * during this measurement exchange. Optional and will be provided if
4271 * the hardware can measure it.
4272 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
4273 * responder. Not always provided.
4274 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4275 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
4276 * responder. Not always provided.
4277 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4278 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
4279 * initiator. Not always provided.
4280 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4281 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
4282 * initiator. Not always provided.
4283 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07004284 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
4285 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004286 */
4287enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004288 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004289 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
4290 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
4291 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
4292 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
4293 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
4294 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
4295 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
4296 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
4297 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
4298 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
4299 /* keep last */
4300 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
4301 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
4302 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
4303};
4304
4305/**
4306 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
4307 *
4308 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
4309 * CIR (channel impulse response) path for each antenna.
4310 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
4311 * of the strongest CIR path for each antenna.
4312 */
4313enum qca_wlan_vendor_attr_aoa_type {
4314 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
4315 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
4316 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
4317};
4318
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004319/**
4320 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
4321 * validate encryption engine
4322 *
4323 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
4324 * This will be included if the request is for decryption; if not included,
4325 * the request is treated as a request for encryption by default.
4326 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
4327 * indicating the key cipher suite. Takes same values as
4328 * NL80211_ATTR_KEY_CIPHER.
4329 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
4330 * Key Id to be used for encryption
4331 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
4332 * Key (TK) to be used for encryption/decryption
4333 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4334 * Packet number to be specified for encryption/decryption
4335 * 6 bytes for TKIP/CCMP/GCMP.
4336 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4337 * representing the 802.11 packet (header + payload + FCS) that
4338 * needs to be encrypted/decrypted.
4339 * Encrypted/decrypted response from the driver will also be sent
4340 * to userspace with the same attribute.
4341 */
4342enum qca_wlan_vendor_attr_encryption_test {
4343 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4344 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4345 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4346 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4347 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4348 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4349 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4350
4351 /* keep last */
4352 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4353 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4354 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4355};
4356
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004357/**
4358 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4359 * sector for DMG RF sector operations.
4360 *
4361 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4362 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4363 */
4364enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4365 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4366 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4367 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4368};
4369
4370/**
Hai Shalom021b0b52019-04-10 11:17:58 -07004371 * enum qca_wlan_vendor_attr_fw_state - State of firmware
4372 *
4373 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4374 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4375 */
4376enum qca_wlan_vendor_attr_fw_state {
4377 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4378 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4379 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4380};
4381
4382/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004383 * BRP antenna limit mode
4384 *
4385 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4386 * antenna limit, BRP will be performed as usual.
4387 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4388 * antennas limit. the hardware may use less antennas than the
4389 * maximum limit.
4390 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4391 * use exactly the specified number of antennas for BRP.
4392 */
4393enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4394 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4395 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4396 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4397 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4398};
4399
4400/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004401 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4402 * DMG RF sector configuration for a single RF module.
4403 * The values are defined in a compact way which closely matches
4404 * the way it is stored in HW registers.
4405 * The configuration provides values for 32 antennas and 8 distribution
4406 * amplifiers, and together describes the characteristics of the RF
4407 * sector - such as a beam in some direction with some gain.
4408 *
4409 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4410 * of RF module for this configuration.
4411 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4412 * amplifier gain index. Unsigned 32 bit number containing
4413 * bits for all 32 antennas.
4414 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4415 * amplifier gain index. Unsigned 32 bit number containing
4416 * bits for all 32 antennas.
4417 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4418 * amplifier gain index. Unsigned 32 bit number containing
4419 * bits for all 32 antennas.
4420 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4421 * for first 16 antennas, 2 bits per antenna.
4422 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4423 * for last 16 antennas, 2 bits per antenna.
4424 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4425 * DTYPE values (3 bits) for each distribution amplifier, followed
4426 * by X16 switch bits for each distribution amplifier. There are
4427 * total of 8 distribution amplifiers.
4428 */
4429enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4430 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4431 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4432 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4433 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4434 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4435 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4436 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4437 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4438
4439 /* keep last */
4440 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4441 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4442 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4443};
4444
4445enum qca_wlan_vendor_attr_ll_stats_set {
4446 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4447 /* Unsigned 32-bit value */
4448 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4449 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4450 /* keep last */
4451 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4452 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4453 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4454};
4455
Sunil Ravi640215c2023-06-28 23:08:09 +00004456/**
4457 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4458 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4459 *
4460 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4461 *
4462 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4463 * radio statistics.
4464 *
4465 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4466 * statistics within radio statistics.
4467 *
4468 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4469 * radio statistics.
4470 *
4471 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4472 *
4473 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
4474 * within interface statistics.
4475 *
4476 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
4477 * interface statistics.
4478 *
4479 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
4480 * (min, max, avg) statistics within AC statistics.
4481 *
4482 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
4483 * on this interface.
4484 *
4485 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
4486 * statistics depending on the peer_mac.
4487 */
4488enum qca_wlan_ll_stats_clr_req_bitmap {
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004489 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
4490 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
4491 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
4492 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
4493 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
4494 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
4495 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
Sunil Ravi640215c2023-06-28 23:08:09 +00004496 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004497 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
4498 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
Sunil Ravi640215c2023-06-28 23:08:09 +00004499};
4500
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004501enum qca_wlan_vendor_attr_ll_stats_clr {
4502 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004503 /* Unsigned 32bit bitmap for clearing statistics, specified
4504 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004505 */
4506 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4507 /* Unsigned 8 bit value: Request to stop statistics collection */
4508 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4509
4510 /* Unsigned 32 bit bitmap: Response from the driver
4511 * for the cleared statistics
4512 */
4513 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4514 /* Unsigned 8 bit value: Response from driver/firmware
4515 * for the stop request
4516 */
4517 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4518 /* keep last */
4519 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4520 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4521 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4522};
4523
Sunil Ravi640215c2023-06-28 23:08:09 +00004524/**
4525 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
4526 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
4527 *
4528 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
4529 *
4530 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
4531 *
4532 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
4533 *
4534 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
4535 */
4536enum qca_wlan_ll_stats_get_req_bitmap {
4537 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
4538 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004539 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
4540 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
Sunil Ravi640215c2023-06-28 23:08:09 +00004541};
4542
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004543enum qca_wlan_vendor_attr_ll_stats_get {
4544 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4545 /* Unsigned 32 bit value provided by the caller issuing the GET stats
4546 * command. When reporting the stats results, the driver uses the same
4547 * value to indicate which GET request the results correspond to.
4548 */
4549 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4550 /* Unsigned 32 bit value - bit mask to identify what statistics are
Sunil Ravi640215c2023-06-28 23:08:09 +00004551 * requested for retrieval specified in the enum
4552 * qca_wlan_ll_stats_get_req_bitmap
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004553 */
4554 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4555 /* keep last */
4556 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4557 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4558 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4559};
4560
4561enum qca_wlan_vendor_attr_ll_stats_results {
4562 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004563
4564 /*
4565 * For Multi Link Operation (MLO) connection, per-link statistics will
4566 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
4567 * cumulative statistics will be sent outside of
4568 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
4569 * compatibility with legacy user space. Attributes which don't have
4570 * explicit documentation for MLO will be sent only outside of
4571 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
4572 * don't depend on whether the connection is MLO capable or not, e.g.,
4573 * radio and channel specific attributes.
4574 */
4575
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004576 /* Unsigned 32bit value. Used by the driver; must match the request id
4577 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4578 */
4579 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4580
Sunil Ravi640215c2023-06-28 23:08:09 +00004581 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4582 * the link with the best RSSI outside
4583 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4584 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4585 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004586 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
Sunil Ravi640215c2023-06-28 23:08:09 +00004587 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4588 * the link with the best RSSI outside
4589 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4590 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4591 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004592 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
Sunil Ravi640215c2023-06-28 23:08:09 +00004593 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4594 * the link with the best RSSI outside
4595 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4596 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4597 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004598 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
Sunil Ravi640215c2023-06-28 23:08:09 +00004599 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4600 * the link with the best RSSI outside
4601 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4602 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4603 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004604 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00004605 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4606 * the link with the best RSSI outside
4607 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4608 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4609 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004610 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
Sunil Ravi640215c2023-06-28 23:08:09 +00004611 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4612 * the link with the best RSSI outside
4613 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4614 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4615 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004616 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
Sunil Ravi640215c2023-06-28 23:08:09 +00004617 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4618 * the link with the best RSSI outside
4619 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4620 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4621 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004622 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4623
4624 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4625 * nested within the interface stats.
4626 */
4627
4628 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4629 * Type = enum wifi_interface_mode.
4630 */
4631 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4632 /* Interface MAC address. An array of 6 Unsigned int8 */
4633 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4634 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4635 * AUTHENTICATING, etc. valid for STA, CLI only.
4636 */
4637 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4638 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4639 */
4640 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4641 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4642 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4643 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4644 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
Sunil Ravi640215c2023-06-28 23:08:09 +00004645 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
4646 * address of the AP. An array of 6 unsigned 8 bit values */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004647 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4648 /* Country string advertised by AP. An array of 3 unsigned 8 bit
4649 * values.
4650 */
4651 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4652 /* Country string for this association. An array of 3 unsigned 8 bit
4653 * values.
4654 */
4655 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4656
4657 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4658 * be nested within the interface stats.
Sunil Ravi640215c2023-06-28 23:08:09 +00004659 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4660 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
4661 * indicate the aggregate of all links outside
4662 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4663 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
4664 * indicate value of the MLO link with the best RSSI outside
4665 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4666 * These attributes indicate the link specific value inside
4667 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004668 */
4669
4670 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4671 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4672 /* Unsigned int 32 value corresponding to respective AC */
4673 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4674 /* Unsigned int 32 value corresponding to respective AC */
4675 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4676 /* Unsigned int 32 value corresponding to respective AC */
4677 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4678 /* Unsigned int 32 value corresponding to respective AC */
4679 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4680 /* Unsigned int 32 value corresponding to respective AC */
4681 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4682 /* Unsigned int 32 value corresponding to respective AC */
4683 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4684 /* Unsigned int 32 value corresponding to respective AC */
4685 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4686 /* Unsigned int 32 value corresponding to respective AC */
4687 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4688 /* Unsigned int 32 value corresponding to respective AC */
4689 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4690 /* Unsigned int 32 values corresponding to respective AC */
4691 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4692 /* Unsigned int 32 values corresponding to respective AC */
4693 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4694 /* Unsigned int 32 values corresponding to respective AC */
4695 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4696 /* Unsigned int 32 values corresponding to respective AC */
4697 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4698 /* Unsigned int 32 values corresponding to respective AC */
4699 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4700 /* Unsigned 32 bit value. Number of peers */
4701 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4702
4703 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4704 * nested within the interface stats.
4705 */
4706
4707 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4708 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4709 /* MAC addr corresponding to respective peer. An array of 6 unsigned
4710 * 8 bit values.
4711 */
4712 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4713 /* Unsigned int 32 bit value representing capabilities corresponding
4714 * to respective peer.
4715 */
4716 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4717 /* Unsigned 32 bit value. Number of rates */
4718 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4719
4720 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4721 * are nested within the rate stat.
4722 */
4723
4724 /* Wi-Fi Rate - separate attributes defined for individual fields */
4725
4726 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4727 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4728 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4729 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4730 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4731 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4732 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07004733 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4734 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004735 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4736
4737 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4738 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4739
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004740 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4741 * nested within the peer info stats.
4742 */
4743
4744 /* Unsigned int 32 bit value. Number of successfully transmitted data
4745 * packets, i.e., with ACK received corresponding to the respective
4746 * rate.
4747 */
4748 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4749 /* Unsigned int 32 bit value. Number of received data packets
4750 * corresponding to the respective rate.
4751 */
4752 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4753 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4754 * received corresponding to the respective rate.
4755 */
4756 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4757 /* Unsigned int 32 bit value. Total number of data packet retries for
4758 * the respective rate.
4759 */
4760 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4761 /* Unsigned int 32 bit value. Total number of short data packet retries
4762 * for the respective rate.
4763 */
4764 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4765 /* Unsigned int 32 bit value. Total number of long data packet retries
4766 * for the respective rate.
4767 */
4768 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4769
Sunil Ravi640215c2023-06-28 23:08:09 +00004770 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
4771 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4772 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
4773 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
4774 * of the MLO link.
4775 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004776 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4777 /* Unsigned 32 bit value. Total number of msecs the radio is awake
4778 * accruing over time.
4779 */
4780 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4781 /* Unsigned 32 bit value. Total number of msecs the radio is
4782 * transmitting accruing over time.
4783 */
4784 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4785 /* Unsigned 32 bit value. Total number of msecs the radio is in active
4786 * receive accruing over time.
4787 */
4788 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4789 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4790 * to all scan accruing over time.
4791 */
4792 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4793 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4794 * to NAN accruing over time.
4795 */
4796 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4797 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4798 * to GSCAN accruing over time.
4799 */
4800 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4801 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4802 * to roam scan accruing over time.
4803 */
4804 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4805 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4806 * to PNO scan accruing over time.
4807 */
4808 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4809 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4810 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4811 */
4812 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4813 /* Unsigned 32 bit value. Number of channels. */
4814 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4815
4816 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4817 * be nested within the channel stats.
4818 */
4819
4820 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4821 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
Sunil Ravi640215c2023-06-28 23:08:09 +00004822 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
4823 * indicate the primary frequency of the channel when
4824 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4825 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
4826 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
4827 * on which the MLO link is operating.
4828 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004829 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4830 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4831 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4832 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4833 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4834
4835 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4836 * nested within the radio stats.
4837 */
4838
4839 /* Unsigned int 32 bit value representing total number of msecs the
4840 * radio is awake on that channel accruing over time, corresponding to
4841 * the respective channel.
4842 */
4843 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4844 /* Unsigned int 32 bit value representing total number of msecs the CCA
4845 * register is busy accruing over time corresponding to the respective
4846 * channel.
4847 */
4848 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4849
4850 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4851
4852 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004853 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004854 */
4855 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4856
4857 /* Signifies the nested list of peer info attributes
Sunil Ravi640215c2023-06-28 23:08:09 +00004858 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
4859 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
4860 * indicate on which link the peer is connected.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004861 */
4862 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4863
4864 /* Signifies the nested list of rate info attributes
4865 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4866 */
4867 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4868
4869 /* Signifies the nested list of wmm info attributes
4870 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4871 */
4872 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4873
4874 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4875 * that more stats, e.g., peers or radio, are to follow in the next
4876 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4877 * Otherwise, it is set to 0.
4878 */
4879 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4880
Sunil Ravi640215c2023-06-28 23:08:09 +00004881 /* Unsigned 64 bit value. For an MLO connection, indicates the value of
4882 * the link with the best RSSI outside
4883 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4884 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4885 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004886 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4887
Sunil Ravi640215c2023-06-28 23:08:09 +00004888 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4889 * the link with the best RSSI outside
4890 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4891 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4892 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004893 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4894
Sunil Ravi640215c2023-06-28 23:08:09 +00004895 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4896 * the link with the best RSSI outside
4897 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4898 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4899 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004900 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4901
Sunil Ravi640215c2023-06-28 23:08:09 +00004902 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4903 * the link with the best RSSI outside
4904 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4905 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4906 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004907 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4908
4909 /* Unsigned 32 bit value */
4910 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4911
4912 /* Unsigned 32 bit value */
4913 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4914
4915 /* Number of msecs the radio spent in transmitting for each power level
4916 */
4917 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4918
Sunil Ravi640215c2023-06-28 23:08:09 +00004919 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4920 * the link with the best RSSI outside
4921 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4922 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4923 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004924 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
Sunil Ravi640215c2023-06-28 23:08:09 +00004925 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4926 * the link with the best RSSI outside
4927 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4928 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4929 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004930 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
Sunil Ravi640215c2023-06-28 23:08:09 +00004931 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4932 * the link with the best RSSI outside
4933 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4934 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4935 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004936 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
Sunil Ravi640215c2023-06-28 23:08:09 +00004937 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4938 * the link with the best RSSI outside
4939 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4940 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4941 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004942 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4943
Roshan Pius3a1667e2018-07-03 15:17:14 -07004944 /* Unsigned int 32 value.
4945 * Pending MSDUs corresponding to respective AC.
4946 */
4947 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4948
Hai Shalom899fcc72020-10-19 14:38:18 -07004949 /* u32 value representing total time in milliseconds for which the radio
4950 * is transmitting on this channel. This attribute will be nested
4951 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4952 */
4953 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4954 /* u32 value representing total time in milliseconds for which the radio
4955 * is receiving all 802.11 frames intended for this device on this
4956 * channel. This attribute will be nested within
4957 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4958 */
4959 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004960 /* u8 value representing the channel load percentage. Possible values
4961 * are 0-100.
4962 */
4963 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4964 /* u8 value representing the time slicing duty cycle percentage.
Sunil Ravi640215c2023-06-28 23:08:09 +00004965 * Possible values are 0-100. For an MLO connection, indicates the value
4966 * of the link with the best RSSI outside
4967 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4968 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Hai Shaloma20dcd72022-02-04 13:43:00 -08004969 */
4970 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07004971 /* Unsigned 32 bit value. The number of Beacon frames which are received
4972 * from the associated AP and indicate buffered unicast frame(s) for us
Sunil Ravi640215c2023-06-28 23:08:09 +00004973 * in the TIM element. For an MLO connection, indicates the value of the
4974 * link with the best RSSI outside
4975 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4976 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07004977 */
4978 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4979 /* Unsigned 32 bit value. The total number of Beacon frames received
4980 * from the associated AP that have wrongly indicated buffered unicast
4981 * traffic in the TIM element for us.
4982 * Below scenarios will be considered as wrong TIM element beacon:
4983 * 1) The related TIM element is set in the beacon for STA but STA
4984 * doesn’t receive any unicast data after this beacon.
4985 * 2) The related TIM element is still set in the beacon for STA
4986 * after STA has indicated power save exit by QoS Null Data frame.
Sunil Ravi640215c2023-06-28 23:08:09 +00004987 * For an MLO connection, indicates the value of the link with the best
4988 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
4989 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07004990 */
4991 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07004992
4993 /* Signed 32 bit value. It represents the noise floor calibration value.
Sunil Ravi640215c2023-06-28 23:08:09 +00004994 * Possible values are -120~-50 dBm. For an MLO connection, indicates
4995 * the value of the link with the best RSSI outside
4996 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4997 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi036cec52023-03-29 11:35:17 -07004998 */
4999 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07005000
Sunil Ravi640215c2023-06-28 23:08:09 +00005001 /* Attribute used for padding for 64-bit alignment */
5002 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
5003
5004 /* Unsigned u8 value, link ID of an MLO link. Used inside nested
5005 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
5006 * link ID of the MLO link for which the statistics are embedded in the
5007 * nested attribute. Used inside nested attribute
5008 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
5009 * link ID of the peer.
5010 */
5011 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
5012
5013 /* A nested array of attributes for each MLO link, each containing
5014 * per-link statistics of a multi link connection. The attributes used
5015 * inside this nested attribute are defined in enum
5016 * qca_wlan_vendor_attr_ll_stats_results.
5017 *
5018 * For non-MLO connection, this attribute is not present and the
5019 * statistics will be sent outside this attribute (without nesting).
5020 *
5021 * For MLO connection, this attribute is present and also cumulative
5022 * statistics of all the links will be sent outside of this attribute
5023 * to be compatible with legacy user space.
5024 */
5025 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
5026
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005027 /* keep last */
5028 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
5029 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
5030 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
5031};
5032
Roshan Pius3a1667e2018-07-03 15:17:14 -07005033enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005034 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
5035 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
5036 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
5037 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
5038
5039 /* keep last */
5040 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
5041 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
5042 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
5043};
5044
5045/**
5046 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5047 * TDLS configuration to the host driver.
5048 *
5049 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5050 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5051 * represents the different TDLS trigger modes.
5052 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5053 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5054 * of packets shall meet the criteria for implicit TDLS setup.
5055 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
5056 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
5057 * to initiate a TDLS setup.
5058 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
5059 * a TDLS Discovery to the peer.
5060 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5061 * discovery attempts to know the TDLS capability of the peer. A peer is
5062 * marked as TDLS not capable if there is no response for all the attempts.
5063 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5064 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5065 * number of TX / RX frames meet the criteria for TDLS teardown.
5066 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
5067 * of Tx/Rx packets within a duration
5068 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
5069 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5070 * corresponding to the RSSI of the peer below which a TDLS setup is
5071 * triggered.
5072 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5073 * corresponding to the RSSI of the peer above which a TDLS teardown is
5074 * triggered.
5075 */
5076enum qca_wlan_vendor_attr_tdls_configuration {
5077 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5078 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5079
5080 /* Attributes configuring the TDLS Implicit Trigger */
5081 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5082 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5083 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5084 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5085 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5086 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5087 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5088 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5089
5090 /* keep last */
5091 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5092 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5093 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5094};
5095
5096/**
5097 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5098 * the driver
5099 *
5100 * The following are the different values for
5101 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5102 *
5103 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
5104 * the TDLS connection to a respective peer comes from the user space.
5105 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
5106 * TDLS_DISCOVER to do this.
5107 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5108 * setup/teardown to the eligible peer once the configured criteria
5109 * (such as TX/RX threshold, RSSI) is met. The attributes
5110 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5111 * the different configuration criteria for the TDLS trigger from the
5112 * host driver.
5113 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5114 * the TDLS setup / teardown through the implicit mode only to the
5115 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
5116 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
5117 * External mode works on top of the implicit mode. Thus the host driver
5118 * is expected to configure in TDLS Implicit mode too to operate in
5119 * External mode.
5120 * Configuring External mode alone without Implicit mode is invalid.
5121 *
5122 * All the above implementations work as expected only when the host driver
5123 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
5124 * that the TDLS message exchange is not internal to the host driver, but
5125 * depends on wpa_supplicant to do the message exchange.
5126 */
5127enum qca_wlan_vendor_tdls_trigger_mode {
5128 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5129 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5130 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5131};
5132
Dmitry Shmidt29333592017-01-09 12:27:11 -08005133/**
5134 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5135 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5136 * that is hard-coded in the Board Data File (BDF).
5137 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5138 * that is hard-coded in the Board Data File (BDF).
5139 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5140 * that is hard-coded in the Board Data File (BDF).
5141 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5142 * that is hard-coded in the Board Data File (BDF).
5143 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5144 * that is hard-coded in the Board Data File (BDF).
5145 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5146 * source of SAR power limits, thereby disabling the SAR power
5147 * limit feature.
5148 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5149 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005150 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5151 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005152 *
5153 * This enumerates the valid set of values that may be supplied for
5154 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005155 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5156 * the response to an instance of the
5157 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005158 */
5159enum qca_vendor_attr_sar_limits_selections {
5160 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5161 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5162 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5163 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5164 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5165 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5166 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005167 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005168};
5169
5170/**
5171 * enum qca_vendor_attr_sar_limits_spec_modulations -
5172 * SAR limits specification modulation
5173 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5174 * CCK modulation
5175 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5176 * OFDM modulation
5177 *
5178 * This enumerates the valid set of values that may be supplied for
5179 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5180 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5181 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07005182 * command or in the response to an instance of the
5183 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005184 */
5185enum qca_vendor_attr_sar_limits_spec_modulations {
5186 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5187 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5188};
5189
5190/**
5191 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5192 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005193 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08005194 * select which SAR power limit table should be used. Valid
5195 * values are enumerated in enum
5196 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5197 * power limit selection is unchanged if this attribute is not
5198 * present.
5199 *
5200 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5201 * which specifies the number of SAR power limit specifications
5202 * which will follow.
5203 *
5204 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5205 * limit specifications. The number of specifications is
5206 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5207 * specification contains a set of
5208 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5209 * specification is uniquely identified by the attributes
5210 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5211 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5212 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5213 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07005214 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
5215 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5216 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5217 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5218 * needed based upon the value of
5219 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005220 *
5221 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5222 * indicate for which band this specification applies. Valid
5223 * values are enumerated in enum %nl80211_band (although not all
5224 * bands may be supported by a given device). If the attribute is
5225 * not supplied then the specification will be applied to all
5226 * supported bands.
5227 *
5228 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5229 * to indicate for which antenna chain this specification
5230 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5231 * attribute is not supplied then the specification will be
5232 * applied to all chains.
5233 *
5234 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5235 * value to indicate for which modulation scheme this
5236 * specification applies. Valid values are enumerated in enum
5237 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5238 * is not supplied then the specification will be applied to all
5239 * modulation schemes.
5240 *
5241 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5242 * value to specify the actual power limit value in units of 0.5
5243 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07005244 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5245 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005246 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07005247 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5248 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5249 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5250 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5251 *
5252 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5253 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005254 */
5255enum qca_vendor_attr_sar_limits {
5256 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5257 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5258 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5259 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5260 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5261 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5262 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5263 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005264 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005265
5266 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5267 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5268 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5269};
5270
5271/**
5272 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
5273 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07005274 *
5275 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
5276 * should be set to any U8 value to indicate that the driver version
5277 * should be returned. When enabled in this manner, in a response this
5278 * attribute will contain a string representation of the driver version.
5279 *
5280 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
5281 * should be set to any U8 value to indicate that the firmware version
5282 * should be returned. When enabled in this manner, in a response this
5283 * attribute will contain a string representation of the firmware version.
5284 *
5285 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
5286 * should be set to any U32 value to indicate that the current radio
5287 * index should be returned. When enabled in this manner, in a response
5288 * this attribute will contain a U32 radio index value.
5289 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08005290 */
5291enum qca_wlan_vendor_attr_get_wifi_info {
5292 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
5293 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
5294 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005295 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005296
5297 /* keep last */
5298 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
5299 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
5300 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
5301};
5302
5303/*
5304 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
5305 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
5306 */
5307enum qca_wlan_vendor_attr_wifi_logger_start {
5308 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5309 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5310 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5311 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5312
5313 /* keep last */
5314 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5315 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
5316 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5317};
5318
5319enum qca_wlan_vendor_attr_logger_results {
5320 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
5321
5322 /* Unsigned 32-bit value; must match the request Id supplied by
5323 * Wi-Fi HAL in the corresponding subcmd NL msg.
5324 */
5325 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
5326
5327 /* Unsigned 32-bit value; used to indicate the size of memory
5328 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005329 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005330 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
5331
5332 /* keep last */
5333 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5334 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5335 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5336};
5337
Hai Shalomc3565922019-10-28 11:58:20 -07005338/**
5339 * enum qca_scan_freq_list_type: Frequency list types
5340 *
5341 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5342 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5343 * a preferred frequency list for roaming.
5344 *
5345 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5346 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5347 * a specific frequency list for roaming.
5348 */
5349enum qca_scan_freq_list_type {
5350 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5351 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5352};
5353
5354/**
5355 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5356 *
5357 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5358 * List of frequencies in MHz to be considered for a roam scan.
5359 *
5360 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5361 * Type of frequency list scheme being configured/gotten as defined by the
5362 * enum qca_scan_freq_list_type.
5363 */
5364enum qca_vendor_attr_scan_freq_list_scheme {
5365 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5366 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5367
5368 /* keep last */
5369 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5370 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5371 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5372};
5373
Hai Shalom899fcc72020-10-19 14:38:18 -07005374/**
5375 * enum qca_roam_scan_scheme: Scan scheme
5376 *
5377 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5378 * Indicates the driver to not scan on a Roam Trigger scenario, but
5379 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5380 * disconnect from the current connected AP by notifying a failure
5381 * code in the BTM response.
5382 *
5383 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5384 * trigger partial frequency scans. These frequencies are the ones learned
5385 * or maintained by the driver based on the probability of finding the
5386 * BSSIDs in the ESS for which the roaming is triggered.
5387 *
5388 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5389 * trigger the scan on all the valid frequencies to find better
5390 * candidates to roam.
5391 */
5392enum qca_roam_scan_scheme {
5393 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5394 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5395 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5396};
5397
Hai Shalomc3565922019-10-28 11:58:20 -07005398/*
5399 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5400 *
5401 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5402 * a bad packet error rates (PER).
5403 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5404 * based on beacon misses from the connected AP.
5405 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5406 * due to poor RSSI of the connected AP.
5407 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5408 * upon finding a BSSID with a better RSSI than the connected BSSID.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005409 * Also, set if the roam has to be triggered due to the high RSSI of the
5410 * current connected AP (better than
5411 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
5412 * the current BSSID need not be poor.
Hai Shalomc3565922019-10-28 11:58:20 -07005413 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5414 * by triggering a periodic scan to find a better AP to roam.
5415 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5416 * when the connected channel environment is too noisy/congested.
5417 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5418 * when BTM Request frame is received from the connected AP.
5419 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5420 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07005421 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5422 * based on the request from the user (space).
5423 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5424 * device receives Deauthentication/Disassociation frame from connected AP.
5425 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5426 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5427 * is determined to be a poor one.
5428 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5429 * based on continuous TX Data frame failures to the connected AP.
5430 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5431 * based on the scan results obtained from an external scan (not triggered
5432 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07005433 *
5434 * Set the corresponding roam trigger reason bit to consider it for roam
5435 * trigger.
5436 * Userspace can set multiple bits and send to the driver. The driver shall
5437 * consider all of them to trigger/initiate a roam scan.
5438 */
5439enum qca_vendor_roam_triggers {
5440 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
5441 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
5442 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
5443 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
5444 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
5445 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
5446 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
5447 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005448 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
5449 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
5450 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
5451 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
5452 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07005453};
5454
Hai Shalom60840252021-02-19 19:02:11 -08005455/*
5456 * enum qca_vendor_roam_fail_reasons: Defines the various roam
5457 * fail reasons. This enum value is used in
5458 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5459 *
5460 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5461 * able to trigger the scan.
5462 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5463 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5464 * scan.
5465 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
5466 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
5467 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
5468 * status code.
5469 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
5470 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
5471 * frame.
5472 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
5473 * with error status code.
5474 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
5475 * received.
5476 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
5477 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
5478 * frame.
5479 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
5480 * internally before transmission.
5481 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
5482 * Request frame.
5483 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
5484 * dropped internally.
5485 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
5486 * times out.
5487 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
5488 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
5489 * internally.
5490 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
5491 * M2 frame.
5492 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
5493 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
5494 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
5495 * internally.
5496 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
5497 * frame.
5498 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
5499 * started for final beacon miss case.
5500 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
5501 * received from the AP during roaming handoff.
5502 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
5503 * or host is suspended and gives the indication of the last roamed AP only
5504 * when the Apps is resumed. If the Apps is resumed while the roaming is in
5505 * progress, this ongoing roaming is aborted and the last roamed AP is
5506 * indicated to host.
5507 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
5508 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
5509 * out.
5510 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
Sunil Ravi640215c2023-06-28 23:08:09 +00005511 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
5512 * current network conditions are fine.
Hai Shalom60840252021-02-19 19:02:11 -08005513 */
5514enum qca_vendor_roam_fail_reasons {
5515 QCA_ROAM_FAIL_REASON_NONE = 0,
5516 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
5517 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
5518 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
5519 QCA_ROAM_FAIL_REASON_HOST = 4,
5520 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
5521 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
5522 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
5523 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
5524 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
5525 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
5526 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
5527 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
5528 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
5529 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
5530 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
5531 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
5532 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
5533 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
5534 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
5535 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
5536 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
5537 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
5538 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
5539 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
5540 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
5541 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
5542 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
5543 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
5544 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
Sunil Ravi640215c2023-06-28 23:08:09 +00005545 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
Hai Shalom60840252021-02-19 19:02:11 -08005546};
5547
5548/*
5549 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
5550 * invoke fail reasons. This enum value is used in
5551 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
5552 *
5553 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
5554 * in roam invoke command.
5555 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
5556 * enabled.
5557 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
5558 * length is invalid.
5559 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
5560 * in progress.
5561 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
5562 * of the AP in the roam invoke command to firmware. This reason is sent by the
5563 * firmware when the given AP is configured to be ignored or SSID/security
5564 * does not match.
5565 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
5566 * firmware internal reasons.
5567 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
5568 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
5569 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
5570 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
5571 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
5572 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
5573 */
5574enum qca_vendor_roam_invoke_fail_reasons {
5575 QCA_ROAM_INVOKE_STATUS_NONE = 0,
5576 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
5577 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
5578 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
5579 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
5580 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
5581 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
5582 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
5583 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
5584 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
5585 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
5586 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
5587 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
5588
5589};
5590
Hai Shalomc3565922019-10-28 11:58:20 -07005591/**
5592 * enum qca_vendor_attr_roam_candidate_selection_criteria:
5593 *
5594 * Each attribute carries a weightage in percentage (%).
5595 *
5596 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
5597 * Represents the weightage to be given for the RSSI selection
5598 * criteria among other parameters.
5599 *
5600 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
5601 * Represents the weightage to be given for the rate selection
5602 * criteria among other parameters.
5603 *
5604 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
5605 * Represents the weightage to be given for the band width selection
5606 * criteria among other parameters.
5607 *
5608 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
5609 * Represents the weightage to be given for the band selection
5610 * criteria among other parameters.
5611 *
5612 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
5613 * Represents the weightage to be given for the NSS selection
5614 * criteria among other parameters.
5615 *
5616 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
5617 * Represents the weightage to be given for the channel congestion
5618 * selection criteria among other parameters.
5619 *
5620 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
5621 * Represents the weightage to be given for the beamforming selection
5622 * criteria among other parameters.
5623 *
5624 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
5625 * Represents the weightage to be given for the OCE selection
5626 * criteria among other parameters.
5627 */
5628enum qca_vendor_attr_roam_candidate_selection_criteria {
5629 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
5630 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
5631 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
5632 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
5633 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
5634 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
5635 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
5636 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
5637
5638 /* keep last */
5639 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
5640 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
5641 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
5642};
5643
5644/**
5645 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00005646 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07005647 * configurations to/from the driver.
5648 * For the get, the attribute for the configuration to be queried shall
5649 * carry any of its acceptable values to the driver. In return, the driver
5650 * shall send the configured values within the same attribute to the user
5651 * space.
5652 *
5653 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
5654 * Signifies to enable/disable roam control in driver.
5655 * 1-enable, 0-disable
5656 * Enable: Mandates the driver to do the further roams using the
5657 * configuration parameters set through
5658 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
5659 * Disable: Disables the driver/firmware roaming triggered through
5660 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
5661 * expected to continue with the default configurations.
5662 *
5663 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
5664 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
5665 * Roam control status is obtained through this attribute.
5666 *
5667 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
5668 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5669 * is to be cleared in the driver.
5670 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5671 * and shall be ignored if used with other sub commands.
5672 * If this attribute is specified along with subcmd
5673 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5674 * all other attributes, if there are any.
5675 * If this attribute is not specified when the subcmd
5676 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
5677 * clear the data corresponding to the attributes specified.
5678 *
5679 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5680 * list of frequencies and its type, represented by
5681 * enum qca_vendor_attr_scan_freq_list_scheme.
5682 * Frequency list and its type are mandatory for this attribute to set
5683 * the frequencies.
5684 * Frequency type is mandatory for this attribute to get the frequencies
5685 * and the frequency list is obtained through
5686 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5687 * Frequency list type is mandatory for this attribute to clear the
5688 * frequencies.
5689 *
5690 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5691 * Carries the value of scan period in seconds to set.
5692 * The value of scan period is obtained with the same attribute for get.
5693 * Clears the scan period in the driver when specified with clear command.
5694 * Scan period is the idle time in seconds between each subsequent
5695 * channel scans.
5696 *
5697 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5698 * Carries the value of full scan period in seconds to set.
5699 * The value of full scan period is obtained with the same attribute for
5700 * get.
5701 * Clears the full scan period in the driver when specified with clear
5702 * command. Full scan period is the idle period in seconds between two
5703 * successive full channel roam scans.
5704 *
5705 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5706 * Carries a bitmap of the roam triggers specified in
5707 * enum qca_vendor_roam_triggers.
5708 * The driver shall enable roaming by enabling corresponding roam triggers
5709 * based on the trigger bits sent with this attribute.
5710 * If this attribute is not configured, the driver shall proceed with
5711 * default behavior.
5712 * The bitmap configured is obtained with the same attribute for get.
5713 * Clears the bitmap configured in driver when specified with clear
5714 * command.
5715 *
5716 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5717 * weightage in percentage (%) to be given for each selection criteria.
5718 * Different roam candidate selection criteria are represented by
5719 * enum qca_vendor_attr_roam_candidate_selection_criteria.
5720 * The driver shall select the roam candidate based on corresponding
5721 * candidate selection scores sent.
5722 *
5723 * An empty nested attribute is used to indicate that no specific
5724 * preference score/criteria is configured (i.e., to disable this mechanism
5725 * in the set case and to show that the mechanism is disabled in the get
5726 * case).
5727 *
5728 * Userspace can send multiple attributes out of this enum to the driver.
5729 * Since this attribute represents the weight/percentage of preference for
5730 * the respective selection criteria, it is preferred to configure 100%
5731 * total weightage. The value in each attribute or cumulative weight of the
5732 * values in all the nested attributes should not exceed 100%. The driver
5733 * shall reject such configuration.
5734 *
5735 * If the weights configured through this attribute are less than 100%,
5736 * the driver shall honor the weights (x%) passed for the corresponding
5737 * selection criteria and choose/distribute rest of the weight (100-x)%
5738 * for the other selection criteria, based on its internal logic.
5739 *
5740 * The selection criteria configured is obtained with the same
5741 * attribute for get.
5742 *
5743 * Clears the selection criteria configured in the driver when specified
5744 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07005745 *
5746 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5747 * Represents value of the scan frequency scheme from enum
5748 * qca_roam_scan_scheme.
5749 * It's an optional attribute. If this attribute is not configured, the
5750 * driver shall proceed with default behavior.
5751 *
5752 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5753 * signifying the RSSI threshold of the current connected AP, indicating
5754 * the driver to trigger roam only when the current connected AP's RSSI
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005755 * is less than this threshold. The RSSI threshold through this attribute
5756 * is only used by the STA when the connected AP asks it to roam through
5757 * a BTM request. Based on this threshold, the STA can either honor or
5758 * reject the AP's request to roam, and notify the status to the AP in a
5759 * BTM response.
Hai Shalom899fcc72020-10-19 14:38:18 -07005760 *
5761 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5762 * signifying the RSSI threshold of the candidate AP, indicating
5763 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08005764 * better than this threshold. If RSSI thresholds for candidate APs found
5765 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5766 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5767 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5768 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5769 * take precedence over the value configured using the
5770 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07005771 *
5772 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5773 * user defined reason code to be sent to the AP in response to AP's
5774 * request to trigger the roam if the roaming cannot be triggered.
5775 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5776 *
5777 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5778 * Carries a bitmap of the roam triggers specified in
5779 * enum qca_vendor_roam_triggers.
5780 * Represents the roam triggers for which the specific scan scheme from
5781 * enum qca_roam_scan_scheme has to be applied.
5782 * It's an optional attribute. If this attribute is not configured, but
5783 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5784 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5785 * all the roams.
5786 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5787 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5788 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005789 *
5790 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5791 * in dBm, signifying the RSSI threshold of the candidate AP found in the
5792 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5793 * AP found in the 2.4 GHz band only if its RSSI value is better than this
5794 * threshold. Optional attribute. If this attribute is not included, the
5795 * threshold value specified by the
5796 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5797 *
5798 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5799 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
5800 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5801 * found in the 5 GHz band only if its RSSI value is better than this
5802 * threshold. Optional attribute. If this attribute is not included, the
5803 * threshold value specified by tge
5804 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5805 *
5806 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5807 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
5808 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5809 * found in the 6 GHz band only if its RSSI value is better than this
5810 * threshold. Optional attribute. If this attribute is not included, the
5811 * threshold value specified by the
5812 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5813 *
5814 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5815 * Carries bitmask value of bits from &enum qca_set_band and represents
5816 * all the bands in which roaming is allowed. The configuration is valid
5817 * until next disconnection. If this attribute is not present, the
5818 * existing configuration shall be used. By default, roaming is allowed on
5819 * all bands supported by the local device. When the value is set to
5820 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
5821 *
5822 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5823 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5824 * bands. If this attribute is not configured, the driver shall proceed
5825 * with default behavior.
5826 *
5827 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5828 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
5829 * band. If this attribute is not configured, the driver shall proceed with
5830 * default behavior.
5831 *
5832 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5833 * Optional parameter. The minimum duration to stay on the connected AP
5834 * channel during the channel scanning. If this attribute is not
5835 * configured, the driver shall proceed with default behavior.
5836 *
5837 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5838 * Optional parameter. The maximum duration for which the radio can scan
5839 * foreign channels consecutively without coming back to home channel. If
5840 * this attribute is not configured, the driver shall proceed with default
5841 * behavior.
5842 *
5843 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5844 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5845 * If this attribute is not configured, the driver shall proceed with
5846 * default behavior.
5847 *
5848 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5849 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5850 * Channels. If this attribute is not configured, the driver shall proceed
5851 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00005852 *
5853 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5854 * Optional parameter. RX link speed threshold to disable roaming.
5855 * If the current RX link speed is above the threshold, roaming is not
5856 * needed. If this attribute is not configured, or if it is set to 0, the
5857 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00005858 *
5859 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5860 * Optional parameter. This configuration delays hand-off by the
5861 * specified duration to receive pending RX frames from the current BSS.
5862 *
5863 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5864 * value.
5865 * During the roam scan, if there are no desired APs found in the partial
5866 * frequency list, an immediate full scan on all the supported frequencies
5867 * is initiated as a fallback. This flag controls the frequency list
5868 * creation for the full scan on the following lines.
5869 * 1 - Full scan to exclude the frequencies that were already scanned by
5870 * the previous partial scan.
5871 * 0 - Full scan to include all the supported frequencies irrespective of
5872 * the ones part of the earlier partial scan.
5873 * If this flag is not specified, a full scan shall include all the
5874 * supported frequencies irrespective of the ones part of an earlier
5875 * partial scan.
5876 *
5877 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5878 * value.
5879 * During the roam scan, if there are no desired APs found in the partial
5880 * frequency list, an immediate full scan on all the supported frequencies
5881 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5882 * frequencies, including all PSC frequencies by default. This attribute
5883 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
5884 * as following.
5885 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5886 * prior discovery of any 6 GHz frequency support in the environment.
5887 * This discovery can happen through a prior RNR, 11k neighbor
5888 * request, 11v BTM request, host scan, etc.
5889 * 0 - Default behavior. Full scan to include all the supported 6 GHz
5890 * PSC frequencies regardless of whether 6 GHz BSSs have been
5891 * discovered.
5892 * The default behavior if this flag is not specified is to include all
5893 * the supported 6 GHz PSC frequencies in the roam full scan.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005894 *
5895 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
5896 * in dBm.
5897 * This attribute configures the low RSSI threshold of the connected AP,
5898 * based on which the STA can start looking for the neighbor APs and
5899 * trigger the roam eventually. STA keeps monitoring for the connected
5900 * AP's RSSI and will start scanning for neighboring APs once the RSSI
5901 * falls below this threshold. This attribute differs from
5902 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
5903 * threshold is used only when the connected AP asks the STA to roam
5904 * through a BTM request.
5905 *
5906 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
5907 * This attribute signifies the RSSI difference threshold between the
5908 * connected AP and the new candidate AP. This parameter influences the
5909 * STA to roam to the new candidate only when its RSSI is better than
5910 * the current connected one by this threshold.
5911 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
5912 *
5913 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
5914 * This attribute signifies the RSSI difference threshold between the
5915 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the
5916 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz
5917 * candidate only when its RSSI is better than the current connected one
5918 * by this threshold. This threshold overrides
5919 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
5920 * GHz to 6 GHz alone with the intention to have a different value to roam
5921 * to the preferred 6 GHz band.
5922 *
5923 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
5924 * This attribute signifies the RSSI offset that is added to low RSSI
5925 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
5926 * high RSSI threshold. STA is expected to trigger roam if the current
5927 * connected AP's RSSI gets above this high RSSI threshold. STA's roam
5928 * attempt on high RSSI threshold aims to find candidates from other
5929 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
5930 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
5931 * for 2.4 GHz BSS).
Hai Shalomc3565922019-10-28 11:58:20 -07005932 */
5933enum qca_vendor_attr_roam_control {
5934 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5935 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5936 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005937 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
Hai Shalomc3565922019-10-28 11:58:20 -07005938 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5939 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5940 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5941 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005942 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5943 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5944 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5945 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5946 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005947 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5948 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5949 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5950 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5951 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5952 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5953 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5954 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5955 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5956 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00005957 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00005958 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5959 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5960 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005961 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
5962 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
5963 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
5964 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
Hai Shalomc3565922019-10-28 11:58:20 -07005965
5966 /* keep last */
5967 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5968 QCA_ATTR_ROAM_CONTROL_MAX =
5969 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5970};
5971
5972/*
5973 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5974 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5975 *
5976 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5977 * Represents the different roam sub commands referred by
5978 * enum qca_wlan_vendor_roaming_subcmd.
5979 *
5980 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5981 * Represents the Request ID for the specific set of commands.
5982 * This also helps to map specific set of commands to the respective
5983 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07005984 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07005985 * matching ID.
5986 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005987 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5988 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07005989 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005990 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5991 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005992 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005993 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5994 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07005995 * represent the list of SSIDs to which the firmware/driver can consider
5996 * to roam to.
5997 *
5998 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5999 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
6000 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
6001 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
6002 *
6003 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
6004 * value, RSSI threshold above which 5GHz RSSI is favored.
6005 *
6006 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
6007 * value, RSSI threshold below which 5GHz RSSI is penalized.
6008 *
6009 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
6010 * value, factor by which 5GHz RSSI is boosted.
6011 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
6012 *
6013 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
6014 * value, factor by which 5GHz RSSI is penalized.
6015 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
6016 *
6017 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
6018 * value, maximum boost that can be applied to a 5GHz RSSI.
6019 *
6020 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
6021 * value, boost applied to current BSSID to ensure the currently
6022 * associated BSSID is favored so as to prevent ping-pong situations.
6023 *
6024 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
6025 * value, RSSI below which "Alert" roam is enabled.
6026 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
6027 * because the RSSI is low, or because many successive beacons have been
6028 * lost or other bad link conditions.
6029 *
6030 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
6031 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08006032 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07006033 * the RSSI of the link is good. The parameters enabling the roaming are
6034 * configured through the PARAM_A_BAND_XX attrbutes.
6035 *
6036 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
6037 * represents the BSSIDs preferred over others while evaluating them
6038 * for the roaming.
6039 *
6040 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
6041 * 32-bit value. Represents the number of preferred BSSIDs set.
6042 *
6043 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
6044 * address representing the BSSID to be preferred.
6045 *
6046 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
6047 * 32-bit value, representing the modifier to be applied to the RSSI of
6048 * the BSSID for the purpose of comparing it with other roam candidate.
6049 *
6050 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006051 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07006052 *
6053 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07006054 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006055 *
6056 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07006057 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07006058 *
6059 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006060 * indicates this request to ignore the BSSID as a hint to the driver. The
6061 * driver can select this BSSID in the worst case (when no other BSSIDs are
6062 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07006063 *
6064 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
6065 * set/get/clear the roam control config as
6066 * defined @enum qca_vendor_attr_roam_control.
6067 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006068enum qca_wlan_vendor_attr_roaming_config_params {
6069 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
6070
6071 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
6072 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
6073
Hai Shaloma20dcd72022-02-04 13:43:00 -08006074 /* Attributes for wifi_set_ssid_allow_list */
6075 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
6076 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
6077 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006078
6079 /* Attributes for set_roam_params */
6080 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
6081 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
6082 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
6083 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
6084 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
6085 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
6086 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
6087
6088 /* Attribute for set_lazy_roam */
6089 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
6090
6091 /* Attribute for set_lazy_roam with preferences */
6092 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
6093 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
6094 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
6095 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
6096
Hai Shalom899fcc72020-10-19 14:38:18 -07006097 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006098 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
6099 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
6100 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07006101 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07006102 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006103
Hai Shalomc3565922019-10-28 11:58:20 -07006104 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
6105
Dmitry Shmidt29333592017-01-09 12:27:11 -08006106 /* keep last */
6107 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
6108 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
6109 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
6110};
6111
Hai Shaloma20dcd72022-02-04 13:43:00 -08006112/* old names for API compatibility */
6113#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
6114 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
6115#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
6116 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
6117#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
6118 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
6119
Dmitry Shmidt29333592017-01-09 12:27:11 -08006120/*
Hai Shalomc3565922019-10-28 11:58:20 -07006121 * enum qca_wlan_vendor_roaming_subcmd: Referred by
6122 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
6123 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006124 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
6125 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07006126 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006127 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
6128 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
6129 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07006130 *
6131 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
6132 * configure the Roam params. These parameters are evaluated on the GScan
6133 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
6134 * params.
6135 *
6136 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
6137 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
6138 * to enable/disable Lazy roam.
6139 *
6140 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
6141 * preference. Contains the attribute
6142 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
6143 * preference.
6144 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006145 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07006146 * to ignore in roaming decision. Uses
6147 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07006148 *
6149 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
6150 * roam control config to the driver with the attribute
6151 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6152 *
6153 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
6154 * roam control config from driver with the attribute
6155 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6156 * For the get, the attribute for the configuration to be queried shall
6157 * carry any of its acceptable value to the driver. In return, the driver
6158 * shall send the configured values within the same attribute to the user
6159 * space.
6160 *
6161 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
6162 * roam control config in the driver with the attribute
6163 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6164 * The driver shall continue with its default roaming behavior when data
6165 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08006166 */
Hai Shalomc3565922019-10-28 11:58:20 -07006167enum qca_wlan_vendor_roaming_subcmd {
6168 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006169 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07006170 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
6171 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
6172 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
6173 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006174 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07006175 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
6176 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
6177 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006178};
6179
Hai Shaloma20dcd72022-02-04 13:43:00 -08006180/* old names for API compatibility */
6181#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
6182 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
6183#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
6184 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
6185
Dmitry Shmidt29333592017-01-09 12:27:11 -08006186enum qca_wlan_vendor_attr_gscan_config_params {
6187 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
6188
6189 /* Unsigned 32-bit value */
6190 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
6191
6192 /* Attributes for data used by
6193 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
6194 */
6195 /* Unsigned 32-bit value */
6196 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
6197 = 2,
6198 /* Unsigned 32-bit value */
6199 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
6200 = 3,
6201
6202 /* Attributes for input params used by
6203 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
6204 */
6205
6206 /* Unsigned 32-bit value; channel frequency */
6207 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
6208 /* Unsigned 32-bit value; dwell time in ms. */
6209 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
6210 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
6211 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
6212 /* Unsigned 8-bit value; channel class */
6213 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
6214
6215 /* Unsigned 8-bit value; bucket index, 0 based */
6216 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
6217 /* Unsigned 8-bit value; band. */
6218 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
6219 /* Unsigned 32-bit value; desired period, in ms. */
6220 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
6221 /* Unsigned 8-bit value; report events semantics. */
6222 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
6223 /* Unsigned 32-bit value. Followed by a nested array of
6224 * GSCAN_CHANNEL_SPEC_* attributes.
6225 */
6226 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
6227
6228 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
6229 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6230 */
6231 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
6232
6233 /* Unsigned 32-bit value; base timer period in ms. */
6234 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
6235 /* Unsigned 32-bit value; number of APs to store in each scan in the
6236 * BSSID/RSSI history buffer (keep the highest RSSI APs).
6237 */
6238 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
6239 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
6240 * up AP.
6241 */
6242 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
6243 = 16,
6244
6245 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
6246 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
6247 * of the array is determined by NUM_BUCKETS.
6248 */
6249 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
6250
6251 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
6252 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
6253 */
6254 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
6255
6256 /* Unsigned 8-bit value */
6257 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
6258 = 19,
6259 /* Unsigned 32-bit value; maximum number of results to be returned. */
6260 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
6261 = 20,
6262
6263 /* An array of 6 x unsigned 8-bit value */
6264 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
6265 /* Signed 32-bit value */
6266 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
6267 /* Signed 32-bit value */
6268 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
6269 /* Unsigned 32-bit value */
6270 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
6271
6272 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
6273 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
6274 * array is determined by NUM_AP.
6275 */
6276 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
6277
6278 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
6279 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6280 */
6281 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
6282
6283 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
6284 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
6285 = 27,
6286 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6287 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
6288 = 28,
6289 /* Unsigned 32-bit value; number of APs breaching threshold. */
6290 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
6291 /* Unsigned 32-bit value; number of APs. Followed by an array of
6292 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
6293 */
6294 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
6295 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6296 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
6297 = 31,
6298 /* Unsigned 32-bit value. If max_period is non zero or different than
6299 * period, then this bucket is an exponential backoff bucket.
6300 */
6301 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
6302 /* Unsigned 32-bit value. */
6303 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
6304 /* Unsigned 32-bit value. For exponential back off bucket, number of
6305 * scans to perform for a given period.
6306 */
6307 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
6308 /* Unsigned 8-bit value; in number of scans, wake up AP after these
6309 * many scans.
6310 */
6311 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
6312 = 35,
6313
6314 /* Attributes for data used by
6315 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
6316 */
6317 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
6318 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
6319 = 36,
6320 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
6321 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
6322 * size of the array is determined by NUM_SSID.
6323 */
6324 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
6325 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
6326 * attributes.
6327 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
6328 */
6329 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
6330
6331 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6332 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
6333 /* Unsigned 8-bit value */
6334 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
6335 /* Signed 32-bit value */
6336 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
6337 /* Signed 32-bit value */
6338 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
6339 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
6340 */
6341 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
6342
6343 /* keep last */
6344 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
6345 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
6346 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
6347};
6348
6349enum qca_wlan_vendor_attr_gscan_results {
6350 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
6351
6352 /* Unsigned 32-bit value; must match the request Id supplied by
6353 * Wi-Fi HAL in the corresponding subcmd NL msg.
6354 */
6355 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
6356
6357 /* Unsigned 32-bit value; used to indicate the status response from
6358 * firmware/driver for the vendor sub-command.
6359 */
6360 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
6361
6362 /* GSCAN Valid Channels attributes */
6363 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
6364 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
6365 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
6366 * representing channel numbers.
6367 */
6368 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
6369
6370 /* GSCAN Capabilities attributes */
6371 /* Unsigned 32-bit value */
6372 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
6373 /* Unsigned 32-bit value */
6374 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
6375 /* Unsigned 32-bit value */
6376 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
6377 = 7,
6378 /* Unsigned 32-bit value */
6379 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
6380 = 8,
6381 /* Signed 32-bit value */
6382 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6383 = 9,
6384 /* Unsigned 32-bit value */
6385 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6386 /* Unsigned 32-bit value */
6387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6388 = 11,
6389 /* Unsigned 32-bit value */
6390 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6391 = 12,
6392
6393 /* GSCAN Attributes used with
6394 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6395 */
6396
6397 /* Unsigned 32-bit value */
6398 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6399
6400 /* GSCAN attributes used with
6401 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6402 */
6403
6404 /* An array of NUM_RESULTS_AVAILABLE x
6405 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6406 */
6407 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6408
6409 /* Unsigned 64-bit value; age of sample at the time of retrieval */
6410 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6411 /* 33 x unsigned 8-bit value; NULL terminated SSID */
6412 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6413 /* An array of 6 x unsigned 8-bit value */
6414 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6415 /* Unsigned 32-bit value; channel frequency in MHz */
6416 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6417 /* Signed 32-bit value */
6418 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6419 /* Unsigned 32-bit value */
6420 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6421 /* Unsigned 32-bit value */
6422 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6423 /* Unsigned 16-bit value */
6424 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6425 /* Unsigned 16-bit value */
6426 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6427 /* Unsigned 32-bit value; size of the IE DATA blob */
6428 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6429 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6430 * information elements found in the beacon; this data should be a
6431 * packed list of wifi_information_element objects, one after the
6432 * other.
6433 */
6434 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6435
6436 /* Unsigned 8-bit value; set by driver to indicate more scan results are
6437 * available.
6438 */
6439 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6440
6441 /* GSCAN attributes for
6442 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6443 */
6444 /* Unsigned 8-bit value */
6445 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6446 /* Unsigned 32-bit value */
6447 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6448
6449 /* GSCAN attributes for
6450 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6451 */
6452 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6453 * to indicate number of results.
6454 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6455 * list of results.
6456 */
6457
6458 /* GSCAN attributes for
6459 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6460 */
6461 /* An array of 6 x unsigned 8-bit value */
6462 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6463 /* Unsigned 32-bit value */
6464 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6465 = 30,
6466 /* Unsigned 32-bit value. */
6467 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
6468 = 31,
6469 /* A nested array of signed 32-bit RSSI values. Size of the array is
6470 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
6471 */
6472 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
6473 = 32,
6474
6475 /* GSCAN attributes used with
6476 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
6477 */
6478 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6479 * to indicate number of gscan cached results returned.
6480 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
6481 * the list of gscan cached results.
6482 */
6483
6484 /* An array of NUM_RESULTS_AVAILABLE x
6485 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
6486 */
6487 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
6488 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
6489 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
6490 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
6491 */
6492 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
6493 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6494 * to indicate number of wifi scan results/bssids retrieved by the scan.
6495 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6496 * list of wifi scan results returned for each cached result block.
6497 */
6498
6499 /* GSCAN attributes for
6500 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
6501 */
6502 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
6503 * number of results.
6504 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6505 * list of wifi scan results returned for each
6506 * wifi_passpoint_match_result block.
6507 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
6508 */
6509
6510 /* GSCAN attributes for
6511 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
6512 */
6513 /* Unsigned 32-bit value */
6514 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
6515 = 36,
6516 /* A nested array of
6517 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
6518 * attributes. Array size =
6519 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
6520 */
6521 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
6522
6523 /* Unsigned 32-bit value; network block id for the matched network */
6524 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
6525 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6526 * list of wifi scan results returned for each
6527 * wifi_passpoint_match_result block.
6528 */
6529 /* Unsigned 32-bit value */
6530 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
6531 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
6532 * ANQP data in the information_element format.
6533 */
6534 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
6535
6536 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6537 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
6538 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6539 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
6540 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6541 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
6542 = 43,
6543 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006544 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08006545 = 44,
6546
6547 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
6548
Hai Shalomce48b4a2018-09-05 11:41:35 -07006549 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
6550 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07006551 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08006552 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07006553 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
6554 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006555 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07006556
Sunil Ravi036cec52023-03-29 11:35:17 -07006557 /* Attribute used for padding for 64-bit alignment */
6558 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
6559
Dmitry Shmidt29333592017-01-09 12:27:11 -08006560 /* keep last */
6561 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
6562 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
6563 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
6564};
6565
Hai Shaloma20dcd72022-02-04 13:43:00 -08006566/* old names for API compatibility */
6567#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
6568 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
6569#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
6570 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
6571
Dmitry Shmidt29333592017-01-09 12:27:11 -08006572enum qca_wlan_vendor_attr_pno_config_params {
6573 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
6574 /* Attributes for data used by
6575 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
6576 */
6577 /* Unsigned 32-bit value */
6578 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
6579 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
6580 * attributes. Array size =
6581 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
6582 */
6583 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
6584
6585 /* Unsigned 32-bit value */
6586 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
6587 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
6588 * realm, 0 if unspecified.
6589 */
6590 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
6591 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
6592 * match, 0 if unspecified.
6593 */
6594 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
6595 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
6596 * unspecified.
6597 */
6598 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
6599
6600 /* Attributes for data used by
6601 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
6602 */
6603 /* Unsigned 32-bit value */
6604 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
6605 /* Array of nested
6606 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
6607 * attributes. Array size =
6608 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
6609 */
6610 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
6611 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6612 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
6613 /* Signed 8-bit value; threshold for considering this SSID as found,
6614 * required granularity for this threshold is 4 dBm to 8 dBm.
6615 */
6616 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
6617 = 10,
6618 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
6619 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
6620 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
6621 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
6622 /* Unsigned 8-bit to indicate ePNO type;
6623 * It takes values from qca_wlan_epno_type
6624 */
6625 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
6626
6627 /* Nested attribute to send the channel list */
6628 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
6629
6630 /* Unsigned 32-bit value; indicates the interval between PNO scan
6631 * cycles in msec.
6632 */
6633 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
6634 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
6635 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
6636 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
6637 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
6638 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
6639 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
6640 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006641 /* Unsigned 32-bit value, representing the PNO Request ID */
6642 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006643
6644 /* keep last */
6645 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
6646 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
6647 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
6648};
6649
Paul Stewart092955c2017-02-06 09:13:09 -08006650/**
6651 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
6652 * the ACS has to be triggered. These values are used by
6653 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
6654 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
6655 */
6656enum qca_wlan_vendor_acs_select_reason {
6657 /* Represents the reason that the ACS triggered during the AP start */
6658 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
6659 /* Represents the reason that DFS found with the current channel */
6660 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
6661 /* Represents the reason that LTE co-exist in the current band. */
6662 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07006663 /* Represents the reason that generic, uncategorized interference has
6664 * been found in the current channel.
6665 */
6666 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6667 /* Represents the reason that excessive 802.11 interference has been
6668 * found in the current channel.
6669 */
6670 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6671 /* Represents the reason that generic Continuous Wave (CW) interference
6672 * has been found in the current channel.
6673 */
6674 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6675 /* Represents the reason that Microwave Oven (MWO) interference has been
6676 * found in the current channel.
6677 */
6678 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6679 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
6680 * (FHSS) interference has been found in the current channel. This may
6681 * include 802.11 waveforms.
6682 */
6683 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6684 /* Represents the reason that non-802.11 generic Frequency-Hopping
6685 * Spread Spectrum (FHSS) interference has been found in the current
6686 * channel.
6687 */
6688 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6689 /* Represents the reason that generic Wideband (WB) interference has
6690 * been found in the current channel. This may include 802.11 waveforms.
6691 */
6692 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6693 /* Represents the reason that non-802.11 generic Wideband (WB)
6694 * interference has been found in the current channel.
6695 */
6696 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6697 /* Represents the reason that Jammer interference has been found in the
6698 * current channel.
6699 */
6700 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07006701 /* Represents the reason that ACS triggered by AFC */
6702 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08006703};
6704
6705/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006706 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6707 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6708 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6709 * external ACS policies to select the channels w.r.t. the PCL weights.
6710 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6711 * their PCL weights.)
6712 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6713 * select a channel with non-zero PCL weight.
6714 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6715 * channel with non-zero PCL weight.
6716 *
6717 */
6718enum qca_wlan_vendor_attr_external_acs_policy {
6719 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6720 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6721};
6722
6723/**
Paul Stewart092955c2017-02-06 09:13:09 -08006724 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
6725 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
6726 */
6727enum qca_wlan_vendor_channel_prop_flags {
6728 /* Bits 0, 1, 2, and 3 are reserved */
6729
6730 /* Turbo channel */
6731 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
6732 /* CCK channel */
6733 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
6734 /* OFDM channel */
6735 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
6736 /* 2.4 GHz spectrum channel. */
6737 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
6738 /* 5 GHz spectrum channel */
6739 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
6740 /* Only passive scan allowed */
6741 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
6742 /* Dynamic CCK-OFDM channel */
6743 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
6744 /* GFSK channel (FHSS PHY) */
6745 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
6746 /* Radar found on channel */
6747 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
6748 /* 11a static turbo channel only */
6749 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
6750 /* Half rate channel */
6751 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
6752 /* Quarter rate channel */
6753 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
6754 /* HT 20 channel */
6755 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
6756 /* HT 40 with extension channel above */
6757 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
6758 /* HT 40 with extension channel below */
6759 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
6760 /* HT 40 intolerant */
6761 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
6762 /* VHT 20 channel */
6763 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
6764 /* VHT 40 with extension channel above */
6765 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
6766 /* VHT 40 with extension channel below */
6767 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
6768 /* VHT 80 channel */
6769 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
6770 /* HT 40 intolerant mark bit for ACS use */
6771 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6772 /* Channel temporarily blocked due to noise */
6773 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
6774 /* VHT 160 channel */
6775 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
6776 /* VHT 80+80 channel */
6777 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006778 /* HE 20 channel */
6779 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
6780 /* HE 40 with extension channel above */
6781 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
6782 /* HE 40 with extension channel below */
6783 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
6784 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07006785 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006786};
6787
6788/**
6789 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6790 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6791 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6792 */
6793enum qca_wlan_vendor_channel_prop_flags_2 {
6794 /* HE 40 intolerant mark bit for ACS use */
6795 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6796 /* HE 80 channel */
6797 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
6798 /* HE 160 channel */
6799 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
6800 /* HE 80+80 channel */
6801 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006802};
6803
6804/**
6805 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6806 * each channel. This is used by
6807 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6808 */
6809enum qca_wlan_vendor_channel_prop_flags_ext {
6810 /* Radar found on channel */
6811 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
6812 /* DFS required on channel */
6813 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
6814 /* DFS required on channel for 2nd band of 80+80 */
6815 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
6816 /* If channel has been checked for DFS */
6817 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
6818 /* Excluded in 802.11d */
6819 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
6820 /* Channel Switch Announcement received on this channel */
6821 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
6822 /* Ad-hoc is not allowed */
6823 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
6824 /* Station only channel */
6825 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07006826 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006827 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006828 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006829 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
6830};
6831
6832/**
6833 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6834 * information. These attributes are sent as part of
6835 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6836 * attributes correspond to a single channel.
6837 */
6838enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6839 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6840
6841 /* A bitmask (u32) with flags specified in
6842 * enum qca_wlan_vendor_channel_prop_flags.
6843 */
6844 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6845 /* A bitmask (u32) with flags specified in
6846 * enum qca_wlan_vendor_channel_prop_flags_ext.
6847 */
6848 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6849 /* frequency in MHz (u32) */
6850 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6851 /* maximum regulatory transmission power (u32) */
6852 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6853 /* maximum transmission power (u32) */
6854 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6855 /* minimum transmission power (u32) */
6856 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6857 /* regulatory class id (u8) */
6858 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6859 /* maximum antenna gain in (u8) */
6860 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6861 /* VHT segment 0 (u8) */
6862 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6863 /* VHT segment 1 (u8) */
6864 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006865 /* A bitmask (u32) with flags specified in
6866 * enum qca_wlan_vendor_channel_prop_flags_2.
6867 */
6868 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006869
Hai Shalomc3565922019-10-28 11:58:20 -07006870 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006871 * Segment 0 in MHz (u32).
6872 *
6873 * For 20/40/80 MHz bandwidth, this indicates the channel center
6874 * frequency index for the 20/40/80 MHz operating channel.
6875 * For 160 MHz bandwidth, this indicates the channel center
6876 * frequency of the primary 80 MHz channel.
6877 * For 320 MHz bandwidth, indicates the channel center frequency
6878 * of the primary 160 MHz channel.
6879 *
6880 * To maintain backward compatibility,
6881 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6882 * is also maintained.
6883 */
6884 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6885 /* Legacy alias for the Segment 0 attribute.
6886 *
Hai Shalomc3565922019-10-28 11:58:20 -07006887 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6888 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6889 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6890 * along with
6891 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6892 *
6893 * If both the driver and user-space application supports the 6 GHz
6894 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6895 * is deprecated and
6896 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6897 * should be used.
6898 *
6899 * To maintain backward compatibility,
6900 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6901 * is still used if either of the driver or user space application
6902 * doesn't support the 6 GHz band.
6903 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006904 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6905 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07006906
6907 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006908 * Segment 1 in MHz (u32).
6909 *
6910 * For 20/40/80 MHz bandwidth, this is set to 0.
6911 * For 160 MHz bandwidth, indicates the channel center frequency of the
6912 * 160 MHz channel.
6913 * For 320 MHz bandwidth, indicates the channel center frequency of the
6914 * 320 MHz channel.
6915 *
6916 * To maintain backward compatibility,
6917 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6918 * is also maintained.
6919 */
6920 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6921 /* Legacy alias for the Segment 1 attribute.
6922 *
Hai Shalomc3565922019-10-28 11:58:20 -07006923 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6924 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6925 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6926 * along with
6927 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6928 *
6929 * If both the driver and user-space application supports the 6 GHz
6930 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6931 * is deprecated and
6932 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6933 * should be considered.
6934 *
6935 * To maintain backward compatibility,
6936 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6937 * is still used if either of the driver or user space application
6938 * doesn't support the 6 GHz band.
6939 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006940 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6941 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07006942
Sunil Ravia04bd252022-05-02 22:54:18 -07006943 /*
6944 * 16-bit attribute of bits indicating the AP power modes supported by
6945 * the channel (u16).
6946 * Note: Currently, only 3 bits are used in the attribute and each bit
6947 * corresponds to the power mode mentioned in enum
6948 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6949 * set if the associated mode is supported.
6950 */
6951 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6952 = 14,
6953 /* Array of nested attributes for each power mode. It takes attr as
6954 * defined in enum
6955 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6956 */
6957 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006958 /*
6959 * This indicates the overlapping 320 MHz center frequency in MHz
6960 * (u32), if the given primary channel supports more than one
6961 * 320 MHz channel bonding.
6962 *
6963 * Example:
6964 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6965 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6966 * possible segment 2 frequencies for this (320 MHz center
6967 * frequencies):
6968 *
6969 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6970 * from frequency 5945 MHz - 6265 MHz
6971 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6972 * from frequency 6105 MHz - 6425 MHz
6973 *
6974 * In this case,
6975 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6976 * return 6185 MHz.
6977 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6978 * return 6105 MHz.
6979 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6980 * will return 6265 MHz.
6981 */
6982 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6983 = 16,
6984
Paul Stewart092955c2017-02-06 09:13:09 -08006985 /* keep last */
6986 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6987 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6988 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6989};
6990
6991/**
Sunil Ravia04bd252022-05-02 22:54:18 -07006992 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6993 * values that the vendor external ACS channel power attribute
6994 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6995 * take.
6996 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6997 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6998 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6999 */
7000enum qca_wlan_vendor_external_acs_chan_power_level {
7001 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
7002 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
7003 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
7004};
7005
7006/**
7007 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
7008 * attributes for power mode type and power values corresponding to that.
7009 * These attributes are sent as part of
7010 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
7011 */
7012enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
7013 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
7014 /*
7015 * Power mode (u8) takes the values defined in enum
7016 * qca_wlan_vendor_external_acs_chan_power_mode
7017 */
7018 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
7019 = 1,
7020 /*
7021 * Indicates if power value is a PSD/EIRP value (flag). If flag is
7022 * present, it indicates a PSD value.
7023 */
7024 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
7025 /*
7026 * Power value (u32) PSD/EIRP as indicated by
7027 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
7028 * for power mode corresponding to the
7029 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
7030 * Units for PSD - dBm/MHz
7031 * Units for EIRP - dBm
7032 */
7033 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
7034 = 3,
7035 /* keep last */
7036 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
7037 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
7038 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
7039};
7040
7041/**
Paul Stewart092955c2017-02-06 09:13:09 -08007042 * qca_wlan_vendor_attr_pcl: Represents attributes for
7043 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07007044 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
7045 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08007046 */
7047enum qca_wlan_vendor_attr_pcl {
7048 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
7049
7050 /* Channel number (u8) */
7051 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
7052 /* Channel weightage (u8) */
7053 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007054 /* Channel frequency (u32) in MHz */
7055 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
7056 /* Channel flags (u32)
7057 * bit 0 set: channel to be used for GO role,
7058 * bit 1 set: channel to be used on CLI role,
7059 * bit 2 set: channel must be considered for operating channel
7060 * selection & peer chosen operating channel should be
7061 * one of the channels with this flag set,
7062 * bit 3 set: channel should be excluded in GO negotiation
7063 */
7064 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07007065
7066 /* Keep last */
7067 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
7068 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08007069};
7070
7071/**
7072 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
7073 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
7074 * host driver.
7075 */
7076enum qca_wlan_vendor_attr_external_acs_event {
7077 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
7078
7079 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
7080 * This helps ACS module to understand why ACS needs to be started.
7081 */
7082 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
7083 /* Flag attribute to indicate if driver supports spectral scanning */
7084 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
7085 /* Flag attribute to indicate if 11ac is offloaded to firmware */
7086 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
7087 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07007088 * capability as part of scan operation
7089 */
Paul Stewart092955c2017-02-06 09:13:09 -08007090 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
7091 /* Flag attribute to indicate interface status is UP */
7092 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
7093 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07007094 * values.
7095 */
Paul Stewart092955c2017-02-06 09:13:09 -08007096 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
7097 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
7098 * This is the upper bound of channel width. ACS logic should try to get
7099 * a channel with the specified width and if not found, look for lower
7100 * values.
7101 */
7102 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
7103 /* This (u8) will hold values of one of enum nl80211_bands */
7104 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
7105 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07007106 * values
7107 */
Paul Stewart092955c2017-02-06 09:13:09 -08007108 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
7109 /* Array of (u32) supported frequency list among which ACS should choose
7110 * best frequency.
7111 */
7112 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
7113 /* Preferred channel list by the driver which will have array of nested
7114 * values as per enum qca_wlan_vendor_attr_pcl attribute.
7115 */
7116 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
7117 /* Array of nested attribute for each channel. It takes attr as defined
7118 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
7119 */
7120 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007121 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
7122 * It uses values defined in enum
7123 * qca_wlan_vendor_attr_external_acs_policy.
7124 */
7125 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007126 /* Reference RF Operating Parameter (RROP) availability information
7127 * (u16). It uses values defined in enum
7128 * qca_wlan_vendor_attr_rropavail_info.
7129 */
7130 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07007131 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
7132 * for External ACS
7133 */
7134 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08007135
7136 /* keep last */
7137 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
7138 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
7139 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
7140};
7141
7142/**
Hai Shalomc3565922019-10-28 11:58:20 -07007143 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08007144 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7145 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07007146 *
7147 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7148 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7149 *
7150 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7151 * Array of nested values for each channel with following attributes:
7152 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7153 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7154 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7155 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7156 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7157 * Note: If both the driver and user-space application supports the 6 GHz band,
7158 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7159 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7160 * To maintain backward compatibility,
7161 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7162 * is still used if either of the driver or user space application doesn't
7163 * support the 6 GHz band.
7164 *
7165 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7166 * Primary channel number
7167 * Note: If both the driver and user-space application supports the 6 GHz band,
7168 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7169 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7170 * To maintain backward compatibility,
7171 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7172 * is still used if either of the driver or user space application doesn't
7173 * support the 6 GHz band.
7174 *
7175 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7176 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7177 * Note: If both the driver and user-space application supports the 6 GHz band,
7178 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7179 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7180 * To maintain backward compatibility,
7181 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7182 * is still used if either of the driver or user space application
7183 * doesn't support the 6 GHz band.
7184 *
7185 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7186 * VHT seg0 channel number
7187 * Note: If both the driver and user-space application supports the 6 GHz band,
7188 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7189 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7190 * To maintain backward compatibility,
7191 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7192 * is still used if either of the driver or user space application
7193 * doesn't support the 6 GHz band.
7194 *
7195 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7196 * VHT seg1 channel number
7197 * Note: If both the driver and user-space application supports the 6 GHz band,
7198 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7199 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7200 * To maintain backward compatibility,
7201 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7202 * is still used if either of the driver or user space application
7203 * doesn't support the 6 GHz band.
7204 *
7205 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7206 * Takes one of enum nl80211_chan_width values.
7207 *
7208 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7209 * Array of nested values for each channel with following attributes:
7210 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7211 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7212 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7213 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7214 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7215 * Note: If user-space application has no support of the 6 GHz band, this
7216 * attribute is optional.
7217 *
7218 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7219 * Primary channel frequency in MHz
7220 * Note: If user-space application has no support of the 6 GHz band, this
7221 * attribute is optional.
7222 *
7223 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7224 * Secondary channel frequency in MHz used for HT 40 MHz channels.
7225 * Note: If user-space application has no support of the 6 GHz band, this
7226 * attribute is optional.
7227 *
7228 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7229 * VHT seg0 channel frequency in MHz
7230 * Note: If user-space application has no support of the 6GHz band, this
7231 * attribute is optional.
7232 *
7233 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7234 * VHT seg1 channel frequency in MHz
7235 * Note: If user-space application has no support of the 6 GHz band, this
7236 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00007237 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7238 * Puncture Bitmap for selected primary channel. Optional if no support
7239 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7240 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7241 * element.
Paul Stewart092955c2017-02-06 09:13:09 -08007242 */
7243enum qca_wlan_vendor_attr_external_acs_channels {
7244 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7245
7246 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7247 */
7248 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7249
7250 /* Array of nested values for each channel with following attributes:
7251 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7252 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7253 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7254 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7255 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7256 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7257 */
7258 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7259 /* This (u8) will hold values of one of enum nl80211_bands */
7260 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7261 /* Primary channel (u8) */
7262 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7263 /* Secondary channel (u8) used for HT 40 MHz channels */
7264 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7265 /* VHT seg0 channel (u8) */
7266 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7267 /* VHT seg1 channel (u8) */
7268 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7269 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7270 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7271
Hai Shalomc3565922019-10-28 11:58:20 -07007272 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7273 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7274 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7275 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7276 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007277 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Hai Shalomc3565922019-10-28 11:58:20 -07007278
Paul Stewart092955c2017-02-06 09:13:09 -08007279 /* keep last */
7280 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7281 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7282 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7283};
7284
7285enum qca_chip_power_save_failure_reason {
7286 /* Indicates if the reason for the failure is due to a protocol
7287 * layer/module.
7288 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007289 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08007290 /* Indicates if the reason for the failure is due to a hardware issue.
7291 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007292 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007293};
7294
7295/**
7296 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
7297 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
7298 * information leading to the power save failure.
7299 */
7300enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07007301 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
7302 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08007303 * These reasons are represented by
7304 * enum qca_chip_power_save_failure_reason.
7305 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007306 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007307
Roshan Pius3a1667e2018-07-03 15:17:14 -07007308 /* keep last */
7309 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
7310 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
7311 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
7312};
7313
7314/**
7315 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
7316 * data types for which the stats have to get collected.
7317 */
7318enum qca_wlan_vendor_nud_stats_data_pkt_flags {
7319 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
7320 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
7321 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
7322 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
7323 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
7324 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
7325 * to represent the stats of respective data type.
7326 */
7327 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
7328 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
7329 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
7330};
7331
7332enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
7333 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
7334 /* Represents the data packet type to be monitored (u32).
7335 * Host driver tracks the stats corresponding to each data frame
7336 * represented by these flags.
7337 * These data packets are represented by
7338 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
7339 */
7340 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
7341 /* Name corresponding to the DNS frame for which the respective DNS
7342 * stats have to get monitored (string). Max string length 255.
7343 */
7344 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
7345 /* source port on which the respective proto stats have to get
7346 * collected (u32).
7347 */
7348 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
7349 /* destination port on which the respective proto stats have to get
7350 * collected (u32).
7351 */
7352 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
7353 /* IPv4 address for which the destined data packets have to be
7354 * monitored. (in network byte order), u32.
7355 */
7356 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
7357 /* IPv6 address for which the destined data packets have to be
7358 * monitored. (in network byte order), 16 bytes array.
7359 */
7360 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
7361
7362 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
7363 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
7364 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007365};
7366
7367/**
7368 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
7369 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
7370 * information to start/stop the NUD statistics collection.
7371 */
7372enum qca_attr_nud_stats_set {
7373 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
7374
7375 /* Flag to start/stop the NUD statistics collection.
7376 * Start - If included, Stop - If not included
7377 */
7378 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007379 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08007380 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007381 /* Represents the list of data packet types to be monitored.
7382 * Host driver tracks the stats corresponding to each data frame
7383 * represented by these flags.
7384 * These data packets are represented by
7385 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7386 */
7387 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007388
7389 /* keep last */
7390 QCA_ATTR_NUD_STATS_SET_LAST,
7391 QCA_ATTR_NUD_STATS_SET_MAX =
7392 QCA_ATTR_NUD_STATS_SET_LAST - 1,
7393};
7394
Roshan Pius3a1667e2018-07-03 15:17:14 -07007395enum qca_attr_nud_data_stats {
7396 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7397 /* Data packet type for which the stats are collected (u32).
7398 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7399 */
7400 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7401 /* Name corresponding to the DNS frame for which the respective DNS
7402 * stats are monitored (string). Max string length 255.
7403 */
7404 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7405 /* source port on which the respective proto stats are collected (u32).
7406 */
7407 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7408 /* destination port on which the respective proto stats are collected
7409 * (u32).
7410 */
7411 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7412 /* IPv4 address for which the destined data packets have to be
7413 * monitored. (in network byte order), u32.
7414 */
7415 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7416 /* IPv6 address for which the destined data packets have to be
7417 * monitored. (in network byte order), 16 bytes array.
7418 */
7419 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7420 /* Data packet Request count received from netdev (u32). */
7421 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7422 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
7423 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7424 /* Data packet Request count received by lower MAC from upper MAC
7425 * (u32)
7426 */
7427 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7428 /* Data packet Request count successfully transmitted by the device
7429 * (u32)
7430 */
7431 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7432 /* Data packet Response count received by lower MAC (u32) */
7433 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7434 /* Data packet Response count received by upper MAC (u32) */
7435 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7436 /* Data packet Response count delivered to netdev (u32) */
7437 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7438 /* Data Packet Response count that are dropped out of order (u32) */
7439 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7440
7441 /* keep last */
7442 QCA_ATTR_NUD_DATA_STATS_LAST,
7443 QCA_ATTR_NUD_DATA_STATS_MAX =
7444 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7445};
7446
Paul Stewart092955c2017-02-06 09:13:09 -08007447/**
7448 * qca_attr_nud_stats_get: Attributes to vendor subcmd
7449 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7450 * NUD statistics collected when queried.
7451 */
7452enum qca_attr_nud_stats_get {
7453 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007454 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007455 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007456 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007457 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007458 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007459 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007460 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007461 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007462 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007463 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007464 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007465 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007466 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007467 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007468 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007469 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
7470 /* Flag indicating if the station's link to the AP is active.
7471 * Active Link - If included, Inactive link - If not included
7472 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007473 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08007474 /* Flag indicating if there is any duplicate address detected (DAD).
7475 * Yes - If detected, No - If not detected.
7476 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007477 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007478 /* List of Data packet types for which the stats are requested.
7479 * This list does not carry ARP stats as they are done by the
7480 * above attributes. Represented by enum qca_attr_nud_data_stats.
7481 */
7482 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007483
7484 /* keep last */
7485 QCA_ATTR_NUD_STATS_GET_LAST,
7486 QCA_ATTR_NUD_STATS_GET_MAX =
7487 QCA_ATTR_NUD_STATS_GET_LAST - 1,
7488};
7489
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007490enum qca_wlan_btm_candidate_status {
7491 QCA_STATUS_ACCEPT = 0,
7492 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
7493 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
7494 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
7495 QCA_STATUS_REJECT_LOW_RSSI = 4,
7496 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
7497 QCA_STATUS_REJECT_UNKNOWN = 6,
7498};
7499
7500enum qca_wlan_vendor_attr_btm_candidate_info {
7501 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
7502
7503 /* 6-byte MAC address representing the BSSID of transition candidate */
7504 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
7505 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
7506 * returned by the driver. It says whether the BSSID provided in
7507 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
7508 * the driver, if not it specifies the reason for rejection.
7509 * Note that the user-space can overwrite the transition reject reason
7510 * codes provided by driver based on more information.
7511 */
7512 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
7513
7514 /* keep last */
7515 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
7516 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
7517 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
7518};
7519
7520enum qca_attr_trace_level {
7521 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
7522 /*
7523 * Nested array of the following attributes:
7524 * QCA_ATTR_TRACE_LEVEL_MODULE,
7525 * QCA_ATTR_TRACE_LEVEL_MASK.
7526 */
7527 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
7528 /*
7529 * Specific QCA host driver module. Please refer to the QCA host
7530 * driver implementation to get the specific module ID.
7531 */
7532 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
7533 /* Different trace level masks represented in the QCA host driver. */
7534 QCA_ATTR_TRACE_LEVEL_MASK = 3,
7535
7536 /* keep last */
7537 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
7538 QCA_ATTR_TRACE_LEVEL_MAX =
7539 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
7540};
7541
7542/**
7543 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
7544 */
7545enum qca_wlan_vendor_attr_get_he_capabilities {
7546 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
7547 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07007548 * (u8 attribute: 0 = not supported, 1 = supported)
7549 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007550 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
7551 /* HE PHY capabilities, array of 3 u32 values */
7552 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
7553 /* HE MAC capabilities (u32 attribute) */
7554 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
7555 /* HE MCS map (u32 attribute) */
7556 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
7557 /* Number of SS (u32 attribute) */
7558 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
7559 /* RU count (u32 attribute) */
7560 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
7561 /* PPE threshold data, array of 8 u32 values */
7562 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
7563
7564 /* keep last */
7565 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
7566 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
7567 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
7568};
7569
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007570/**
7571 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7572 */
7573enum qca_wlan_vendor_attr_spectral_scan {
7574 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7575 /* Number of times the chip enters spectral scan mode before
7576 * deactivating spectral scans. When set to 0, chip will enter spectral
7577 * scan mode continuously. u32 attribute.
7578 */
7579 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7580 /* Spectral scan period. Period increment resolution is 256*Tclk,
7581 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7582 */
7583 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7584 /* Spectral scan priority. u32 attribute. */
7585 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7586 /* Number of FFT data points to compute. u32 attribute. */
7587 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7588 /* Enable targeted gain change before starting the spectral scan FFT.
7589 * u32 attribute.
7590 */
7591 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7592 /* Restart a queued spectral scan. u32 attribute. */
7593 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7594 /* Noise floor reference number for the calculation of bin power.
7595 * u32 attribute.
7596 */
7597 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7598 /* Disallow spectral scan triggers after TX/RX packets by setting
7599 * this delay value to roughly SIFS time period or greater.
7600 * u32 attribute.
7601 */
7602 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7603 /* Number of strong bins (inclusive) per sub-channel, below
7604 * which a signal is declared a narrow band tone. u32 attribute.
7605 */
7606 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7607 /* Specify the threshold over which a bin is declared strong (for
7608 * scan bandwidth analysis). u32 attribute.
7609 */
7610 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7611 /* Spectral scan report mode. u32 attribute. */
7612 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7613 /* RSSI report mode, if the ADC RSSI is below
7614 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7615 * then FFTs will not trigger, but timestamps and summaries get
7616 * reported. u32 attribute.
7617 */
7618 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7619 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
7620 * to ensure spectral scan reporting with normal error code.
7621 * u32 attribute.
7622 */
7623 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7624 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
7625 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7626 * u32 attribute.
7627 */
7628 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7629 /* Format of FFT report to software for spectral scan triggered FFTs.
7630 * 0: No FFT report (only spectral scan summary report)
7631 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7632 * report
7633 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7634 * bins (in-band) per FFT + spectral scan summary report
7635 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7636 * bins (all) per FFT + spectral scan summary report
7637 * u32 attribute.
7638 */
7639 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7640 /* Number of LSBs to shift out in order to scale the FFT bins.
7641 * u32 attribute.
7642 */
7643 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7644 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7645 * in dBm power. u32 attribute.
7646 */
7647 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7648 /* Per chain enable mask to select input ADC for search FFT.
7649 * u32 attribute.
7650 */
7651 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7652 /* An unsigned 64-bit integer provided by host driver to identify the
7653 * spectral scan request. This attribute is included in the scan
7654 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7655 * and used as an attribute in
7656 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7657 * specific scan to be stopped.
7658 */
7659 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007660 /* Skip interval for FFT reports. u32 attribute */
7661 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7662 /* Set to report only one set of FFT results.
7663 * u32 attribute.
7664 */
7665 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7666 /* Debug level for spectral module in driver.
7667 * 0 : Verbosity level 0
7668 * 1 : Verbosity level 1
7669 * 2 : Verbosity level 2
7670 * 3 : Matched filterID display
7671 * 4 : One time dump of FFT report
7672 * u32 attribute.
7673 */
7674 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7675 /* Type of spectral scan request. u32 attribute.
7676 * It uses values defined in enum
7677 * qca_wlan_vendor_attr_spectral_scan_request_type.
7678 */
7679 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07007680 /* This specifies the frequency span over which spectral
7681 * scan would be carried out. Its value depends on the
7682 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7683 * the relation is as follows.
7684 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7685 * Not applicable. Spectral scan would happen in the
7686 * operating span.
7687 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7688 * Center frequency (in MHz) of the span of interest or
7689 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07007690 * in the span of interest. For 80+80 MHz agile spectral scan
7691 * request it represents center frequency (in MHz) of the primary
7692 * 80 MHz span or for convenience, center frequency (in MHz) of any
7693 * channel in the primary 80 MHz span. If agile spectral scan is
7694 * initiated without setting a valid frequency it returns the
7695 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07007696 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7697 * u32 attribute.
7698 */
7699 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7700 /* Spectral scan mode. u32 attribute.
7701 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7702 * If this attribute is not present, it is assumed to be
7703 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7704 */
7705 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7706 /* Spectral scan error code. u32 attribute.
7707 * It uses values defined in enum
7708 * qca_wlan_vendor_spectral_scan_error_code.
7709 * This attribute is included only in failure scenarios.
7710 */
7711 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7712 /* 8-bit unsigned value to enable/disable debug of the
7713 * Spectral DMA ring.
7714 * 1-enable, 0-disable
7715 */
7716 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7717 /* 8-bit unsigned value to enable/disable debug of the
7718 * Spectral DMA buffers.
7719 * 1-enable, 0-disable
7720 */
7721 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007722 /* This specifies the frequency span over which spectral scan would be
7723 * carried out. Its value depends on the value of
7724 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7725 * follows.
7726 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7727 * Not applicable. Spectral scan would happen in the operating span.
7728 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7729 * This attribute is applicable only for agile spectral scan
7730 * requests in 80+80 MHz mode. It represents center frequency (in
7731 * MHz) of the secondary 80 MHz span or for convenience, center
7732 * frequency (in MHz) of any channel in the secondary 80 MHz span.
7733 * u32 attribute.
7734 */
7735 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007736 /* This attribute specifies the bandwidth to be used for spectral scan
7737 * operation. This is an u8 attribute and uses the values in enum
7738 * nl80211_chan_width. This is an optional attribute.
7739 * If this attribute is not populated, the driver should configure the
7740 * spectral scan bandwidth to the maximum value supported by the target
7741 * for the current operating bandwidth.
7742 */
7743 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007744 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
7745 * Recapture can only be enabled for scan period greater than 52 us.
7746 * If this attribute is enabled, re-triggers will be enabled when AGC
7747 * gain changes.
7748 */
7749 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07007750 /* Attribute used for padding for 64-bit alignment */
7751 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007752
7753 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7754 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7755 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7756};
7757
Roshan Pius3a1667e2018-07-03 15:17:14 -07007758/**
7759 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7760 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7761 */
7762enum qca_wlan_vendor_attr_spectral_diag_stats {
7763 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7764 /* Number of spectral TLV signature mismatches.
7765 * u64 attribute.
7766 */
7767 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7768 /* Number of spectral phyerror events with insufficient length when
7769 * parsing for secondary 80 search FFT report. u64 attribute.
7770 */
7771 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7772 /* Number of spectral phyerror events without secondary 80
7773 * search FFT report. u64 attribute.
7774 */
7775 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7776 /* Number of spectral phyerror events with vht operation segment 1 id
7777 * mismatches in search fft report. u64 attribute.
7778 */
7779 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7780 /* Number of spectral phyerror events with vht operation segment 2 id
7781 * mismatches in search fft report. u64 attribute.
7782 */
7783 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07007784 /* Attribute used for padding for 64-bit alignment */
7785 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007786
7787 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7788 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7789 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7790};
7791
7792/**
7793 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7794 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7795 */
7796enum qca_wlan_vendor_attr_spectral_cap {
7797 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7798 /* Flag attribute to indicate phydiag capability */
7799 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7800 /* Flag attribute to indicate radar detection capability */
7801 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7802 /* Flag attribute to indicate spectral capability */
7803 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7804 /* Flag attribute to indicate advanced spectral capability */
7805 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7806 /* Spectral hardware generation. u32 attribute.
7807 * It uses values defined in enum
7808 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7809 */
7810 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007811 /* Spectral bin scaling formula ID. u16 attribute.
7812 * It uses values defined in enum
7813 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7814 */
7815 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7816 /* Spectral bin scaling param - low level offset.
7817 * s16 attribute.
7818 */
7819 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7820 /* Spectral bin scaling param - high level offset.
7821 * s16 attribute.
7822 */
7823 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7824 /* Spectral bin scaling param - RSSI threshold.
7825 * s16 attribute.
7826 */
7827 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7828 /* Spectral bin scaling param - default AGC max gain.
7829 * u8 attribute.
7830 */
7831 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07007832 /* Flag attribute to indicate agile spectral scan capability
7833 * for 20/40/80 MHz modes.
7834 */
Hai Shalom81f62d82019-07-22 12:10:00 -07007835 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07007836 /* Flag attribute to indicate agile spectral scan capability
7837 * for 160 MHz mode.
7838 */
7839 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7840 /* Flag attribute to indicate agile spectral scan capability
7841 * for 80+80 MHz mode.
7842 */
7843 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007844 /* Number of spectral detectors used for scan in 20 MHz.
7845 * u32 attribute.
7846 */
7847 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7848 /* Number of spectral detectors used for scan in 40 MHz.
7849 * u32 attribute.
7850 */
7851 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7852 /* Number of spectral detectors used for scan in 80 MHz.
7853 * u32 attribute.
7854 */
7855 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7856 /* Number of spectral detectors used for scan in 160 MHz.
7857 * u32 attribute.
7858 */
7859 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7860 /* Number of spectral detectors used for scan in 80+80 MHz.
7861 * u32 attribute.
7862 */
7863 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007864 /* Flag attribute to indicate agile spectral scan capability
7865 * for 320 MHz mode.
7866 */
7867 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7868 /* Number of spectral detectors used for scan in 320 MHz.
7869 * u32 attribute.
7870 */
7871 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007872
7873 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7874 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7875 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7876};
7877
7878/**
7879 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7880 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7881 */
7882enum qca_wlan_vendor_attr_spectral_scan_status {
7883 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7884 /* Flag attribute to indicate whether spectral scan is enabled */
7885 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7886 /* Flag attribute to indicate whether spectral scan is in progress*/
7887 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07007888 /* Spectral scan mode. u32 attribute.
7889 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7890 * If this attribute is not present, normal mode
7891 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7892 * requested.
7893 */
7894 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007895
7896 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7897 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7898 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7899};
7900
7901/**
7902 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7903 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7904 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7905 * spectral scan request types.
7906 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7907 * set the spectral parameters and start scan.
7908 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7909 * only set the spectral parameters.
7910 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7911 * only start the spectral scan.
7912 */
7913enum qca_wlan_vendor_attr_spectral_scan_request_type {
7914 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7915 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7917};
7918
7919/**
Hai Shalom81f62d82019-07-22 12:10:00 -07007920 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7921 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7922 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7923 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7924 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7925 * spectral scan modes.
7926 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7927 * spectral scan in the current operating span.
7928 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7929 * spectral scan in the configured agile span.
7930 */
7931enum qca_wlan_vendor_spectral_scan_mode {
7932 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7933 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7934};
7935
7936/**
7937 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7938 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7939 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7940 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7941 * of a parameter is not supported.
7942 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7943 * mode is not supported.
7944 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7945 * has invalid value.
7946 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7947 * is not initialized.
7948 */
7949enum qca_wlan_vendor_spectral_scan_error_code {
7950 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7951 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7952 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7953 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7954};
7955
7956/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007957 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7958 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7959 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7960 * spectral hardware generation.
7961 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7962 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7963 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7964 */
7965enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7966 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7967 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7968 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7969};
7970
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007971enum qca_wlan_vendor_tos {
7972 QCA_WLAN_VENDOR_TOS_BK = 0,
7973 QCA_WLAN_VENDOR_TOS_BE = 1,
7974 QCA_WLAN_VENDOR_TOS_VI = 2,
7975 QCA_WLAN_VENDOR_TOS_VO = 3,
7976};
7977
7978/**
7979 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7980 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7981 */
7982enum qca_wlan_vendor_attr_active_tos {
7983 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7984 /* Type Of Service - Represented by qca_wlan_vendor_tos */
7985 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7986 /* Flag attribute representing the start (attribute included) or stop
7987 * (attribute not included) of the respective TOS.
7988 */
7989 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7990};
7991
7992enum qca_wlan_vendor_hang_reason {
7993 /* Unspecified reason */
7994 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7995 /* No Map for the MAC entry for the received frame */
7996 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7997 /* Peer deletion timeout happened */
7998 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7999 /* Peer unmap timeout */
8000 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
8001 /* Scan request timed out */
8002 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
8003 /* Consecutive Scan attempt failures */
8004 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
8005 /* Unable to get the message buffer */
8006 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
8007 /* Current command processing is timedout */
8008 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
8009 /* Timeout for an ACK from FW for suspend request */
8010 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
8011 /* Timeout for an ACK from FW for resume request */
8012 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
8013 /* Transmission timeout for consecutive data frames */
8014 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
8015 /* Timeout for the TX completion status of data frame */
8016 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
8017 /* DXE failure for TX/RX, DXE resource unavailability */
8018 QCA_WLAN_HANG_DXE_FAILURE = 12,
8019 /* WMI pending commands exceed the maximum count */
8020 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07008021 /* Timeout for peer STA connection accept command's response from the
8022 * FW in AP mode. This command is triggered when a STA (peer) connects
8023 * to AP (DUT).
8024 */
8025 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
8026 /* Timeout for the AP connection accept command's response from the FW
8027 * in STA mode. This command is triggered when the STA (DUT) connects
8028 * to an AP (peer).
8029 */
8030 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
8031 /* Timeout waiting for the response to the MAC HW mode change command
8032 * sent to FW as a part of MAC mode switch among DBS (Dual Band
8033 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
8034 * Channel Concurrency) mode.
8035 */
8036 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
8037 /* Timeout waiting for the response from FW to configure the MAC HW's
8038 * mode. This operation is to configure the single/two MACs in either
8039 * SCC/MCC/DBS mode.
8040 */
8041 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
8042 /* Timeout waiting for response of VDEV start command from the FW */
8043 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
8044 /* Timeout waiting for response of VDEV restart command from the FW */
8045 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
8046 /* Timeout waiting for response of VDEV stop command from the FW */
8047 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
8048 /* Timeout waiting for response of VDEV delete command from the FW */
8049 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
8050 /* Timeout waiting for response of peer all delete request command to
8051 * the FW on a specific VDEV.
8052 */
8053 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08008054 /* WMI sequence mismatch between WMI command and Tx completion */
8055 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
8056 /* Write to Device HAL register failed */
8057 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
8058 /* No credit left to send the wow_wakeup_from_sleep to firmware */
8059 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
8060 /* Bus failure */
8061 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008062 /* tasklet/credit latency found */
8063 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00008064 /* MSDU buffers received in REO error ring, exceeding certain
8065 * threshold
8066 */
8067 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
8068 /* Vdev SM is out of sync and connect req received
8069 * when already connected
8070 */
8071 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
8072 /* Stats request timeout */
8073 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
8074 /* Leak in TX descriptor for a packet */
8075 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
8076 /* Scheduler watchdog timeout */
8077 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
8078 /* Failed to send self peer deletion cmd to firmware */
8079 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
8080 /* Received del self sta without del bss */
8081 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
8082 /* Recovery needed when sending flush completion to userspace */
8083 QCA_WLAN_HANG_FLUSH_LOGS = 35,
8084 /* Host wakeup because of page fault */
8085 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008086};
8087
8088/**
8089 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
8090 * QCA_NL80211_VENDOR_SUBCMD_HANG.
8091 */
8092enum qca_wlan_vendor_attr_hang {
8093 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
8094 /* Reason for the hang - u32 attribute with a value from enum
8095 * qca_wlan_vendor_hang_reason.
8096 */
8097 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008098 /* The binary blob data associated with the hang reason specified by
8099 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
8100 * contain the required dump to analyze the reason for the hang.
8101 * NLA_BINARY attribute, the max size is 1024 bytes.
8102 */
8103 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008104
8105 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
8106 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
8107 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
8108};
8109
Roshan Pius3a1667e2018-07-03 15:17:14 -07008110/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008111 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
8112 * the policy to flush pending frames, configured via
8113 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
8114 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
8115 *
8116 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
8117 * the flush policy configured before. This command basically disables the
8118 * flush config set by the user.
8119 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
8120 * the flush policy to be immediate. All pending packets for the peer/TID are
8121 * flushed when this command/policy is received.
8122 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
8123 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
8124 * are flushed when the end of TWT SP is reached.
8125 */
8126enum qca_wlan_vendor_flush_pending_policy {
8127 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
8128 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
8129 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
8130};
8131
8132/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008133 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
8134 * flushing pending traffic in firmware.
8135 *
8136 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
8137 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
8138 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
8139 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08008140 * flush packets with access category. This is optional. See below.
8141 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
8142 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
8143 * bit to 1 to act upon the TID. This is optional. Either this attribute or
8144 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
8145 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
8146 * it is an error.
8147 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
8148 * packets corresponding to the peer/TID provided. It is a u32 value,
8149 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
8150 * value is honored only when TID mask is provided. This is not honored when AC
8151 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008152 */
8153enum qca_wlan_vendor_attr_flush_pending {
8154 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
8155 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
8156 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008157 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
8158 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008159
8160 /* keep last */
8161 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
8162 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
8163 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
8164};
8165
8166/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008167 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8168 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8169 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8170 * Spectral bin scaling formula ID.
8171 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8172 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8173 * and RSSI threshold based formula.
8174 */
8175enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8176 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8177 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8178};
8179
8180/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008181 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8182 * RF Operating Parameter (RROP) information is available, and if so, at which
8183 * point in the application-driver interaction sequence it can be retrieved by
8184 * the application from the driver. This point may vary by architecture and
8185 * other factors. This is a u16 value.
8186 */
8187enum qca_wlan_vendor_attr_rropavail_info {
8188 /* RROP information is unavailable. */
8189 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8190 /* RROP information is available and the application can retrieve the
8191 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8192 * event from the driver.
8193 */
8194 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8195 /* RROP information is available only after a vendor specific scan
8196 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8197 * successfully completed. The application can retrieve the information
8198 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8199 * the driver.
8200 */
8201 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8202};
8203
8204/**
8205 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8206 * Representative RF Operating Parameter (RROP) information. It is sent for the
8207 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8208 * intended for use by external Auto Channel Selection applications. It provides
8209 * guidance values for some RF parameters that are used by the system during
8210 * operation. These values could vary by channel, band, radio, and so on.
8211 */
8212enum qca_wlan_vendor_attr_rrop_info {
8213 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8214
8215 /* Representative Tx Power List (RTPL) which has an array of nested
8216 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8217 */
8218 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8219
8220 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8221 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8222 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8223};
8224
8225/**
8226 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8227 * entry instances in the Representative Tx Power List (RTPL). It provides
8228 * simplified power values intended for helping external Auto channel Selection
8229 * applications compare potential Tx power performance between channels, other
8230 * operating conditions remaining identical. These values are not necessarily
8231 * the actual Tx power values that will be used by the system. They are also not
8232 * necessarily the max or average values that will be used. Instead, they are
8233 * relative, summarized keys for algorithmic use computed by the driver or
8234 * underlying firmware considering a number of vendor specific factors.
8235 */
8236enum qca_wlan_vendor_attr_rtplinst {
8237 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8238
Hai Shalomfdcde762020-04-02 11:19:20 -07008239 /* Primary channel number (u8).
8240 * Note: If both the driver and user space application support the
8241 * 6 GHz band, this attribute is deprecated and
8242 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8243 * maintain backward compatibility,
8244 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8245 * driver or user space application or both do not support the 6 GHz
8246 * band.
8247 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008248 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8249 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
8250 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8251 /* Representative Tx power in dBm (s32) with emphasis on range. */
8252 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07008253 /* Primary channel center frequency (u32) in MHz */
8254 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008255
8256 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8257 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8258 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8259};
8260
8261/**
8262 * enum qca_wlan_vendor_attr_config_latency_level - Level for
8263 * wlan latency module.
8264 *
8265 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8266 * power saving which would causing data exchange out of service, this
8267 * would be a big impact on latency. For latency sensitive applications over
8268 * Wi-Fi are intolerant to such operations and thus would configure them
8269 * to meet their respective needs. It is well understood by such applications
8270 * that altering the default behavior would degrade the Wi-Fi functionality
8271 * w.r.t the above pointed WLAN operations.
8272 *
8273 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8274 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008275 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8276 * Use XR level to benefit XR (extended reality) application to achieve
8277 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008278 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07008279 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07008280 * downloading or video streaming via constraint scan/adaptive PS.
8281 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8282 * Use ultra low latency level to benefit for gaming/voice
8283 * application via constraint scan/roaming/adaptive PS.
8284 */
8285enum qca_wlan_vendor_attr_config_latency_level {
8286 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8287 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008288 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8289 /* legacy name */
8290 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8291 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008292 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8293 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8294
8295 /* keep last */
8296 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8297 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8298 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8299};
8300
8301/**
8302 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
8303 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8304 */
8305enum qca_wlan_vendor_attr_mac {
8306 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8307
8308 /* MAC mode info list which has an array of nested values as
8309 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
8310 */
8311 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8312
8313 /* keep last */
8314 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8315 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8316 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8317};
8318
8319/**
8320 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8321 * Wi-Fi netdev interface on a respective MAC.
8322 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8323 */
8324enum qca_wlan_vendor_attr_mac_iface_info {
8325 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8326 /* Wi-Fi netdev's interface index (u32) */
8327 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8328 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
8329 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8330
8331 /* keep last */
8332 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8333 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8334 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8335};
8336
8337/**
8338 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8339 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8340 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8341 */
8342enum qca_wlan_vendor_attr_mac_info {
8343 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8344 /* Hardware MAC ID associated for the MAC (u32) */
8345 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8346 /* Band supported by the MAC at a given point.
8347 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
8348 * nl80211_band.
8349 */
8350 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8351 /* Refers to list of WLAN netdev interfaces associated with this MAC.
8352 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
8353 */
8354 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8355
8356 /* keep last */
8357 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8358 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8359 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8360};
8361
8362/**
8363 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
8364 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
8365 */
8366enum qca_wlan_vendor_attr_get_logger_features {
8367 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
8368 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
8369 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
8370 /* keep last */
8371 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
8372 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
8373 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
8374};
8375
8376/**
8377 * enum wifi_logger_supported_features - Values for supported logger features
8378 */
8379enum wifi_logger_supported_features {
8380 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
8381 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
8382 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8383 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8384 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8385 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8386 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8387 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8388 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8389};
8390
8391/**
8392 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8393 * capabilities features
8394 */
8395enum qca_wlan_tdls_caps_features_supported {
8396 WIFI_TDLS_SUPPORT = (1 << (0)),
8397 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008398 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
8399
8400 /* Indicates if the TDLS session can be formed with the peer using
8401 * higher bandwidth than the bandwidth of the AP path.
8402 */
8403 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
Roshan Pius3a1667e2018-07-03 15:17:14 -07008404};
8405
8406/**
8407 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8408 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8409 */
8410enum qca_wlan_vendor_attr_tdls_get_capabilities {
8411 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8412 /* Indicates the max concurrent sessions */
8413 /* Unsigned 32-bit value */
8414 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8415 /* Indicates the support for features */
8416 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8417 */
8418 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8419
8420 /* keep last */
8421 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8422 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8423 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8424};
8425
8426/**
8427 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8428 * command used as value for the attribute
8429 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8430 */
8431enum qca_wlan_offloaded_packets_sending_control {
8432 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8433 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8434 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8435};
8436
8437/**
8438 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8439 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8440 */
8441enum qca_wlan_vendor_attr_offloaded_packets {
8442 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8443 /* Takes valid value from the enum
8444 * qca_wlan_offloaded_packets_sending_control
8445 * Unsigned 32-bit value
8446 */
8447 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
8448 /* Unsigned 32-bit value */
8449 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
8450 /* array of u8 len: Max packet size */
8451 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
8452 /* 6-byte MAC address used to represent source MAC address */
8453 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
8454 /* 6-byte MAC address used to represent destination MAC address */
8455 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
8456 /* Unsigned 32-bit value, in milli seconds */
8457 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07008458 /* This optional unsigned 16-bit attribute is used for specifying
8459 * ethernet protocol type. If not specified ethertype defaults to IPv4.
8460 */
8461 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008462
8463 /* keep last */
8464 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
8465 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
8466 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
8467};
8468
8469/**
8470 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
8471 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
8472 */
8473enum qca_wlan_rssi_monitoring_control {
8474 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
8475 QCA_WLAN_RSSI_MONITORING_START,
8476 QCA_WLAN_RSSI_MONITORING_STOP,
8477};
8478
8479/**
8480 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
8481 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
8482 */
8483enum qca_wlan_vendor_attr_rssi_monitoring {
8484 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
8485 /* Takes valid value from the enum
8486 * qca_wlan_rssi_monitoring_control
8487 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
8488 */
8489 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
8490 /* Unsigned 32-bit value */
8491 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
8492 /* Signed 8-bit value in dBm */
8493 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
8494 /* Signed 8-bit value in dBm */
8495 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
8496 /* attributes to be used/received in callback */
8497 /* 6-byte MAC address used to represent current BSSID MAC address */
8498 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
8499 /* Signed 8-bit value indicating the current RSSI */
8500 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
8501 /* keep last */
8502 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
8503 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
8504 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
8505};
8506
8507/**
8508 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
8509 * QCA_NL80211_VENDOR_SUBCMD_NDP.
8510 */
8511enum qca_wlan_vendor_attr_ndp_params {
8512 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
8513 /* Unsigned 32-bit value
8514 * enum of sub commands values in qca_wlan_ndp_sub_cmd
8515 */
8516 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
8517 /* Unsigned 16-bit value */
8518 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
8519 /* NL attributes for data used NDP SUB cmds */
8520 /* Unsigned 32-bit value indicating a service info */
8521 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
8522 /* Unsigned 32-bit value; channel frequency in MHz */
8523 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
8524 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
8525 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
8526 /* Interface name on which NDP is being created */
8527 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
8528 /* Unsigned 32-bit value for security */
8529 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
8530 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
8531 /* Unsigned 32-bit value for QoS */
8532 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
8533 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
8534 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
8535 /* Unsigned 32-bit value for NDP instance Id */
8536 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
8537 /* Array of instance Ids */
8538 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
8539 /* Unsigned 32-bit value for initiator/responder NDP response code
8540 * accept/reject
8541 */
8542 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
8543 /* NDI MAC address. An array of 6 Unsigned int8 */
8544 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
8545 /* Unsigned 32-bit value errors types returned by driver
8546 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8547 * NanStatusType includes these values.
8548 */
8549 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
8550 /* Unsigned 32-bit value error values returned by driver
8551 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
8552 * NanInternalStatusType includes these values.
8553 */
8554 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
8555 /* Unsigned 32-bit value for Channel setup configuration
8556 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8557 * NanDataPathChannelCfg includes these values.
8558 */
8559 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
8560 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
8561 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
8562 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
8563 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
8564 /* Security Context Identifier that contains the PMKID
8565 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
8566 */
8567 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
8568 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
8569 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
8570 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
8571 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
8572 /* Unsigned 32-bit bitmap indicating schedule update
8573 * BIT_0: NSS Update
8574 * BIT_1: Channel list update
8575 */
8576 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
8577 /* Unsigned 32-bit value for NSS */
8578 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
8579 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
8580 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
8581 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
8582 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
8583 */
8584 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
8585 /* Array of channel/band width */
8586 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
8587 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
8588 * This attribute is used and optional for ndp request, ndp response,
8589 * ndp indication, and ndp confirm.
8590 */
8591 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
8592 /* Unsigned 16-bit value indicating transport port used by NDP.
8593 * This attribute is used and optional for ndp response, ndp indication,
8594 * and ndp confirm.
8595 */
8596 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
8597 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
8598 * the Internet Assigned Numbers Authority (IANA) as per:
8599 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
8600 * This attribute is used and optional for ndp response, ndp indication,
8601 * and ndp confirm.
8602 */
8603 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008604 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
8605 * 1:support 0:not support
8606 */
8607 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008608 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
8609 * 48 bits of the SHA-256 hash of the Service Name.
8610 * A lower-case representation of the Service Name shall be used to
8611 * calculate the Service ID.
8612 * Array of u8: length is 6 bytes
8613 * This attribute is used and optional for ndp indication.
8614 */
8615 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008616 /* Unsigned 8-bit value for Cipher Suite capabilities.
8617 * u8 attribute.
8618 * This attribute is used and optional in ndp request, ndp response,
8619 * ndp indication, and ndp confirm.
8620 * This attribute is used to indicate the Capabilities field of Cipher
8621 * Suite Information attribute (CSIA) of NDP frames as defined in
8622 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
8623 * Firmware can accept or ignore any of the capability bits.
8624 */
8625 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
8626 /* Indicate that GTK protection is required for NDP.
8627 * NLA_FLAG attribute.
8628 * This attribute can be used in ndp request, ndp response, ndp
8629 * indication, and ndp confirm.
8630 * GTK protection required is indicated in the NDPE attribute of NAN
8631 * action frame (NAF) during NDP negotiation as defined in
8632 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
8633 * If the device and peer supports GTKSA and if GTK protection required
8634 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
8635 * of Data Path Security Confirm and Data Path Security Install frames
8636 * of NDP negotiation to send and receive protected group addressed data
8637 * frames from each other.
8638 */
8639 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008640
8641 /* keep last */
8642 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
8643 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
8644 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
8645};
8646
8647enum qca_wlan_ndp_sub_cmd {
8648 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07008649 /* Command to create a NAN data path interface.
8650 * This command was initially designed to both create and start a NAN
8651 * data path interface. However, changes to Linux 5.12 no longer allow
8652 * interface creation via vendor commands. When the driver advertises
8653 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8654 * userspace must explicitly first create the interface using
8655 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
8656 * to start the interface.
8657 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008658 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07008659 /* Command to delete a NAN data path interface.
8660 * This command was initially designed to both stop and delete a NAN
8661 * data path interface. However, changes to Linux 5.12 no longer allow
8662 * interface deletion via vendor commands. When the driver advertises
8663 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8664 * userspace must explicitly delete the interface using
8665 * NL80211_CMD_DEL_INTERFACE after calling this command.
8666 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008667 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
8668 /* Command to initiate a NAN data path session */
8669 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
8670 /* Command to notify if the NAN data path session was sent */
8671 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
8672 /* Command to respond to NAN data path session */
8673 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
8674 /* Command to notify on the responder about the response */
8675 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
8676 /* Command to initiate a NAN data path end */
8677 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
8678 /* Command to notify the if end request was sent */
8679 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
8680 /* Command to notify the peer about the end request */
8681 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
8682 /* Command to confirm the NAN data path session is complete */
8683 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
8684 /* Command to indicate the peer about the end request being received */
8685 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
8686 /* Command to indicate the peer of schedule update */
8687 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
8688};
8689
8690/**
8691 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
8692 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
8693 */
8694enum qca_wlan_vendor_attr_nd_offload {
8695 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
8696 /* Flag to set Neighbour Discovery offload */
8697 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
8698 /* Keep last */
8699 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
8700 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
8701 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
8702};
8703
8704/**
8705 * enum packet_filter_sub_cmd - Packet filter sub commands
8706 */
8707enum packet_filter_sub_cmd {
8708 /**
8709 * Write packet filter program and/or data. The driver/firmware should
8710 * disable APF before writing into local buffer and re-enable APF after
8711 * writing is done.
8712 */
8713 QCA_WLAN_SET_PACKET_FILTER = 1,
8714 /* Get packet filter feature capabilities from driver */
8715 QCA_WLAN_GET_PACKET_FILTER = 2,
8716 /**
8717 * Write packet filter program and/or data. User space will send the
8718 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
8719 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
8720 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
8721 * enable/disable is given to user space with this command. Also,
8722 * user space sends the length of program portion in the buffer within
8723 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
8724 */
8725 QCA_WLAN_WRITE_PACKET_FILTER = 3,
8726 /* Read packet filter program and/or data */
8727 QCA_WLAN_READ_PACKET_FILTER = 4,
8728 /* Enable APF feature */
8729 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
8730 /* Disable APF feature */
8731 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
8732};
8733
8734/**
8735 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
8736 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
8737 */
8738enum qca_wlan_vendor_attr_packet_filter {
8739 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
8740 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
8741 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
8742 /* Unsigned 32-bit value indicating the packet filter version */
8743 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
8744 /* Unsigned 32-bit value indicating the packet filter id */
8745 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
8746 /**
8747 * Unsigned 32-bit value indicating the packet filter size including
8748 * program + data.
8749 */
8750 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
8751 /* Unsigned 32-bit value indicating the packet filter current offset */
8752 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
8753 /* Program and/or data in bytes */
8754 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
8755 /* Unsigned 32-bit value of the length of the program section in packet
8756 * filter buffer.
8757 */
8758 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
8759
8760 /* keep last */
8761 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
8762 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
8763 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
8764};
8765
8766/**
8767 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
8768 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
8769 */
8770enum qca_wlan_vendor_drv_info {
8771 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
8772 /* Maximum Message size info between firmware & HOST
8773 * Unsigned 32-bit value
8774 */
8775 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
8776 /* keep last */
8777 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
8778 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
8779 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
8780};
8781
8782/**
8783 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8784 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8785 */
8786enum qca_wlan_vendor_attr_wake_stats {
8787 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8788 /* Unsigned 32-bit value indicating the total count of wake event */
8789 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8790 /* Array of individual wake count, each index representing wake reason
8791 */
8792 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8793 /* Unsigned 32-bit value representing wake count array */
8794 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8795 /* Unsigned 32-bit total wake count value of driver/fw */
8796 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8797 /* Array of wake stats of driver/fw */
8798 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8799 /* Unsigned 32-bit total wake count value of driver/fw */
8800 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8801 /* Unsigned 32-bit total wake count value of packets received */
8802 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8803 /* Unsigned 32-bit wake count value unicast packets received */
8804 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8805 /* Unsigned 32-bit wake count value multicast packets received */
8806 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8807 /* Unsigned 32-bit wake count value broadcast packets received */
8808 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8809 /* Unsigned 32-bit wake count value of ICMP packets */
8810 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8811 /* Unsigned 32-bit wake count value of ICMP6 packets */
8812 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8813 /* Unsigned 32-bit value ICMP6 router advertisement */
8814 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8815 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
8816 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8817 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
8818 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8819 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8820 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8821 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8822 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8823 /* Unsigned 32-bit wake count value of receive side multicast */
8824 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8825 /* Unsigned 32-bit wake count value of a given RSSI breach */
8826 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8827 /* Unsigned 32-bit wake count value of low RSSI */
8828 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8829 /* Unsigned 32-bit value GSCAN count */
8830 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8831 /* Unsigned 32-bit value PNO complete count */
8832 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8833 /* Unsigned 32-bit value PNO match count */
8834 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8835 /* keep last */
8836 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8837 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8838 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8839};
8840
8841/**
Hai Shalomfdcde762020-04-02 11:19:20 -07008842 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07008843 * configured by userspace to the driver/firmware.
8844 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8845 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07008846 * The driver/firmware takes actions requested by userspace such as throttling
8847 * wifi TX etc. in order to mitigate high temperature.
8848 *
8849 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8850 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8851 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8852 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8853 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8854 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8855 */
8856enum qca_wlan_vendor_thermal_level {
8857 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8858 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8859 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8860 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8861 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8862 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8863};
8864
8865/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008866 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8867 * cmd value. Used for NL attributes for data used by
8868 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8869 */
8870enum qca_wlan_vendor_attr_thermal_cmd {
8871 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8872 /* The value of command, driver will implement different operations
8873 * according to this value. It uses values defined in
8874 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8875 * u32 attribute.
8876 */
8877 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008878 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07008879 * driver/firmware, or get thermal level from the driver/firmware.
8880 * Used in request or response, u32 attribute,
8881 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07008882 */
8883 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8884 /* Userspace uses this attribute to configure the time in which the
8885 * driver/firmware should complete applying settings it received from
8886 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8887 * command type. Used in request, u32 attribute, value is in
8888 * milliseconds. A value of zero indicates to apply the settings
8889 * immediately. The driver/firmware can delay applying the configured
8890 * thermal settings within the time specified in this attribute if
8891 * there is any critical ongoing operation.
8892 */
8893 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008894 /* Nested attribute, the driver/firmware uses this attribute to report
8895 * thermal statistics of different thermal levels to userspace when
8896 * requested using the
8897 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8898 * type. This attribute contains a nested array of records of thermal
8899 * statistics of multiple levels. The attributes used inside this nested
8900 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8901 */
8902 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008903
8904 /* keep last */
8905 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8906 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8907 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8908};
8909
8910/**
8911 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8912 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8913 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8914 * thermal command types sent to driver.
8915 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8916 * get thermal shutdown configuration parameters for display. Parameters
8917 * responded from driver are defined in
8918 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8919 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8920 * get temperature. Host should respond with a temperature data. It is defined
8921 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8922 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8923 * suspend action.
8924 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8925 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07008926 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8927 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07008928 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8929 * thermal level from the driver/firmware. The driver should respond with a
8930 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008931 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8932 * current thermal statistics from the driver/firmware. The driver should
8933 * respond with statistics of all thermal levels encapsulated in the attribute
8934 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8935 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8936 * the current thermal statistics for all thermal levels maintained in the
8937 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008938 */
8939enum qca_wlan_vendor_attr_thermal_cmd_type {
8940 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8941 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8942 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8943 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07008944 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07008945 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008946 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8947 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008948};
8949
8950/**
8951 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8952 * to get chip temperature by user.
8953 * enum values are used for NL attributes for data used by
8954 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8955 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8956 */
8957enum qca_wlan_vendor_attr_thermal_get_temperature {
8958 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8959 /* Temperature value (degree Celsius) from driver.
8960 * u32 attribute.
8961 */
8962 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8963
8964 /* keep last */
8965 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8966 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
8967 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
8968};
8969
8970/**
8971 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
8972 * to get configuration parameters of thermal shutdown feature. Enum values are
8973 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
8974 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8975 */
8976enum qca_wlan_vendor_attr_get_thermal_params_rsp {
8977 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
8978 /* Indicate if the thermal shutdown feature is enabled.
8979 * NLA_FLAG attribute.
8980 */
8981 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
8982 /* Indicate if the auto mode is enabled.
8983 * Enable: Driver triggers the suspend/resume action.
8984 * Disable: User space triggers the suspend/resume action.
8985 * NLA_FLAG attribute.
8986 */
8987 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
8988 /* Thermal resume threshold (degree Celsius). Issue the resume command
8989 * if the temperature value is lower than this threshold.
8990 * u16 attribute.
8991 */
8992 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
8993 /* Thermal warning threshold (degree Celsius). FW reports temperature
8994 * to driver if it's higher than this threshold.
8995 * u16 attribute.
8996 */
8997 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
8998 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
8999 * if the temperature value is higher than this threshold.
9000 * u16 attribute.
9001 */
9002 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
9003 /* FW reports temperature data periodically at this interval (ms).
9004 * u16 attribute.
9005 */
9006 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
9007
9008 /* keep last */
9009 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
9010 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
9011 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
9012};
9013
9014/**
9015 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
9016 * report thermal events from driver to user space.
9017 * enum values are used for NL attributes for data used by
9018 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
9019 */
9020enum qca_wlan_vendor_attr_thermal_event {
9021 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
9022 /* Temperature value (degree Celsius) from driver.
9023 * u32 attribute.
9024 */
9025 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
9026 /* Indication of resume completion from power save mode.
9027 * NLA_FLAG attribute.
9028 */
9029 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07009030 /* Thermal level from the driver.
9031 * u32 attribute. Possible values are defined in
9032 * enum qca_wlan_vendor_thermal_level.
9033 */
9034 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009035
9036 /* keep last */
9037 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
9038 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
9039 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
9040};
9041
9042/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009043 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9044 * to get thermal status from the driver/firmware.
9045 * enum values are used for NL attributes encapsulated inside the
9046 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9047 *
9048 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9049 * of a thermal level in Celsius. u32 size.
9050 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9051 * of a thermal level in Celsius. u32 size.
9052 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9053 * thermal level in milliseconds. u32 size.
9054 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9055 * of times the temperature crossed into the temperature range defined by the
9056 * thermal level from both higher and lower directions. u32 size.
9057 */
9058enum qca_wlan_vendor_attr_thermal_stats {
9059 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9060 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9061 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9062 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9063 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9064
9065 /* keep last */
9066 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9067 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9068 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9069};
9070
9071/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009072 * enum he_fragmentation_val - HE fragmentation support values
9073 * Indicates level of dynamic fragmentation that is supported by
9074 * a STA as a recipient.
9075 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
9076 * (HE MAC Capabilities Information field) and are used in HE Capabilities
9077 * element to advertise the support. These values are validated in the driver
9078 * to check the device capability and advertised in the HE Capabilities
9079 * element. These values are used to configure testbed device to allow the
9080 * advertised hardware capabilities to be downgraded for testing purposes.
9081 *
9082 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9083 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9084 * contained within an MPDU or S-MPDU, no support for dynamic fragments
9085 * within an A-MPDU that is not an S-MPDU.
9086 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9087 * contained within an MPDU or S-MPDU and support for up to one dynamic
9088 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
9089 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9090 * MPDU or S-MPDU.
9091 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9092 * contained within an MPDU or S-MPDU and support for multiple dynamic
9093 * fragments for each MSDU and for each A-MSDU if supported by the
9094 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9095 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9096 */
9097enum he_fragmentation_val {
9098 HE_FRAG_DISABLE,
9099 HE_FRAG_LEVEL1,
9100 HE_FRAG_LEVEL2,
9101 HE_FRAG_LEVEL3,
9102};
9103
9104/**
9105 * enum he_mcs_config - HE MCS support configuration
9106 *
9107 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9108 * These values are used in driver to configure the HE MCS map to advertise
9109 * Tx/Rx MCS map in HE capability and these values are applied for all the
9110 * streams supported by the device. To configure MCS for different bandwidths,
9111 * vendor command needs to be sent using this attribute with appropriate value.
9112 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9113 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
9114 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
9115 * These values are used to configure testbed device to allow the advertised
9116 * hardware capabilities to be downgraded for testing purposes. The enum values
9117 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
9118 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
9119 * These values are validated in the driver before setting the MCS map and
9120 * driver returns error if the input is other than these enum values.
9121 *
9122 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
9123 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
9124 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
9125 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
9126 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
9127 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
9128 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
9129 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
9130 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
9131 */
9132enum he_mcs_config {
9133 HE_80_MCS0_7 = 0,
9134 HE_80_MCS0_9 = 1,
9135 HE_80_MCS0_11 = 2,
9136 HE_160_MCS0_7 = 4,
9137 HE_160_MCS0_9 = 5,
9138 HE_160_MCS0_11 = 6,
9139 HE_80P80_MCS0_7 = 8,
9140 HE_80P80_MCS0_9 = 9,
9141 HE_80P80_MCS0_11 = 10,
9142};
9143
9144/**
9145 * enum qca_wlan_ba_session_config - BA session configuration
9146 *
9147 * Indicates the configuration values for BA session configuration attribute.
9148 *
9149 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9150 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9151 */
9152enum qca_wlan_ba_session_config {
9153 QCA_WLAN_ADD_BA = 1,
9154 QCA_WLAN_DELETE_BA = 2,
9155};
9156
9157/**
9158 * enum qca_wlan_ac_type - Access category type
9159 *
9160 * Indicates the access category type value.
9161 *
9162 * @QCA_WLAN_AC_BE: BE access category
9163 * @QCA_WLAN_AC_BK: BK access category
9164 * @QCA_WLAN_AC_VI: VI access category
9165 * @QCA_WLAN_AC_VO: VO access category
9166 * @QCA_WLAN_AC_ALL: All ACs
9167 */
9168enum qca_wlan_ac_type {
9169 QCA_WLAN_AC_BE = 0,
9170 QCA_WLAN_AC_BK = 1,
9171 QCA_WLAN_AC_VI = 2,
9172 QCA_WLAN_AC_VO = 3,
9173 QCA_WLAN_AC_ALL = 4,
9174};
9175
9176/**
9177 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9178 *
9179 * Indicates the HE LTF configuration value.
9180 *
9181 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
9182 * based on the GI setting
9183 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9184 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9185 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9186 */
9187enum qca_wlan_he_ltf_cfg {
9188 QCA_WLAN_HE_LTF_AUTO = 0,
9189 QCA_WLAN_HE_LTF_1X = 1,
9190 QCA_WLAN_HE_LTF_2X = 2,
9191 QCA_WLAN_HE_LTF_4X = 3,
9192};
9193
Hai Shalomc9e41a12018-07-31 14:41:42 -07009194/**
9195 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9196 *
9197 * Indicates the HE trigger frame MAC padding duration value.
9198 *
9199 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9200 * process the trigger frame.
9201 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9202 * trigger frame.
9203 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9204 * trigger frame.
9205 */
9206enum qca_wlan_he_mac_padding_dur {
9207 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9208 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9209 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9210};
9211
Hai Shalom74f70d42019-02-11 14:42:39 -08009212/**
9213 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9214 *
9215 * Indicates the HE Operating mode control channel width setting value.
9216 *
9217 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9218 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9219 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9220 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9221 */
9222enum qca_wlan_he_om_ctrl_ch_bw {
9223 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9224 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9225 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9226 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9227};
9228
9229/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009230 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9231 *
9232 * Indicates the frame types to use for keep alive data.
9233 *
9234 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9235 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9236 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9237 */
9238enum qca_wlan_keep_alive_data_type {
9239 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9240 QCA_WLAN_KEEP_ALIVE_DATA = 1,
9241 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9242};
9243
9244/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00009245 * enum eht_mcs_config - EHT MCS support configuration
9246 *
9247 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9248 * These values are used in the driver to configure the EHT MCS map to advertise
9249 * Tx/Rx MCS map in EHT capability and these values are applied for all the
9250 * streams supported by the device.
9251 * @EHT_MCS0_7: EHT MCS 0 to 7 support
9252 * @EHT_MCS0_9: EHT MCS 0 to 9 support
9253 * @EHT_MCS0_11: EHT MCS 0 to 11 support
9254 * @EHT_MCS0_13: EHT MCS 0 to 13 support
9255 */
9256enum eht_mcs_config {
9257 EHT_MCS0_7 = 0,
9258 EHT_MCS0_9 = 1,
9259 EHT_MCS0_11 = 2,
9260 EHT_MCS0_13 = 3,
9261};
9262
9263/**
9264 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9265 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9266 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9267 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9268 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9269 * multi-link multi radio mode.
9270 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9271 * multi-link multi radio mode.
9272 */
9273enum qca_wlan_eht_mlo_mode {
9274 QCA_WLAN_EHT_MODE_INVALID = 0,
9275 QCA_WLAN_EHT_MLSR = 1,
9276 QCA_WLAN_EHT_EMLSR = 2,
9277 QCA_WLAN_EHT_NON_STR_MLMR = 3,
9278 QCA_WLAN_EHT_STR_MLMR = 4,
9279};
9280
9281/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009282 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9283 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9284 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9285 */
9286enum qca_wlan_emlsr_mode {
9287 QCA_WLAN_EMLSR_MODE_ENTER = 0,
9288 QCA_WLAN_EMLSR_MODE_EXIT = 1,
9289};
9290
9291/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009292 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9293 * support
9294 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9295 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9296 * both DL and UL
9297 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9298 * different link set
9299 */
9300enum qca_wlan_ttlm_negotiation_support {
9301 QCA_WLAN_TTLM_DISABLE = 0,
9302 QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9303 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9304};
9305
9306/**
9307 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9308 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9309 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9310 */
9311enum qca_coex_traffic_shaping_mode {
9312 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9313 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9314};
9315
9316/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009317 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9318 * EHT operating mode control transmit request. These attributes are
9319 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
Hai Shalom74f70d42019-02-11 14:42:39 -08009320 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9321 *
9322 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9323 * indicates the maximum number of spatial streams, NSS, that the STA
9324 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9325 * and is set to NSS - 1.
9326 *
9327 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9328 * indicates the operating channel width supported by the STA for both
9329 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9330 *
9331 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9332 * indicates the all trigger based UL MU operations by the STA.
9333 * 0 - UL MU operations are enabled by the STA.
9334 * 1 - All triggered UL MU transmissions are suspended by the STA.
9335 *
9336 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9337 * indicates the maximum number of space-time streams, NSTS, that
9338 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07009339 *
9340 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9341 * combined with the UL MU Disable subfield and the recipient's setting
9342 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9343 * capabilities to determine which HE TB PPDUs are possible by the
9344 * STA to transmit.
9345 * 0 - UL MU data operations are enabled by the STA.
9346 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9347 * bit is not set, else UL MU Tx is suspended.
9348 *
Sunil Ravi640215c2023-06-28 23:08:09 +00009349 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9350 * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9351 * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9352 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9353 *
9354 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9355 * 320 MHz operating channel width supported by the EHT STA for both reception
9356 * and transmission.
9357 *
9358 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9359 * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9360 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9361 * that the STA supports in transmission for PPDU bandwidths less than or equal
9362 * to 80 MHz.
Hai Shalom74f70d42019-02-11 14:42:39 -08009363 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009364enum qca_wlan_vendor_attr_omi_tx {
Hai Shalom74f70d42019-02-11 14:42:39 -08009365 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9366 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9367 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9368 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9369 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07009370 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00009371 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9372 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9373 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
Hai Shalom74f70d42019-02-11 14:42:39 -08009374
9375 /* keep last */
Sunil Ravi640215c2023-06-28 23:08:09 +00009376 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9377 QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9378 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
Hai Shalom74f70d42019-02-11 14:42:39 -08009379};
9380
Sunil Ravi640215c2023-06-28 23:08:09 +00009381/* deprecated legacy names */
9382#define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9383 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9384#define qca_wlan_vendor_attr_he_omi_tx \
9385 qca_wlan_vendor_attr_omi_tx
9386#define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9387 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9388#define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9389 QCA_WLAN_VENDOR_ATTR_OMI_MAX
9390
Hai Shalom899fcc72020-10-19 14:38:18 -07009391 /**
9392 * enum qca_wlan_vendor_phy_mode - Different PHY modes
9393 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9394 *
9395 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9396 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9397 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9398 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9399 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9400 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9401 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9402 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9403 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9404 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9405 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9406 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9407 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9408 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9409 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9410 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9411 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9412 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9413 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9414 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9415 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9416 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9417 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9418 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9419 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9420 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9421 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9422 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9423 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9424 */
9425enum qca_wlan_vendor_phy_mode {
9426 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9427 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9428 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9429 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9430 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9431 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9432 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9433 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9434 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9435 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9436 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9437 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9438 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9439 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9440 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9441 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9442 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9443 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9444 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9445 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9446 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9447 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9448 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9449 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9450 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9451 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9452 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9453 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9454 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9455};
9456
Roshan Pius3a1667e2018-07-03 15:17:14 -07009457/* Attributes for data used by
9458 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9459 */
9460enum qca_wlan_vendor_attr_wifi_test_config {
9461 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9462 /* 8-bit unsigned value to configure the driver to enable/disable
9463 * WMM feature. This attribute is used to configure testbed device.
9464 * 1-enable, 0-disable
9465 */
9466 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9467
9468 /* 8-bit unsigned value to configure the driver to accept/reject
9469 * the addba request from peer. This attribute is used to configure
9470 * the testbed device.
9471 * 1-accept addba, 0-reject addba
9472 */
9473 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9474
9475 /* 8-bit unsigned value to configure the driver to send or not to
9476 * send the addba request to peer.
9477 * This attribute is used to configure the testbed device.
9478 * 1-send addba, 0-do not send addba
9479 */
9480 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9481
9482 /* 8-bit unsigned value to indicate the HE fragmentation support.
9483 * Uses enum he_fragmentation_val values.
9484 * This attribute is used to configure the testbed device to
9485 * allow the advertised hardware capabilities to be downgraded
9486 * for testing purposes.
9487 */
9488 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9489
9490 /* 8-bit unsigned value to indicate the HE MCS support.
9491 * Uses enum he_mcs_config values.
9492 * This attribute is used to configure the testbed device to
9493 * allow the advertised hardware capabilities to be downgraded
9494 * for testing purposes.
9495 */
9496 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9497
9498 /* 8-bit unsigned value to configure the driver to allow or not to
9499 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9500 * This attribute is used to configure the testbed device.
9501 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
9502 */
9503 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9504
9505 /* 8-bit unsigned value to configure the driver to add a
9506 * new BA session or delete the existing BA session for
9507 * given TID. ADDBA command uses the buffer size and TID
9508 * configuration if user specifies the values else default
9509 * value for buffer size is used for all TIDs if the TID
9510 * also not specified. For DEL_BA command TID value is
9511 * required to process the command.
9512 * Uses enum qca_wlan_ba_session_config values.
9513 * This attribute is used to configure the testbed device.
9514 */
9515 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9516
Hai Shalomce48b4a2018-09-05 11:41:35 -07009517 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07009518 * request and response frames.
9519 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07009520 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009521 */
9522 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9523
9524 /* 8-bit unsigned value to configure the buffer size in addba
9525 * request and response frames.
9526 * This attribute is used to configure the testbed device.
9527 */
9528 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9529
9530 /* 8-bit unsigned value to configure the no ack policy.
9531 * To configure no ack policy, access category value is
9532 * required to process the command.
9533 * This attribute is used to configure the testbed device.
9534 * 1 - enable no ack, 0 - disable no ack.
9535 */
9536 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9537
9538 /* 8-bit unsigned value to configure the AC for no ack policy
9539 * This attribute is used to configure the testbed device.
9540 * Uses the enum qca_wlan_ac_type values.
9541 */
9542 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9543
9544 /* 8-bit unsigned value to configure the HE LTF
9545 * This attribute is used to configure the testbed device.
9546 * Uses the enum qca_wlan_he_ltf_cfg values.
9547 */
9548 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9549
9550 /* 8-bit unsigned value to configure the tx beamformee.
9551 * This attribute is used to configure the testbed device.
9552 * 1-enable, 0-disable.
9553 */
9554 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9555
9556 /* 8-bit unsigned value to configure the tx beamformee number
9557 * of space-time streams.
9558 * This attribute is used to configure the testbed device.
9559 * The range of the value is 0 to 8.
9560 */
9561 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9562
9563 /* 8-bit unsigned value to configure the MU EDCA params for given AC
9564 * This attribute is used to configure the testbed device.
9565 * Uses the enum qca_wlan_ac_type values.
9566 */
9567 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9568
9569 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9570 * To configure MU EDCA AIFSN value, MU EDCA access category value
9571 * is required to process the command.
9572 * This attribute is used to configure the testbed device.
9573 */
9574 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9575
9576 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
9577 * given AC.
9578 * To configure MU EDCA ECW min value, MU EDCA access category value
9579 * is required to process the command.
9580 * This attribute is used to configure the testbed device.
9581 */
9582 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9583
9584 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
9585 * given AC.
9586 * To configure MU EDCA ECW max value, MU EDCA access category value
9587 * is required to process the command.
9588 * This attribute is used to configure the testbed device.
9589 */
9590 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9591
9592 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
9593 * To configure MU EDCA timer value, MU EDCA access category value
9594 * is required to process the command.
9595 * This attribute is used to configure the testbed device.
9596 */
9597 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9598
Hai Shalomc9e41a12018-07-31 14:41:42 -07009599 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
9600 * duration.
9601 * This attribute is used to configure the testbed device.
9602 * Uses the enum qca_wlan_he_mac_padding_dur values.
9603 */
9604 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9605
Hai Shalomce48b4a2018-09-05 11:41:35 -07009606 /* 8-bit unsigned value to override the MU EDCA params to defaults
9607 * regardless of the AP beacon MU EDCA params. If it is enabled use
9608 * the default values else use the MU EDCA params from AP beacon.
9609 * This attribute is used to configure the testbed device.
9610 * 1-enable, 0-disable.
9611 */
9612 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9613
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009614 /* 8-bit unsigned value to configure the support for receiving
9615 * an MPDU that contains an operating mode control subfield.
9616 * This attribute is used to configure the testbed device.
9617 * 1-enable, 0-disable.
9618 */
9619 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9620
9621 /* Nested attribute values required to setup the TWT session.
9622 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9623 * information to set up the session. It contains broadcast flags,
9624 * set_up flags, trigger value, flow type, flow ID, wake interval
9625 * exponent, protection, target wake time, wake duration, wake interval
9626 * mantissa. These nested attributes are used to setup a host triggered
9627 * TWT session.
9628 */
9629 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9630
9631 /* This nested attribute is used to terminate the current TWT session.
9632 * It does not currently carry any attributes.
9633 */
9634 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9635
9636 /* This nested attribute is used to suspend the current TWT session.
9637 * It does not currently carry any attributes.
9638 */
9639 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9640
9641 /* Nested attribute values to indicate the request for resume.
9642 * This attribute is used to resume the TWT session.
9643 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9644 * parameters required to resume the TWT session.
9645 */
9646 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9647
Hai Shalom74f70d42019-02-11 14:42:39 -08009648 /* 8-bit unsigned value to set the HE operating mode control
9649 * (OM CTRL) Channel Width subfield.
9650 * The Channel Width subfield indicates the operating channel width
9651 * supported by the STA for both reception and transmission.
9652 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9653 * This setting is cleared with the
9654 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9655 * flag attribute to reset defaults.
9656 * This attribute is used to configure the testbed device.
9657 */
9658 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9659
9660 /* 8-bit unsigned value to configure the number of spatial
9661 * streams in HE operating mode control field.
9662 * This setting is cleared with the
9663 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9664 * flag attribute to reset defaults.
9665 * This attribute is used to configure the testbed device.
9666 */
9667 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9668
9669 /* Flag attribute to configure the UL MU disable bit in
9670 * HE operating mode control field.
9671 * This setting is cleared with the
9672 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9673 * flag attribute to reset defaults.
9674 * This attribute is used to configure the testbed device.
9675 */
9676 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9677
9678 /* Flag attribute to clear the previously set HE operating mode
9679 * control field configuration.
9680 * This attribute is used to configure the testbed device to reset
9681 * defaults to clear any previously set HE operating mode control
9682 * field configuration.
9683 */
9684 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9685
9686 /* 8-bit unsigned value to configure HE single user PPDU
9687 * transmission. By default this setting is disabled and it
9688 * is disabled in the reset defaults of the device configuration.
9689 * This attribute is used to configure the testbed device.
9690 * 1-enable, 0-disable
9691 */
9692 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9693
9694 /* 8-bit unsigned value to configure action frame transmission
9695 * in HE trigger based PPDU transmission.
9696 * By default this setting is disabled and it is disabled in
9697 * the reset defaults of the device configuration.
9698 * This attribute is used to configure the testbed device.
9699 * 1-enable, 0-disable
9700 */
9701 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9702
9703 /* Nested attribute to indicate HE operating mode control field
9704 * transmission. It contains operating mode control field Nss,
9705 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9706 * These nested attributes are used to send HE operating mode control
9707 * with configured values.
Sunil Ravi640215c2023-06-28 23:08:09 +00009708 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
Hai Shalom74f70d42019-02-11 14:42:39 -08009709 * This attribute is used to configure the testbed device.
9710 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009711 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
Hai Shalom74f70d42019-02-11 14:42:39 -08009712
9713 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
9714 * support for the reception of a frame that carries an HE variant
9715 * HT Control field.
9716 * This attribute is used to configure the testbed device.
9717 * 1-enable, 0-disable
9718 */
9719 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9720
Hai Shalom021b0b52019-04-10 11:17:58 -07009721 /* 8-bit unsigned value to configure VHT support in 2.4G band.
9722 * This attribute is used to configure the testbed device.
9723 * 1-enable, 0-disable
9724 */
9725 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9726
9727 /* 8-bit unsigned value to configure HE testbed defaults.
9728 * This attribute is used to configure the testbed device.
9729 * 1-set the device HE capabilities to testbed defaults.
9730 * 0-reset the device HE capabilities to supported config.
9731 */
9732 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9733
9734 /* 8-bit unsigned value to configure TWT request support.
9735 * This attribute is used to configure the testbed device.
9736 * 1-enable, 0-disable.
9737 */
9738 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9739
Hai Shalom899fcc72020-10-19 14:38:18 -07009740 /* 8-bit unsigned value to configure protection for Management
9741 * frames when PMF is enabled for the association.
9742 * This attribute is used to configure the testbed device.
9743 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9744 */
9745 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9746
9747 /* Flag attribute to inject Disassociation frame to the connected AP.
9748 * This attribute is used to configure the testbed device.
9749 */
9750 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9751
9752 /* 8-bit unsigned value to configure an override for the RSNXE Used
9753 * subfield in the MIC control field of the FTE in FT Reassociation
9754 * Request frame.
9755 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9756 * This attribute is used to configure the testbed device.
9757 * This attribute can be configured only when STA is in associated state
9758 * and the configuration is valid until the disconnection.
9759 */
9760 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9761
9762 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9763 * Switch Announcement) when STA is in connected state.
9764 * 0 - Default behavior, 1 - Ignore CSA.
9765 * This attribute is used to configure the testbed device.
9766 * This attribute can be configured only when STA is in associated state
9767 * and the configuration is valid until the disconnection.
9768 */
9769 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9770
9771 /* Nested attribute values required to configure OCI (Operating Channel
9772 * Information). Attributes defined in enum
9773 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9774 * This attribute is used to configure the testbed device.
9775 * This attribute can be configured only when STA is in associated state
9776 * and the configuration is valid until the disconnection.
9777 */
9778 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9779
9780 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
9781 * Query timeout. If this configuration is enabled STA shall not send
9782 * Deauthentication frmae when SA Query times out (mainly, after a
9783 * channel switch when OCV is enabled).
9784 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9785 * This attribute is used to configure the testbed device.
9786 * This attribute can be configured only when STA is in associated state
9787 * and the configuration is valid until the disconnection.
9788 */
9789 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9790
9791 /* 8-bit unsigned value to configure the driver/firmware to start or
9792 * stop transmitting FILS discovery frames.
9793 * 0 - Stop transmitting FILS discovery frames
9794 * 1 - Start transmitting FILS discovery frames
9795 * This attribute is used to configure the testbed device.
9796 * This attribute can be configured only in AP mode and the
9797 * configuration is valid until AP restart.
9798 */
9799 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9800
Hai Shalom60840252021-02-19 19:02:11 -08009801 /* 8-bit unsigned value to configure the driver/firmware to enable or
9802 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9803 * information field.
9804 * 0 - Disable full bandwidth UL MU-MIMO subfield
9805 * 1 - Enable full bandwidth UL MU-MIMO subfield
9806 * This attribute is used to configure the testbed device.
9807 */
9808 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9809
9810 /* 16-bit unsigned value to configure the driver with a specific BSS
9811 * max idle period to advertise in the BSS Max Idle Period element
9812 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9813 * This attribute is used to configure the testbed device.
9814 */
9815 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9816
9817 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
9818 * for data transmission.
9819 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9820 * This attribute is used to configure the testbed device.
9821 */
9822 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9823
9824 /* 8-bit unsigned value to configure the driver to disable data and
9825 * management response frame transmission to test the BSS max idle
9826 * feature.
9827 * 0 - Default behavior, 1 - Disable data and management response Tx.
9828 * This attribute is used to configure the testbed device.
9829 */
9830 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9831
9832 /* 8-bit unsigned value to configure the driver/firmware to enable or
9833 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9834 * information field.
9835 * 0 - Disable Punctured Preamble Rx subfield
9836 * 1 - Enable Punctured Preamble Rx subfield
9837 * This attribute is used to configure the testbed device.
9838 */
9839 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9840
Hai Shaloma20dcd72022-02-04 13:43:00 -08009841 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9842 * requirement mismatch for 6 GHz connection.
9843 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9844 * This attribute is used to configure the testbed device.
9845 */
9846 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9847
9848 /* 8-bit unsigned value to configure the driver to allow 6 GHz
9849 * connection with all security modes.
9850 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9851 * modes.
9852 * This attribute is used for testing purposes.
9853 */
9854 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9855
9856 /* 8-bit unsigned value to configure the driver to transmit data with
9857 * ER SU PPDU type.
9858 *
9859 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9860 * This attribute is used for testing purposes.
9861 */
9862 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9863
9864 /* 8-bit unsigned value to configure the driver to use Data or
9865 * Management frame type for keep alive data.
9866 * Uses enum qca_wlan_keep_alive_data_type values.
9867 *
9868 * This attribute is used for testing purposes.
9869 */
9870 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9871
9872 /* 8-bit unsigned value to configure the driver to use scan request
9873 * BSSID value in Probe Request frame RA(A1) during the scan. The
9874 * driver saves this configuration and applies this setting to all user
9875 * space scan requests until the setting is cleared. If this
9876 * configuration is set, the driver uses the BSSID value from the scan
9877 * request to set the RA(A1) in the Probe Request frames during the
9878 * scan.
9879 *
9880 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9881 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9882 * This attribute is used for testing purposes.
9883 */
9884 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9885
9886 /* 8-bit unsigned value to configure the driver to enable/disable the
9887 * BSS max idle period support.
9888 *
9889 * 0 - Disable the BSS max idle support.
9890 * 1 - Enable the BSS max idle support.
9891 * This attribute is used for testing purposes.
9892 */
9893 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9894
9895 /* 8-bit unsigned value to configure the driver/firmware to enable or
9896 * disable Rx control frame to MultiBSS subfield in the HE MAC
9897 * capabilities information field.
9898 * 0 - Disable Rx control frame to MultiBSS subfield
9899 * 1 - Enable Rx control frame to MultiBSS subfield
9900 * This attribute is used to configure the testbed device.
9901 */
9902 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9903
9904 /* 8-bit unsigned value to configure the driver/firmware to enable or
9905 * disable Broadcast TWT support subfield in the HE MAC capabilities
9906 * information field.
9907 * 0 - Disable Broadcast TWT support subfield
9908 * 1 - Enable Broadcast TWT support subfield
9909 * This attribute is used to configure the testbed device.
9910 */
9911 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9912
Sunil Ravia04bd252022-05-02 22:54:18 -07009913 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9914 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9915 * to 1, and if the firmware supports this capability too, the STA
9916 * advertises this capability to the AP over Association Request frame.
9917 * This attribute will not have any effect on legacy devices with no
9918 * IEEE 802.11be support.
9919 * 0 - Default behavior
9920 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9921 * This attribute is used to configure the testbed device.
9922 */
9923 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9924
Sunil Ravi89eba102022-09-13 21:04:37 -07009925 /* 8-bit unsigned value to configure the driver to enable/disable the
9926 * periodic sounding for Tx beamformer functionality. The default
9927 * behavior uses algorithm to do sounding based on packet stats.
9928 *
9929 * 0 - Default behavior.
9930 * 1 - Enable the periodic sounding for Tx beamformer.
9931 * This attribute is used for testing purposes.
9932 */
9933 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9934
Sunil Ravi77d572f2023-01-17 23:58:31 +00009935 /* 8-bit unsigned value to configure beamformee SS EHT capability
9936 * to indicate the maximum number of spatial streams that the STA
9937 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9938 * The range of the value is 3 to 7.
9939 * This attribute is used to configure the testbed device.
9940 */
9941 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9942
9943 /* 8-bit unsigned value to configure beamformee SS EHT capability
9944 * to indicate the maximum number of spatial streams that the STA
9945 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9946 * The range of the value is 3 to 7.
9947 * This attribute is used to configure the testbed device.
9948 */
9949 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9950
9951 /* 8-bit unsigned value to configure beamformee SS EHT capability
9952 * to indicate the maximum number of spatial streams that the STA
9953 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9954 * The range of the value is 3 to 7.
9955 * This attribute is used to configure the testbed device.
9956 */
9957 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9958
9959 /* 8-bit unsigned value to configure the driver to exclude station
9960 * profile in Probe Request frame Multi-Link element.
9961 * 0 - Default behavior, sends the Probe Request frame with station
9962 * profile data included in the Multi-Link element.
9963 * 1 - Exclude station profile in Probe Request frame Multi-Link
9964 * element.
9965 * This attribute is used to configure the testbed device.
9966 */
9967 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
9968
9969 /* 8-bit unsigned value to configure EHT testbed defaults.
9970 * This attribute is used to configure the testbed device.
9971 * 1 - Set the device EHT capabilities to testbed defaults.
9972 * 0 - Reset the device EHT capabilities to supported config.
9973 */
9974 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
9975
9976 /* 8-bit unsigned value to indicate the EHT MCS support.
9977 * Uses enum eht_mcs_config values.
9978 * This attribute is used to configure the testbed device to
9979 * allow the advertised hardware capabilities to be downgraded
9980 * for testing purposes.
9981 */
9982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
9983
9984 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
9985 * Rate Limit capability.
9986 * This attribute is used to configure the testbed device.
9987 * 0 - Indicates no maximum supported data rate limitation.
9988 * 1 - Indicates the maximum supported data rate is the lower of
9989 * the 1500 Mb/s and the maximum supported data rate.
9990 */
9991 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
9992
Sunil Ravi640215c2023-06-28 23:08:09 +00009993 /* 8-bit unsigned value to configure the support for receiving an MPDU
9994 * that contains an EHT operating mode control subfield.
9995 * This attribute is used to configure the testbed device.
9996 * 1-enable, 0-disable.
9997 */
9998 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
9999
10000 /* 8-bit unsigned value to configure the driver with EMLSR padding delay
10001 * subfield value.
10002 *
10003 * 0 - 0 us
10004 * 1 - 32 us
10005 * 2 - 64 us
10006 * 3 - 128 us
10007 * 4 - 256 us
10008 * 5-255 - Reserved
10009 *
10010 * This attribute is used for testing purposes.
10011 */
10012 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10013
10014 /*
10015 * 8-bit unsigned value to indicate the firmware to force the active MLO
10016 * links to power save mode for the configured number of beacon periods.
10017 * This allows the firmware to suspend STA links for X beacon periods
10018 * and remain asleep even if the AP advertises TIM as opposed to regular
10019 * power save mode where STA links wake up if the AP indicates that it
10020 * has buffered data to send.
10021 * This attribute is used to configure the testbed device.
10022 */
10023 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10024
10025 /*
10026 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10027 * to enable simultaneous transmission of PPDUs on all active links.
10028 * 0 - Default behavior
10029 * 1 - Enter STR mode for simultaneous data transmission on all links
10030 */
10031 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10032
Sunil Ravi2a14cf12023-11-21 00:54:38 +000010033 /* Nested attribute to indicate EHT MLO links on which powersave to be
10034 * enabled. It contains link ID attributes. These nested attributes are
10035 * of the type u8 and are used to enable the powersave on associated
10036 * MLO links corresponding to the link IDs provided in the command.
10037 * This attribute is used to configure the testbed device.
10038 */
10039 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10040
10041 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10042 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10043 * testcase, STA can request information of non-Tx BSS through Tx BSS
10044 * by configuring non-Tx BSS MLD ID within the ML probe request that
10045 * is transmitted via host initiated scan request.
10046 *
10047 * This attribute is used for testing purposes.
10048 */
10049 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10050
Sunil Ravib0ac25f2024-07-12 01:42:03 +000010051 /* 8-bit unsigned value to configure the SCS traffic description
10052 * support in the EHT capabilities of an Association Request frame.
10053 * 1-enable, 0-disable
10054 * This attribute is used to configure the testbed device.
10055 */
10056 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
10057
Roshan Pius3a1667e2018-07-03 15:17:14 -070010058 /* keep last */
10059 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10060 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10061 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10062};
10063
10064/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010065 * enum qca_wlan_twt_operation - Operation of the config TWT request
10066 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -080010067 * The response for the respective operations can be either synchronous or
10068 * asynchronous (wherever specified). If synchronous, the response to this
10069 * operation is obtained in the corresponding vendor command reply to the user
10070 * space. For the asynchronous case the response is obtained as an event with
10071 * the same operation type.
10072 *
10073 * Drivers shall support either of these modes but not both simultaneously.
10074 * This support for asynchronous mode is advertised through the flag
10075 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10076 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -070010077 *
10078 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10079 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010080 * qca_wlan_vendor_attr_twt_setup. Depending upon the
10081 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10082 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010083 *
10084 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10085 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010086 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010087 *
10088 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10089 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10090 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010091 * This terminate can either get triggered by the user space or can as well be
10092 * a notification from the firmware if it initiates a terminate.
10093 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10094 * the request from user space can either be a synchronous or asynchronous
10095 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010096 *
10097 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10098 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10099 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010100 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10101 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010102 *
10103 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10104 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10105 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010106 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10107 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10108 * capability, this is either a synchronous or asynchronous operation.
10109 *
10110 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10111 * combination of suspend and resume in a single request. Required parameters
10112 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10113 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10114 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10115 * capability, this is either a synchronous or asynchronous operation.
10116 *
10117 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10118 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10119 * session is setup. It's a synchronous operation.
10120 *
10121 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10122 * Valid only after the TWT session is setup. It's a synchronous operation.
10123 *
10124 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10125 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10126 * operation.
10127 *
Sunil Ravia04bd252022-05-02 22:54:18 -070010128 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -080010129 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010130 *
10131 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10132 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10133 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -070010134 *
10135 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10136 * related information for example TWT required bit in AP capabilities etc.
10137 * The reason for the notification is sent using
10138 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -070010139 */
10140enum qca_wlan_twt_operation {
10141 QCA_WLAN_TWT_SET = 0,
10142 QCA_WLAN_TWT_GET = 1,
10143 QCA_WLAN_TWT_TERMINATE = 2,
10144 QCA_WLAN_TWT_SUSPEND = 3,
10145 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -080010146 QCA_WLAN_TWT_NUDGE = 5,
10147 QCA_WLAN_TWT_GET_STATS = 6,
10148 QCA_WLAN_TWT_CLEAR_STATS = 7,
10149 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10150 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010151 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -070010152 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -070010153};
10154
10155/**
10156 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10157 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10158 *
10159 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
10160 * operation of this request. Possible values are defined in enum
10161 * qca_wlan_twt_operation. The parameters for the respective operation is
10162 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10163 *
10164 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10165 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -080010166 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010167 * enum qca_wlan_vendor_attr_twt_set_param, or
10168 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -070010169 *
10170 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10171 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10172 * The values used by this attribute are defined in
10173 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -070010174 */
10175enum qca_wlan_vendor_attr_config_twt {
10176 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10177 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10178 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -070010179 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -070010180
10181 /* keep last */
10182 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10183 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10184 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10185};
10186
10187/**
Roshan Pius3a1667e2018-07-03 15:17:14 -070010188 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
10189 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10190 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
10191 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
10192 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
10193 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
10194 * statistics of an unassociated station by specifying the MAC address in
10195 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
10196 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
10197 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
10198 * the statistics of all unassociated stations by specifying the Broadcast MAC
10199 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
10200 * above procedure. In the response, driver shall specify statistics
10201 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
10202 */
10203enum qca_wlan_vendor_attr_bss_filter {
10204 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
10205 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
10206 /* Other BSS filter type, unsigned 8 bit value. One of the values
10207 * in enum qca_wlan_vendor_bss_filter_type.
10208 */
10209 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
10210 /* Other BSS filter action, unsigned 8 bit value. One of the values
10211 * in enum qca_wlan_vendor_bss_filter_action.
10212 */
10213 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
10214 /* Array of nested attributes where each entry is the statistics
10215 * information of the specified station that belong to another BSS.
10216 * Attributes for each entry are taken from enum
10217 * qca_wlan_vendor_bss_filter_sta_stats.
10218 * Other BSS station configured in
10219 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
10220 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
10221 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
10222 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
10223 */
10224 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
10225
10226 /* keep last */
10227 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
10228 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
10229 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
10230};
10231
10232/**
10233 * enum qca_wlan_vendor_bss_filter_type - Type of
10234 * filter used in other BSS filter operations. Used by the vendor command
10235 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10236 *
10237 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
10238 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
10239 */
10240enum qca_wlan_vendor_bss_filter_type {
10241 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
10242 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
10243};
10244
10245/**
10246 * enum qca_wlan_vendor_bss_filter_action - Type of
10247 * action in other BSS filter operations. Used by the vendor command
10248 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10249 *
10250 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
10251 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
10252 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
10253 */
10254enum qca_wlan_vendor_bss_filter_action {
10255 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
10256 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
10257 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
10258};
10259
10260/**
10261 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
10262 * the statistics of a specific unassociated station belonging to another BSS.
10263 * The statistics provides information of the unassociated station
10264 * filtered by other BSS operation - such as MAC, signal value.
10265 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10266 *
10267 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
10268 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
10269 * of the station. Unsigned 8 bit number containing RSSI.
10270 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
10271 * driver for the last received RSSI. Unsigned 64 bit number containing
10272 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -070010273 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
10274 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010275 */
10276enum qca_wlan_vendor_bss_filter_sta_stats {
10277 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
10278 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
10279 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
10280 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070010281 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -070010282
10283 /* keep last */
10284 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
10285 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
10286 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
10287};
10288
Hai Shalomce48b4a2018-09-05 11:41:35 -070010289/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10290 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10291 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10292 */
10293enum qca_wlan_nan_ext_subcmd_type {
10294 /* Subcmd of type NAN Enable Request */
10295 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10296 /* Subcmd of type NAN Disable Request */
10297 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10298};
10299
10300/**
10301 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10302 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10303 */
10304enum qca_wlan_vendor_attr_nan_params {
10305 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10306 /* Carries NAN command for firmware component. Every vendor command
10307 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10308 * payload containing the NAN command. NLA_BINARY attribute.
10309 */
10310 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10311 /* Indicates the type of NAN command sent with
10312 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10313 * describes the possible range of values. This attribute is mandatory
10314 * if the command being issued is either
10315 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10316 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10317 */
10318 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10319 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10320 * band. This attribute is mandatory when command type is
10321 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10322 */
10323 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10324 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10325 * band. This attribute is optional and should be included when command
10326 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10327 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10328 */
10329 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10330
10331 /* keep last */
10332 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10333 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10334 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10335};
10336
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010337/**
Hai Shalom60840252021-02-19 19:02:11 -080010338 * qca_wlan_twt_setup_state: Represents the TWT session states.
10339 *
10340 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10341 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10342 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10343 */
10344enum qca_wlan_twt_setup_state {
10345 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10346 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10347 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10348};
10349
10350/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010351 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10352 * TWT (Target Wake Time) setup request. These attributes are sent as part of
10353 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -070010354 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10355 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010356 *
10357 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10358 * Disable (flag attribute not present) - Individual TWT
10359 * Enable (flag attribute present) - Broadcast TWT.
10360 * Individual means the session is between the STA and the AP.
10361 * This session is established using a separate negotiation between
10362 * STA and AP.
10363 * Broadcast means the session is across multiple STAs and an AP. The
10364 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010365 * This is used in
10366 * 1. TWT SET Request and Response
10367 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010368 *
10369 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10370 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -070010371 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010372 *
10373 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10374 * Enable (flag attribute present) - TWT with trigger support.
10375 * Disable (flag attribute not present) - TWT without trigger support.
10376 * Trigger means the AP will send the trigger frame to allow STA to send data.
10377 * Without trigger, the STA will wait for the MU EDCA timer before
10378 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -070010379 * This is used in
10380 * 1. TWT SET Request and Response
10381 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010382 *
10383 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10384 * 0 - Announced TWT - In this mode, STA may skip few service periods to
10385 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10386 * NULL frame to AP.
10387 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010388 * This is a required parameter for
10389 * 1. TWT SET Request and Response
10390 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010391 *
10392 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10393 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -070010394 * If not provided then dialog ID will be set to zero.
10395 * This is an optional parameter for
10396 * 1. TWT SET Request and Response
10397 * 2. TWT GET Request and Response
10398 * 3. TWT TERMINATE Request and Response
10399 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -080010400 * Flow ID values from 0 to 254 represent a single TWT session
10401 * Flow ID value of 255 represents all TWT sessions for the following
10402 * 1. TWT TERMINATE Request and Response
10403 * 2. TWT SUSPEND Request and Response
10404 * 4. TWT CLEAR STATISTICS request
10405 * 5. TWT GET STATISTICS request and response
10406 * If an invalid dialog ID is provided, status
10407 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010408 *
10409 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10410 * This attribute (exp) is used along with the mantissa to derive the
10411 * wake interval using the following formula:
10412 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10413 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010414 * This is a required parameter for
10415 * 1. TWT SET Request and Response
10416 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010417 *
10418 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10419 * Enable (flag attribute present) - Protection required.
10420 * Disable (flag attribute not present) - Protection not required.
10421 * If protection is enabled, then the AP will use protection
10422 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -070010423 * This is used in
10424 * 1. TWT SET Request and Response
10425 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010426 *
10427 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10428 * This attribute is used as the SP offset which is the offset from
10429 * TSF after which the wake happens. The units are in microseconds. If
10430 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -070010431 * This is an optional parameter for
10432 * 1. TWT SET Request and Response
10433 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010434 *
10435 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -070010436 * This is the duration of the service period. This is specified as
10437 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
10438 * This is a required parameter for
10439 * 1. TWT SET Request and Response
10440 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010441 *
10442 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
10443 * This attribute is used to configure wake interval mantissa.
10444 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -070010445 * This is a required parameter for
10446 * 1. TWT SET Request and Response
10447 * 2. TWT GET Response
10448 *
10449 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
10450 * This field is applicable for TWT response only.
10451 * This contains status values in enum qca_wlan_vendor_twt_status
10452 * and is passed to the userspace. This is used in TWT SET operation.
10453 * This is a required parameter for
10454 * 1. TWT SET Response
10455 * 2. TWT TERMINATE Response
10456 * 3. TWT SUSPEND Response
10457 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -080010458 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -070010459 *
10460 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
10461 * This field is applicable for TWT response only.
10462 * This field contains response type from the TWT responder and is
10463 * passed to the userspace. The values for this field are defined in
10464 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10465 * response.
10466 *
10467 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -080010468 * In TWT setup command this field contains absolute TSF that will
10469 * be used by TWT requester during setup.
10470 * In TWT response this field contains absolute TSF value of the
10471 * wake time received from the TWT responder and is passed to
10472 * the userspace.
10473 * This is an optional parameter for
10474 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -070010475 * This is a required parameter for
10476 * 1. TWT SET Response
10477 * 2. TWT GET Response
10478 *
10479 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10480 * Enable (flag attribute present) - Indicates that the TWT responder
10481 * supports reception of TWT information frame from the TWT requestor.
10482 * Disable (flag attribute not present) - Indicates that the responder
10483 * doesn't support reception of TWT information frame from requestor.
10484 * This is used in
10485 * 1. TWT SET Response
10486 * 2. TWT GET Response
10487 *
10488 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10489 * Represents the MAC address of the peer for which the TWT session
10490 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -080010491 * client.
10492 * In AP mode, this is a required parameter in response for
10493 * 1. TWT SET
10494 * 2. TWT GET
10495 * 3. TWT TERMINATE
10496 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -070010497 * In STA mode, this is an optional parameter in request and response for
10498 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010499 * In AP mode, this is a required parameter in request for
10500 * 1. TWT GET
10501 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -080010502 *
10503 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10504 * Minimum tolerance limit of wake interval parameter in microseconds.
10505 *
10506 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10507 * Maximum tolerance limit of wake interval parameter in microseconds.
10508 *
10509 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10510 * Minimum tolerance limit of wake duration parameter in microseconds.
10511 *
10512 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10513 * Maximum tolerance limit of wake duration parameter in microseconds.
10514 *
10515 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10516 * TWT state for the given dialog id. The values for this are represented
10517 * by enum qca_wlan_twt_setup_state.
10518 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010519 *
10520 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10521 * This attribute is used to configure wake interval mantissa.
10522 * The unit is microseconds. This attribute, when specified, takes
10523 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10524 * This parameter is used for
10525 * 1. TWT SET Request and Response
10526 * 2. TWT GET Response
10527 *
10528 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10529 * This attribute is used to configure Broadcast TWT ID.
10530 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10531 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10532 * This parameter is used for
10533 * 1. TWT SET Request
10534 * 2. TWT TERMINATE Request
10535 *
10536 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10537 * This attribute is used to configure Broadcast TWT recommendation.
10538 * The Broadcast TWT Recommendation subfield contains a value that indicates
10539 * recommendations on the types of frames that are transmitted by TWT
10540 * scheduled STAs and scheduling AP during the broadcast TWT SP.
10541 * The allowed values are 0 - 3.
10542 * This parameter is used for
10543 * 1. TWT SET Request
10544 *
10545 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10546 * This attribute is used to configure Broadcast TWT Persistence.
10547 * The Broadcast TWT Persistence subfield indicates the number of
10548 * TBTTs during which the Broadcast TWT SPs corresponding to this
10549 * broadcast TWT Parameter set are present. The number of beacon intervals
10550 * during which the Broadcast TWT SPs are present is equal to the value in the
10551 * Broadcast TWT Persistence subfield plus 1 except that the value 255
10552 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10553 * This parameter is used for
10554 * 1. TWT SET Request
10555 *
10556 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10557 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
10558 * from TWT response frame.
10559 * This parameter is used for
10560 * 1. TWT SET Response
10561 * 2. TWT GET Response
10562 *
10563 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10564 * This attribute is used to configure the announce timeout value (in us) in
10565 * the firmware. This timeout value is only applicable for the announced TWT. If
10566 * the timeout value is non-zero the firmware waits up to the timeout value to
10567 * use Data frame as an announcement frame. If the timeout value is 0 the
10568 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
10569 * start. The default value in the firmware is 0.
10570 * This parameter is used for
10571 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -070010572 *
10573 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
10574 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010575 */
10576enum qca_wlan_vendor_attr_twt_setup {
10577 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10578 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10579 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10580 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10581 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10582 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10583 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10584 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10585 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10586 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10587 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10588
Hai Shalom899fcc72020-10-19 14:38:18 -070010589 /* TWT Response only attributes */
10590 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10591 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10592 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10593 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10594
10595 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -080010596 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10597 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10598 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10599 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10600 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -070010601
Hai Shaloma20dcd72022-02-04 13:43:00 -080010602 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10603
10604 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10605 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10606 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10607
10608 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10609 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10610
Sunil Ravi036cec52023-03-29 11:35:17 -070010611 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
10612
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010613 /* keep last */
10614 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10615 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10616 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10617};
10618
10619/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010620 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10621 * TWT operation
10622 *
10623 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10624 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10625 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10626 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10627 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10628 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10629 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10630 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10631 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10632 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10633 * request/response frame
10634 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10635 * frame
10636 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10637 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10638 * unknown reason
10639 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10640 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -080010641 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10642 * invalid IE in the received TWT frame
10643 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10644 * the responder are not in the specified range
10645 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10646 * session due to request from the responder. Used on the TWT_TERMINATE
10647 * notification from the firmware.
10648 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10649 * session due to roaming. Used on the TWT_TERMINATE notification from the
10650 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010651 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10652 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
10653 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10654 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10655 * request due to roaming in progress.
10656 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10657 * setup request due to channel switch in progress.
10658 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10659 * request due to scan in progress.
10660 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10661 * terminate an existing TWT session on power save exit request from userspace.
10662 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -070010663 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10664 * required bit in its capabilities.
10665 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10666 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -070010667 */
10668enum qca_wlan_vendor_twt_status {
10669 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10670 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10671 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10672 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10673 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10674 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10675 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10676 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10677 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10678 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10679 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10680 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10681 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10682 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -080010683 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10684 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10685 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10686 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010687 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10688 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10689 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10690 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10691 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -070010692 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10693 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -070010694};
10695
10696/**
10697 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010698 * TWT (Target Wake Time) resume request. These attributes are sent as part of
10699 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -070010700 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10701 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010702 *
10703 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -070010704 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10705 * These attributes are used as the SP offset which is the offset from TSF after
10706 * which the wake happens. The units are in microseconds. Please note that
10707 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10708 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10709 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10710 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010711 *
10712 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10713 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -070010714 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10715 * and 4 for 64 bits.
10716 *
10717 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10718 * Flow ID is the unique identifier for each TWT session. This attribute
10719 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -080010720 * Flow ID values from 0 to 254 represent a single TWT session
10721 * Flow ID value of 255 represents all TWT sessions.
10722 * If an invalid dialog id is provided, status
10723 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -070010724 *
10725 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10726 * Represents the MAC address of the peer to which TWT Resume is
10727 * being sent. This is used in AP mode to represent the respective
10728 * client and is a required parameter. In STA mode, this is an optional
10729 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010730 */
10731enum qca_wlan_vendor_attr_twt_resume {
10732 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10733 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10734 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070010735 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10736 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10737 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010738
10739 /* keep last */
10740 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10741 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10742 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10743};
10744
10745/**
Hai Shalom60840252021-02-19 19:02:11 -080010746 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10747 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10748 * and resume in a single request. These attributes are sent as part of
10749 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10750 *
10751 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10752 * Flow ID is the unique identifier for each TWT session. This attribute
10753 * represents the respective TWT session to suspend and resume.
10754 * Flow ID values from 0 to 254 represent a single TWT session
10755 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10756 * and response.
10757 * If an invalid dialog id is provided, status
10758 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10759 *
10760 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10761 * This attribute is used as the SP offset which is the offset from
10762 * TSF after which the wake happens. The units are in microseconds.
10763 *
10764 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10765 * This attribute represents the next TWT subfield size.
10766 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10767 * and 4 for 64 bits.
10768 *
10769 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10770 * Represents the MAC address of the peer to which TWT Suspend and Resume is
10771 * being sent. This is used in AP mode to represent the respective
10772 * client and is a required parameter. In STA mode, this is an optional
10773 * parameter.
10774 *
10775 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10776 * This field contains absolute TSF value of the time at which the TWT
10777 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -070010778 *
10779 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10780 * This field will be used when device supports Flexible TWT.
10781 * This field contains an offset value by which to shift the starting time
10782 * of the next service period. The value of offset can be negative or positive.
10783 * If provided, this attribute will override
10784 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10785 *
Sunil Ravi036cec52023-03-29 11:35:17 -070010786 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
10787 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -080010788 */
10789enum qca_wlan_vendor_attr_twt_nudge {
10790 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10791 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10792 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10793 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10794 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10795 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070010796 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -070010797 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -080010798
10799 /* keep last */
10800 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10801 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10802 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10803};
10804
10805/**
10806 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10807 * TWT (Target Wake Time) get statistics and clear statistics request.
10808 * These attributes are sent as part of
10809 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10810 *
10811 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10812 * Flow ID is the unique identifier for each TWT session. This attribute
10813 * represents the respective TWT session for get and clear TWT statistics.
10814 * Flow ID values from 0 to 254 represent a single TWT session
10815 * Flow ID value of 255 represents all TWT sessions in
10816 * 1) TWT GET STATISTICS request and response
10817 * 2) TWT CLEAR STATISTICS request
10818 *
10819 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10820 * Represents the MAC address of the peer for which TWT Statistics
10821 * is required.
10822 * In AP mode this is used to represent the respective
10823 * client and is a required parameter for
10824 * 1) TWT GET STATISTICS request and response
10825 * 2) TWT CLEAR STATISTICS request and response
10826 * In STA mode, this is an optional parameter.
10827 *
10828 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10829 * This is the duration of the service period in microseconds.
10830 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10831 *
10832 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10833 * Average of the actual wake duration observed so far. Unit is microseconds.
10834 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10835 *
10836 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10837 * The number of TWT service periods elapsed so far.
10838 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10839 *
10840 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10841 * This is the minimum value of the wake duration observed across
10842 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10843 * microseconds.
10844 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10845 *
10846 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
10847 * This is the maximum value of wake duration observed across
10848 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10849 * microseconds.
10850 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10851 *
10852 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10853 * Average number of MPDUs transmitted successfully across
10854 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10855 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10856 *
10857 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10858 * Average number of MPDUs received successfully across
10859 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10860 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10861 *
10862 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10863 * Average number of bytes transmitted successfully across
10864 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10865 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10866 *
10867 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
10868 * Average number of bytes received successfully across
10869 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10870 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10871 *
10872 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10873 * Status of the TWT GET STATISTICS request.
10874 * This contains status values in enum qca_wlan_vendor_twt_status
10875 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10876 */
10877enum qca_wlan_vendor_attr_twt_stats {
10878 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10879 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10880 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10881 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10882 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10883 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10884 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10885 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10886 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10887 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10888 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10889 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10890 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10891
10892 /* keep last */
10893 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10894 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10895 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10896};
10897
10898/**
10899 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
10900 * supported by the device and the peer.
10901 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10902 *
10903 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10904 * TWT non-scheduling STA. This capability is advertised in the HE
10905 * Capability/Extended Capabilities information element in the
10906 * Association Request frame by the device.
10907 *
10908 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
10909 * the TWT scheduling AP. This capability is advertised in the Extended
10910 * Capabilities/HE Capabilities information element.
10911 *
10912 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
10913 * for the broadcast TWT functionality. On the responder side, this indicates
10914 * support for the role of broadcast TWT scheduling functionality. This
10915 * capability is advertised in the HE Capabilities information element.
10916 *
10917 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
10918 * This capability is advertised in the HE Capabilities information element.
10919 *
10920 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10921 * that it mandates the associated HE STAs to support TWT. This capability is
10922 * advertised by AP in the HE Operation Parameters field of the HE Operation
10923 * information element.
10924 */
10925enum qca_wlan_twt_capa {
10926 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10927 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10928 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10929 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
10930 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
10931};
10932
10933/**
10934 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
10935 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10936 * operation.
10937 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10938 * Represents the MAC address of the peer for which the TWT capabilities
10939 * are being queried. This is used in AP mode to represent the respective
10940 * client. In STA mode, this is an optional parameter.
10941 *
10942 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10943 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10944 * enum qca_wlan_twt_capa.
10945 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10946 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10947 * enum qca_wlan_twt_capa.
10948 */
10949enum qca_wlan_vendor_attr_twt_capability {
10950 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10951 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10952 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10953 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10954
10955 /* keep last */
10956 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10957 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10958 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10959};
10960
10961/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010962 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10963 * TWT (Target Wake Time) related parameters. It is used when
10964 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10965 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10966 *
10967 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10968 * This attribute configures AC parameters to be used for all TWT
10969 * sessions in AP mode.
10970 * Uses the enum qca_wlan_ac_type values.
10971 */
10972enum qca_wlan_vendor_attr_twt_set_param {
10973 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10974 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10975
10976 /* keep last */
10977 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10978 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10979 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10980};
10981
10982/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010983 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10984 * the TWT responder
10985 *
10986 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10987 * parameters that are different from TWT requesting STA suggested
10988 * or demanded TWT parameters
10989 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10990 * parameters that are different from TWT requesting STA TWT suggested
10991 * or demanded parameters
10992 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10993 * setup
10994 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10995 * setup.
10996 */
10997enum qca_wlan_vendor_twt_setup_resp_type {
10998 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10999 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
11000 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
11001 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
11002};
11003
11004/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011005 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11006 * Represents the setup type being requested for TWT.
11007 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11008 * parameters but relying on AP to fill the parameters during the negotiation.
11009 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11010 * values which the AP may accept or AP may provide alternative parameters
11011 * which the STA may accept.
11012 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11013 * alternate parameters than the requested ones.
11014 */
11015enum qca_wlan_vendor_twt_setup_req_type {
11016 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11017 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11018 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
11019};
11020
11021/**
11022 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
11023 *
11024 * Indicates the type of roam scan event sent by firmware/driver.
11025 *
11026 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
11027 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
11028 */
11029enum qca_wlan_roam_scan_event_type {
11030 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
11031 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
11032};
11033
11034/**
11035 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
11036 *
11037 * Indicates the reason for triggering roam scan by firmware/driver.
11038 *
11039 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
11040 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
11041 */
11042enum qca_wlan_roam_scan_trigger_reason {
11043 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
11044 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
11045};
11046
11047/**
11048 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
11049 * roam scan related details from driver/firmware to user space. enum values
11050 * are used for NL attributes sent with
11051 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
11052 */
11053enum qca_wlan_vendor_attr_roam_scan {
11054 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
11055 /* Encapsulates type of roam scan event being reported. enum
11056 * qca_wlan_roam_scan_event_type describes the possible range of
11057 * values. u32 attribute.
11058 */
11059 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
11060 /* Encapsulates reason for triggering roam scan. enum
11061 * qca_wlan_roam_scan_trigger_reason describes the possible range of
11062 * values. u32 attribute.
11063 */
11064 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
11065
11066 /* keep last */
11067 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
11068 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
11069 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
11070};
11071
11072/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011073 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11074 * transport modes and is used by the attribute
11075 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
11076 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11077 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
11078 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11079 * data. The data shall be encapsulated within
11080 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
11081 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11082 */
11083enum qca_wlan_vendor_cfr_data_transport_modes {
11084 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11085 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11086};
11087
11088/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011089 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11090 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11091 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070011092 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
11093 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
11094 * with phase
11095 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011096 */
11097enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011098 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070011099 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11100 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11101};
11102
11103/**
11104 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11105 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11106 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11107 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11108 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11109 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11110 * is provided by one or more of below attributes:
11111 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11112 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11113 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11114 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11115 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11116 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11117 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11118 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11119 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11120 */
11121enum qca_wlan_vendor_cfr_capture_type {
11122 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11123 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11124 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11125 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11126 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11127 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011128};
11129
11130/**
11131 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11132 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11133 * Channel Frequency Response capture parameters and enable periodic CFR
11134 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070011135 *
11136 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11137 * MAC address of peer. This is for CFR version 1 only.
11138 *
11139 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11140 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
11141 * capture. If this attribute is not present, peer CFR capture is disabled.
11142 *
11143 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11144 * BW of measurement, attribute uses the values in enum nl80211_chan_width
11145 * Supported values: 20, 40, 80, 80+80, 160.
11146 * Note that all targets may not support all bandwidths.
11147 * This attribute is mandatory for version 1 if attribute
11148 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11149 *
11150 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11151 * Periodicity of CFR measurement in milliseconds.
11152 * Periodicity should be a multiple of Base timer.
11153 * Current Base timer value supported is 10 milliseconds (default).
11154 * 0 for one shot capture.
11155 * This attribute is mandatory for version 1 if attribute
11156 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11157 *
11158 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11159 * Method used to capture Channel Frequency Response.
11160 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11161 * This attribute is mandatory for version 1 if attribute
11162 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11163 *
11164 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11165 * Enable periodic CFR capture.
11166 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11167 * If this attribute is not present, periodic CFR capture is disabled.
11168 *
11169 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
11170 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11171 * can't be enabled at same time. This attribute is mandatory if target
11172 * support both versions and use one of them.
11173 *
11174 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11175 * This attribute is mandatory for version 2 if
11176 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11177 * Bits 15:0 bitfield indicates which group is to be enabled.
11178 * Bits 31:16 Reserved for future use.
11179 *
11180 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11181 * CFR capture duration in microsecond. This attribute is mandatory for
11182 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11183 *
11184 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11185 * CFR capture interval in microsecond. This attribute is mandatory for
11186 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11187 *
11188 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11189 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11190 * This attribute is mandatory for version 2.
11191 *
11192 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11193 * Bitfield indicating which user in the current UL MU transmissions are
11194 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
11195 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
11196 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
11197 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
11198 * reserved for future use. This is for CFR version 2 only.
11199 *
11200 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11201 * Indicates the number of consecutive RX frames to be skipped before CFR
11202 * capture is enabled again. This is for CFR version 2 only.
11203 *
11204 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11205 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11206 *
11207 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11208 * the following group attributes:
11209 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11210 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11211 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11212 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11213 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11214 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11215 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11216 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11217 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11218 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11219 *
11220 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11221 * Target supports multiple groups for some configurations. The group number
11222 * can be any value between 0 and 15. This is for CFR version 2 only.
11223 *
11224 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11225 * Transmitter address which is used to filter frames. This MAC address takes
11226 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
11227 * version 2 only.
11228 *
11229 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11230 * Receiver address which is used to filter frames. This MAC address takes
11231 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
11232 * version 2 only.
11233 *
11234 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11235 * Mask of transmitter address which is used to filter frames. This is for CFR
11236 * version 2 only.
11237 *
11238 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11239 * Mask of receiver address which is used to filter frames. This is for CFR
11240 * version 2 only.
11241 *
11242 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11243 * Indicates frames with a specific NSS will be filtered for CFR capture.
11244 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
11245 * capture to be done for frames matching the NSS specified within this bitmask.
11246 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
11247 * bit 0 : NSS 1
11248 * bit 1 : NSS 2
11249 * ...
11250 * bit 7 : NSS 8
11251 *
11252 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11253 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
11254 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
11255 * capture to be done for frames matching the bandwidths specified within this
11256 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
11257 * numerated in enum nl80211_band (although not all bands may be supported
11258 * by a given device).
11259 *
11260 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11261 * Management frames matching the subtype filter categories will be filtered in
11262 * by MAC for CFR capture. This is a bitmask in which each bit represents the
11263 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
11264 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
11265 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
11266 *
11267 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11268 * Control frames matching the subtype filter categories will be filtered in by
11269 * MAC for CFR capture. This is a bitmask in which each bit represents the
11270 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
11271 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
11272 *
11273 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11274 * Data frames matching the subtype filter categories will be filtered in by
11275 * MAC for CFR capture. This is a bitmask in which each bit represents the
11276 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
11277 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011278 *
11279 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11280 * Userspace can use this attribute to specify the driver about which transport
11281 * mode shall be used by the driver to send CFR data to userspace. Uses values
11282 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11283 * not present, the driver shall use the default transport mechanism which is
11284 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11285 *
11286 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11287 * Userspace can use this attribute to specify the nl port id of the application
11288 * which receives the CFR data and processes it further so that the drivers can
11289 * unicast the netlink events to a specific application. Optionally included
11290 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11291 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11292 * shall multicast the netlink events when this attribute is not included.
11293 *
11294 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11295 * This attribute will be used by the driver to encapsulate and send CFR data
11296 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11297 * asynchronous event when the driver is configured to send CFR data using
11298 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070011299 *
11300 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
11301 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011302 */
11303enum qca_wlan_vendor_peer_cfr_capture_attr {
11304 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011305 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011306 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011307 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011308 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011309 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011310 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070011311 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11312 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11313 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11314 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11315 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11316 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11317 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11318 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11319 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11320 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11321 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
11322 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
11323 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
11324 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
11325 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
11326 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
11327 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
11328 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
11329 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011330 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
11331 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
11332 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070011333 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011334
11335 /* Keep last */
11336 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
11337 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
11338 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
11339};
11340
Hai Shalom74f70d42019-02-11 14:42:39 -080011341/**
11342 * enum qca_wlan_throughput_level - Current throughput level
11343 *
11344 * Indicates the current level of throughput calculated by the driver. The
11345 * driver may choose different thresholds to decide whether the throughput level
11346 * is low or medium or high based on variety of parameters like physical link
11347 * capacity of the current connection, the number of packets being dispatched
11348 * per second, etc. The throughput level events might not be consistent with the
11349 * actual current throughput value being observed.
11350 *
11351 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
11352 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
11353 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
11354 */
11355enum qca_wlan_throughput_level {
11356 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
11357 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
11358 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
11359};
11360
11361/**
11362 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
11363 * report throughput changes from the driver to user space. enum values are used
11364 * for netlink attributes sent with
11365 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
11366 */
11367enum qca_wlan_vendor_attr_throughput_change {
11368 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
11369 /* Indicates the direction of throughput in which the change is being
11370 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
11371 */
11372 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
11373 /* Indicates the newly observed throughput level. enum
11374 * qca_wlan_throughput_level describes the possible range of values.
11375 * u8 attribute.
11376 */
11377 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
11378 /* Indicates the driver's guidance on the new value to be set to
11379 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
11380 * driver may optionally include this attribute.
11381 */
11382 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
11383 /* Indicates the driver's guidance on the new value to be set to
11384 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
11385 * values are from -31 to 31. The driver may optionally include this
11386 * attribute.
11387 */
11388 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
11389 /* Indicates the driver's guidance on the new value to be set to
11390 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
11391 * optionally include this attribute.
11392 */
11393 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
11394
11395 /* keep last */
11396 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
11397 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
11398 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
11399};
11400
11401/**
11402 * enum qca_coex_config_profiles - This enum defines different types of
11403 * traffic streams that can be prioritized one over the other during coex
11404 * scenarios.
11405 * The types defined in this enum are categorized in the below manner.
11406 * 0 - 31 values corresponds to WLAN
11407 * 32 - 63 values corresponds to BT
11408 * 64 - 95 values corresponds to Zigbee
11409 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
11410 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
11411 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
11412 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
11413 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
11414 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
11415 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
11416 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
11417 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
11418 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
11419 * @QCA_BT_A2DP: Prioritize BT A2DP
11420 * @QCA_BT_BLE: Prioritize BT BLE
11421 * @QCA_BT_SCO: Prioritize BT SCO
11422 * @QCA_ZB_LOW: Prioritize Zigbee Low
11423 * @QCA_ZB_HIGH: Prioritize Zigbee High
11424 */
11425enum qca_coex_config_profiles {
11426 /* 0 - 31 corresponds to WLAN */
11427 QCA_WIFI_STA_DISCOVERY = 0,
11428 QCA_WIFI_STA_CONNECTION = 1,
11429 QCA_WIFI_STA_CLASS_3_MGMT = 2,
11430 QCA_WIFI_STA_DATA = 3,
11431 QCA_WIFI_STA_ALL = 4,
11432 QCA_WIFI_SAP_DISCOVERY = 5,
11433 QCA_WIFI_SAP_CONNECTION = 6,
11434 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
11435 QCA_WIFI_SAP_DATA = 8,
11436 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070011437 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080011438 /* 32 - 63 corresponds to BT */
11439 QCA_BT_A2DP = 32,
11440 QCA_BT_BLE = 33,
11441 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070011442 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080011443 /* 64 - 95 corresponds to Zigbee */
11444 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070011445 QCA_ZB_HIGH = 65,
11446 QCA_ZB_CASE_MAX = 95,
11447 /* 0xff is default value if the u8 profile value is not set. */
11448 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
11449};
11450
11451/**
11452 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
11453 * This enum defines the valid set of values of coex configuration types. These
11454 * values may used by attribute
11455 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
11456 *
11457 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
11458 * weights to default values.
11459 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
11460 * weights with configurability value.
11461 */
11462enum qca_vendor_attr_coex_config_types {
11463 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11464 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11465 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080011466};
11467
11468/**
11469 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
11470 *
11471 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
11472 * length array of 8-bit values from enum qca_coex_config_profiles.
11473 * FW will prioritize the profiles in the order given in the array encapsulated
11474 * in this attribute.
11475 * For example:
11476 * -----------------------------------------------------------------------
11477 * | 1 | 34 | 32 | 65 |
11478 * -----------------------------------------------------------------------
11479 * If the attribute contains the values defined in above array then it means
11480 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
11481 * 2) BT_SCO has priority over BT_A2DP.
11482 * 3) BT_A2DP has priority over ZIGBEE HIGH.
11483 * Profiles which are not listed in this array shall not be preferred over the
11484 * profiles which are listed in the array as a part of this attribute.
11485 */
11486enum qca_vendor_attr_coex_config {
11487 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11488 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
11489
11490 /* Keep last */
11491 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
11492 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
11493 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
11494};
11495
11496/**
Hai Shalom021b0b52019-04-10 11:17:58 -070011497 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11498 * attributes
11499 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11500 *
11501 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11502 * Indicate config type.
11503 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
11504 *
11505 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11506 * Indicate the Priority 1 profiles.
11507 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11508 * In same priority level, maximum to 4 profiles can be set here.
11509 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11510 * Indicate the Priority 2 profiles.
11511 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11512 * In same priority level, maximum to 4 profiles can be set here.
11513 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11514 * Indicate the Priority 3 profiles.
11515 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11516 * In same priority level, maximum to 4 profiles can be set here.
11517 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11518 * Indicate the Priority 4 profiles.
11519 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11520 * In same priority level, maximum to 4 profiles can be set here.
11521 * NOTE:
11522 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11523 * arrangement:
11524 * 1: In the same u32 attribute (priority x), the profiles enum values own
11525 * same priority level.
11526 * 2: 0xff is default value if the u8 profile value is not set.
11527 * 3: max to 4 rules/profiles in same priority level.
11528 * 4: max to 4 priority level (priority 1 - priority 4)
11529 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
11530 * hybrid rules not support.
11531 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11532 * remain blank to reset all parameters.
11533 * For example:
11534 *
11535 * If the attributes as follow:
11536 * priority 1:
11537 * ------------------------------------
11538 * | 0xff | 0 | 1 | 2 |
11539 * ------------------------------------
11540 * priority 2:
11541 * -------------------------------------
11542 * | 0xff | 0xff | 0xff | 32 |
11543 * -------------------------------------
11544 * priority 3:
11545 * -------------------------------------
11546 * | 0xff | 0xff | 0xff | 65 |
11547 * -------------------------------------
11548 * then it means:
11549 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11550 * owns same priority level.
11551 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11552 * has priority over BT_A2DP and ZB_HIGH.
11553 * 3: BT_A2DP has priority over ZB_HIGH.
11554 */
Hai Shalom021b0b52019-04-10 11:17:58 -070011555enum qca_vendor_attr_coex_config_three_way {
11556 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11557 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11558 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11559 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11560 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11561 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11562
11563 /* Keep last */
11564 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11565 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11566 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11567};
11568
11569/**
Hai Shalom74f70d42019-02-11 14:42:39 -080011570 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
11571 *
11572 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
11573 * (STA/AP) for the connected link.
11574 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
11575 * &struct nl80211_sta_flag_update for the respective connected link. MAC
11576 * address of the peer represented by
11577 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
11578 */
11579enum qca_wlan_vendor_attr_link_properties {
11580 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
11581 /* 1 - 3 are reserved */
11582 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
11583 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
11584
11585 /* Keep last */
11586 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
11587 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
11588 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
11589};
11590
Hai Shalom021b0b52019-04-10 11:17:58 -070011591/**
11592 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11593 * This enum defines the valid set of values of peer stats cache types. These
11594 * values are used by attribute
11595 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
11596 *
11597 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
11598 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
11599 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
11600 * statistics
11601 */
11602enum qca_vendor_attr_peer_stats_cache_type {
11603 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11604
11605 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11606 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11607 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11608};
11609
11610/**
11611 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11612 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11613 * Information in these attributes is used to flush peer rate statistics from
11614 * the driver to user application.
11615 *
11616 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11617 * Indicate peer statistics cache type.
11618 * The statistics types are 32-bit values from
11619 * enum qca_vendor_attr_peer_stats_cache_type.
11620 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11621 * of size 6 octets, representing the peer MAC address.
11622 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11623 * containing buffer of statistics to send to application layer entity.
11624 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11625 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070011626 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
11627 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070011628 */
11629enum qca_wlan_vendor_attr_peer_stats_cache_params {
11630 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11631
11632 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11633 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11634 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11635 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070011636 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070011637
11638 /* Keep last */
11639 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11640 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11641 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11642};
11643
11644/**
11645 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
11646 * This enum defines all the possible states of Zigbee, which can be
11647 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
11648 *
11649 * @ZIGBEE_IDLE: Zigbee in idle state
11650 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
11651 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
11652 * @ZIGBEE_JOIN: Zigbee joining network
11653 * @ZIGBEE_NETWORK_UP: Zigbee network is up
11654 * @ZIGBEE_HMI: Zigbee in HMI mode
11655 */
11656enum qca_mpta_helper_attr_zigbee_state {
11657 ZIGBEE_IDLE = 0,
11658 ZIGBEE_FORM_NETWORK = 1,
11659 ZIGBEE_WAIT_JOIN = 2,
11660 ZIGBEE_JOIN = 3,
11661 ZIGBEE_NETWORK_UP = 4,
11662 ZIGBEE_HMI = 5,
11663};
11664
11665/*
11666 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
11667 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
11668 */
11669enum qca_mpta_helper_vendor_attr {
11670 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
11671 /* Optional attribute used to update Zigbee state.
11672 * enum qca_mpta_helper_attr_zigbee_state.
11673 * NLA_U32 attribute.
11674 */
11675 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
11676 /* Optional attribute used to configure WLAN duration for Shape-OCS
11677 * during interrupt.
11678 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
11679 * Value range 0 ~ 300 (ms).
11680 * NLA_U32 attribute.
11681 */
11682 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
11683 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
11684 * during interrupt.
11685 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
11686 * Value range 0 ~ 300 (ms).
11687 * NLA_U32 attribute.
11688 */
11689 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
11690 /* Optional attribute used to configure WLAN duration for Shape-OCS
11691 * monitor period.
11692 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11693 * Value range 0 ~ 300 (ms)
11694 * NLA_U32 attribute
11695 */
11696 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11697 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
11698 * monitor period.
11699 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11700 * Value range 0 ~ 300 (ms)
11701 * NLA_U32 attribute
11702 */
11703 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
11704 /* Optional attribute used to configure OCS interrupt duration.
11705 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11706 * Value range 1000 ~ 20000 (ms)
11707 * NLA_U32 attribute
11708 */
11709 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
11710 /* Optional attribute used to configure OCS monitor duration.
11711 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11712 * Value range 1000 ~ 20000 (ms)
11713 * NLA_U32 attribute
11714 */
11715 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
11716 /* Optional attribute used to notify WLAN firmware the current Zigbee
11717 * channel.
11718 * Value range 11 ~ 26
11719 * NLA_U32 attribute
11720 */
11721 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11722 /* Optional attribute used to configure WLAN mute duration.
11723 * Value range 0 ~ 400 (ms)
11724 * NLA_U32 attribute
11725 */
11726 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
11727
11728 /* keep last */
11729 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11730 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11731 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11732};
11733
Hai Shalom81f62d82019-07-22 12:10:00 -070011734/**
11735 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11736 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
11737 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11738 *
11739 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11740 * to request the driver to start reporting Beacon frames.
11741 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
11742 * request the driver to stop reporting Beacon frames.
11743 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11744 * userspace to report received Beacon frames.
11745 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11746 * to indicate that the driver is going to pause reporting Beacon frames.
11747 */
11748enum qca_wlan_vendor_beacon_reporting_op_types {
11749 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11750 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11751 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11752 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11753};
11754
11755/**
11756 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
11757 * of reasons for which the driver is pausing reporting Beacon frames. Will be
11758 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11759 *
11760 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11761 * reasons.
11762 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11763 * driver/firmware is starting a scan.
11764 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11765 * driver/firmware disconnects from the ESS and indicates the disconnection to
11766 * userspace (non-seamless roaming case). This reason code will be used by the
11767 * driver/firmware to indicate stopping of beacon report events. Userspace will
11768 * need to start beacon reporting again (if desired) by sending vendor command
11769 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11770 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11771 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11772 * completed.
11773 */
11774enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11775 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11776 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11777 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11778};
11779
11780/*
11781 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11782 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11783 */
11784enum qca_wlan_vendor_attr_beacon_reporting_params {
11785 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11786 /* Specifies the type of operation that the vendor command/event is
11787 * intended for. Possible values for this attribute are defined in
11788 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11789 */
11790 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11791 /* Optionally set by userspace to request the driver to report Beacon
11792 * frames using asynchronous vendor events when the
11793 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11794 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11795 * If this flag is not set, the driver will only update Beacon frames in
11796 * cfg80211 scan cache but not send any vendor events.
11797 */
11798 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11799 /* Optionally used by userspace to request the driver/firmware to report
11800 * Beacon frames periodically when the
11801 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11802 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11803 * u32 attribute, indicates the period of Beacon frames to be reported
11804 * and in the units of beacon interval.
11805 * If this attribute is missing in the command, then the default value
11806 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11807 * Zero is an invalid value.
11808 * If a valid value is received for this attribute, the driver will
11809 * update the cfg80211 scan cache periodically as per the value received
11810 * in this attribute in addition to updating the cfg80211 scan cache
11811 * when there is significant change in Beacon frame IEs.
11812 */
11813 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11814 /* Used by the driver to encapsulate the SSID when the
11815 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11816 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11817 * u8 array with a maximum size of 32.
11818 *
11819 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11820 * will be taken from the SSID element of the received Beacon frame.
11821 *
11822 * When generating beacon report from Multiple BSSID Beacon frame and if
11823 * the BSSID of the current connected BSS matches the BSSID of the
11824 * transmitting BSS, the SSID will be taken from the SSID element of the
11825 * received Beacon frame.
11826 *
11827 * When generating beacon report from Multiple BSSID Beacon frame and if
11828 * the BSSID of the current connected BSS matches the BSSID of one of
11829 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
11830 * included in the nontransmitted BSS profile whose derived BSSID is
11831 * same as the BSSID of the current connected BSS. When there is no
11832 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11833 * of current connected* BSS, this attribute will not be present.
11834 */
11835 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11836 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
11837 * currently connected to when the
11838 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11839 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11840 * fixed size of 6 bytes.
11841 *
11842 * When generating beacon report from a Multiple BSSID beacon and the
11843 * current connected BSSID matches one of the nontransmitted BSSIDs in a
11844 * Multiple BSSID set, this BSSID will be that particular nontransmitted
11845 * BSSID and not the transmitted BSSID (i.e., the transmitting address
11846 * of the Beacon frame).
11847 */
11848 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11849 /* Used by the driver to encapsulate the frequency in MHz on which
11850 * the Beacon frame was received when the
11851 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11852 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11853 * u32 attribute.
11854 */
11855 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11856 /* Used by the driver to encapsulate the Beacon interval
11857 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11858 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11859 * u16 attribute. The value will be copied from the Beacon frame and the
11860 * units are TUs.
11861 */
11862 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11863 /* Used by the driver to encapsulate the Timestamp field from the Beacon
11864 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
11865 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11866 * u64 attribute.
11867 */
11868 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11869 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11870 * Beacon frame is received in the driver when the
11871 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11872 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11873 * the units of nanoseconds. This value is expected to have accuracy of
11874 * about 10 ms.
11875 */
11876 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11877 /* Used by the driver to encapsulate the IEs of the Beacon frame from
11878 * which this event is generated when the
11879 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11880 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11881 */
11882 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11883 /* Used by the driver to specify the reason for the driver/firmware to
11884 * pause sending beacons to userspace when the
11885 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11886 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11887 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11888 * attribute.
11889 */
11890 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11891 /* Used by the driver to specify whether the driver will automatically
11892 * resume reporting beacon events to userspace later (for example after
11893 * the ongoing off-channel activity is completed etc.) when the
11894 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11895 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11896 */
11897 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11898 /* Optionally set by userspace to request the driver not to resume
11899 * beacon reporting after a pause is completed, when the
11900 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11901 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11902 * If this flag is set, the driver will not resume beacon reporting
11903 * after any pause in beacon reporting is completed. Userspace has to
11904 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11905 * to initiate beacon reporting again. If this flag is set in the recent
11906 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11907 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11908 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11909 * set by the driver. Setting this flag until and unless there is a
11910 * specific need is not recommended as there is a chance of some beacons
11911 * received after pause command and next start command being not
11912 * reported.
11913 */
11914 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070011915 /* Attribute used for padding for 64-bit alignment */
11916 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070011917
11918 /* Keep last */
11919 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11920 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11921 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11922};
11923
11924/**
11925 * enum qca_vendor_interop_issues_ap_type - Interop issue types
11926 * This enum defines the valid set of values of interop issue types. These
11927 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
11928 *
11929 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
11930 * when the STA's Qpower feature is enabled.
11931 */
11932enum qca_vendor_interop_issues_ap_type {
11933 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
11934 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
11935};
11936
11937/**
11938 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
11939 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
11940 *
11941 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
11942 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
11943 * 32-bit unsigned value. The values defined in enum
11944 * qca_vendor_interop_issues_ap_type are used.
11945 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
11946 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
11947 * It is present and mandatory for the command but is not used for the event
11948 * since only a single BSSID is reported in an event.
11949 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
11950 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
11951 * attribute in command case and without such encapsulation in the event case.
11952 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
11953 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
11954 */
11955enum qca_vendor_attr_interop_issues_ap {
11956 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
11957 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
11958 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
11959 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
11960 /* keep last */
11961 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
11962 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
11963 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
11964};
11965
Hai Shalomc3565922019-10-28 11:58:20 -070011966/**
11967 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11968 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11969 *
11970 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11971 * a virtual device.
11972 *
11973 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11974 * a physical device.
11975 */
11976enum qca_vendor_oem_device_type {
11977 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11978 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11979};
11980
11981/**
11982 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
11983 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11984 *
Hai Shalom899fcc72020-10-19 14:38:18 -070011985 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11986 * used to set/query the data to/from the firmware. On query, the same
11987 * attribute is used to carry the respective data in the reply sent by the
11988 * driver to userspace. The request to set/query the data and the format of the
11989 * respective data from the firmware are embedded in the attribute. The
11990 * maximum size of the attribute payload is 1024 bytes.
11991 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11992 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070011993 *
11994 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11995 * based on this field. This optional attribute is included to specify whether
11996 * the device type is a virtual device or a physical device for the
11997 * command/event. This attribute can be omitted for a virtual device (default)
11998 * command/event.
11999 * This u8 attribute is used to carry information for the device type using
12000 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070012001 *
12002 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
12003 * is set when the userspace queries data from the firmware. This attribute
12004 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012005 */
12006enum qca_wlan_vendor_attr_oem_data_params {
12007 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
12008 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
12009 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070012010 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070012011
12012 /* keep last */
12013 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
12014 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
12015 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
12016};
12017
12018/**
12019 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
12020 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
12021 *
12022 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
12023 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012024 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
12025 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
12026 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070012027 *
12028 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
12029 * Starting center frequency in MHz.
12030 *
12031 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
12032 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012033 *
12034 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
12035 * s32 attribute, optional. It is a per frequency range attribute.
12036 * The maximum TX power limit from user space is to be applied on an
12037 * unrestricted interface for corresponding frequency range. It is also
12038 * possible that the actual TX power may be even lower than this cap due to
12039 * other considerations such as regulatory compliance, SAR, etc. In absence of
12040 * this attribute the driver shall follow current behavior which means
12041 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
12042 * power derived by the driver based on regulatory/SAR during interface up.
12043 *
12044 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
12045 * u32 attribute, optional. Indicates all the interface types which are
12046 * restricted for all frequency ranges provided in
12047 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
12048 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
12049 * This attribute encapsulates bitmasks of interface types defined in
12050 * enum nl80211_iftype. If an interface is marked as restricted the driver must
12051 * move to a safe channel and if no safe channel is available the driver shall
12052 * terminate that interface functionality. In absence of this attribute,
12053 * interface (SAP/P2P) can still continue operating on an unsafe channel with
12054 * TX power limit derived from either
12055 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
12056 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
12057 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070012058 */
12059enum qca_wlan_vendor_attr_avoid_frequency_ext {
12060 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
12061 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
12062 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
12063 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012064 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
12065 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070012066
12067 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
12068 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
12069 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
12070};
12071
12072/*
12073 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
12074 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
12075 */
12076enum qca_wlan_vendor_attr_add_sta_node_params {
12077 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
12078 /* 6 byte MAC address of STA */
12079 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
12080 /* Authentication algorithm used by the station of size u16;
12081 * defined in enum nl80211_auth_type.
12082 */
12083 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
12084
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012085 /*
12086 * This flag attribute is set if the node being added is an
12087 * MLD STA node.
12088 */
12089 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
12090
Hai Shalomc3565922019-10-28 11:58:20 -070012091 /* keep last */
12092 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12093 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12094 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12095};
12096
12097/**
12098 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12099 * This enum defines the valid set of values of BT coex chain mode.
12100 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12101 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12102 *
Sunil Ravi89eba102022-09-13 21:04:37 -070012103 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12104 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12105 * separated, hybrid mode.
12106 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12107 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070012108 */
12109enum qca_btc_chain_mode {
12110 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070012111 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12112 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070012113};
12114
Sunil Ravi89eba102022-09-13 21:04:37 -070012115/* deprecated legacy name */
12116#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12117
Hai Shalomc3565922019-10-28 11:58:20 -070012118/**
12119 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12120 * chain mode.
12121 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12122 *
12123 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12124 * Indicates the BT coex chain mode, are 32-bit values from
12125 * enum qca_btc_chain_mode. This attribute is mandatory.
12126 *
12127 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12128 * If set, vdev should be restarted when BT coex chain mode is updated.
12129 * This attribute is optional.
12130 */
12131enum qca_vendor_attr_btc_chain_mode {
12132 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12133 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12134 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12135
12136 /* Keep last */
12137 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12138 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12139 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12140};
12141
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012142/**
12143 * enum qca_vendor_wlan_sta_flags - Station feature flags
12144 * Bits will be set to 1 if the corresponding features are enabled.
12145 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12146 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12147 for the station
12148 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12149 for the station
12150 */
12151enum qca_vendor_wlan_sta_flags {
12152 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12153 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12154 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12155};
12156
12157/**
12158 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12159 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12160 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12161 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12162 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12163 */
12164enum qca_vendor_wlan_sta_guard_interval {
12165 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12166 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12167 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12168 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12169};
12170
12171/**
12172 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12173 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12174 *
12175 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070012176 * Required attribute in request for AP mode only, 6-byte MAC address,
12177 * corresponding to the station's MAC address for which information is
12178 * requested. For STA mode this is not required as the info always correspond
12179 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012180 *
12181 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12182 * Optionally used in response, u32 attribute, contains a bitmap of different
12183 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12184 *
12185 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12186 * Optionally used in response, u32 attribute, possible values are defined in
12187 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12188 * Guard interval used by the station.
12189 *
12190 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12191 * Optionally used in response, u32 attribute, used in AP mode only.
12192 * Value indicates the number of data frames received from station with retry
12193 * bit set to 1 in FC.
12194 *
12195 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12196 * Optionally used in response, u32 attribute, used in AP mode only.
12197 * Counter for number of data frames with broadcast or multicast address in
12198 * the destination address received from the station.
12199 *
12200 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12201 * Optionally used in response, u32 attribute, used in both STA and AP modes.
12202 * Value indicates the number of data frames successfully transmitted only
12203 * after retrying the packets and for which the TX status has been updated
12204 * back to host from target.
12205 *
12206 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012207 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012208 * Value indicates the number of data frames not transmitted successfully even
12209 * after retrying the packets for the number of times equal to the total number
12210 * of retries allowed for that packet and for which the TX status has been
12211 * updated back to host from target.
12212 *
12213 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12214 * Optionally used in response, u32 attribute, used in AP mode only.
12215 * Counter in the target for the number of data frames successfully transmitted
12216 * to the station.
12217 *
12218 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12219 * Optionally used in response, u32 attribute, used in AP mode only.
12220 * Value indicates the number of data frames successfully transmitted only
12221 * after retrying the packets.
12222 *
12223 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012224 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012225 * Value indicates the number of data frames not transmitted successfully even
12226 * after retrying the packets for the number of times equal to the total number
12227 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070012228 *
12229 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12230 * the STA mode only. Represent the number of probe requests sent by the STA
12231 * while attempting to roam on missing certain number of beacons from the
12232 * connected AP. If queried in the disconnected state, this represents the
12233 * count for the last connected state.
12234 *
12235 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12236 * the STA mode. Represent the number of probe responses received by the station
12237 * while attempting to roam on missing certain number of beacons from the
12238 * connected AP. When queried in the disconnected state, this represents the
12239 * count when in last connected state.
12240 *
12241 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12242 * STA mode only. Represents the total number of frames sent out by STA
12243 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12244 * only for the connect session. Represents the count of last connected session,
12245 * when queried in the disconnected state.
12246 *
12247 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12248 * Total number of RTS sent out by the STA. This data is maintained per connect
12249 * session. Represents the count of last connected session, when queried in the
12250 * disconnected state.
12251 *
12252 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12253 * STA mode.Represent the number of RTS transmission failure that reach retry
12254 * limit. This data is maintained per connect session. Represents the count of
12255 * last connected session, when queried in the disconnected state.
12256 *
12257 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12258 * the STA mode. Represent the total number of non aggregated frames transmitted
12259 * by the STA. This data is maintained per connect session. Represents the count
12260 * of last connected session, when queried in the disconnected state.
12261 *
12262 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12263 * STA mode. Represent the total number of aggregated frames transmitted by the
12264 * STA. This data is maintained per connect session. Represents the count of
12265 * last connected session, when queried in the disconnected state.
12266 *
12267 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12268 * the STA mode. Represents the number of received frames with a good PLCP. This
12269 * data is maintained per connect session. Represents the count of last
12270 * connected session, when queried in the disconnected state.
12271 *
12272 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12273 * used in the STA mode. Represents the number of occasions that no valid
12274 * delimiter is detected by A-MPDU parser. This data is maintained per connect
12275 * session. Represents the count of last connected session, when queried in the
12276 * disconnected state.
12277 *
12278 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12279 * STA mode. Represents the number of frames for which CRC check failed in the
12280 * MAC. This data is maintained per connect session. Represents the count of
12281 * last connected session, when queried in the disconnected state.
12282 *
12283 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12284 * STA mode. Represents the number of unicast ACKs received with good FCS. This
12285 * data is maintained per connect session. Represents the count of last
12286 * connected session, when queried in the disconnected state.
12287 *
12288 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12289 * mode. Represents the number of received Block Acks. This data is maintained
12290 * per connect session. Represents the count of last connected session, when
12291 * queried in the disconnected state.
12292 *
12293 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12294 * mode. Represents the number of beacons received from the connected BSS. This
12295 * data is maintained per connect session. Represents the count of last
12296 * connected session, when queried in the disconnected state.
12297 *
12298 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12299 * STA mode. Represents the number of beacons received by the other BSS when in
12300 * connected state (through the probes done by the STA). This data is maintained
12301 * per connect session. Represents the count of last connected session, when
12302 * queried in the disconnected state.
12303 *
12304 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12305 * the STA mode. Represents the number of received DATA frames with good FCS and
12306 * matching Receiver Address when in connected state. This data is maintained
12307 * per connect session. Represents the count of last connected session, when
12308 * queried in the disconnected state.
12309 *
12310 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
12311 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
12312 * when in the connected state. This data is maintained per connect session.
12313 * Represents the count of last connected session, when queried in the
12314 * disconnected state.
12315 *
12316 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
12317 * STA mode. This represents the target power in dBm for the transmissions done
12318 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
12319 * connect session. Represents the count of last connected session, when
12320 * queried in the disconnected state.
12321 *
12322 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
12323 * STA mode. This represents the Target power in dBm for transmissions done to
12324 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12325 * session. Represents the count of last connected session, when queried in the
12326 * disconnected state.
12327 *
12328 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
12329 * STA mode. This represents the Target power in dBm for transmissions done to
12330 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
12331 * Represents the count of last connected session, when queried in the
12332 * disconnected state.
12333 *
12334 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
12335 * STA mode. This represents the Target power in dBm for transmissions done to
12336 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12337 * session. Represents the count of last connected session, when queried in
12338 * the disconnected state.
12339 *
12340 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012341 * STA mode. This represents the Target power in dBm for transmissions done
Hai Shalomfdcde762020-04-02 11:19:20 -070012342 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
12343 * Represents the count of last connected session, when queried in the
12344 * disconnected state.
12345 *
12346 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
12347 * in the STA mode. This represents the Nested attribute representing the
12348 * overflow counts of each receive buffer allocated to the hardware during the
12349 * STA's connection. The number of hw buffers might vary for each WLAN
12350 * solution and hence this attribute represents the nested array of all such
12351 * HW buffer count. This data is maintained per connect session. Represents
12352 * the count of last connected session, when queried in the disconnected state.
12353 *
12354 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
12355 * allowed as per the regulatory requirements for the current or last connected
12356 * session. Used in the STA mode.
12357 *
12358 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
12359 * (dBm) used by the station in its latest unicast frame while communicating
12360 * to the AP in the connected state. When queried in the disconnected state,
12361 * this represents the TX power used by the STA with last AP communication
12362 * when in connected state.
12363 *
12364 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
12365 * level used to adjust the RX sensitivity. Represents the current ANI level
12366 * when queried in the connected state. When queried in the disconnected
12367 * state, this corresponds to the latest ANI level at the instance of
12368 * disconnection.
12369 *
12370 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
12371 * the raw information elements from Beacon frames. Represents the Beacon frames
12372 * of the current BSS in the connected state. When queried in the disconnected
12373 * state, these IEs correspond to the last connected BSSID.
12374 *
12375 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
12376 * containing the raw information elements from Probe Response frames.
12377 * Represents the Probe Response frames of the current BSS in the connected
12378 * state. When queried in the disconnected state, these IEs correspond to the
12379 * last connected BSSID.
12380 *
12381 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
12382 * disconnect reason for the last disconnection if the disconnection is
12383 * triggered from the host driver. The values are referred from
12384 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070012385 *
12386 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
12387 * only. This represents the number of group addressed robust management frames
12388 * received from this station with an invalid MIC or a missing MME when PMF is
12389 * enabled.
12390 *
12391 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
12392 * only. This represents the number of group addressed robust management frames
12393 * received from this station with the packet number less than or equal to the
12394 * last received packet number when PMF is enabled.
12395 *
12396 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
12397 * mode only. This represents the number of Beacon frames received from this
12398 * station with an invalid MIC or a missing MME when beacon protection is
12399 * enabled.
12400 *
12401 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
12402 * only. This represents number of Beacon frames received from this station with
12403 * the packet number less than or equal to the last received packet number when
12404 * beacon protection is enabled.
12405 *
12406 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
12407 * STA mode only. The driver uses this attribute to populate the connection
12408 * failure reason codes and the values are defined in
12409 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
12410 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
12411 * a connection failure indication from the driver. The driver shall not
12412 * include this attribute in response to the
12413 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
12414 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080012415 *
12416 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
12417 * used by the station in its last TX frame while communicating to the AP in the
12418 * connected state. When queried in the disconnected state, this represents the
12419 * rate used by the STA in the last TX frame to the AP when it was connected.
12420 * This attribute is used for STA mode only.
12421 *
12422 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
12423 * This represents the rate index used by the STA for the last TX frame to the
12424 * AP. When queried in the disconnected state, this gives the last RIX used by
12425 * the STA in the last TX frame to the AP when it was connected.
12426 *
12427 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
12428 * mode only. This represents the number of times the STA TSF goes out of sync
12429 * from the AP after the connection. If queried in the disconnected state, this
12430 * gives the count of TSF out of sync for the last connection.
12431 *
12432 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
12433 * mode only. This represents the roam trigger reason for the last roaming
12434 * attempted by the firmware. This can be queried either in connected state or
12435 * disconnected state. Each bit of this attribute represents the different
12436 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
12437 *
12438 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
12439 * only. This represents the roam fail reason for the last failed roaming
12440 * attempt by the firmware. Different roam failure reason codes are specified
12441 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
12442 * connected state or disconnected state.
12443 *
12444 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
12445 * STA mode only. This represents the roam invoke fail reason for the last
12446 * failed roam invoke. Different roam invoke failure reason codes
12447 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
12448 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012449 *
12450 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
12451 * This represents the average congestion duration of uplink frames in MAC
12452 * queue in unit of ms. This can be queried either in connected state or
12453 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070012454 *
12455 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
12456 * values, used in AP mode. This represents the MPDU packet count per MCS
12457 * rate value of TX packets. Every index of this nested attribute corresponds
12458 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
12459 * queried in connected state.
12460 *
12461 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
12462 * values, used in AP mode. This represents the MPDU packet count per MCS
12463 * rate value of RX packets. Every index of this nested attribute corresponds
12464 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
12465 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070012466 *
12467 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
12468 * 64-bit alignment.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012469 */
12470enum qca_wlan_vendor_attr_get_sta_info {
12471 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12472 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12473 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12474 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12475 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12476 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12477 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12478 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12479 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12480 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12481 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070012482 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12483 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12484 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12485 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12486 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12487 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12488 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12489 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12490 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12491 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12492 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12493 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12494 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12495 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12496 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12497 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12498 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12499 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12500 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12501 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12502 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12503 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12504 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12505 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12506 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12507 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
12508 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
12509 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070012510 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12511 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12512 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12513 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12514 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080012515 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12516 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12517 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12518 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12519 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12520 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012521 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070012522 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12523 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070012524 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012525
12526 /* keep last */
12527 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12528 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12529 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12530};
12531
Hai Shalomfdcde762020-04-02 11:19:20 -070012532/**
12533 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
12534 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
12535 *
12536 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
12537 * Used in STA mode. This attribute represents the list of channel center
12538 * frequencies in MHz (u32) the station has learnt during the last connection
12539 * or roaming attempt. This information shall not signify the channels for
12540 * an explicit scan request from the user space. Host drivers can update this
12541 * information to the user space in both connected and disconnected state.
12542 * In the disconnected state this information shall signify the channels
12543 * scanned in the last connection/roam attempt that lead to the disconnection.
12544 */
12545enum qca_wlan_vendor_attr_update_sta_info {
12546 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
12547 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
12548
12549 /* keep last */
12550 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
12551 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
12552 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
12553};
12554
12555/**
12556 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12557 * Used when the driver triggers the STA to disconnect from the AP.
12558 *
12559 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12560 * disconnection with the AP due to unspecified reasons.
12561 *
12562 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12563 * disconnection with the AP due to a roaming failure. This roaming is triggered
12564 * internally (host driver/firmware).
12565 *
12566 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12567 * the AP when the user/external triggered roaming fails.
12568 *
12569 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12570 * by the host driver whenever gateway reachability failure is detected and the
12571 * driver disconnects with AP.
12572 *
12573 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12574 * the AP on a channel switch announcement from it with an unsupported channel.
12575 *
12576 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12577 * with indoor channels disabled and if the STA is connected on one of these
12578 * disabled channels, the host driver disconnected the STA with this reason
12579 * code.
12580 *
12581 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12582 * explicit request from the user to disable the current operating channel.
12583 *
12584 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12585 * the internal host driver/firmware recovery.
12586 *
12587 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12588 * a timeout for the key installations from the user space.
12589 *
12590 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12591 * STA on a band change request from the user space to a different band from the
12592 * current operation channel/band.
12593 *
12594 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12595 * interface down trigger from the user space.
12596 *
12597 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12598 * STA on getting continuous transmission failures for multiple Data frames.
12599 *
12600 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12601 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12602 * represents inactivity from AP on such transmissions.
12603
12604 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12605 * disconnection when SA Query times out (AP does not respond to SA Query).
12606 *
12607 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12608 * STA on missing the beacons continuously from the AP.
12609 *
12610 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12611 * able to move to the channel mentioned by the AP in CSA.
12612 *
12613 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12614 */
12615enum qca_disconnect_reason_codes {
12616 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12617 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12618 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12619 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12620 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12621 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12622 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12623 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12624 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
12625 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
12626 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
12627 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
12628 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
12629 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
12630 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
12631 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
12632 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
12633};
12634
12635/**
12636 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
12637 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
12638 *
12639 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
12640 * This attribute represents the driver specific reason codes (local
12641 * driver/firmware initiated reasons for disconnection) defined
12642 * in enum qca_disconnect_reason_codes.
12643 */
12644enum qca_wlan_vendor_attr_driver_disconnect_reason {
12645 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
12646 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
12647
12648 /* keep last */
12649 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
12650 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
12651 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
12652};
12653
Hai Shalom899fcc72020-10-19 14:38:18 -070012654/**
12655 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
12656 *
12657 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
12658 */
12659enum qca_wlan_tspec_operation {
12660 QCA_WLAN_TSPEC_ADD = 0,
12661 QCA_WLAN_TSPEC_DEL = 1,
12662 QCA_WLAN_TSPEC_GET = 2,
12663};
12664
12665/**
12666 * enum qca_wlan_tspec_direction - Direction in TSPEC
12667 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
12668 *
12669 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
12670 */
12671enum qca_wlan_tspec_direction {
12672 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
12673 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
12674 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
12675 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
12676};
12677
12678/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012679 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
Hai Shalom899fcc72020-10-19 14:38:18 -070012680 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
12681 *
12682 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
12683 */
12684enum qca_wlan_tspec_ack_policy {
12685 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
12686 QCA_WLAN_TSPEC_NO_ACK = 1,
12687 /* Reserved */
12688 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
12689};
12690
12691/**
12692 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
12693 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
12694 *
12695 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
12696 * u8 attribute. Specify the TSPEC operation of this request. Possible values
12697 * are defined in enum qca_wlan_tspec_operation.
12698 * Mandatory attribute for all kinds of config TSPEC requests.
12699 *
12700 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
12701 * u8 attribute. TS ID. Possible values are 0-7.
12702 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
12703 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
12704 *
12705 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
12706 * u8 attribute. Direction of data carried by the TS. Possible values are
12707 * defined in enum qca_wlan_tspec_direction.
12708 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12709 *
12710 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
12711 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
12712 * with the TS. set - enabled, not set - disabled.
12713 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12714 *
12715 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
12716 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
12717 * belonging to this TS. Possible values are 0-7.
12718 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12719 *
12720 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
12721 * u8 attribute. Indicate whether MAC acknowledgements are required for
12722 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
12723 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
12724 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12725 *
12726 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
12727 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
12728 * belonging to this TS.
12729 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12730 *
12731 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
12732 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
12733 * belonging to this TS.
12734 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12735 *
12736 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
12737 * u32 attribute. Specify the minimum interval in microseconds between the
12738 * start of two successive SPs.
12739 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12740 *
12741 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
12742 * u32 attribute. Specify the maximum interval in microseconds between the
12743 * start of two successive SPs.
12744 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12745 *
12746 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
12747 * u32 attribute. Specify the minimum interval in microseconds that can elapse
12748 * without arrival or transfer of an MPDU belonging to the TS before this TS
12749 * is deleted by the MAC entity at the HC.
12750 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12751 *
12752 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
12753 * u32 attribute. Specify the minimum interval in microseconds that can elapse
12754 * without arrival or transfer of an MSDU belonging to the TS before the
12755 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
12756 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
12757 * interval is always less than or equal to the inactivity interval.
12758 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12759 *
12760 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
12761 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
12762 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12763 * bounds of this TSPEC.
12764 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12765 *
12766 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
12767 * u32 attribute. Indicate the average data rate in bps specified at the MAC
12768 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12769 * bounds of this TSPEC.
12770 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12771 *
12772 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
12773 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
12774 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
12775 * the bounds of this TSPEC.
12776 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12777 *
12778 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
12779 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
12780 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
12781 * value of 0 indicates that there are no bursts.
12782 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12783 *
12784 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
12785 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
12786 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
12787 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12788 *
12789 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
12790 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12791 * and above the stated application rates required to transport an MSDU/A-MSDU
12792 * belonging to the TS in this TSPEC.
12793 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12794 */
12795enum qca_wlan_vendor_attr_config_tspec {
12796 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12797 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12798 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12799 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12800 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12801 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12802 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12803 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12804 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12805 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12806 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12807 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12808 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12809 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12810 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12811 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12812 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12813 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12814 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12815
12816 /* keep last */
12817 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12818 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12819 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12820};
12821
12822/**
12823 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12824 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12825 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12826 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12827 * frame
12828 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12829 * Request frame.
12830 */
12831enum qca_wlan_vendor_oci_override_frame_type {
12832 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12833 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12834 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12835 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12836};
12837
12838/**
12839 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12840 * OCI override request. These attributes are used inside nested attribute
12841 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12842 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12843 *
12844 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12845 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12846 * attribute to specify the frame type in which the OCI is to be overridden.
12847 *
12848 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12849 * OCI frequency (in MHz) to override in the specified frame type.
12850 */
12851enum qca_wlan_vendor_attr_oci_override {
12852 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12853 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12854 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12855
12856 /* keep last */
12857 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12858 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12859 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12860};
12861
12862/**
12863 * enum qca_wlan_medium_assess_type - Type of medium assess request
12864 *
12865 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12866 */
12867enum qca_wlan_medium_assess_type {
12868 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12869 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12870};
12871
12872/**
12873 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12874 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12875 *
12876 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12877 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12878 * Specify the type of medium assess request and indicate its type in response.
12879 * Possible values are defined in enum qca_wlan_medium_assess_type.
12880 *
12881 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12882 * u32 attribute. Mandatory in CCA request.
12883 * Specify the assessment period in terms of seconds. Assessment result will be
12884 * sent as the response to the CCA request after the assessment period.
12885 *
12886 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12887 * u32 attribute. Mandatory in response to CCA request.
12888 * Total timer tick count of the assessment cycle.
12889 *
12890 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12891 * u32 attribute. Mandatory in response to CCA request.
12892 * Timer tick count of idle time in the assessment cycle.
12893 *
12894 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12895 * u32 attribute. Mandatory in response to CCA request.
12896 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12897 *
12898 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12899 * u32 attribute. Mandatory in response to CCA request.
12900 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12901 *
12902 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12903 * s32 attribute. Mandatory in response to CCA request.
12904 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12905 *
12906 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12907 * s32 attribute. Mandatory in response to CCA request.
12908 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12909 *
12910 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12911 * u8 attribute. Mandatory in congestion report request.
12912 * 1-enable 0-disable.
12913 *
12914 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12915 * u8 attribute. Mandatory in congestion report enable request and will be
12916 * ignored if present in congestion report disable request. Possible values are
12917 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12918 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12919 * congestion percentage reaches the configured threshold.
12920 *
12921 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12922 * u8 attribute. Optional in congestion report enable request and will be
12923 * ignored if present in congestion report disable request.
12924 * Specify the interval of congestion report event in terms of seconds. Possible
12925 * values are 1-255. Default value 1 will be used if this attribute is omitted
12926 * or using invalid values.
12927 *
12928 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12929 * u8 attribute. Mandatory in congestion report event.
12930 * Indicate the actual congestion percentage. Possible values are 0-100.
12931 */
12932enum qca_wlan_vendor_attr_medium_assess {
12933 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12934 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12935
12936 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12937 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12938 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12939 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12940 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12941 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12942 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12943
12944 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12945 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12946 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12947 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12948
12949 /* keep last */
12950 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12951 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12952 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12953};
12954
12955/**
12956 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12957 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12958 *
12959 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12960 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12961 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12962 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012963 *
12964 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12965 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
12966 *
12967 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12968 * u8 attribute, required. Indicates group id of Tx VDEV.
12969 *
12970 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12971 * Nested attribute. This attribute shall be used by the driver to send
12972 * group information. The attributes defined in enum
12973 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12974 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070012975 */
12976enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12977 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12978 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012979 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12980 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12981 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070012982
12983 /* keep last */
12984 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12985 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12986 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12987};
12988
12989/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080012990 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12991 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12992 *
12993 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12994 * u32 attribute, required. Contains interface index.
12995 *
12996 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12997 * u8 attribute, required. 0 - means vdev is in down state.
12998 * 1 - means vdev is in up state.
12999 */
13000enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
13001 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
13002 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
13003 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
13004
13005 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
13006 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
13007 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
13008};
13009
13010/**
13011 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
13012 *
13013 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
13014 * STA interface has to be given while selecting the connection policies
13015 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
13016 * An interface is set as primary through the attribute
13017 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
13018 * applicable if the primary interface has not been set earlier.
13019 *
13020 * The intention is not to downgrade the primary STA performance, such as:
13021 * - Do not reduce the number of TX/RX chains of primary connection.
13022 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
13023 * chains.
13024 * - If using MCC, should set the MCC duty cycle of the primary connection to
13025 * be higher than the secondary connection.
13026 *
13027 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
13028 * subsequent STA connection shall be chosen to balance with the existing
13029 * concurrent STA's performance.
13030 * Such as
13031 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
13032 * capability.
13033 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
13034 * to the secondary.
13035 * - Prefer BSSID candidates which will help provide the best "overall"
13036 * performance for all the STA connections.
13037 */
13038enum qca_wlan_concurrent_sta_policy_config {
13039 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
13040 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
13041};
13042
13043/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013044 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080013045 *
Sunil8cd6f4d2022-06-28 18:40:46 +000013046 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
13047 * interface.
13048 *
13049 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
13050 * to meet gaming audio latency requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013051 * This policy is used only when the driver advertises support for
13052 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +000013053 *
13054 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
13055 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013056 * This policy is used only when the driver advertises support for
13057 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013058 *
13059 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
13060 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000013061 */
13062enum qca_wlan_concurrent_ap_policy_config {
13063 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
13064 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
13065 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013066 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000013067};
13068
13069/**
13070 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
13071 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
13072 *
13073 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080013074 * u8 attribute. Configures the concurrent STA policy configuration.
13075 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000013076
13077 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
13078 * u8 attribute. Configures the concurrent AP policy configuration.
13079 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013080 */
Sunil8cd6f4d2022-06-28 18:40:46 +000013081enum qca_wlan_vendor_attr_concurrent_policy {
13082 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
13083 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
13084 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013085
13086 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000013087 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
13088 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
13089 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013090
13091};
13092
Sunil8cd6f4d2022-06-28 18:40:46 +000013093/* Compatibility defines for previously used enum
13094 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
13095 * in any new implementation.
13096 */
13097#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
13098 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
13099#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
13100 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
13101#define qca_wlan_vendor_attr_concurrent_sta_policy \
13102 qca_wlan_vendor_attr_concurrent_policy
13103
Hai Shaloma20dcd72022-02-04 13:43:00 -080013104/**
Hai Shalom899fcc72020-10-19 14:38:18 -070013105 * enum qca_sta_connect_fail_reason_codes - Defines values carried
13106 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
13107 * attribute.
13108 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
13109 * for unicast Probe Request frame.
13110 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
13111 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
13112 * auth request.
13113 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
13114 * received from AP.
13115 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
13116 * Association Request frame.
13117 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
13118 * Association Request frame.
13119 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
13120 * frame is not received from AP.
13121 */
13122enum qca_sta_connect_fail_reason_codes {
13123 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
13124 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
13125 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
13126 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
13127 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
13128 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
13129 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
13130};
13131
Hai Shaloma20dcd72022-02-04 13:43:00 -080013132/**
13133 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
13134 * filters defined in this enum are used in attribute
13135 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
13136 *
13137 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
13138 * shall filter the channels which are not usable because of coexistence with
13139 * cellular radio.
13140 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
13141 * shall filter the channels which are not usable because of existing active
13142 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13143 *
13144 */
13145enum qca_wlan_vendor_usable_channels_filter {
13146 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13147 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13148};
13149
13150/**
13151 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13152 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13153 *
13154 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13155 * u32 attribute, required. Indicates the center frequency of the primary
13156 * channel in MHz.
13157 *
13158 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13159 * u32 attribute. Indicates the center frequency of the primary segment of the
13160 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13161 * 160 MHz, and 320 MHz channels.
13162 *
13163 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13164 * u32 attribute. Indicates the center frequency of the secondary segment of
13165 * 80+80 channel in MHz. This attribute is required only when
13166 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13167 *
13168 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13169 * u32 attribute, required. Indicates the bandwidth of the channel, possible
13170 * values are defined in enum nl80211_chan_width.
13171 *
13172 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13173 * u32 attribute, required. Indicates all the interface types for which this
13174 * channel is usable. This attribute encapsulates bitmasks of interface types
13175 * defined in enum nl80211_iftype.
13176 *
13177 */
13178enum qca_wlan_vendor_attr_chan_info {
13179 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13180 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13181 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13182 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13183 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13184 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13185
13186 /* keep last */
13187 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13188 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13189 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13190};
13191
13192/**
13193 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13194 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13195 *
13196 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13197 * u32 attribute. Indicates the bands from which the channels should be reported
13198 * in response. This attribute encapsulates bit masks of bands defined in enum
13199 * nl80211_band. Optional attribute, if not present in the request the driver
13200 * shall return channels from all supported bands.
13201 *
13202 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13203 * u32 attribute. Indicates all the interface types for which the usable
13204 * channels information is requested. This attribute encapsulates bitmasks of
13205 * interface types defined in enum nl80211_iftype. Optional attribute, if not
13206 * present in the request the driver shall send information of all supported
13207 * interface modes.
13208 *
13209 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13210 * u32 attribute. This attribute carries information of all filters that shall
13211 * be applied while populating usable channels information by the driver. This
13212 * attribute carries bit masks of different filters defined in enum
13213 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13214 * in the request the driver shall send information of channels without applying
13215 * any of the filters that can be configured through this attribute.
13216 *
13217 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13218 * Nested attribute. This attribute shall be used by the driver to send
13219 * usability information of each channel. The attributes defined in enum
13220 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13221 */
13222enum qca_wlan_vendor_attr_usable_channels {
13223 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13224 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13225 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13226 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13227 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13228
13229 /* keep last */
13230 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13231 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13232 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13233};
13234
13235/**
13236 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13237 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13238 *
13239 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13240 * the list of radar history entries.
13241 * Each entry contains freq, timestamp, and radar signal detect flag.
13242 * The driver shall add an entry when CAC has finished, or radar signal
13243 * has been detected post AP beaconing. The driver shall maintain at least
13244 * 8 entries in order to save CAC result for a 160 MHz channel.
13245 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13246 * Channel frequency in MHz.
13247 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13248 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13249 * or radar detection.
13250 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13251 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013252 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
13253 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013254 */
13255enum qca_wlan_vendor_attr_radar_history {
13256 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13257
13258 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13259 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13260 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13261 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070013262 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013263
13264 /* keep last */
13265 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13266 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13267 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13268};
13269
13270/**
13271 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13272 *
13273 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13274 * target exited MCC state and cleared the quota information. In the
13275 * command it clears MCC quota setting and restores adaptive scheduling.
13276 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13277 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070013278 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013279 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13280 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070013281 * This quota type is only present in event.
13282 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13283 * by the target for low latency.
13284 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013285 */
13286enum qca_wlan_vendor_mcc_quota_type {
13287 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13288 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13289 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070013290 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013291};
13292
13293/**
13294 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
13295 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
13296 * quota information or as a command to set the required MCC quota for an
13297 * interface.
13298 *
13299 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
13300 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
13301 * In a command this specifies the MCC quota type to be set for the interface.
13302 * In an event this provides the current quota type in force.
13303 * This is required in a command and an event.
13304 *
13305 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
13306 * the list of channel quota entries.
13307 * In an event each entry contains the frequency and respective time quota for
13308 * all the MCC interfaces.
13309 * In a command it specifies the interface index and respective time quota.
13310 * In a command only one entry (ifindex, quota pair) may be specified.
13311 *
13312 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
13313 * Channel frequency in MHz. This is present only in an event.
13314 *
13315 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
13316 * Channel time quota expressed as percentage.
13317 * This is present in an event and a command.
13318 * In an command, the user shall specify the quota to be allocated for the
13319 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
13320 * In an event this provides the existing quota for the channel.
13321 *
13322 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
13323 * Specifies the interface index (netdev) for which the corresponding
13324 * configurations are applied. This is required in a command only. Only one
13325 * interface index may be specified. If not specified, the configuration is
13326 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013327 *
13328 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
13329 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
13330 * low latency mode. The firmware will do optimization for low
13331 * latency in Multi-Channel concurrency state if enabled. And all existing
13332 * user quota setting will be overwritten by the target.
13333 * 0 - disable(default), 1 - enable.
13334 * It is only present in a command with quota type of
13335 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013336 */
13337enum qca_wlan_vendor_attr_mcc_quota {
13338 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
13339 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
13340 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
13341 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
13342 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
13343 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070013344 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013345
13346 /* keep last */
13347 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
13348 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
13349 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
13350};
13351
13352/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013353 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
13354 * are used by the attribute
13355 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
13356 *
13357 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
13358 * invoke roam.
13359 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
13360 * detection failed when the roam trigger.
13361 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
13362 */
13363
13364enum qca_wlan_roam_stats_invoke_reason {
13365 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
13366 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
13367 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
13368};
13369
13370/**
13371 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
13372 * values are used by the attribute
13373 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
13374 *
13375 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
13376 * roam by kickout.
13377 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
13378 * trigger by kickout.
13379 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
13380 * roam trigger by kickout.
13381 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
13382 * roam trigger by kickout.
13383 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
13384 * disappeared, and all TX is failing when roam trigger by kickout.
13385 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
13386 * timeout when roam trigger by kickout.
13387 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
13388 * peer has roamed to a repeater.
13389 */
13390enum qca_wlan_roam_stats_tx_failures_reason {
13391 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
13392 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
13393 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
13394 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
13395 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
13396 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
13397 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
13398};
13399
13400/**
13401 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
13402 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
13403 *
13404 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
13405 * detailed reason for roam scan being aborted.
13406 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
13407 * started due to high data RSSI during LOW-RSSI roaming.
13408 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
13409 * started due to good link speed during LOW-RSSI roaming.
13410 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
13411 * due to high data RSSI during background roaming.
13412 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
13413 * started due to high beacon RSSI during background roaming
13414 */
13415enum qca_wlan_roam_stats_abort_reason {
13416 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
13417 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
13418 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
13419 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
13420 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
13421};
13422
13423/**
Sunil Ravi036cec52023-03-29 11:35:17 -070013424 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
13425 * These values are used by the attribute
13426 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
13427 *
13428 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
13429 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
13430 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
13431 * This is generally used in BTM events to indicate BTM frame exchange logs.
13432 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
13433 * from 2.4 GHz to 5 GHz or 6 GHz
13434 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
13435 * 5 GHz to 6 GHz
13436 */
13437enum qca_wlan_roam_stats_scan_type {
13438 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
13439 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
13440 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
13441 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
13442 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
13443};
13444
13445/**
13446 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
13447 * These values are used by the attribute
13448 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
13449 *
13450 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
13451 * detailed roam scan type.
13452 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
13453 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
13454 */
13455enum qca_wlan_roam_stats_scan_dwell_type {
13456 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
13457 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
13458 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
13459};
13460
13461/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013462 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
13463 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
13464 */
13465enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
13466 /* 32-bit unsigned value to indicate center frequency of the primary
13467 * channel in MHz for each roam scan channel.
13468 */
13469 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13470 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070013471 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013472 */
13473 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13474 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
13475 * for each roam scan channel.
13476 */
13477 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13478
13479 /* keep last */
13480 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13481 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13482 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13483};
13484
13485/**
13486 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13487 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13488 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013489 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
13490 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013491 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13492 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13493 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13494 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13495 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13496 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013497 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
13498 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013499 */
13500enum qca_wlan_roam_stats_frame_subtype {
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013501 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
13502 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013503 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13504 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13505 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13506 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13507 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13508 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013509 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
13510 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013511};
13512
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013513/* Compatibility defines for previously used names.
13514 * These values should not be used in any new implementation.
13515 */
13516#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
13517 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
13518#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
13519 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
13520
Sunil Ravi77d572f2023-01-17 23:58:31 +000013521/**
13522 * enum roam_frame_status - Specifies the valid values the vendor roam frame
13523 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13524 *
13525 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13526 * sent or received successfully.
13527 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13528 * receiving failed.
13529 */
13530enum qca_wlan_roam_stats_frame_status {
13531 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13532 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13533};
13534
13535/**
13536 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13537 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13538 */
13539enum qca_wlan_vendor_attr_roam_stats_frame_info {
13540 /* 8-bit unsigned value to indicate the frame subtype during
13541 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13542 */
13543 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13544 /* 8-bit unsigned value to indicate the frame is successful or failed
13545 * during roaming, one of the values in
13546 * qca_wlan_roam_stats_frame_status.
13547 */
13548 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13549 /* 64-bit unsigned value to indicate the timestamp for frame of
13550 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13551 * when sent or received during roaming, timestamp in milliseconds
13552 * from system boot.
13553 */
13554 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070013555 /* Attribute used for padding for 64-bit alignment */
13556 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013557 /* This attribute indicates a 6-byte MAC address representing
13558 * the BSSID of the AP.
13559 * For non-MLO scenario, it indicates the AP BSSID.
13560 * For MLO scenario, it indicates the AP BSSID which may be the primary
13561 * link BSSID or a nonprimary link BSSID.
13562 */
13563 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013564
13565 /* keep last */
13566 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13567 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13568 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13569};
13570
13571/**
13572 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13573 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13574 */
13575enum qca_wlan_vendor_attr_roam_stats_info {
13576 /* 64-bit unsigned value to indicate the timestamp when roam was
13577 * triggered by the firmware, timestamp in milliseconds from system
13578 * boot.
13579 */
13580 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13581 /* 32-bit unsigned value to indicate the roam trigger reason for the
13582 * last roaming attempted by the firmware. This can be queried either
13583 * in a connected state or disconnected state. The values of this
13584 * attribute represent the roam trigger reason codes, which
13585 * are defined in enum qca_roam_reason.
13586 */
13587 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13588 /* 8-bit unsigned value to indicate percentage of packets for which
13589 * the RX rate is lower than the RX rate threshold in total RX packets,
13590 * used for roaming trigger by per.
13591 */
13592 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13593 /* 8-bit unsigned value to indicate percentage of packets for which
13594 * the TX rate is lower than TX rate threshold in total TX packets,
13595 * used for roaming trigger by per.
13596 */
13597 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13598 /* 32-bit unsigned value to indicate final beacon miss count for
13599 * trigger reason of beacon miss.
13600 */
13601 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13602 /* 32-bit unsigned value to indicate consecutive beacon miss count
13603 * for trigger reason of beacon miss.
13604 */
13605 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13606 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13607 * reason of beacon miss, 0 - success, 1 - fail.
13608 * If QOS-NULL TX status is successful, beacon miss final count and
13609 * consecutive beacon miss count will be reset to zero, and roam will
13610 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13611 * count and consecutive beacon miss count continue to calculate until
13612 * roaming trigger by beacon miss.
13613 */
13614 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070013615 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013616 * for trigger reason of poor RSSI.
13617 */
13618 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070013619 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013620 * for trigger reason of poor RSSI.
13621 */
13622 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13623 /* 8-bit unsigned value to indicate RX link speed status
13624 * for trigger reason of poor RSSI, 0 - good link speed,
13625 * 1 - bad link speed.
13626 */
13627 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070013628 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013629 * for trigger reason of better RSSI.
13630 */
13631 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070013632 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013633 * for trigger reason of better RSSI.
13634 */
13635 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
13636 /* 32-bit unsigned value to indicate RX throughput in bytes per second
13637 * for trigger reason of congestion.
13638 */
13639 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
13640 /* 32-bit unsigned value to indicate TX throughput in bytes per second
13641 * for trigger reason of congestion.
13642 */
13643 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
13644 /* 8-bit unsigned value to indicate roamable AP count
13645 * for trigger reason of congestion.
13646 */
13647 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
13648 /* 8-bit unsigned value to indicate invoke reason, one of the values
13649 * defined in qca_wlan_roam_stats_invoke_reason.
13650 */
13651 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
13652 /* 8-bit unsigned value to indicate request mode for trigger reason
13653 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
13654 */
13655 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
13656 /* 32-bit unsigned value to indicate disassociate time in milliseconds
13657 * for trigger reason of BTM.
13658 */
13659 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
13660 /* 32-bit unsigned value to indicate preferred candidate list valid
13661 * interval in milliseconds for trigger reason of BTM.
13662 */
13663 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
13664 /* 8-bit unsigned value to indicate the number of preferred
13665 * candidates for trigger reason of BTM.
13666 */
13667 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
13668 /* 8-bit unsigned value to indicate response status for trigger
13669 * reason of BTM, values are defined in IEEE Std 802.11-2020,
13670 * Table 9-428 (BTM status code definitions).
13671 */
13672 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
13673 /* 32-bit unsigned value to indicate BSS termination timeout value
13674 * in milliseconds for trigger reason of BTM.
13675 */
13676 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
13677 /* 32-bit unsigned value to indicate MBO associate retry timeout
13678 * value in milliseconds for trigger reason of BTM.
13679 */
13680 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
13681 /* 8-bit unsigned value to indicate dialog token number
13682 * for trigger reason of BTM.
13683 */
13684 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
13685 /* 8-bit unsigned value to indicate percentage of connected AP
13686 * channel congestion utilization for trigger reason of BSS load.
13687 */
13688 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
13689 /* 8-bit unsigned value to indicate disconnection type
13690 * for trigger reason of disconnection. 1 - Deauthentication,
13691 * 2 - Disassociation.
13692 */
13693 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
13694 /* 16-bit unsigned value to indicate deauthentication or disassociation
13695 * reason for trigger reason of disconnection, values are defined
13696 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
13697 */
13698 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
13699 /* 32-bit unsigned value to indicate milliseconds of roam scan
13700 * periodicity when needing to roam to find a better AP for trigger
13701 * reason of periodic timer.
13702 */
13703 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070013704 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000013705 * trigger reason of background scan.
13706 */
13707 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070013708 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000013709 * of background scan.
13710 */
13711 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070013712 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013713 * for trigger reason of background scan.
13714 */
13715 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
13716 /* 32-bit unsigned value to indicate consecutive TX failure threshold
13717 * for trigger reason of TX failures.
13718 */
13719 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
13720 /* 8-bit unsigned value to indicate TX failure reason for trigger
13721 * reason of TX failures, one of the values defined in
13722 * qca_wlan_roam_stats_tx_failures_reason.
13723 */
13724 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
13725 /* 8-bit unsigned value to indicate detail abort reason. One of the
13726 * values in enum qca_wlan_roam_stats_abort_reason.
13727 */
13728 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070013729 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000013730 * roam scan.
13731 */
13732 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070013733 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000013734 * aborting the roam scan.
13735 */
13736 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
13737 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
13738 * speed status when aborting the roam scan.
13739 * 0 - good link speed, 1 - bad link speed
13740 */
13741 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
13742 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070013743 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013744 */
13745 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
13746 /* 8-bit unsigned value to indicate roaming result, used in STA mode
13747 * only.
13748 * 0-Roaming is successful, 1-Roaming is failed
13749 */
13750 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
13751 /* 8-bit unsigned value to indicate the roam fail reason for the
13752 * last failed roaming attempt by the firmware. Different roam failure
13753 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
13754 * This can be queried either in connected state or disconnected state.
13755 */
13756 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
13757 /* Nested attribute. Indicate roam scan info for each channel, the
13758 * attributes defined in enum
13759 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
13760 * this attribute.
13761 */
13762 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
13763 /* 32-bit unsigned value to indicate total scan time during roam scan
13764 * all channels, time in milliseconds.
13765 */
13766 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
13767 /* Nested attribute. This attribute shall be used by the driver to
13768 * send roam information of each subtype. The attributes defined in
13769 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
13770 * this attribute.
13771 */
13772 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070013773 /* Attribute used for padding for 64-bit alignment */
13774 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013775 /* 6-byte MAC address used by the driver to send roam stats information
13776 * of the original AP BSSID. The original AP is the connected AP before
13777 * roam happens, regardless of the roam resulting in success or failure.
13778 * This attribute is only present when
13779 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13780 * 0 (success) or 1 (failure).
13781 * For non-MLO scenario, it indicates the original connected AP BSSID.
13782 * For MLO scenario, it indicates the original BSSID of the link
13783 * for which the reassociation occurred during the roam.
13784 */
13785 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
13786 /* 6-byte MAC address used by the driver to send roam stats information
13787 * of the roam candidate AP BSSID when roam failed. This is only present
13788 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13789 * 1 (failure). If the firmware updates more than one candidate AP BSSID
13790 * to the driver, the driver only fills the last candidate AP BSSID and
13791 * reports it to user space.
13792 * For non-MLO scenario, it indicates the last candidate AP BSSID.
13793 * For MLO scenario, it indicates the AP BSSID which may be the primary
13794 * link BSSID or a nonprimary link BSSID.
13795 */
13796 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
13797 /* 6-byte MAC address used by the driver to send roam stats information
13798 * of the roamed AP BSSID when roam succeeds. This is only present when
13799 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13800 * 0 (success).
13801 * For non-MLO scenario, it indicates the new AP BSSID to which has
13802 * been successfully roamed.
13803 * For MLO scenario, it indicates the new AP BSSID of the link on
13804 * which the reassociation occurred during the roam.
13805 */
13806 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013807
13808 /* keep last */
13809 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
13810 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
13811 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
13812};
13813
13814/**
13815 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
13816 * report cached roam info from the driver to user space, enum values are used
13817 * for netlink attributes sent with the
13818 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
13819 */
13820enum qca_wlan_vendor_attr_roam_cached_stats {
13821 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
13822 /* Nested attribute, this attribute contains nested array roam info
13823 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
13824 */
13825 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
13826
13827 /* keep last */
13828 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
13829 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
13830 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
13831};
13832
13833/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013834 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
13835 * radio configurations present in each radio combination.
13836 *
13837 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
13838 * the band info in the radio configuration. Uses the enum qca_set_band values.
13839 *
13840 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
13841 * the number of antennas info in the radio configuration.
13842 */
13843enum qca_wlan_vendor_attr_supported_radio_cfg {
13844 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
13845 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
13846 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
13847
13848 /* keep last */
13849 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
13850 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
13851 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
13852};
13853
13854/**
13855 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13856 * radio combinations supported by the device.
13857 *
13858 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13859 * provides the radio configurations present in the radio combination.
13860 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13861 * This attribute provides the values for radio combination matrix.
13862 * For standalone config, the number of config values is one and the config
13863 * carries the band and antenna information for standalone configuration. For
13864 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13865 * configuration the number of config values is two and the config carries the
13866 * band and antenna information for each simultaneous radio.
13867 */
13868enum qca_wlan_vendor_attr_radio_combination {
13869 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13870 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13871
13872 /* keep last */
13873 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13874 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13875 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13876};
13877
13878/**
13879 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13880 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13881 *
13882 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13883 * provides the radio combinations supported by the device.
13884 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13885 * For example, in the radio combination matrix for a device which has two
13886 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13887 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13888 * combinations is 5 and the radio combinations are
13889 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13890 * {{5 GHz 2X2}}, //Standalone 5 GHz
13891 * {{6 GHz 2X2}}, //Standalone 6 GHz
13892 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13893 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13894 * The band and antenna info together as nested data provides one radio config.
13895 * Standalone configuration has one config with band and antenna nested data.
13896 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13897 * have two nested band and antenna info data.
13898 */
13899enum qca_wlan_vendor_attr_radio_combination_matrix {
13900 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13901 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13902
13903 /* keep last */
13904 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13905 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13906 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13907};
13908
13909/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013910 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13911 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13912 *
13913 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13914 * Enable mDNS offload. This attribute is mandatory to enable
13915 * mDNS offload feature. If this attribute is not present, mDNS offload
13916 * is disabled.
13917 *
13918 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13919 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13920 * attribute is mandatory when enabling the feature, and not required when
13921 * disabling the feature.
13922 *
13923 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13924 * the following attributes:
13925 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13926 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13927 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13928 *
13929 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13930 * It consists of a hostname and ".local" as the domain name. The character
13931 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13932 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
13933 * supported per vdev.
13934 * For example: myphone.local
13935 *
13936 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13937 * u16 attribute. It specifies the total number of resource records present
13938 * in the answer section of the answer payload. This attribute is needed by the
13939 * firmware to populate the mDNS response frame for mDNS queries without having
13940 * to parse the answer payload.
13941 *
13942 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
13943 * attribute sent by the mdnsResponder from userspace. It contains resource
13944 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
13945 * payload is passed down to the firmware and is transmitted in response to
13946 * mDNS queries.
13947 * The maximum supported size of the answer payload is 512 bytes.
13948 */
13949enum qca_wlan_vendor_attr_mdns_offload {
13950 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13951 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13952 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13953 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13954 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13955 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13956 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13957
13958 /* keep last */
13959 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13960 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13961 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13962};
13963
13964/**
13965 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13966 * Data frame types to be sent over the monitor interface.
13967 */
13968enum qca_wlan_vendor_monitor_data_frame_type {
13969 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13970 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
13971 */
13972 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13973 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13974 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13975 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13976 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13977 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13978 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13979 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13980 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13981 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13982 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13983 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13984 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13985 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13986 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13987 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13988 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13989};
13990
13991/**
13992 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13993 * Management frame types to be sent over the monitor interface.
13994 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
13995 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
13996 * except the Beacon frame.
13997 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13998 * BSSID Beacon frames. Valid only in the connected state.
13999 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14000 * the Beacon frames obtained during the scan (off channel and connected
14001 * channel), when in connected state.
14002 */
14003enum qca_wlan_vendor_monitor_mgmt_frame_type {
14004 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14005 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
14006 */
14007 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
14008 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14009 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14010};
14011
14012/**
14013 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14014 * Control frame types to be sent over the monitor interface.
14015 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
14016 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
14017 */
14018enum qca_wlan_vendor_monitor_ctrl_frame_type {
14019 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14020 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
14021 */
14022 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14023};
14024
14025/**
14026 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14027 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14028 * monitor mode.
14029 *
14030 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
14031 * Represents the TX Data frame types to be monitored (u32). These Data frames
14032 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14033 *
14034 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
14035 * Represents the RX Data frame types to be monitored (u32). These Data frames
14036 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14037 *
14038 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
14039 * Represents the TX Management frame types to be monitored (u32). These
14040 * Management frames are represented by
14041 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14042 *
14043 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
14044 * Represents the RX Management frame types to be monitored (u32). These
14045 * Management frames are represented by
14046 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14047 *
14048 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
14049 * Represents the TX Control frame types to be monitored (u32). These Control
14050 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14051 *
14052 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
14053 * Represents the RX Control frame types to be monitored (u32). These Control
14054 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14055 *
14056 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
14057 * attribute.
14058 * Represents the interval in milliseconds only for the connected Beacon frames,
14059 * expecting the connected BSS's Beacon frames to be sent on the monitor
14060 * interface at this specific interval.
14061 */
14062enum qca_wlan_vendor_attr_set_monitor_mode {
14063 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14064 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14065 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14066 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14067 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14068 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14069 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14070 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
14071
14072 /* keep last */
14073 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14074 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14075 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14076};
14077
14078/**
14079 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14080 * Bits will be set to 1 if the corresponding state is enabled.
14081 *
14082 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14083 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14084 */
14085enum qca_wlan_vendor_roam_scan_state {
14086 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14087 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14088};
14089
14090/**
14091 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14092 * Bits will be set to 1 if the corresponding event is notified.
14093 *
14094 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14095 * carries the trigger reason. When set, it is expected that the roam event
14096 * carries the respective reason via the attribute
14097 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14098 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14099 *
14100 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14101 * carries the roam fail reason. When set, it is expected that the roam event
14102 * carries the respective reason via the attribute
14103 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14104 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14105 *
14106 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14107 * event carries the roam invoke fail reason. When set, it is expected that
14108 * the roam event carries the respective reason via the attribute
14109 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14110 *
14111 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14112 * carries the roam scan state. When set, it is expected that the roam event
14113 * carries the respective scan state via the attribute
14114 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14115 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14116 */
14117enum qca_wlan_vendor_roam_event_type {
14118 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14119 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14120 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14121 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14122};
14123
14124/**
14125 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14126 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14127 *
14128 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14129 * representing the BSSID of the AP to which the roam is attempted.
14130 *
14131 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14132 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14133 * attempted.
14134 *
14135 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
14136 * on which the roam is attempted.
14137 *
14138 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14139 * STA mode only. This represents the roam fail reason for the last failed
14140 * roaming attempt by the firmware for the specific BSSID. Different roam
14141 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14142 */
14143enum qca_wlan_vendor_attr_roam_events_candidate_info {
14144 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14145 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14146 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14147 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14148 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14149
14150 /* keep last */
14151 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14152 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14153 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14154};
14155
14156/**
14157 * enum qca_wlan_vendor_attr_roam_events - Used by the
14158 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14159 * roam events to the driver or notify these events from the driver.
14160 *
14161 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14162 * driver/firmware to enable/disable the notification of roam events. It's a
14163 * mandatory attribute and used only in the request from the userspace to the
14164 * host driver. 1-Enable, 0-Disable.
14165 * If the roaming is totally offloaded to the firmware, this request when
14166 * enabled shall mandate the firmware to notify all the relevant roam events
14167 * represented by the below attributes. If the host is in the suspend mode,
14168 * the behavior of the firmware to notify these events is guided by
14169 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14170 * these events in the suspend state, the firmware is expected to wake up the
14171 * host before the respective events are notified. Please note that such a
14172 * request to get the events in the suspend state will have a definite power
14173 * implication.
14174 *
14175 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14176 * that the roam events need to be notified in the suspend state too. By
14177 * default, these roam events are notified in the resume state. With this flag,
14178 * the roam events are notified in both resume and suspend states.
14179 * This attribute is used in the request from the userspace to the host driver.
14180 *
14181 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14182 * Represents the different roam event types, signified by the enum
14183 * qca_wlan_vendor_roam_event_type.
14184 * Each bit of this attribute represents the different roam even types reported
14185 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14186 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14187 *
14188 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14189 * mode only. This represents the roam trigger reason for the last roaming
14190 * attempted by the firmware. Each bit of this attribute represents the
14191 * different roam trigger reason code which are defined in enum
14192 * qca_vendor_roam_triggers.
14193 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14194 *
14195 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14196 * STA mode only. This represents the roam invoke fail reason for the last
14197 * failed roam invoke. Different roam invoke failure reason codes
14198 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14199 *
14200 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14201 * for which the roam is attempted. Each entry is a nested attribute defined
14202 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14203 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14204 *
14205 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14206 * the scan state on which the roam events need to be notified. The values for
14207 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14208 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14209 *
14210 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14211 * u32 values. List of frequencies in MHz considered for a roam scan.
14212 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14213 */
14214enum qca_wlan_vendor_attr_roam_events {
14215 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14216 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14217 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14218 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14219 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14220 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14221 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14222 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14223 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14224
14225 /* keep last */
14226 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14227 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014228 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014229};
14230
14231/**
14232 * enum qca_wlan_ratemask_params_type - Rate mask config type
14233 *
14234 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
14235 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14236 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14237 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014238 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
Hai Shaloma20dcd72022-02-04 13:43:00 -080014239 */
14240enum qca_wlan_ratemask_params_type {
14241 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14242 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14243 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14244 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014245 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014246};
14247
14248/**
14249 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
14250 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14251 * This is used to set the rate mask value to be used in rate selection.
14252 *
14253 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14254 * Array of nested containing attributes
14255 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14256 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14257 *
14258 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14259 * the different PHY types to which the rate mask config is to be applied.
14260 * The values for this attribute are referred from enum
14261 * qca_wlan_vendor_ratemask_params_type.
14262 *
14263 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14264 * A bit value of 1 represents rate is enabled and a value of 0
14265 * represents rate is disabled.
Sunil Ravi88611412024-06-28 17:34:56 +000014266 * For HE targets, 12 bits correspond to one NSS setting.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014267 * b0-13 => NSS1, MCS 0-13
14268 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14269 * For VHT targets, 10 bits correspond to one NSS setting.
14270 * b0-9 => NSS1, MCS 0-9
14271 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14272 * For HT targets, 8 bits correspond to one NSS setting.
14273 * b0-7 => NSS1, MCS 0-7
14274 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14275 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
14276 */
14277enum qca_wlan_vendor_attr_ratemask_params {
14278 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
14279 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14280 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14281 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
14282
14283 /* keep last */
14284 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14285 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14286 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14287};
14288
Sunil8cd6f4d2022-06-28 18:40:46 +000014289/**
14290 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
14291 * traffic.
14292 *
14293 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
14294 * Send audio traffic through the host processor.
14295 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
14296 * Send audio traffic using the low power DSP to/from the encoder.
14297 */
14298enum qca_wlan_audio_data_path {
14299 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
14300 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
14301};
14302
14303/**
14304 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14305 * for) or drop existing PASN security association for the listed the
14306 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14307 * to userspace.
14308 *
14309 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14310 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14311 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14312 * the driver to userspace to inform that the existing PASN keys of the
14313 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14314 * not valid anymore.
14315 */
14316enum qca_wlan_vendor_pasn_action {
14317 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14318 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14319};
14320
14321/**
14322 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14323 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14324 *
14325 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14326 * event from the driver to userspace and represents the local MAC address
14327 * to be used for PASN handshake. When this attribute is present, userspace
14328 * shall use the source address specified in this attribute by the driver
14329 * for PASN handshake with peer device.
14330 * This attribute is required in a command response from userspace to the
14331 * driver and represents the MAC address that was used in PASN handshake
14332 * with the peer device.
14333 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14334 * peer device to which PASN handshake is requested in an event from the
14335 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14336 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14337 * Indicates the MAC address of the peer device for which the keys are to
14338 * be invalidated in an event from the driver to userspace when
14339 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14340 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14341 * Indicates the MAC address of the peer device for which the status is
14342 * being sent in a status report from userspace to the driver.
14343 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14344 * in the event from the driver to userspace. When set, userspace is
14345 * required to derive LTF key seed from KDK and set it to the driver.
14346 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14347 * attribute is used in the command response from userspace to the driver.
14348 * If present, it indicates the successful PASN handshake with the peer. If
14349 * this flag is not present, it indicates that the PASN handshake with the
14350 * peer device failed.
14351 */
14352enum qca_wlan_vendor_attr_pasn_peer {
14353 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14354 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14355 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14356 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14357 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14358
14359 /* keep last */
14360 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14361 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14362 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14363};
14364
14365/**
14366 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14367 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
14368 *
14369 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14370 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
14371 * from the driver to userspace.
14372 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14373 * details for each peer and used in both an event and a command response.
14374 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14375 * defined in enum qca_wlan_vendor_attr_pasn_peer.
14376 */
14377enum qca_wlan_vendor_attr_pasn {
14378 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14379 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14380 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
14381
14382 /* keep last */
14383 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14384 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14385 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14386};
14387
14388/**
14389 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14390 * the ranging security context derived from PASN for each peer. Used in
14391 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14392 *
14393 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14394 * context for the peer.
14395 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
14396 * context for the peer.
14397 */
14398enum qca_wlan_vendor_secure_ranging_ctx_action {
14399 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
14400 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
14401};
14402
14403/**
14404 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
14405 * used for deriving PASN keys to the driver. Used in
14406 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
14407 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
14408 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
14409 */
14410enum qca_wlan_vendor_sha_type {
14411 QCA_WLAN_VENDOR_SHA_256,
14412 QCA_WLAN_VENDOR_SHA_384,
14413};
14414
14415/**
14416 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
14417 * to set security context for the PASN peer from userspace to the driver.
14418 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
14419 *
14420 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
14421 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
14422 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
14423 * was used during the PASN handshake.
14424 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
14425 * the peer device for which secure ranging context is being configured.
14426 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
14427 * hash algorithm to be used, possible values are defined in enum
14428 * qca_wlan_vendor_sha_type.
14429 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
14430 * the temporal key generated from the PASN handshake. The length of this
14431 * attribute is dependent on the value of
14432 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
14433 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
14434 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
14435 * (e.g., 0x000FAC04).
14436 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
14437 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
14438 * The length of this attribute is dependent on the value of
14439 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
14440
14441 */
14442enum qca_wlan_vendor_attr_secure_ranging_ctx {
14443 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
14444 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
14445 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
14446 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
14447 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
14448 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
14449 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
14450 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
14451
14452 /* keep last */
14453 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
14454 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
14455 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
14456};
14457
Sunil Ravi89eba102022-09-13 21:04:37 -070014458/**
14459 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
14460 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
14461 * nested attribute. The packets that match a filter will be replied with
14462 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
14463 *
14464 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
14465 * u32 attribute. Destination IPv4 address in network byte order, the
14466 * IPv4 packets with different address will be filtered out.
14467 * This attribute is optional.
14468 *
14469 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
14470 * Flag attribute. If it's present, indicates that
14471 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
14472 * address; while if not, indicates that the address is a unicast/multicast
14473 * address.
14474 * This attribute is optional.
14475 *
14476 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
14477 * NLA_BINARY attribute, length is 16 bytes.
14478 * Destination IPv6 address in network byte order, the IPv6 packets
14479 * with different destination address will be filtered out.
14480 * This attribute is optional.
14481 *
14482 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
14483 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
14484 * Packets on both IPv4 and IPv6 will be processed if both are configured.
14485 *
14486 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
14487 * u16 attribute. Destination UDP port, the packets with different destination
14488 * UDP port will be filtered out.
14489 * This attribute is mandatory.
14490 *
14491 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
14492 * u32 attribute. Represents the offset (in UDP payload) of the data
14493 * to be matched.
14494 * This attribute is mandatory.
14495 *
14496 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
14497 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
14498 * Binary data that is compared bit-by-bit against the data (specified
14499 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
14500 * payload, the packets don't match will be filtered out.
14501 * This attribute is mandatory.
14502 */
14503enum qca_wlan_vendor_attr_coap_offload_filter {
14504 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
14505 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
14506 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
14507 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
14508 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
14509 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
14510 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
14511
14512 /* keep last */
14513 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
14514 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
14515 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
14516};
14517
14518/**
14519 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
14520 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14521 *
14522 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14523 * u32 attribute. Source address (in network byte order) for replying
14524 * the matching broadcast/multicast IPv4 packets.
14525 * This attribute is optional.
14526 *
14527 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14528 * NLA_BINARY attribute, length is 16 bytes.
14529 * Source address (in network byte order) for replying the matching
14530 * multicast IPv6 packets.
14531 * This attribute is optional.
14532 *
14533 * For broadcast/multicast offload reply, one of
14534 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14535 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14536 * configured according to version of the IP address(es) configured in
14537 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14538 * while for unicast case, firmware will take the destination IP address
14539 * in the received matching packet as the source address for replying.
14540 *
14541 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14542 * Nested attribute. Filter for the received UDP packets, only the matching
14543 * packets will be replied and cached.
14544 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14545 * attributes.
14546 * This attribute is mandatory.
14547 *
14548 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14549 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14550 * CoAP message (UDP payload) to be sent upon receiving matching packets.
14551 * Firmware is responsible for adding any necessary protocol headers.
14552 * This attribute is mandatory.
14553 *
14554 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14555 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14556 * A cached message will be dropped by firmware if it's expired.
14557 * This attribute is optional. A default value of 40000 will be used in the
14558 * absence of it.
14559 */
14560enum qca_wlan_vendor_attr_coap_offload_reply {
14561 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14562 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14563 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14564 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14565 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14566 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14567
14568 /* keep last */
14569 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14570 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14571 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14572};
14573
14574/**
14575 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14576 * CoAP message (UDP) transmitting on IPv4.
14577 *
14578 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14579 * u32 attribute. Source address (in network byte order) for transmitting
14580 * packets on IPv4.
14581 * This attribute is mandatory.
14582 *
14583 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14584 * u16 attribute. Source UDP port.
14585 * This attribute is optional, a random port is taken if it's not present.
14586 *
14587 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14588 * u32 attribute. Destination IPv4 address (in network byte order).
14589 * This attribute is mandatory.
14590 *
14591 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14592 * Flag attribute. If it's present, indicates that
14593 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14594 * address; while if not, indicates that the address is unicast/multicast
14595 * address.
14596 * This attribute is optional.
14597 *
14598 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14599 * u16 attribute. Destination UDP port.
14600 * This attribute is mandatory.
14601 */
14602enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14603 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14604 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14605 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14606 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14607 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14608 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14609
14610 /* keep last */
14611 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
14612 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
14613 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
14614};
14615
14616/**
14617 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
14618 * CoAP message (UDP) transmitting on IPv6.
14619 *
14620 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
14621 * NLA_BINARY attribute, length is 16 bytes.
14622 * Source address (in network byte order) for transmitting packets on IPv6.
14623 * This attribute is mandatory.
14624 *
14625 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14626 * u16 attribute. Source UDP port.
14627 * This attribute is optional, a random port is taken if it's not present.
14628 *
14629 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14630 * NLA_BINARY attribute, length is 16 bytes.
14631 * Destination IPv6 address (in network byte order).
14632 * This attribute is mandatory.
14633 *
14634 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14635 * u16 attribute. Destination UDP port.
14636 * This attribute is mandatory.
14637 */
14638enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14639 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14640 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14641 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14642 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14643 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14644
14645 /* keep last */
14646 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14647 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14648 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14649};
14650
14651/**
14652 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14653 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14654 *
14655 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14656 * Nested attribute. The IPv4 source/destination address/port for offload
14657 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14658 * of supported attributes.
14659 * This attribute is optional.
14660 *
14661 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14662 * Nested attribute. The IPv6 source/destination address/port for offload
14663 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14664 * of supported attributes.
14665 * This attribute is optional.
14666 *
14667 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14668 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14669 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14670 * configured.
14671 *
14672 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14673 * u32 attribute. Period in milliseconds for the periodic transmitting.
14674 * This attribute is mandatory.
14675 *
14676 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14677 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14678 * CoAP message (UDP payload) to be periodically transmitted. Firmware
14679 * is responsible for adding any necessary protocol headers.
14680 * This attribute is mandatory.
14681 */
14682enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14683 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14684 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14685 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14686 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14687 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14688
14689 /* keep last */
14690 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14691 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14692 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14693};
14694
14695/**
14696 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14697 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14698 *
14699 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14700 * u64 attribute. Received time (since system booted in microseconds) of
14701 * the cached CoAP message.
14702 * This attribute is mandatory.
14703 *
14704 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14705 * u32 attribute. Source IPv4 address (in network byte order) of the cached
14706 * CoAP message.
14707 * This attribute is optional.
14708 *
14709 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14710 * NLA_BINARY attribute, length is 16 bytes.
14711 * Source IPv6 address (in network byte order) of the cached CoAP message.
14712 * This attribute is optional.
14713 *
14714 * At most and at least one of
14715 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14716 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14717 * an entry.
14718 *
14719 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14720 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14721 * The cached CoAP message (UDP payload). If the actual message size is
14722 * greater than the maximum size, it will be truncated and leaving only
14723 * the first 1152 bytes.
14724 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070014725 *
14726 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
14727 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070014728 */
14729enum qca_wlan_vendor_attr_coap_offload_cache_info {
14730 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14731 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14732 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14733 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14734 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070014735 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070014736
14737 /* keep last */
14738 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14739 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14740 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14741};
14742
14743/**
14744 * enum qca_wlan_vendor_coap_offload_action - Actions for
14745 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14746 *
14747 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14748 * Enable CoAP offload reply.
14749 * If it's enabled, firmware will start offload processing on each suspend
14750 * and stop on each resume.
14751 *
14752 * Offload reply on match works as follows:
14753 * Reply the packets that match the filter with the given CoAP
14754 * message (with necessary protocol headers), increase the CoAP message
14755 * ID in the given CoAP message by one for the next use after each successful
14756 * transmission, and try to store the information of the received packet,
14757 * including the received time, source IP address, and CoAP message (UDP
14758 * payload).
14759 *
14760 * Firmware has a limit to the maximum stored entries, it takes the source IP
14761 * address as the key of an entry, and keeps at most one entry for each key.
14762 * A packet won't be stored if no entry for the same key is present and the
14763 * total number of the existing unexpired entries reaches the maximum value.
14764 *
14765 * If any configured item is changed, user space should disable offload reply
14766 * first and then issue a new enable request.
14767 *
14768 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14769 * Disable CoAP offload reply and return information of any cached CoAP
14770 * messages.
14771 *
14772 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14773 * Enable CoAP offload periodic transmitting.
14774 * If it's enabled, firmware will start offload periodic transmitting on
14775 * each suspend and stop on each resume.
14776 *
14777 * Offload periodic transmitting works as follows:
14778 * Send the given CoAP message (with necessary protocol headers) with the given
14779 * source/destination IP address/UDP port periodically based on the given
14780 * period and increase the CoAP message ID in the given CoAP message by one
14781 * for the next use after each successful transmission.
14782 *
14783 * If any configured item is changed, user space should disable offload
14784 * periodic transmitting first and then issue a new enable request.
14785 *
14786 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14787 * Disable CoAP offload periodic transmitting.
14788 *
14789 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14790 * Get information of the CoAP messages cached during offload reply
14791 * processing. The cache is cleared after retrieval.
14792 */
14793enum qca_wlan_vendor_coap_offload_action {
14794 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14795 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14796 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14797 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14798 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14799};
14800
14801/**
14802 * enum qca_wlan_vendor_attr_coap_offload - Used by the
14803 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14804 * This is used to set parameters for CoAP offload processing, or get
14805 * cached CoAP messages from firmware.
14806 *
14807 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14808 * u32 attribute. Action to take in this vendor command.
14809 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14810 * This attribute is mandatory.
14811 *
14812 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14813 * u32 attribute. Represents the Request ID for the CoAP offload
14814 * configuration, which can help to identify the user entity starting
14815 * the CoAP offload processing and accordingly stop the respective
14816 * ones/get the cached CoAP messages with the matching ID.
14817 * This attribute is mandatory.
14818 *
14819 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14820 * Nested attribute. Parameters for offload reply.
14821 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14822 * supported attributes.
14823 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14824 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14825 * otherwise.
14826 *
14827 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14828 * Nested attribute. Parameters for offload periodic transmitting.
14829 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14830 * supported attributes.
14831 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14832 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14833 * otherwise.
14834 *
14835 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14836 * Array of nested attributes. Information of the cached CoAP messages,
14837 * where each entry is taken from
14838 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14839 * This attribute is used for reporting the cached CoAP messages
14840 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14841 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14842 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14843 * cached item if this attribute is not present.
14844 */
14845enum qca_wlan_vendor_attr_coap_offload {
14846 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14847 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14848 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14849 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14850 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14851 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14852
14853 /* keep last */
14854 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14855 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14856 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14857};
14858
14859/**
14860 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14861 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14862 * Service (SCS) rule.
14863 *
14864 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14865 * Represents the unique id of SCS rule to be configured.
14866
14867 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14868 * Represents the request type: add, remove, or change.
14869 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14870 * Type definitions).
14871 *
14872 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14873 * in case of add/change request type.
14874 * Represents the output traffic identifier (TID) to be assigned to the flow
14875 * matching the rule.
14876 *
14877 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14878 * attribute in case of add/change request type.
14879 * Represents type of classifier parameters present in SCS rule.
14880 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14881 * Only classifier types 4 and 10 are supported for SCS.
14882 *
14883 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14884 * in case of add/change request type when classifier type is TCLAS4.
14885 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14886 *
14887 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14888 * attribute in case of add/change request type when classifier type is TCLAS4
14889 * and version attribute is IPv4.
14890 * Represents the source IPv4 address in the rule which is to be compared
14891 * against the source IP address in the IPv4 header.
14892 *
14893 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14894 * attribute in case of add/change request type when classifier type is TCLAS4
14895 * and version attribute is IPv4.
14896 * Represents the destination IPv4 address in the rule which is to be compared
14897 * against the destination IP address in the IPv4 header.
14898 *
14899 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14900 * attribute in case of add/change request type when classifier type is TCLAS4
14901 * and version attribute is IPv6.
14902 * Represents the source IPv6 address in the rule which is to be compared
14903 * against the source IP address in the IPv6 header.
14904 *
14905 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14906 * attribute in case of add/change request type when classifier type is TCLAS4
14907 * and version attribute is IPv6.
14908 * Represents the destination IPv6 address in the rule which is to be compared
14909 * against the destination IP address in the IPv6 header.
14910 *
14911 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14912 * in case of add/change request type when classifier type is TCLAS4.
14913 * Represents the source port number in the rule which is to be compared against
14914 * the source port number in the protocol header.
14915 *
14916 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14917 * in case of add/change request type when classifier type is TCLAS4.
14918 * Represents the destination port number in the rule which is to be compared
14919 * against the destination port number in the protocol header.
14920 *
14921 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14922 * in case of add/change request type when classifier type is TCLAS4.
14923 * Represents the DSCP value in the rule which is to be compared against the
14924 * DSCP field present in the IP header.
14925 *
14926 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14927 * attribute in case of add/change request type when classifier type is TCLAS4.
14928 * Represents the protocol/next header in the rule which is to be compared
14929 * against the protocol/next header field present in the IPv4/IPv6 header.
14930 *
14931 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14932 * attribute of size 3 bytes present in case of add/change request type
14933 * when classifier type is TCLAS4 and version is IPv6.
14934 * Represents the flow label value in the rule which is to be compared against
14935 * the flow label field present in the IPv6 header.
14936 *
14937 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14938 * attribute in case of add/change request type when classifier type is TCLAS10.
14939 * Represents the protocol instance number in the rule.
14940 *
14941 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14942 * attribute in case of add/change request type when classifier type is TCLAS10.
14943 * Represents the protocol/next header in the rule which is to be compared
14944 * against the protocol/next header field present in the IPv4/IPv6 header.
14945 *
14946 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14947 * attribute of variable length present when request type is add/change and
14948 * classifier type is TCLAS10.
14949 * Represents the mask to be used for masking the header contents of the header
14950 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14951 * attribute.
14952 *
14953 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14954 * attribute of variable length present when request type is add/change and
14955 * classifier type is TCLAS10.
14956 * Represents the value to be compared against after masking the header contents
14957 * of the header specified by the
14958 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14959 * filter mask specified by the
14960 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014961 *
14962 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14963 * attribute.
14964 * Represents the service class id of the configured SCS rule.
14965 *
14966 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14967 * MAC address.
14968 * Represents the destination MAC address in the rule.
14969 *
14970 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14971 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070014972 */
14973enum qca_wlan_vendor_attr_scs_rule_config {
14974 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14975 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14976 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14977 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14978 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14979 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14980 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14981 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14982 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14983 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14984 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14985 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14986 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14987 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14988 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14989 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14990 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14991 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14992 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014993 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14994 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14995 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070014996
14997 /* Keep last */
14998 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14999 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15000 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15001};
15002
15003/**
15004 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
15005 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
15006 *
15007 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
15008 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
15009 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
15010 */
15011enum qca_wlan_vendor_attr_mlo_links {
15012 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
15013 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
15014 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
15015 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
15016
15017 /* Keep last */
15018 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
15019 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
15020 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
15021};
15022
15023/**
15024 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15025 * used in the firmware.
15026 *
15027 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15028 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15029 *
15030 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15031 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15032 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15033 * groups.
15034 *
15035 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15036 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15037 * CTL group but user can choose up to 3 SAR set index only, as the top half
15038 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15039 * the SAR index (3 to 5) is used for DBS mode.
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015040 *
15041 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
15042 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
15043 * for power limit computation in collaboration with WWAN.
15044 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
15045 *
15046 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
15047 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
15048 * instead of fixed static SAR power limit firmware uses time averaging
15049 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
15050 * In this mode firmware has up to 43 indexes.
Sunil Ravi89eba102022-09-13 21:04:37 -070015051 */
15052enum qca_wlan_vendor_sar_version {
15053 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15054 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15055 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15056 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015057 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
15058 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015059};
15060
15061/**
15062 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15063 * CTL grouping is enabled or disabled in the firmware.
15064 *
15065 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15066 * is enabled in firmware.
15067 *
15068 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15069 * is disabled in firmware.
15070 *
15071 */
15072enum qca_wlan_vendor_sar_ctl_group_state {
15073 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15074 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15075 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15076};
15077
15078/**
15079 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15080 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15081 * supported by the firmware.
15082
15083 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15084 * u32 attribute. This field describes current SAR version supported by the
15085 * firmware.
15086 * See enum qca_wlan_vendor_sar_version for more information.
15087 * This attribute is mandatory.
15088
15089 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15090 * u32 attribute. This field describes whether CTL groups are enabled
15091 * or disabled in the firmware.
15092 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15093 * This attribute is optional.
15094 */
15095
15096enum qca_wlan_vendor_attr_sar_capability {
15097 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15098 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15099 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15100
15101 /* Keep last */
15102 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15103 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15104 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15105};
15106
15107/**
15108 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15109 * These statistics are sent from the driver in a response when userspace
15110 * queries to get the statistics using the operation
15111 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15112 * by the driver when the SR feature is enabled, when the driver receives
15113 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15114 *
15115 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15116 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15117 * This represents the number of non-SRG TX opportunities.
15118 *
15119 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15120 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15121 * This represents the number of non-SRG PPDUs tried to transmit.
15122 *
15123 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15124 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15125 * This represents the number of non-SRG PPDUs successfully transmitted.
15126 *
15127 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15128 * Mandatory only when SRG is supported by the AP and optional otherwise.
15129 * This represents the number of SRG TX opportunities.
15130 *
15131 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15132 * Mandatory only when SRG is supported by the AP and optional otherwise.
15133 * This represents the number of SRG PPDUs tried to transmit.
15134 *
15135 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15136 * Mandatory only when SRG is supported by the AP and optional otherwise.
15137 * This represents the number of SRG PPDUs successfully transmitted.
15138 */
15139enum qca_wlan_vendor_attr_sr_stats {
15140 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15141 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15142 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15143 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15144 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15145 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15146 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15147
15148 /* Keep last */
15149 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15150 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15151 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15152};
15153
15154/**
15155 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15156 * Spatial Reuse feature.
15157 *
15158 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15159 * roaming to an AP that doesn't support/supports SR feature, respectively.
15160 *
15161 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15162 * to change in concurrent interfaces that are supported by the driver.
15163 */
15164enum qca_wlan_sr_reason_code {
15165 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15166 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15167};
15168
15169/**
15170 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15171 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15172 *
15173 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15174 * driver to enable the Spatial Reuse feature. Attributes
15175 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15176 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15177 * operation.
15178 *
15179 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15180 * driver to disable the Spatial Reuse feature.
15181 *
15182 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15183 * asynchronous event sent to userspace when the SR feature is disabled.
15184 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15185 * and sent along with the asynchronous event.
15186 *
15187 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15188 * asynchronous event when the SR feature is enabled again after the SR feature
15189 * was suspended by the driver earlier. The enable reason is
15190 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15191 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15192 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15193 *
15194 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15195 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15196 * reuse transmissions. Userspace sends this operation to the driver.
15197 * The driver/firmware upon receiving this operation shall prohibit PSR-based
15198 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15199 *
15200 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15201 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15202 * reuse transmissions. Userspace sends this operation to the driver.
15203 * The driver/firmware upon receiving this operation shall allow PSR-based
15204 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15205 *
15206 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15207 * driver to get the SR statistics and the driver sends a synchronous response
15208 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15209 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15210 *
15211 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15212 * driver to clear the SR statistics and upon receiving this operation
15213 * the driver/firmware shall clear the SR statistics.
15214 *
15215 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15216 * driver to get the SR parameters and the driver sends the synchronous response
15217 * with the following required attributes:
15218 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15219 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15220 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15221 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15222 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15223 *
15224 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15225 * asynchronous event to userspace to update any changes in SR parameters.
15226 * The following attributes are used with this operation:
15227 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15228 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15229 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15230 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15231 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15232 */
15233enum qca_wlan_sr_operation {
15234 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15235 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15236 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15237 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15238 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15239 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15240 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15241 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15242 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15243 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15244};
15245
15246/**
15247 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15248 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15249 *
15250 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15251 * This attribute is optionally set in response to
15252 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15253 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15254 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15255 * about HESIGA_Spatial_reuse_value15_allowed.
15256 *
15257 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15258 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15259 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15260 * allowed or not at non-AP STAs that are associated with the AP. If present
15261 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15262 *
15263 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15264 * attribute. This attribute is used in response to
15265 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15266 * Min Offset field which contains an unsigned integer that is added to -82 dBm
15267 * to generate the value of the SRG OBSS PD Min parameter.
15268 *
15269 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15270 * attribute. This attribute is used in response to
15271 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15272 * Max Offset field which contains an unsigned integer that is added to -82 dBm
15273 * to generate the value of the SRG OBSS PD Max parameter.
15274 *
15275 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15276 * attribute. This attribute is used in response to
15277 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15278 * PD Max Offset field which contains an unsigned integer that is added to -82
15279 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15280 *
15281 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15282 * Userspace optionally sends this attribute with
15283 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15284 * preferred SRG PD threshold. The driver shall send this attribute to
15285 * userspace in SR resume event to indicate the PD threshold being used for SR.
15286 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15287 * the driver shall indicate the userspace the newly configured SRG PD threshold
15288 * using an asynchronous event.
15289 *
15290 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15291 * Userspace optionally sends this attribute with
15292 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15293 * preferred non-SRG PD threshold. The driver shall send this attribute to
15294 * userspace in SR resume event to indicate the PD threshold being used for SR.
15295 * When there is change in non-SRG PD threshold (for example, due to roaming,
15296 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15297 * threshold using an asynchronous event.
15298 *
15299 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15300 * values are defined in enum qca_wlan_sr_reason_code. This
15301 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15302 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15303 */
15304enum qca_wlan_vendor_attr_sr_params {
15305 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15306 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15307 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15308 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15309 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15310 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15311 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15312 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15313 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15314
15315 /* keep last */
15316 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15317 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15318 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15319};
15320
15321/**
15322 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15323 * command QCA_NL80211_VENDOR_SUBCMD_SR.
15324 *
15325 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15326 * from userspace to the driver. Possible values are defined in enum
15327 * qca_wlan_sr_operation.
15328 *
15329 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15330 * configuration parameters. The possible attributes inside this attribute are
15331 * defined in enum qca_wlan_vendor_attr_sr_params.
15332 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15333 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15334 * also in response from the driver to userspace when the response is sent for
15335 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15336 * The driver uses this attribute in asynchronous events in which the operation
15337 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15338 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15339 *
15340 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15341 * statistics. These attributes used inside this are defined in enum
15342 * qca_wlan_vendor_attr_sr_stats.
15343 * This attribute is used in response from the driver to a command in which
15344 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15345 * %QCA_WLAN_SR_OPERATION_GET_STATS.
15346 */
15347enum qca_wlan_vendor_attr_sr {
15348 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15349 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15350 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15351 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15352
15353 /* Keep last */
15354 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15355 QCA_WLAN_VENDOR_ATTR_SR_MAX =
15356 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15357};
15358
Sunil Ravi77d572f2023-01-17 23:58:31 +000015359/**
15360 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15361 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15362 *
15363 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15364 * used by the peer on the link that corresponds to the link used for sending
15365 * the event notification.
15366 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15367 * MLD MAC address of the peer.
15368 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15369 * used to pass ifindex of the primary netdev.
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015370 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
15371 * used to pass ifindex of the MLD netdev.
15372 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
15373 * used to indicate the number of links that the non-AP MLD negotiated to be
15374 * used in the ML connection.
15375 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
15376 * attribute, contains information regarding links of the non-AP MLD.
15377 * User applications need to know all the links of a non-AP MLD that are
15378 * participating in the ML association. The possible attributes inside this
15379 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015380 */
15381enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15382 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15383 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15384 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15385 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015386 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
15387 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
15388 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015389
15390 /* keep last */
15391 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15392 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15393 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15394};
15395
15396/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015397 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
15398 * non-AP MLD link parameters used by the attribute
15399 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
15400 *
15401 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
15402 * to pass the netdev ifindex of the non-AP MLD link.
15403 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
15404 * the non-AP MLD link.
15405 */
15406enum qca_wlan_vendor_attr_mlo_link_info {
15407 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
15408 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
15409 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
15410
15411 /* keep last */
15412 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
15413 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
15414 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
15415};
15416
15417/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000015418 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15419 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15420 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15421 * and PSD information.
15422 *
15423 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15424 * u32. This attribute is used to indicate the start of the queried frequency
15425 * range in MHz.
15426 *
15427 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15428 * This attribute is used to indicate the end of the queried frequency range
15429 * in MHz.
15430 *
15431 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
15432 * This attribute will contain the PSD information for a single range as
15433 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
15434 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
15435 *
15436 * The PSD power info (dBm/MHz) from user space should be multiplied
15437 * by a factor of 100 when sending to the driver to preserve granularity
15438 * up to 2 decimal places.
15439 * Example:
15440 * PSD power value: 10.21 dBm/MHz
15441 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
15442 *
15443 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
15444 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
15445 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
15446 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15447 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15448 *
15449 * The following set of attributes will be used to exchange frequency and
15450 * corresponding PSD information for AFC between the user space and the driver.
15451 */
15452enum qca_wlan_vendor_attr_afc_freq_psd_info {
15453 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
15454 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
15455 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
15456 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
15457
15458 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
15459 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
15460 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
15461};
15462
15463/**
15464 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
15465 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
15466 * channel list and corresponding EIRP information.
15467 *
15468 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
15469 * This attribute is used to indicate queried channel from
15470 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
15471 *
15472 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
15473 * This attribute is used to configure the EIRP power info corresponding
15474 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
15475 * The EIRP power info(dBm) from user space should be multiplied
15476 * by a factor of 100 when sending to Driver to preserve granularity up to
15477 * 2 decimal places.
15478 * Example:
15479 * EIRP power value: 34.23 dBm
15480 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
15481 *
15482 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
15483 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15484 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
15485 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15486 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
15487 *
15488 * The following set of attributes will be used to exchange Channel and
15489 * corresponding EIRP information for AFC between the user space and Driver.
15490 */
15491enum qca_wlan_vendor_attr_afc_chan_eirp_info {
15492 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
15493 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
15494 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
15495
15496 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
15497 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
15498 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
15499};
15500
15501/**
15502 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
15503 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15504 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
15505 * channel, and EIRP related information.
15506 *
15507 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
15508 * This attribute is used to indicate the operating class, as listed under
15509 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
15510 *
15511 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
15512 * for updating the channel number and EIRP power information.
15513 * It uses the attributes defined in
15514 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
15515 *
15516 * Operating class information packing format for
15517 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15518 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15519 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
15520 *
15521 * m - Total number of operating classes.
15522 * n, j - Number of queried channels for the corresponding operating class.
15523 *
15524 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15525 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15526 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15527 * .....
15528 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15529 * ....
15530 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15531 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15532 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15533 * ....
15534 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15535 *
15536 * Operating class information packing format for
15537 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15538 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15539 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15540 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15541 *
15542 * m - Total number of operating classes.
15543 * n, j - Number of channels for the corresponding operating class.
15544 *
15545 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15546 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15547 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15548 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15549 * .....
15550 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15551 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
15552 * ....
15553 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15554 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15555 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15556 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15557 * ....
15558 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15559 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
15560 *
15561 * The following set of attributes will be used to exchange operating class
15562 * information for AFC between the user space and the driver.
15563 */
15564enum qca_wlan_vendor_attr_afc_opclass_info {
15565 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
15566 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
15567 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15568
15569 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15570 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15571 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15572};
15573
15574/**
15575 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15576 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15577 *
15578 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15579 * driver to userspace in order to query the new AFC power values.
15580 *
15581 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15582 * complete event will be sent from the driver to userspace to indicate
15583 * processing of the AFC response.
15584 *
15585 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15586 * will be sent from the driver to userspace to indicate last received
15587 * AFC response data has been cleared on the AP due to invalid data
15588 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15589 *
15590 * The following enum defines the different event types that will be
15591 * used by the driver to help trigger corresponding AFC functionality in user
15592 * space.
15593 */
15594enum qca_wlan_vendor_afc_event_type {
15595 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15596 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15597 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15598};
15599
15600/**
15601 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15602 * deployment type.
15603 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15604 *
15605 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15606 *
15607 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15608 *
15609 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
15610 *
15611 * The following enum defines different deployment modes that the AP might
15612 * come up in. This information will be essential to retrieve deployment-type
15613 * specific SP power values for AFC operation.
15614 */
15615enum qca_wlan_vendor_afc_ap_deployment_type {
15616 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
15617 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
15618 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
15619};
15620
15621/**
15622 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
15623 * indicate AFC response status.
15624 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
15625 *
15626 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
15627 *
15628 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
15629 * command was not received within the expected time of the AFC expiry event
15630 * being triggered.
15631 *
15632 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
15633 * parsing error by the driver.
15634 *
15635 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
15636 * error.
15637 *
15638 * The following enum defines the status codes that the driver will use to
15639 * indicate whether the AFC data is valid or not.
15640 */
15641enum qca_wlan_vendor_afc_evt_status_code {
15642 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
15643 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
15644 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
15645 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
15646};
15647
15648/**
15649 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
15650 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
15651 * support sending only a single request to the user space at a time.
15652 *
15653 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
15654 * Used with event to notify the type of AFC event received.
15655 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
15656 *
15657 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
15658 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15659 * otherwise unused.
15660 *
15661 * This attribute is used to indicate the AP deployment type in the AFC request.
15662 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
15663 *
15664 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
15665 * Unique request identifier generated by the AFC client for every
15666 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
15667 * The user space application is responsible for ensuring no duplicate values
15668 * are in-flight with the server, e.g., by delaying a request, should the same
15669 * value be received from different radios in parallel.
15670 *
15671 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
15672 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15673 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
15674 *
15675 * This attribute indicates the AFC spec version information. This will
15676 * indicate the AFC version AFC client must use to query the AFC data.
15677 * Bits 15:0 - Minor version
15678 * Bits 31:16 - Major version
15679 *
15680 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
15681 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15682 * otherwise unused.
15683 * This attribute indicates the minimum desired power (in dBm) for
15684 * the queried spectrum.
15685 *
15686 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
15687 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15688 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15689 *
15690 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
15691 * This attribute is used to indicate if there were any errors parsing the
15692 * AFC response.
15693 *
15694 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15695 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15696 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15697 *
15698 * This attribute indicates the AFC response code. The AFC response codes are
15699 * in the following categories:
15700 * -1: General Failure.
15701 * 0: Success.
15702 * 100 - 199: General errors related to protocol.
15703 * 300 - 399: Error events specific to message exchange
15704 * for the Available Spectrum Inquiry.
15705 *
15706 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15707 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15708 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15709 *
15710 * This attribute indicates the date until which the current response is
15711 * valid for in UTC format.
15712 * Date format: bits 7:0 - DD (Day 1-31)
15713 * bits 15:8 - MM (Month 1-12)
15714 * bits 31:16 - YYYY (Year)
15715 *
15716 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15717 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15718 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15719 *
15720 * This attribute indicates the time until which the current response is
15721 * valid for in UTC format.
15722 * Time format: bits 7:0 - SS (Seconds 0-59)
15723 * bits 15:8 - MM (Minutes 0-59)
15724 * bits 23:16 - HH (Hours 0-23)
15725 * bits 31:24 - Reserved
15726 *
15727 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15728 * for updating the list of frequency ranges to be queried.
15729 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15730 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15731 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15732 * It uses the attributes defined in
15733 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15734 *
15735 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15736 * for updating the list of operating classes and corresponding channels to be
15737 * queried.
15738 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15739 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15740 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15741 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15742 */
15743enum qca_wlan_vendor_attr_afc_event {
15744 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15745 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15746 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15747 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15748 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15749 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15750 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15751 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15752 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15753 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15754 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15755 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15756
15757 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15758 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15759 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15760};
15761
15762/**
15763 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15764 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15765 * will support sending only a single AFC response to the driver at a time.
15766 *
15767 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15768 * This attribute will be used to send a single Spectrum Inquiry response object
15769 * from the 'availableSpectrumInquiryResponses' array object from the response
15770 * JSON.
15771 *
15772 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15773 *
15774 * This attribute indicates the period (in seconds) for which the response
15775 * data received is valid for.
15776 *
15777 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15778 *
15779 * This attribute indicates the request ID for which the corresponding
15780 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15781 *
15782 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15783 *
15784 * This attribute indicates the date until which the current response is
15785 * valid for in UTC format.
15786 * Date format: bits 7:0 - DD (Day 1-31)
15787 * bits 15:8 - MM (Month 1-12)
15788 * bits 31:16 - YYYY (Year)
15789 *
15790 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15791 *
15792 * This attribute indicates the time until which the current response is
15793 * valid for in UTC format.
15794 * Time format: bits 7:0 - SS (Seconds 0-59)
15795 * bits 15:8 - MM (Minutes 0-59)
15796 * bits 23:16 - HH (Hours 0-23)
15797 * bits 31:24 - Reserved
15798 *
15799 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15800 *
15801 * This attribute indicates the AFC response code. The AFC response codes are
15802 * in the following categories:
15803 * -1: General Failure.
15804 * 0: Success.
15805 * 100 - 199: General errors related to protocol.
15806 * 300 - 399: Error events specific to message exchange
15807 * for the Available Spectrum Inquiry.
15808 *
15809 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15810 * for PSD info of all the queried frequency ranges. It uses the attributes
15811 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15812 *
15813 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15814 * attributes for EIRP info of all queried operating class/channels. It uses
15815 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15816 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15817 *
15818 */
15819enum qca_wlan_vendor_attr_afc_response {
15820 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15821 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15822 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15823 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15824 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15825 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15826 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15827 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15828 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15829
15830 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15831 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15832 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15833};
15834
15835/**
15836 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15837 *
15838 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15839 *
15840 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15841 * beaconing at higher beacon interval with Rx disabled.
15842 */
15843enum qca_wlan_dozed_ap_state {
15844 QCA_WLAN_DOZED_AP_DISABLE = 0,
15845 QCA_WLAN_DOZED_AP_ENABLE = 1,
15846};
15847
15848/**
15849 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15850 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15851 * configuration.
15852 *
15853 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15854 * Configures the doze state for an AP interface. Possible values are defined
15855 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15856 * gets triggered asynchronously to provide updated AP interface configuration.
15857 *
15858 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15859 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15860 * command, which is used later to maintain synchronization between commands
15861 * and asynchronous events.
15862 *
15863 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15864 * Used in event to indicate the next TBTT TSF timer value after applying the
15865 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15866 * the first beacon after entering or exiting dozed mode.
15867 *
15868 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15869 * Used with event to inform the periodicity of beacon transmission that would
15870 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070015871 *
15872 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
15873 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015874 */
15875enum qca_wlan_vendor_attr_dozed_ap {
15876 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15877 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15878 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15879 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15880 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070015881 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015882
15883 /* Keep last */
15884 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15885 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15886 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15887};
15888
15889/**
15890 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
15891 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
15892 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
15893 * capture running status.
15894 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
15895 * capture running status.
15896 **/
15897
15898enum qca_wlan_vendor_monitor_mode_status {
15899 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
15900 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
15901};
15902
15903/**
15904 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
15905 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
15906 * information regarding the local packet capture over the monitor mode.
15907 *
15908 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
15909 * represents the status of the start capture commands. The values used with
15910 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
15911 * is returned by the driver in the response to the command.
15912 */
15913
15914enum qca_wlan_vendor_attr_get_monitor_mode {
15915 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
15916 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
15917
15918 /* Keep last */
15919 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
15920 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
15921 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
15922};
15923
Sunil Ravi036cec52023-03-29 11:35:17 -070015924/**
15925 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
15926 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
15927 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
15928 *
15929 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
15930 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
15931 */
15932enum qca_wlan_vendor_link_state_op_types {
15933 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
15934 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
15935};
15936
15937/**
15938 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
15939 * links state control modes. This enum is used by
15940 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
15941 *
15942 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
15943 * by the driver.
15944 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
15945 * user space.
15946 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
15947 * desired number of MLO links to operate in active state at any given time.
15948 * The driver will choose which MLO links should operate in the active state.
15949 * See enum qca_wlan_vendor_link_state for active state definition.
15950 */
15951enum qca_wlan_vendor_link_state_control_modes {
15952 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
15953 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
15954 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
15955};
15956
15957/**
15958 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
15959 * links state operation modes. This enum is used by
15960 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
15961 *
15962 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
15963 * mode, the driver selects the operating mode of the links, without any
15964 * guidance from the user space.
15965 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
15966 * operation mode the driver should select MLO links that will achieve low
15967 * latency.
15968 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
15969 * throughput operation mode the driver should select MLO links that will
15970 * achieve higher throughput.
15971 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
15972 * operation mode the driver should select MLO links that will achieve low
15973 * power.
15974 */
15975enum qca_wlan_vendor_link_state_operation_modes {
15976 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
15977 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
15978 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
15979 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
15980};
15981
15982/**
15983 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
15984 * MLO link.
15985 *
15986 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
15987 * be used for data transmission but it can have TIDs mapped to it. It will be
15988 * in doze state always and does not monitor the beacons.
15989 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
15990 * used for data TX/RX and monitors the beacons to check TIM bit indication.
15991 * It may enter doze state and comes out based on the transmit data traffic and
15992 * TIM bit indication in the beacon.
15993 */
15994enum qca_wlan_vendor_link_state {
15995 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
15996 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
15997};
15998
15999/**
16000 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16001 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16002 *
16003 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16004 * MLO link.
16005 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16006 * enum qca_wlan_vendor_link_state for possible MLO link states.
16007 */
16008
16009enum qca_wlan_vendor_attr_link_state_config {
16010 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16011 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16012 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16013
16014 /* Keep last */
16015 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16016 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16017 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16018};
16019
16020/**
16021 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16022 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16023 *
16024 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16025 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16026 * Required only in a command. Possible values for this attribute are defined in
16027 * enum qca_wlan_vendor_link_state_op_types.
16028 *
16029 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16030 * links control mode type. Optional attribute in a command when
16031 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16032 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16033 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16034 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16035 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16036 *
16037 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16038 * Indicates the state of the each MLO link affiliated with the interface.
16039 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16040 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16041 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16042 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16043 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16044 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16045 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16046 *
16047 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16048 * Represents the number of active state links. See enum
16049 * qca_wlan_vendor_link_state for active state definition.
16050 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16051 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16052 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16053 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16054 *
16055 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16056 * links operation mode type. Optional attribute in a command when
16057 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16058 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16059 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16060 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16061 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16062 * modes.
16063 */
16064enum qca_wlan_vendor_attr_mlo_link_state {
16065 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16066 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16067 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16068 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16069 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16070 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16071
16072 /* keep last */
16073 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16074 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16075 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16076};
16077
Sunil Ravi640215c2023-06-28 23:08:09 +000016078/**
16079 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16080 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16081 *
16082 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16083 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16084 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16085 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16086 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16087 * traffic for that link.
16088 *
16089 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16090 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16091 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16092 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16093 * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16094 * downlink traffic for that link.
16095 */
16096enum qca_wlan_vendor_attr_tid_link_map_status {
16097 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16098 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16099 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16100
16101 /* keep last */
16102 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16103 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16104 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16105};
16106
16107/*
16108 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16109 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16110 *
16111 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16112 * AP MLD address with which this TID-to-link negotiation mapping is
16113 * established/updated.
16114 *
16115 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16116 * nested attributes containing TID-to-links mapping information. This will have
16117 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16118 * map information. If this attribute is not present the default TID-to-link
16119 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16120 * downlink traffic.
16121 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16122 */
16123enum qca_wlan_vendor_attr_tid_to_link_map {
16124 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16125 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16126 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16127
16128 /* keep last */
16129 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16130 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16131 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16132};
16133
16134/**
16135 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16136 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16137 *
16138 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16139 * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16140 *
16141 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16142 * A bitmap of the removed setup links link IDs.
16143 */
16144enum qca_wlan_vendor_attr_link_reconfig {
Sunil Ravi640215c2023-06-28 23:08:09 +000016145 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16146 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16147 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16148
16149 /* keep last */
16150 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16151 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16152 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
16153};
16154
16155/**
16156 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16157 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16158 *
16159 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16160 * Indicates the MLO link id on which the TDLS discovery response
16161 * frame is to be transmitted.
16162 */
16163enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16164 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16165 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16166
16167 /* Keep last */
16168 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16169 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16170 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16171};
16172
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016173/**
16174 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16175 *
16176 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16177 * for all stations.
16178 *
16179 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16180 * establish the session.
16181 *
16182 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16183 * established.
16184 *
16185 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16186 * session is established using MCC.
16187 *
16188 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16189 * established, but is temporarily dropped currently.
16190 *
16191 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16192 */
16193enum qca_wlan_vendor_tdls_state {
16194 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16195 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16196 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16197 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16198 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16199 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16200};
16201
16202/**
16203 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16204 *
16205 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16206 *
16207 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16208 *
16209 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16210 *
16211 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16212 *
16213 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16214 * than through direct link.
16215 *
16216 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16217 * session anymore.
16218 */
16219
16220enum qca_wlan_vendor_tdls_reason {
16221 QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16222 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16223 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16224 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16225 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16226 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16227};
16228
16229/**
16230 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16231 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16232 *
16233 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16234 * station to enable the TDLS session. Optional attribute. The driver sends the
16235 * TDLS session result as an asynchronous response using the command
16236 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16237 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16238 *
16239 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16240 * channel on which the TDLS session to be established. Required only when
16241 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16242 *
16243 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16244 * Indicates the global operating class of the TDLS session to be established.
16245 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16246 *
16247 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16248 * the maximum latency of the WLAN packets to be transmitted/received in
16249 * milliseconds on TDLS session. Required only when
16250 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16251 *
16252 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16253 * Indicates the minimum bandwidth to be used to establish the TDLS session
16254 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16255 * present.
16256 */
16257enum qca_wlan_vendor_attr_tdls_enable {
16258 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
16259 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
16260 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
16261 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
16262 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
16263 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
16264
16265 /* keep last */
16266 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
16267 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
16268 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
16269};
16270
16271/**
16272 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
16273 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
16274 *
16275 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
16276 * station to disable the TDLS session. Optional attribute.
16277 */
16278enum qca_wlan_vendor_attr_tdls_disable {
16279 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
16280 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
16281
16282 /* keep last */
16283 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
16284 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
16285 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
16286};
16287
16288/**
16289 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
16290 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
16291 *
16292 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
16293 * peer station. Optional attribute. Used in
16294 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
16295 *
16296 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
16297 * TDLS session state with the peer specified in
16298 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
16299 * enum qca_wlan_vendor_tdls_state. Used in
16300 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16301 *
16302 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
16303 * reason for the TDLS session state indicated in
16304 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
16305 * qca_wlan_vendor_tdls_reason. Used in
16306 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16307 *
16308 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
16309 * channel of the TDLS session established with
16310 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16311 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16312 *
16313 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
16314 * Indicates the global operating class of the TDLS session established with
16315 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16316 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16317 *
16318 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
16319 * the current number of active TDLS sessions. This is indicated in the response
16320 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16321 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16322 *
16323 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
16324 * whether the driver can initiate new TDLS session. This is indicated in the
16325 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16326 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16327 */
16328enum qca_wlan_vendor_attr_tdls_get_status {
16329 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
16330 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
16331 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
16332 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
16333 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
16334 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
16335 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
16336 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
16337
16338 /* keep last */
16339 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
16340 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
16341 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
16342};
16343
16344/**
16345 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
16346 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
16347 *
16348 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
16349 * peer station. Required attribute.
16350 *
16351 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
16352 * the current TDLS state. Required attribute. Uses the values from
16353 * enum qca_wlan_vendor_tdls_state.
16354 *
16355 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
16356 * reason of the current TDLS session state. Required attribute. Uses the values
16357 * from enum qca_wlan_vendor_tdls_reason.
16358 *
16359 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
16360 * TDLS session channel. Required attribute.
16361 *
16362 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
16363 * Indicates the TDLS session global operating class. Required attribute.
16364 */
16365enum qca_wlan_vendor_attr_tdls_state {
16366 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
16367 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
16368 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
16369 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
16370 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
16371 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
16372
16373 /* keep last */
16374 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
16375 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
16376 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
16377};
16378
16379/*
16380 * enum qca_wlan_vendor_opm_mode - Modes supported by
16381 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
16382 *
16383 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
16384 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
16385 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
16386 * to configure power save inactivity timeout and speculative wake up
16387 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
16388 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
16389 */
16390
16391enum qca_wlan_vendor_opm_mode {
16392 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
16393 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
16394 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
16395};
16396
16397/*
16398 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
16399 * types.
16400 *
16401 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
16402 * from: An MSDU is presented to the driver
16403 * to: the MSDU is queued into TCL SRNG
16404 *
16405 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
16406 * from: the MSDU is queued into TCL SRNG
16407 * to: the MSDU is released by the driver
16408 *
16409 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
16410 * from: the MSDU is presented to the hardware
16411 * to: the MSDU is released by the hardware
16412 *
16413 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
16414 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
16415 * from: A PPDU is presented to the hardware LMAC
16416 * to: over-the-air transmission is started for the PPDU
16417 */
16418enum qca_wlan_vendor_tx_latency_type {
16419 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
16420 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
16421 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
16422 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
16423};
16424
16425/**
16426 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
16427 * used inside nested attributes
16428 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
16429 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
16430 *
16431 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
16432 * Indicates the latency type.
16433 * See enum qca_wlan_vendor_tx_latency_type for the supported types.
16434 *
16435 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
16436 * Indicates the granularity (in microseconds) of the distribution for the
16437 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
16438 * must be positive.
16439 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
16440 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
16441 * of 1000, and the maximum allowed value is 15000 (us).
16442 *
16443 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
16444 * Indicates the average of the latency (in microseconds) for the type
16445 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
16446 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
16447 * otherwise, it represents the quotient of <accumulated latency of the
16448 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
16449 * MSDUs/MPDUs in a cycle>.
16450 *
16451 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
16452 * Array of u32, 4 elements in total, represents the latency distribution for
16453 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
16454 * Each element holds the count of MSDUs/PPDUs (according to the latency type)
16455 * within a range:
16456 * element[0]: latency >= 0 && latency < granularity
16457 * element[1]: latency >= granularity && latency < granularity * 2
16458 * element[2]: latency >= granularity * 2 && latency < granularity * 3
16459 * element[3]: latency >= granularity * 3
16460 */
16461enum qca_wlan_vendor_attr_tx_latency_bucket {
16462 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
16463 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
16464 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
16465 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
16466 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
16467
16468 /* keep last */
16469 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
16470 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
16471 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
16472};
16473
16474/**
16475 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
16476 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
16477 *
16478 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
16479 * Indicates link MAC address of the remote peer. For example, when running
16480 * in station mode, it's the BSSID of the link; while when running in AP
16481 * mode, it's the link MAC address of the remote station.
16482 *
16483 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
16484 * Array of nested attribute.
16485 * Represents the transmit latency statistics for the link specified by
16486 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16487 * Each entry represents the statistics for one of the types defined in
16488 * enum qca_wlan_vendor_tx_latency_type.
16489 * Each defined type has and must have one entry.
16490 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
16491 */
16492enum qca_wlan_vendor_attr_tx_latency_link {
16493 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
16494 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
16495 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
16496
16497 /* keep last */
16498 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
16499 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
16500 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
16501};
16502
16503/**
16504 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
16505 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
16506 *
16507 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
16508 * Disable transmit latency monitoring.
16509 *
16510 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
16511 * Enable transmit latency monitoring.
16512 *
16513 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
16514 * Get transmit latency statistics of the last cycle (period is specified by
16515 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
16516 */
16517enum qca_wlan_vendor_tx_latency_action {
16518 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
16519 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
16520 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
16521};
16522
16523/**
16524 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
16525 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
16526 * per-link transmit latency statistics.
16527 *
16528 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
16529 * 1) used as a command to enable the feature
16530 * Precondition(s):
16531 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16532 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
16533 * Mandatory attribute(s):
16534 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16535 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
16536 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
16537 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16538 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
16539 * Notes:
16540 * The driver will monitor the transmit latency for the active links
16541 * and save the statistics for each cycle (period is set by
16542 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
16543 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
16544 * report is required.
16545 *
16546 * 2) used as a command to disable the feature
16547 * Precondition(s):
16548 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16549 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
16550 * Mandatory attribute(s):
16551 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16552 *
16553 * 3) used as a command to retrieve the statistics for all the active links on
16554 * the requested interface
16555 * Precondition(s):
16556 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16557 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16558 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
16559 * Mandatory attribute(s):
16560 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16561 * Notes:
16562 * The driver returns failure directly if the feature is not enabled or
16563 * there is no active link.
16564 * The driver returns the statistics of the last cycle in the case of
16565 * success.
16566 *
16567 * 4) used as a command to retrieve the statistics for the specified links
16568 * Precondition(s):
16569 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16570 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16571 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
16572 * Mandatory attribute(s):
16573 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16574 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
16575 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16576 * Notes:
16577 * The driver returns failure directly if the feature is not enabled or
16578 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
16579 * does not exist or is not in active state.
16580 *
16581 * 5) used as a command response for #3 or #4
16582 * Precondition(s):
16583 * Userspace issues command #3 or #4, and the driver gets corresponding
16584 * statistics successfully.
16585 * Mandatory attribute(s):
16586 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16587 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16588 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16589 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16590 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16591 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16592 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16593 *
16594 * 6) used as an asynchronous event to report the statistics periodically
16595 * Precondition(s):
16596 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
16597 * #1.
16598 * One or more links are in active state.
16599 * Mandatory attribute(s):
16600 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16601 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16602 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16603 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16604 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16605 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16606 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16607 *
16608 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
16609 *
16610 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
16611 * Action to take in this vendor command.
16612 * See enum qca_wlan_vendor_tx_latency_action for supported actions.
16613 *
16614 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
16615 * Enable (flag attribute present) - The driver needs to report transmit latency
16616 * statistics at the end of each statistical period.
16617 * Disable (flag attribute not present) - The driver doesn't need to report
16618 * transmit latency statistics periodically.
16619 *
16620 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
16621 * Indicates statistical period for transmit latency in terms of milliseconds,
16622 * the minimal allowed value is 100 and the maximum allowed value is 60000.
16623 *
16624 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
16625 * Each entry represents the latency buckets configuration for one of the types
16626 * defined in enum qca_wlan_vendor_tx_latency_type.
16627 * Each defined type has and must have one entry.
16628 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
16629 * supported attributes.
16630 *
16631 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
16632 * Information of the links, each entry represents for one link.
16633 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
16634 * supported attributes for each entry.
16635 */
16636enum qca_wlan_vendor_attr_tx_latency {
16637 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
16638 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
16639 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
16640 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
16641 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
16642 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
16643
16644 /* keep last */
16645 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
16646 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
16647 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
16648};
16649
16650/**
16651 * enum qca_chan_width_update_type - Represents the possible values for
16652 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
16653 *
16654 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
16655 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
16656 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
16657 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
16658 * with AP to indicate the change in the maximum allowed operating bandwidth.
16659 *
16660 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
16661 * bandwidth only to Tx path. In this case the driver doesn't need to conduct
16662 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
16663 * expected to be less than the current connection maximum negotiated bandwidth.
16664 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
16665 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
16666 * to 80 MHz only in the Tx path.
16667 *
16668 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
16669 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
16670 * phymode bandwidth to avoid interoperability issues with APs which don't
16671 * handle the maximum bandwidth change indication correctly.
16672 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
16673 * bandwidth configured is 20 MHz, now the driver indicates the change in
16674 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
16675 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
16676 * interoperability issues with APs which still use 40 MHz for sending the
16677 * frames though it received maximum allowed bandwidth indication as 20 MHz
16678 * from the STA.
16679 */
16680enum qca_chan_width_update_type {
16681 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
16682 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
16683 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
16684};
16685
Sunil Ravib0ac25f2024-07-12 01:42:03 +000016686/**
16687 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
16688 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
16689 *
16690 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
16691 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
16692 * frequency. If non PSD power, carries either 20 MHz bandwidth's center
16693 * channel frequency or 40 MHz bandwidth's center channel frequency
16694 * (or 80/160 MHz bandwidth's center channel frequency).
16695 *
16696 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
16697 * If PSD power, carries PSD power value of the
16698 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
16699 * If non PSD power, carries EIRP power value of bandwidth mentioned
16700 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
16701 */
16702enum qca_wlan_vendor_attr_tpc_pwr_level {
16703 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
16704 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
16705 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
16706
16707 /* keep last */
16708 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
16709 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
16710 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
16711};
16712
16713/**
16714 * enum qca_wlan_vendor_tpc - Definition of link attributes
16715 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
16716 *
16717 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
16718 * For MLO STA, AP BSSID indicates the AP's link address.
16719 *
16720 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
16721 * Indicates using PSD power mode if this flag is present.
16722 *
16723 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
16724 * value in dBm
16725 *
16726 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
16727 * AP, refer to Table E-12-Regulatory Info subfield encoding in
16728 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
16729 *
16730 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
16731 * (dBm) advertised by AP in Power Constraint element, refer to
16732 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
16733 *
16734 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
16735 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
16736 * If PSD power, each power level describes each 20 MHz subchannel PSD
16737 * power value. If non PSD power, each power level describes each supported
16738 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
16739 * each level attribute contains corresponding bandwidth's center channel
16740 * frequency and its EIRP power value.
16741 */
16742enum qca_wlan_vendor_attr_tpc {
16743 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
16744 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
16745 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
16746 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
16747 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
16748 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
16749 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
16750
16751 /* keep last */
16752 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
16753 QCA_WLAN_VENDOR_ATTR_TPC_MAX =
16754 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
16755};
16756
16757/**
16758 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
16759 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
16760 *
16761 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
16762 * per-link TPC information of all the active links of MLO STA.
16763 * For non MLO STA, only one link TPC information will be returned
16764 * for connected AP in this nested attribute.
16765 * The attributes used inside this nested attributes are defined
16766 * in enum qca_wlan_vendor_attr_tpc.
16767 */
16768enum qca_wlan_vendor_attr_tpc_links {
16769 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
16770 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
16771
16772 /* keep last */
16773 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
16774 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
16775 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
16776};
16777
16778/**
16779 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
16780 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
16781 *
16782 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
16783 * associated with the firmware page fault that is expected to contain the
16784 * required dump to analyze frequent page faults.
16785 * NLA_BINARY attribute, the maximum size is 1024 bytes.
16786 */
16787enum qca_wlan_vendor_attr_fw_page_fault_report {
16788 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
16789 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
16790
16791 /* keep last */
16792 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
16793 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
16794 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
16795};
16796
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080016797#endif /* QCA_VENDOR_H */