blob: 6c25816b044a82f306ce45b4ef833162cbae2ad9 [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 *
67 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
68 * used to configure PMK to the driver even when not connected. This can
69 * be used to request offloading of key management operations. Only used
70 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
71 *
72 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
73 * NL80211_CMD_ROAM event with optional attributes including information
74 * from offloaded key management operation. Uses
75 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
76 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
77 *
78 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
79 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -070080 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080081 *
82 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
83 * supported by the driver. enum qca_wlan_vendor_features defines
84 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080085 *
86 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
87 * which supports DFS offloading, to indicate a channel availability check
88 * start.
89 *
90 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
91 * which supports DFS offloading, to indicate a channel availability check
92 * completion.
93 *
94 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
95 * which supports DFS offloading, to indicate that the channel availability
96 * check aborted, no change to the channel status.
97 *
98 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
99 * driver, which supports DFS offloading, to indicate that the
100 * Non-Occupancy Period for this channel is over, channel becomes usable.
101 *
102 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
103 * which supports DFS offloading, to indicate a radar pattern has been
104 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700105 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700106 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
107 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
108 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700109 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
110 * based on enum wifi_logger_supported_features. Attributes defined in
111 * enum qca_wlan_vendor_attr_get_logger_features.
112 *
113 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
114 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
115 * attribute for this command. Attributes defined in
116 * enum qca_wlan_vendor_attr_wifi_logger_start.
117 *
118 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
119 * capabilities of the driver, parameters includes the attributes defined
120 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
121 *
122 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
123 * sending of certain periodic IP packet to firmware, attributes defined in
124 * enum qca_wlan_vendor_attr_offloaded_packets.
125 *
126 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
127 * monitoring, defines min and max RSSI which are configured for RSSI
128 * monitoring. Also used to notify the RSSI breach and provides the BSSID
129 * and RSSI value that was breached. Attributes defined in
130 * enum qca_wlan_vendor_attr_rssi_monitoring.
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
133 * Data Path (NDP) related operations, attributes defined in
134 * enum qca_wlan_vendor_attr_ndp_params.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
137 * Neighbour Discovery offload, attributes defined in
138 * enum qca_wlan_vendor_attr_nd_offload.
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
141 * configuration parameter for BPF packet filter, attributes defined in
142 * enum qca_wlan_vendor_attr_packet_filter.
143 *
144 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
145 * maximum supported size, attributes defined in
146 * enum qca_wlan_vendor_drv_info.
147 *
148 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
149 * data about wake reasons and datapath IP statistics, attributes defined
150 * in enum qca_wlan_vendor_attr_wake_stats.
151 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700152 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
153 * for IEEE 802.11 communicating outside the context of a basic service
154 * set, called OCB command. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_set_config.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
158 * UTC time. Use the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
160 *
161 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
162 * sending OCB timing advert frames. Uses the attributes defines in
163 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
164 *
165 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
166 * OCB timing advert. Uses the attributes defines in
167 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
168 *
169 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
170 * timer value. Uses the attributes defines in
171 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
172 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800173 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
174 * link properties of the respective interface. As an event, is used
175 * to notify the connected station's status. The attributes for this
176 * command are defined in enum qca_wlan_vendor_attr_link_properties.
177 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700178 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
179 * to the driver. This command sets the band(s) through either the
180 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
181 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
182 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
183 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
184 * bit unsigned bitmask values. The allowed values for
185 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
186 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
187 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
188 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
189 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
190 * are included for backwards compatibility, the configurations through
191 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
192 * that support both attributes.
193 *
Hai Shalomc3565922019-10-28 11:58:20 -0700194 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
195 * DFS policy and channel hint for ACS operation. This command uses the
196 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
197 * enum qca_acs_dfs_mode.
198 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700199 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
200 * start the P2P Listen offload function in device and pass the listen
201 * channel, period, interval, count, device types, and vendor specific
202 * information elements to the device driver and firmware.
203 * Uses the attributes defines in
204 * enum qca_wlan_vendor_attr_p2p_listen_offload.
205 *
206 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
207 * indicate stop request/response of the P2P Listen offload function in
208 * device. As an event, it indicates either the feature stopped after it
209 * was already running or feature has actually failed to start. Uses the
210 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
211 *
212 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
213 * beaconing, this sub command provides the driver, the frequencies on the
214 * 5 GHz band to check for any radar activity. Driver selects one channel
215 * from this priority list provided through
216 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
217 * to check for radar activity on it. If no radar activity is detected
218 * during the channel availability check period, driver internally switches
219 * to the selected frequency of operation. If the frequency is zero, driver
220 * internally selects a channel. The status of this conditional switch is
221 * indicated through an event using the same sub command through
222 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
223 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700224 *
225 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
226 * attributes defined in enum qca_wlan_gpio_attr.
227 *
228 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
229 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
230 * capabilities are to be fetched and other
231 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
232 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700233 *
234 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
235 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
236 * command and event.
237 *
238 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
239 * indoor location features. Capabilities are reported in
240 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
241 *
242 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
243 * (fine timing measurement) session with one or more peers.
244 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
245 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
246 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
247 * events will be reported, followed by
248 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
249 * end of session.
250 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
251 *
252 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
253 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
254 * status code indicating session was aborted.
255 *
256 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
257 * results for one peer. Results are reported in
258 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
259 *
260 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
261 * FTM session is finished, either successfully or aborted by
262 * request.
263 *
264 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
265 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
266 * to enable or disable the responder. LCI/LCR reports can be
267 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
268 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
269 * times to update the LCI/LCR reports.
270 *
271 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
272 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800273 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
274 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
275 * scan results cache and use the frequency from there).
276 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
277 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700278 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
279 *
280 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
281 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
282 *
283 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
284 * the AOA measurement result.
285 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
286 * success/failure status is reported in
287 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
288 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
289 * The antenna array(s) used in the measurement are reported in
290 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700291 *
292 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
293 * data as per the given parameters.
294 *
295 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
296 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800297 *
298 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
299 * configuration for a DMG RF sector. Specify sector index in
300 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
301 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
302 * to return sector information for in
303 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
304 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
305 * exact time where information was captured in
306 * QCA_WLAN_VENDOR_ATTR_TSF.
307 *
308 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
309 * configuration for a DMG RF sector. Specify sector index in
310 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
311 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
312 * for one or more DMG RF modules in
313 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
314 *
315 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
316 * DMG RF sector for a station. This is the sector that the HW
317 * will use to communicate with the station. Specify the MAC address
318 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
319 * needed for unassociated station). Specify sector type to return in
320 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
321 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
322 * Also return the exact time where the information was captured
323 * in QCA_WLAN_VENDOR_ATTR_TSF.
324 *
325 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
326 * selected DMG RF sector for a station. This is the sector that
327 * the HW will use to communicate with the station.
328 * Specify the MAC address of associated station/AP/PCP in
329 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
330 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
331 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
332 * The selected sector will be locked such that it will not be
333 * modified like it normally does (for example when station
334 * moves around). To unlock the selected sector for a station
335 * pass the special value 0xFFFF in the sector index. To unlock
336 * all connected stations also pass a broadcast MAC address.
337 *
338 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
339 * in the host driver. The different TDLS configurations are defined
340 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800341 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800342 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
343 * capabilities. The response uses the attributes defined in
344 * enum qca_wlan_vendor_attr_get_he_capabilities.
345 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800346 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
347 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
348 * carries the scan cookie of the corresponding scan request. The scan
349 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800350 *
351 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
352 * Absorption Rate (SAR) power limits. A critical regulation for
353 * FCC compliance, OEMs require methods to set SAR limits on TX
354 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
355 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800356 *
357 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
358 * host driver for offloading the implementation of Auto Channel Selection
359 * (ACS) to an external user space entity. This interface is used as the
360 * event from the host driver to the user space entity and also as the
361 * request from the user space entity to the host driver. The event from
362 * the host driver is used by the user space entity as an indication to
363 * start the ACS functionality. The attributes used by this event are
364 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
365 * User space entity uses the same interface to inform the host driver with
366 * selected channels after the ACS operation using the attributes defined
367 * by enum qca_wlan_vendor_attr_external_acs_channels.
368 *
369 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
370 * requisite information leading to a power save failure. The information
371 * carried as part of this event is represented by the
372 * enum qca_attr_chip_power_save_failure attributes.
373 *
374 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
375 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
376 *
377 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
378 * statistics are represented by the enum qca_attr_nud_stats_get
379 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800380 *
381 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
382 * the BSS transition status, whether accept or reject, for a list of
383 * candidate BSSIDs provided by the userspace. This uses the vendor
384 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
385 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
386 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
387 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
388 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
389 * the driver shall specify array of
390 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
391 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
392 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
393 *
394 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
395 * specific QCA module. The trace levels are represented by
396 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700397 *
398 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
399 * Protocol antenna limit in different modes. See enum
400 * qca_wlan_vendor_attr_brp_ant_limit_mode.
401 *
402 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
403 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
404 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700405 * identifying the operation in success case. In failure cases an
406 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
407 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700408 *
409 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
410 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
411 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
412 * be stopped.
413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
415 * specific interface. This can be used to modify some of the low level
416 * scan parameters (off channel dwell time, home channel time) in the
417 * driver/firmware. These parameters are maintained within the host driver.
418 * This command is valid only when the interface is in the connected state.
419 * These scan parameters shall be reset by the driver/firmware once
420 * disconnected. The attributes used with this command are defined in
421 * enum qca_wlan_vendor_attr_active_tos.
422 *
423 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
424 * driver has detected an internal failure. This event carries the
425 * information indicating the reason that triggered this detection. The
426 * attributes for this command are defined in
427 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700428 *
429 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
430 * of spectral parameters used. The spectral scan parameters are specified
431 * by enum qca_wlan_vendor_attr_spectral_scan.
432 *
433 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
434 * for spectral scan functionality. The debug stats are specified by
435 * enum qca_wlan_vendor_attr_spectral_diag_stats.
436 *
437 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
438 * scan system capabilities. The capabilities are specified
439 * by enum qca_wlan_vendor_attr_spectral_cap.
440 *
441 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
442 * status of spectral scan. The status values are specified
443 * by enum qca_wlan_vendor_attr_spectral_scan_status.
444 *
445 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
446 * peer pending packets. Specify the peer MAC address in
447 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
448 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
449 * in enum qca_wlan_vendor_attr_flush_pending.
450 *
451 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
452 * RF Operating Parameter (RROP) information. The attributes for this
453 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
454 * intended for use by external Auto Channel Selection applications.
455 *
456 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
457 * (SAR) power limits. This is a companion to the command
458 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
459 * settings currently in use. The attributes returned by this command are
460 * defined by enum qca_vendor_attr_sar_limits.
461 *
462 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
463 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
464 * information attached to the respective MAC.
465 * This works both as a query (user space asks the current mode) or event
466 * interface (driver advertising the current mode to the user space).
467 * Driver does not trigger this event for temporary hardware mode changes.
468 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
469 * channel change, etc.) are updated with this event. Attributes for this
470 * interface are defined in enum qca_wlan_vendor_attr_mac.
471 *
472 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
473 * per peer per TID. Attributes for this command are define in
474 * enum qca_wlan_set_qdepth_thresh_attr.
475 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
476 * guide for WLAN driver. Request to suspend of driver and FW if the
477 * temperature is higher than the suspend threshold; resume action is
478 * requested to driver if the temperature is lower than the resume
479 * threshold. In user poll mode, request temperature data by user. For test
480 * purpose, getting thermal shutdown configuration parameters is needed.
481 * Attributes for this interface are defined in
482 * enum qca_wlan_vendor_attr_thermal_cmd.
483 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
484 * driver. Thermal temperature and indication of resume completion are
485 * reported as thermal events. The attributes for this command are defined
486 * in enum qca_wlan_vendor_attr_thermal_event.
487 *
488 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
489 * test configuration. Attributes for this command are defined in
490 * enum qca_wlan_vendor_attr_wifi_test_config.
491 *
492 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
493 * RX filter to receive frames from stations that are active on the
494 * operating channel, but not associated with the local device (e.g., STAs
495 * associated with other APs). Filtering is done based on a list of BSSIDs
496 * and STA MAC addresses added by the user. This command is also used to
497 * fetch the statistics of unassociated stations. The attributes used with
498 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700499 *
500 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
501 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
502 * carried a payload which was a binary blob of data. The command was not
503 * extendable to send more information. The newer version carries the
504 * legacy blob encapsulated within an attribute and can be extended with
505 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800506 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
507 * or stopped within driver/firmware in order to initiate roaming. The
508 * attributes used with this event are defined in enum
509 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
510 * in few cases, e.g., if the host processor is sleeping when this event
511 * is generated in firmware.
512 *
513 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
514 * configure parameters per peer to capture Channel Frequency Response
515 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800516 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
517 * can also be used to send CFR data from the driver to userspace when
518 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800519 *
520 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
521 * in throughput dynamically. The driver estimates the throughput based on
522 * number of packets being transmitted/received per second and indicates
523 * the changes in throughput to user space. Userspace tools can use this
524 * information to configure kernel's TCP parameters in order to achieve
525 * peak throughput. Optionally, the driver will also send guidance on
526 * modifications to kernel's TCP parameters which can be referred by
527 * userspace tools. The attributes used with this event are defined in enum
528 * qca_wlan_vendor_attr_throughput_change.
529 *
530 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
531 * priorities among different types of traffic during coex scenarios.
532 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
533 * profiles mentioned in enum qca_coex_config_profiles. The associated
534 * attributes used with this command are defined in enum
535 * qca_vendor_attr_coex_config.
536 *
537 * Based on the config provided, FW will boost the weight and prioritize
538 * the traffic for that subsystem (WLAN/BT/Zigbee).
539 *
540 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
541 * the supported AKM suite selectorss from the driver. It returns the list
542 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700543 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
544 * state from the driver. It returns the firmware state in the attribute
545 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
546 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
547 * is used by the driver to flush per-peer cached statistics to user space
548 * application. This interface is used as an event from the driver to
549 * user space application. Attributes for this event are specified in
550 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
551 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
552 * sent in the event.
553 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
554 * improve the success rate of Zigbee joining network.
555 * Due to PTA master limitation, Zigbee joining network success rate is
556 * low while WLAN is working. The WLAN driver needs to configure some
557 * parameters including Zigbee state and specific WLAN periods to enhance
558 * PTA master. All these parameters are delivered by the attributes
559 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700560 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
561 * implement Beacon frame reporting feature.
562 *
563 * Userspace can request the driver/firmware to periodically report
564 * received Beacon frames whose BSSID is same as the current connected
565 * BSS's MAC address.
566 *
567 * In case the STA seamlessly (without sending disconnect indication to
568 * userspace) roams to a different BSS, Beacon frame reporting will be
569 * automatically enabled for the Beacon frames whose BSSID is same as the
570 * MAC address of the new BSS. Beacon reporting will be stopped when the
571 * STA is disconnected (when the disconnect indication is sent to
572 * userspace) and need to be explicitly enabled by userspace for next
573 * connection.
574 *
575 * When a Beacon frame matching configured conditions is received, and if
576 * userspace has requested to send asynchronous beacon reports, the
577 * driver/firmware will encapsulate the details of the Beacon frame in an
578 * event and send it to userspace along with updating the BSS information
579 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
580 * scan cache with the information from the received Beacon frame but will
581 * not send any active report to userspace.
582 *
583 * The userspace can request the driver/firmware to stop reporting Beacon
584 * frames. If the driver/firmware is not able to receive Beacon frames due
585 * to other Wi-Fi operations such as off-channel activities, etc., the
586 * driver/firmware will send a pause event to userspace and stop reporting
587 * Beacon frames. Whether the beacon reporting will be automatically
588 * resumed or not by the driver/firmware later will be reported to
589 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
590 * flag. The beacon reporting shall be resumed for all the cases except
591 * either when userspace sets
592 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
593 * which triggered the current beacon reporting or during any disconnection
594 * case as indicated by setting
595 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
596 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
597 * driver.
598 *
599 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
600 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
601 * flag not set, the next first
602 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
603 * shall be considered as un-pause event.
604 *
605 * All the attributes used with this command are defined in
606 * enum qca_wlan_vendor_attr_beacon_reporting_params.
607 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
608 * interop issues with the DUT. This sub command is used to transfer the
609 * AP info between the driver and user space. This works both as a command
610 * and an event. As a command, it configures the stored list of APs from
611 * user space to firmware; as an event, it indicates the AP info detected
612 * by the firmware to user space for persistent storage. The attributes
613 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
614 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700615 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
616 * send/receive OEM data binary blobs to/from application/service to/from
617 * firmware. The attributes defined in enum
618 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
619 * parameters.
620 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
621 * to send/receive avoid frequency data using
622 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
623 * This new command is alternative to existing command
624 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
625 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800626 * attributes. User space sends unsafe frequency ranges to the driver using
627 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
628 * reception of this command, the driver shall check if an interface is
629 * operating on an unsafe frequency and the driver shall try to move to a
630 * safe channel when needed. If the driver is not able to find a safe
631 * channel the interface can keep operating on an unsafe channel with the
632 * TX power limit derived based on internal configurations like
633 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700634 *
635 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
636 * add the STA node details in driver/firmware. Attributes for this event
637 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
638 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
639 * coex chain mode from application/service.
640 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
641 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800642 *
643 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
644 * get information of a station from driver to userspace. This command can
645 * be used in both STA and AP modes. For STA mode, it provides information
646 * of the current association when in connected state or the last
647 * association when in disconnected state. For AP mode, only information
648 * of the currently connected stations is available. This command uses
649 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700650 *
651 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
652 * Host drivers can request the user space entity to set the SAR power
653 * limits with this event. Accordingly, the user space entity is expected
654 * to set the SAR power limits. Host drivers can retry this event to the
655 * user space for the SAR power limits configuration from user space. If
656 * the driver does not get the SAR power limits from user space for all
657 * the retried attempts, it can configure a default SAR power limit.
658 *
659 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
660 * is used to update the information about the station from the driver to
661 * userspace. Uses attributes from enum
662 * qca_wlan_vendor_attr_update_sta_info.
663 *
664 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
665 * The host driver initiates the disconnection for scenarios such as beacon
666 * miss, NUD failure, peer kick out, etc. The disconnection indication
667 * through cfg80211_disconnected() expects the reason codes from enum
668 * ieee80211_reasoncode which does not signify these various reasons why
669 * the driver has triggered the disconnection. This event will be used to
670 * send the driver specific reason codes by the host driver to userspace.
671 * Host drivers should trigger this event and pass the respective reason
672 * code immediately prior to triggering cfg80211_disconnected(). The
673 * attributes used with this event are defined in enum
674 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700675 *
676 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
677 * add/delete TSPEC for each AC. One command is for one specific AC only.
678 * This command can only be used in STA mode and the STA must be
679 * associated with an AP when the command is issued. Uses attributes
680 * defined in enum qca_wlan_vendor_attr_config_tspec.
681 *
682 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
683 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
684 *
685 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
686 * the driver. The band configurations obtained are referred through
687 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
688 *
689 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
690 * assessment.
691 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
692 *
693 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
694 * used to update SSID information in hostapd when it is updated in the
695 * driver. Uses the attribute NL80211_ATTR_SSID.
696 *
697 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
698 * the driver to send opaque data from the firmware to userspace. The
699 * driver sends an event to userspace whenever such data is received from
700 * the firmware.
701 *
702 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
703 * send this opaque data for this event.
704 *
705 * The format of the opaque data is specific to the particular firmware
706 * version and there is no guarantee of the format remaining same.
707 *
708 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
709 * The host driver selects Tx VDEV, and notifies user. The attributes
710 * used with this event are defined in enum
711 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800712 * This event contains Tx VDEV group information, other VDEVs
713 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700714 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000715 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
716 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800717 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000718 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800719 *
720 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
721 * to query usable channels for different interface types such as STA,
722 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
723 * channels in the response based on country code, different static
724 * configurations, concurrency combinations, etc. The attributes used
725 * with this command are defined in
726 * enum qca_wlan_vendor_attr_usable_channels.
727 *
728 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
729 * to get DFS radar history from the driver to userspace. The driver
730 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
731 * array of nested entries.
732 *
733 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
734 * enable/disable mDNS offload to the firmware. The attributes used with
735 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
736 *
737 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
738 * to set packet monitor mode that aims to send the specified set of TX and
739 * RX frames on the current client interface to an active monitor
740 * interface. If this monitor mode is set, the driver will send the
741 * configured frames, from the interface on which the command is issued, to
742 * an active monitor interface. The attributes used with this command are
743 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
744 *
745 * Though the monitor mode is configured for the respective
746 * Data/Management/Control frames, it is up to the respective WLAN
747 * driver/firmware/hardware designs to consider the possibility of sending
748 * these frames over the monitor interface. For example, the Control frames
749 * are handled within the hardware and thus passing such frames over the
750 * monitor interface is left to the respective designs.
751 *
752 * Also, this monitor mode is governed to behave accordingly in
753 * suspend/resume states. If the firmware handles any of such frames in
754 * suspend state without waking up the host and if the monitor mode is
755 * configured to notify all such frames, the firmware is expected to resume
756 * the host and forward the respective frames to the monitor interface.
757 * Please note that such a request to get the frames over the monitor
758 * interface will have a definite power implication.
759 *
760 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
761 * as a request to set the driver/firmware with the parameters to trigger
762 * the roaming events, and also used by the driver/firmware to pass on the
763 * various roam events to userspace.
764 * Applicable only for the STA mode. The attributes used with this command
765 * are defined in enum qca_wlan_vendor_attr_roam_events.
766 *
767 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
768 * rate mask config for a list of PHY types. Userspace shall provide an
769 * array of the vendor attributes defined in
770 * enum qca_wlan_vendor_attr_ratemask_params.
771 *
772 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
773 * when two interfaces are active on the same band, using two different
774 * home channels, and only supported by a single radio. In this scenario
775 * the device must split the use of the radio between the two interfaces.
776 * The percentage of time allocated to a given interface is the quota.
777 * Depending on the configuration, the quota can either be fixed or
778 * dynamic.
779 *
780 * When used as an event, the device will report the quota type, and for
781 * all interfaces operating in MCC it will report the current quota.
782 * When used as a command, the device can be configured for a specific
783 * quota type, and in the case of a fixed quota, the quota to apply to one
784 * of the interfaces.
785 *
786 * Applications can use the event to do TX bitrate control based on the
787 * information, and can use the command to explicitly set the quota to
788 * enhance performance in specific scenarios.
789 *
790 * The attributes used with this command are defined in
791 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000792 *
793 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
794 * get the WLAN radio combinations matrix supported by the device which
795 * provides the device simultaneous radio configurations such as
796 * standalone, dual band simultaneous, and single band simultaneous.
797 *
798 * The attributes used with this command are defined in
799 * enum qca_wlan_vendor_attr_radio_combination_matrix.
800 *
801 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
802 * that the driver is ready for operations again after recovering from
803 * internal failures. This occurs following a failure that was indicated by
804 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
805 *
806 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
807 * security negotiation and key generation to user space.
808 *
809 * When used as an event, the driver requests userspace to trigger the PASN
810 * authentication or dropping of a PTKSA for the indicated peer devices.
811 * When used as a command response, userspace indicates a consolidated
812 * status report for all the peers that were requested for.
813 *
814 * The attributes used with this command are defined in
815 * enum qca_wlan_vendor_attr_pasn.
816 *
817 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
818 * secure ranging context such as TK and LTF keyseed for each peer
819 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
820 *
821 * The attributes used with this command are defined in
822 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700823 *
824 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
825 * enable/disable offload processing in firmware during system/runtime
826 * suspend for CoAP messages (see RFC7252: The Constrained Application
827 * Protocol) and fetch information of the CoAP messages cached during
828 * offload processing.
829 *
830 * The attributes used with this command are defined in
831 * enum qca_wlan_vendor_attr_coap_offload.
832 *
833 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
834 * (add, remove, or change) a Stream Classification Service (SCS) rule.
835 *
836 * The attributes used with this event are defined in
837 * enum qca_wlan_vendor_attr_scs_rule_config.
838 *
839 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
840 * supported by the WLAN firmware.
841 *
842 * The attributes used with this command are defined in
843 * enum qca_wlan_vendor_attr_sar_capability.
844 *
845 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
846 * (SR) feature. This command is used by userspace to configure SR
847 * parameters to the driver and to get the SR related parameters and
848 * statistics with synchronous responses from the driver.
849 * The driver also uses this command to send asynchronous events to
850 * userspace to indicate suspend/resume of SR feature and changes
851 * in SR parameters.
852 *
853 * The attributes used with this command are defined in
854 * enum qca_wlan_vendor_attr_sr.
Sunil Ravi77d572f2023-01-17 23:58:31 +0000855 *
856 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
857 * notify application layer about the primary netdev of an MLO connection.
858 * In some implementations, MLO has multiple netdevs out of which one
859 * netdev is designated as primary to provide a unified interface to the
860 * bridge. In those implementations this event is sent on every MLO peer
861 * connection.
862 *
863 * The attributes used with this event are defined in
864 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
865 *
866 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
867 * driver to notify different AFC events to userspace. The attributes used
868 * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
869 *
870 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
871 * userspace to deliver AFC response data to driver. The attributes used
872 * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
873 *
874 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
875 * operate in doze mode.
876 *
877 * Userspace uses this command to configure the AP interface to enter or
878 * exit from doze mode. The driver sends this event after it enters or
879 * exits the doze mode with the updated AP doze mode settings.
880 *
881 * The attributes used with this subcommand are defined in
882 * enum qca_wlan_vendor_attr_dozed_ap.
883 *
884 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
885 * to get the status of local packet capture of monitor mode. The monitor
886 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
887 * subcommand.
888 *
889 * The attributes used with this command are defined in enum
890 * qca_wlan_vendor_attr_get_monitor_mode.
891 *
892 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
893 * get roam information from the driver to user space. It provides the
894 * latest several instances of roam information cached in the driver.
895 * The command is only used for STA mode. The attributes used with this
896 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
Sunil Ravi036cec52023-03-29 11:35:17 -0700897 *
898 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
899 * configure and fetch the state information of the MLO links affiliated
900 * with the STA interface. The attributes used with this command are
901 * defined in enum qca_wlan_vendor_attr_mlo_link_state.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800902 */
903enum qca_nl80211_vendor_subcmds {
904 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
905 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700906 /* subcmds 2..8 not yet allocated */
907 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800908 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700909 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700910 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800911 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800912 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
913 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
914 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
915 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
916 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
917 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
918 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
919 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
920 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
921 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
922 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
923 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
924 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
925 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
926 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
927 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
928 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
929 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
930 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
931 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
932 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
933 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
934 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
935 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
936 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
937 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
938 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
939 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
940 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
941 /* 43..49 - reserved for QCA */
942 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
943 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
944 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700945 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800946 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
947 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800948 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
949 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
950 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
951 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
952 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800953 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
954 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
955 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
956 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
957 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
958 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
959 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
960 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
961 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
962 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
963 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
964 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
965 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700966 /* Wi-Fi configuration subcommands */
967 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
968 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700969 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
970 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
971 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
972 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
973 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
974 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
975 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
976 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
977 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
978 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
979 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700980 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700981 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
982 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
983 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
984 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
985 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
986 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
987 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
988 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
989 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700990 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700991 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
992 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
993 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
994 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800995 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
996 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
997 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
998 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
999 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001000 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001001 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1002 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001003 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001004 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1005 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001006 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001007 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1008 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1009 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001010 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1011 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001012 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1013 /* FTM/indoor location subcommands */
1014 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1015 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1016 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1017 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1018 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1019 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1020 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1021 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1022 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001023 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1024 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001025 /* DMG low level RF sector operations */
1026 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1027 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1028 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1029 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1030 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001031 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001032 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001033 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001034 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1035 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1036 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1037 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001038 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1039 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001040 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1041 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1042 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1043 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1044 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001045 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1046 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1047 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1048 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1049 /* Flush peer pending data */
1050 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1051 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1052 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1053 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1054 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1055 /* Thermal shutdown commands to protect wifi chip */
1056 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1057 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1058 /* Wi-Fi test configuration subcommand */
1059 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1060 /* Frame filter operations for other BSSs/unassociated STAs */
1061 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001062 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001063 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1064 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001065 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1066 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1067 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001068 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1069 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1070 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001071 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1072 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001073 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1074 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1075 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1076 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001077 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001078 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1079 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1080 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001081 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1082 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1083 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1084 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1085 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1086 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1087 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001088 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001089 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1090 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1091 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1092 /* 201 - reserved for QCA */
1093 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1094 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1095 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1096 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001097 /* 206..212 - reserved for QCA */
1098 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1099 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1100 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1101 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001102 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1103 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1104 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1105 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001106 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1107 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1108 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1109 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1110 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1111 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001112 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001113};
1114
Sunil8cd6f4d2022-06-28 18:40:46 +00001115/* Compatibility defines for previously used subcmd names.
1116 * These values should not be used in any new implementation.
1117 */
1118#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1119 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1120
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001121enum qca_wlan_vendor_attr {
1122 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1123 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1124 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001125 /* Used only when driver sends vendor events to the userspace under the
1126 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1127 * commands to the driver.
1128 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001129 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001130 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1131 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001132 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1133 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001134 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001135 * by enum qca_roaming_policy.
1136 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001137 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1138 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001139 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1140 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001141 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001142 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1143 /* Unsigned 32-bit value. */
1144 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1145 /* Unsigned 32-bit value */
1146 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1147 /* Unsigned 32-bit value */
1148 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001149 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1150 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1151 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1152 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1153 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001154 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001155 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001156 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1157 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1158 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1159 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1160 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1161 */
1162 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1163 /* Indoor location capabilities, returned by
1164 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1165 * see enum qca_wlan_vendor_attr_loc_capa.
1166 */
1167 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1168 /* Array of nested attributes containing information about each peer
1169 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1170 * for supported attributes for each peer.
1171 */
1172 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1173 /* Array of nested attributes containing measurement results for
1174 * one or more peers, reported by the
1175 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1176 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1177 * attributes.
1178 */
1179 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1180 /* Flag attribute for enabling or disabling responder functionality. */
1181 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1182 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1183 * command to specify the LCI report that will be sent by
1184 * the responder during a measurement exchange. The format is
1185 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1186 */
1187 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1188 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1189 * command to specify the location civic report that will
1190 * be sent by the responder during a measurement exchange.
1191 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1192 */
1193 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1194 /* Session/measurement completion status code,
1195 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1196 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1197 * see enum qca_vendor_attr_loc_session_status.
1198 */
1199 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1200 /* Initial dialog token used by responder (0 if not specified),
1201 * unsigned 8 bit value.
1202 */
1203 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1204 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1205 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1206 * AOA measurements are needed as part of an FTM session.
1207 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1208 * enum qca_wlan_vendor_attr_aoa_type.
1209 */
1210 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1211 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1212 * by indoor location measurements. Refers to the antenna
1213 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1214 */
1215 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1216 /* AOA measurement data. Its contents depends on the AOA measurement
1217 * type and antenna array mask:
1218 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1219 * phase of the strongest CIR path for each antenna in the measured
1220 * array(s).
1221 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1222 * values, phase and amplitude of the strongest CIR path for each
1223 * antenna in the measured array(s).
1224 */
1225 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001226 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1227 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001228 * the corresponding antenna RSSI value
1229 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001230 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1231 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001232 * to report the specific antenna RSSI value (unsigned 32 bit value)
1233 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001234 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001235 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1236 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1237 /* TSF timer value, unsigned 64 bit value.
1238 * May be returned by various commands.
1239 */
1240 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1241 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1242 * 0..127 for sector indices or 65535 as special value used to
1243 * unlock sector selection in
1244 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1245 */
1246 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1247 /* DMG RF sector type, unsigned 8 bit value. One of the values
1248 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1249 */
1250 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1251 /* Bitmask of DMG RF modules for which information is requested. Each
1252 * bit corresponds to an RF module with the same index as the bit
1253 * number. Unsigned 32 bit number but only low 8 bits can be set since
1254 * all DMG chips currently have up to 8 RF modules.
1255 */
1256 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1257 /* Array of nested attributes where each entry is DMG RF sector
1258 * configuration for a single RF module.
1259 * Attributes for each entry are taken from enum
1260 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1261 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1262 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1263 */
1264 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1265 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1266 * to report frame aggregation statistics to userspace.
1267 */
1268 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1269 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001270 /* Unsigned 8-bit value representing MBO transition reason code as
1271 * provided by the AP used by subcommand
1272 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1273 * specified by the userspace in the request to the driver.
1274 */
1275 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1276 /* Array of nested attributes, BSSID and status code, used by subcommand
1277 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1278 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1279 * The userspace space specifies the list/array of candidate BSSIDs in
1280 * the order of preference in the request. The driver specifies the
1281 * status code, for each BSSID in the list, in the response. The
1282 * acceptable candidates are listed in the order preferred by the
1283 * driver.
1284 */
1285 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001286 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1287 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1288 */
1289 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1290 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1291 * to define the number of antennas to use for BRP.
1292 * different purpose in each ANT_LIMIT_MODE:
1293 * DISABLE - ignored
1294 * EFFECTIVE - upper limit to number of antennas to be used
1295 * FORCE - exact number of antennas to be used
1296 * unsigned 8 bit value
1297 */
1298 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1299 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001300 * to report the corresponding antenna index to the chain RSSI value
1301 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001302 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001303 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1304 * the specific antenna EVM value (unsigned 32 bit value). With a
1305 * determinate group of antennas, the driver specifies the EVM value
1306 * for each antenna ID, and application extract them in user space.
1307 */
1308 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001309 /*
1310 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1311 * wlan firmware current state. FW state is an unsigned 8 bit value,
1312 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1313 */
1314 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001315
Hai Shalom899fcc72020-10-19 14:38:18 -07001316 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1317 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1318 * of single values from enum qca_set_band are valid. This attribute
1319 * uses bitmask combinations to define the respective allowed band
1320 * combinations and this attributes takes precedence over
1321 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1322 */
1323 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1324
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001325 /* keep last */
1326 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1327 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1328};
1329
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001330enum qca_roaming_policy {
1331 QCA_ROAMING_NOT_ALLOWED,
1332 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1333};
1334
Hai Shalom021b0b52019-04-10 11:17:58 -07001335/**
1336 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1337 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1338 *
1339 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1340 * reasons.
1341 *
1342 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1343 * the configured threshold.
1344 *
1345 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1346 * beacon misses from the then connected AP.
1347 *
1348 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1349 * by the connected AP.
1350 *
1351 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1352 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1353 *
1354 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1355 * or environment being very noisy or congested.
1356 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001357 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001358 * from the user (user space).
1359 *
1360 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1361 * the connected AP.
1362 *
1363 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1364 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001365 *
1366 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1367 * transition request.
1368 *
1369 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1370 * data activity with the AP and the current RSSI falls below a certain
1371 * threshold.
1372 *
1373 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1374 * Disassociation frames received from the connected AP.
1375 *
1376 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1377 * that happens when there is no candidate AP found during the poor RSSI scan
1378 * trigger.
1379 *
1380 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1381 * obtained from an external scan (not aimed at roaming).
1382 *
1383 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1384 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001385 *
1386 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1387 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001388 */
1389enum qca_roam_reason {
1390 QCA_ROAM_REASON_UNKNOWN,
1391 QCA_ROAM_REASON_PER,
1392 QCA_ROAM_REASON_BEACON_MISS,
1393 QCA_ROAM_REASON_POOR_RSSI,
1394 QCA_ROAM_REASON_BETTER_RSSI,
1395 QCA_ROAM_REASON_CONGESTION,
1396 QCA_ROAM_REASON_USER_TRIGGER,
1397 QCA_ROAM_REASON_BTM,
1398 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001399 QCA_ROAM_REASON_WTC,
1400 QCA_ROAM_REASON_IDLE,
1401 QCA_ROAM_REASON_DISCONNECTION,
1402 QCA_ROAM_REASON_PERIODIC_TIMER,
1403 QCA_ROAM_REASON_BACKGROUND_SCAN,
1404 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001405 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001406};
1407
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001408enum qca_wlan_vendor_attr_roam_auth {
1409 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001410 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1411 * of the roamed AP for MLO roaming.
1412 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001413 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1414 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1415 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1416 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1417 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1418 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1419 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001420 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001421 /* Indicates the status of re-association requested by user space for
1422 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1423 * Type u16.
1424 * Represents the status code from AP. Use
1425 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1426 * real status code for failures.
1427 */
1428 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1429 /* This attribute indicates that the old association was maintained when
1430 * a re-association is requested by user space and that re-association
1431 * attempt fails (i.e., cannot connect to the requested BSS, but can
1432 * remain associated with the BSS with which the association was in
1433 * place when being requested to roam). Used along with
1434 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1435 * re-association status. Type flag.
1436 * This attribute is applicable only for re-association failure cases.
1437 */
1438 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1439 /* This attribute specifies the PMK if one was newly generated during
1440 * FILS roaming. This is added to the PMKSA cache and is used in
1441 * subsequent connections with PMKSA caching.
1442 */
1443 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1444 /* This attribute specifies the PMKID used/generated for the current
1445 * FILS roam. This is used in subsequent connections with PMKSA caching.
1446 */
1447 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1448 /* A 16-bit unsigned value specifying the next sequence number to use
1449 * in ERP message in the currently associated realm. This is used in
1450 * doing subsequent ERP based connections in the same realm.
1451 */
1452 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001453 /* A 16-bit unsigned value representing the reasons for the roaming.
1454 * Defined by enum qca_roam_reason.
1455 */
1456 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001457 /* A nested attribute containing per-link information of all the links
1458 * of MLO connection done while roaming. The attributes used inside this
1459 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1460 */
1461 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001462
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001463 /* keep last */
1464 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1465 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1466 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1467};
1468
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001469enum qca_wlan_vendor_attr_p2p_listen_offload {
1470 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1471 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1472 * of the social channels.
1473 */
1474 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1475 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1476 */
1477 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1478 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1479 */
1480 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1481 /* A 32-bit unsigned value; number of interval times the firmware needs
1482 * to run the offloaded P2P listen operation before it stops.
1483 */
1484 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1485 /* An array of arbitrary binary data with one or more 8-byte values.
1486 * The device types include both primary and secondary device types.
1487 */
1488 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1489 /* An array of unsigned 8-bit characters; vendor information elements.
1490 */
1491 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1492 /* A 32-bit unsigned value; a control flag to indicate whether listen
1493 * results need to be flushed to wpa_supplicant.
1494 */
1495 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1496 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1497 * event.
1498 */
1499 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1500 /* keep last */
1501 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1502 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1503 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1504};
1505
Hai Shalomc3565922019-10-28 11:58:20 -07001506/**
1507 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1508 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1509 *
1510 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1511 * Used with event to notify the primary channel number selected in ACS
1512 * operation.
1513 * Note: If both the driver and user-space application supports the 6 GHz band,
1514 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1515 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1516 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1517 * is still used if either of the driver or user space application doesn't
1518 * support the 6 GHz band.
1519 *
1520 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1521 * Used with event to notify the secondary channel number selected in ACS
1522 * operation.
1523 * Note: If both the driver and user-space application supports the 6 GHz band,
1524 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1525 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1526 * To maintain backward compatibility,
1527 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1528 * the driver or user space application doesn't support 6 GHz band.
1529 *
1530 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1531 * (a) Used with command to configure hw_mode from
1532 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1533 * (b) Also used with event to notify the hw_mode of selected primary channel
1534 * in ACS operation.
1535 *
1536 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1537 * Used with command to configure ACS operation for HT mode.
1538 * Disable (flag attribute not present) - HT disabled and
1539 * Enable (flag attribute present) - HT enabled.
1540 *
1541 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1542 * Used with command to configure ACS operation for HT40 mode.
1543 * Disable (flag attribute not present) - HT40 disabled and
1544 * Enable (flag attribute present) - HT40 enabled.
1545 *
1546 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1547 * Used with command to configure ACS operation for VHT mode.
1548 * Disable (flag attribute not present) - VHT disabled and
1549 * Enable (flag attribute present) - VHT enabled.
1550 *
1551 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1552 * mandatory with event.
1553 * If specified in command path, ACS operation is configured with the given
1554 * channel width (in MHz).
1555 * In event path, specifies the channel width of the primary channel selected.
1556 *
1557 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1558 * Used with command to configure channel list using an array of
1559 * channel numbers (u8).
1560 * Note: If both the driver and user-space application supports the 6 GHz band,
1561 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1562 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1563 *
1564 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1565 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001566 * ACS operation. The value is the index of the channel center frequency for
1567 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1568 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001569 * Note: If both the driver and user-space application supports the 6 GHz band,
1570 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1571 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1572 * To maintain backward compatibility,
1573 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1574 * the driver or user space application doesn't support the 6 GHz band.
1575 *
1576 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1577 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001578 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1579 * The value is the index of the channel center frequency for 160 MHz channels
1580 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1581 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001582 * Note: If both the driver and user-space application supports the 6 GHz band,
1583 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1584 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1585 * To maintain backward compatibility,
1586 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1587 * the driver or user space application doesn't support the 6 GHz band.
1588 *
1589 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1590 * Used with command to configure the channel list using an array of channel
1591 * center frequencies in MHz (u32).
1592 * Note: If both the driver and user-space application supports the 6 GHz band,
1593 * the driver first parses the frequency list and if it fails to get a frequency
1594 * list, parses the channel list specified using
1595 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1596 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1597 *
1598 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1599 * Used with event to notify the primary channel center frequency (MHz) selected
1600 * in ACS operation.
1601 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1602 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1603 *
1604 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1605 * Used with event to notify the secondary channel center frequency (MHz)
1606 * selected in ACS operation.
1607 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1608 * includes this attribute along with
1609 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1610 *
1611 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1612 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1613 * selected in ACS operation.
1614 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1615 * includes this attribute along with
1616 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1617 *
1618 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1619 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1620 * selected in ACS operation.
1621 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1622 * includes this attribute along with
1623 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001624 *
1625 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1626 * Used with command to notify the driver of EDMG request for ACS
1627 * operation.
1628 *
1629 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1630 * Used with event to notify the EDMG channel number selected in ACS
1631 * operation.
1632 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001633 *
1634 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1635 * Used with event to notify the puncture pattern selected in ACS operation.
1636 * Encoding for this attribute will follow the convention used in the Disabled
1637 * Subchannel Bitmap field of the EHT Operation IE.
1638 *
1639 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1640 * Used with command to configure ACS operation for EHT mode.
1641 * Disable (flag attribute not present) - EHT disabled and
1642 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001643 *
1644 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1645 * Used with command to configure how older scan can be considered for ACS
1646 * scoring. In case scan was performed on a partial set of channels configured
1647 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1648 * (in ms), scan only the remaining channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001649 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001650enum qca_wlan_vendor_attr_acs_offload {
1651 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001652 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1653 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1654 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1655 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1656 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1657 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1658 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1659 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1660 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1661 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1662 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1663 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1664 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1665 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1666 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001667 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1668 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001669 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1670 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001671 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Hai Shalomc3565922019-10-28 11:58:20 -07001672
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001673 /* keep last */
1674 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1675 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1676 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1677};
1678
Hai Shalomc3565922019-10-28 11:58:20 -07001679/**
1680 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1681 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1682 *
1683 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1684 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1685 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1686 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1687 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1688 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1689 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001690enum qca_wlan_vendor_acs_hw_mode {
1691 QCA_ACS_MODE_IEEE80211B,
1692 QCA_ACS_MODE_IEEE80211G,
1693 QCA_ACS_MODE_IEEE80211A,
1694 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001695 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001696 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001697};
1698
1699/**
1700 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1701 *
1702 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1703 * management offload, a mechanism where the station's firmware
1704 * does the exchange with the AP to establish the temporal keys
1705 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001706 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1707 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001708 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001709 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001710 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1711 * Listen offload; a mechanism where the station's firmware takes care of
1712 * responding to incoming Probe Request frames received from other P2P
1713 * Devices whilst in Listen state, rather than having the user space
1714 * wpa_supplicant do it. Information from received P2P requests are
1715 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001716 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1717 * specific features.
1718 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1719 * features.
1720 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1721 * specific features only. If a Device sets this bit but not the
1722 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1723 * this Device may not support all OCE AP functionalities but can support
1724 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001725 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1726 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001727 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001728 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1729 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001730 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1731 * and applying thermal configuration through
1732 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1733 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1734 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001735 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1736 * With Adaptive 11r feature, access points advertise the vendor
1737 * specific IEs and MDE but do not include FT AKM in the RSNE.
1738 * The Adaptive 11r supported stations are expected to identify
1739 * such vendor specific IEs and connect to the AP in FT mode though
1740 * the profile is configured in non-FT mode.
1741 * The driver-based SME cases also need to have this support for
1742 * Adaptive 11r to handle the connection and roaming scenarios.
1743 * This flag indicates the support for the same to the user space.
1744 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1745 * concurrent network sessions on different Wi-Fi bands. This feature
1746 * capability is attributed to the hardware's capability to support
1747 * the same (e.g., DBS).
1748 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1749 * responses for the respective TWT operations are asynchronous (separate
1750 * event message) from the driver. If not specified, the responses are
1751 * synchronous (in vendor command reply) to the request. Each TWT
1752 * operation is specifically mentioned (against its respective
1753 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001754 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001755 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001756 * generic nl80211 commands for NDP interface create/delete and to
1757 * register/unregister the netdev instead of creating/deleting the NDP
1758 * interface using the vendor commands
1759 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1760 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001761 * (5.12 version onward), interface creation/deletion is not allowed using
1762 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1763 * during the register/unregister of netdev. Create and delete NDP
1764 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1765 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07001766 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1767 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1768 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1769 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1770 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1771 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1772 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1773 * station mode supports secure RTT measurement exchange. If
1774 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1775 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1776 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1777 * mode supports secure RTT measurement exchange. If
1778 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1779 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1780 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1781 * the device in station mode supports protection of range negotiation and
1782 * measurement management frames. If
1783 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1784 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1785 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1786 * the device in AP mode supports protection of range negotiation and
1787 * measurement management frames. If
1788 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1789 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001790 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1791 */
1792enum qca_wlan_vendor_features {
1793 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001794 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001795 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001796 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001797 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1798 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1799 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001800 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00001801 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001802 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1803 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001804 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001805 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1806 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1807 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07001808 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07001809 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
1810 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
1811 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
1812 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
1813 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
1814 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001815 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1816};
1817
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001818/**
1819 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1820 *
1821 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1822 * the offloaded data.
1823 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1824 * data.
1825 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1826 * indication.
1827 */
1828enum qca_wlan_vendor_attr_data_offload_ind {
1829 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1830 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1831 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1832 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1833
1834 /* keep last */
1835 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1836 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1837 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1838};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001839
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001840/**
1841 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1842 * OCB config
1843 *
1844 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1845 * configuration
1846 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1847 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1848 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1849 * scheduled
1850 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1851 * information
1852 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1853 * active state configuration
1854 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1855 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1856 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1857 * use in the case that a packet is sent without a TX control header
1858 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1859 * last TA received that the local time set by TA is synchronous to other
1860 * communicating OCB STAs.
1861 */
1862enum qca_wlan_vendor_attr_ocb_set_config {
1863 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1864 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1865 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1866 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1867 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1868 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1869 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1870 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1871 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1872 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1873 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1874 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1875 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1876};
1877
1878/**
1879 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1880 * UTC time
1881 *
1882 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1883 * 10 bytes
1884 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1885 * 5 bytes
1886 */
1887enum qca_wlan_vendor_attr_ocb_set_utc_time {
1888 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1889 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1890 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1891 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1892 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1893 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1894};
1895
1896/**
1897 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1898 * to start sending timing advert frames
1899 *
1900 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1901 * on which to send the frames
1902 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1903 * the frame is sent in 5 seconds
1904 */
1905enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1906 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1907 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1908 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1909 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1910 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1911 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1912};
1913
1914/**
1915 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1916 * to stop timing advert
1917 *
1918 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1919 * frequency on which to stop the timing advert
1920 */
1921enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1922 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1923 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1924 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1925 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1926 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1927};
1928
1929/**
1930 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1931 * get TSF timer value
1932 *
1933 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1934 * timer
1935 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1936 */
1937enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1938 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1939 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1940 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1941 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1942 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1943 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1944};
1945
Ravi Joshie6ccb162015-07-16 17:45:41 -07001946enum qca_vendor_attr_get_preferred_freq_list {
1947 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1948 /* A 32-unsigned value; the interface type/mode for which the preferred
1949 * frequency list is requested (see enum qca_iface_type for possible
1950 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1951 * kernel and in the kernel response back to user-space.
1952 */
1953 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1954 /* An array of 32-unsigned values; values are frequency (MHz); sent
1955 * from kernel space to user space.
1956 */
1957 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001958 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1959 * attribute. Each element contains frequency (MHz), weight, and flag
1960 * bit mask indicating how the frequency should be used in P2P
1961 * negotiation; sent from kernel space to user space.
1962 */
1963 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001964 /* keep last */
1965 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1966 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1967 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1968};
1969
1970enum qca_vendor_attr_probable_oper_channel {
1971 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1972 /* 32-bit unsigned value; indicates the connection/iface type likely to
1973 * come on this channel (see enum qca_iface_type).
1974 */
1975 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1976 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1977 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1978 /* keep last */
1979 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1980 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1981 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1982};
1983
1984enum qca_iface_type {
1985 QCA_IFACE_TYPE_STA,
1986 QCA_IFACE_TYPE_AP,
1987 QCA_IFACE_TYPE_P2P_CLIENT,
1988 QCA_IFACE_TYPE_P2P_GO,
1989 QCA_IFACE_TYPE_IBSS,
1990 QCA_IFACE_TYPE_TDLS,
1991};
1992
1993enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001994 QCA_SETBAND_AUTO = 0,
1995 QCA_SETBAND_5G = BIT(0),
1996 QCA_SETBAND_2G = BIT(1),
1997 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001998};
1999
Dmitry Shmidt17022322016-04-06 13:28:42 -07002000/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002001 * enum qca_access_policy - Access control policy
2002 *
2003 * Access control policy is applied on the configured IE
2004 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2005 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2006 *
2007 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2008 * the specific configuration (IE) set, i.e., allow all the
2009 * connections which do not match the configuration.
2010 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2011 * the specific configuration (IE) set, i.e., deny all the
2012 * connections which do not match the configuration.
2013 */
2014enum qca_access_policy {
2015 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2016 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2017};
2018
2019/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002020 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2021 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2022 * Specify the TSF command. Possible values are defined in
2023 * &enum qca_tsf_cmd.
2024 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2025 * This attribute contains TSF timer value. This attribute is only available
2026 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2027 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2028 * This attribute contains SOC timer value at TSF capture. This attribute is
2029 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2030 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2031 * This attribute is used to provide TSF sync interval and only applicable when
2032 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2033 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002034 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2035 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002036 */
2037enum qca_vendor_attr_tsf_cmd {
2038 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2039 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2040 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2041 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002042 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002043 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002044 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2045 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2046 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2047};
2048
2049/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002050 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002051 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2052 * @QCA_TSF_GET: Get TSF capture value
2053 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002054 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2055 * will automatically send TSF report to the host. To query
2056 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2057 * initiated first.
2058 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2059 * will not automatically send TSF report to the host. If
2060 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2061 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2062 * operation needs to be initiated.
2063 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2064 * fetches TSF and host time mapping from the firmware with interval configured
2065 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2066 * interval value is not provided the driver will use the default value. The
2067 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2068 * command.
2069 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002070 */
2071enum qca_tsf_cmd {
2072 QCA_TSF_CAPTURE,
2073 QCA_TSF_GET,
2074 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002075 QCA_TSF_AUTO_REPORT_ENABLE,
2076 QCA_TSF_AUTO_REPORT_DISABLE,
2077 QCA_TSF_SYNC_START,
2078 QCA_TSF_SYNC_STOP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002079};
2080
2081/**
2082 * enum qca_vendor_attr_wisa_cmd
2083 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2084 * WISA setup vendor commands
2085 */
2086enum qca_vendor_attr_wisa_cmd {
2087 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2088 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2089 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2090 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2091 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2092};
2093
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002094/* IEEE 802.11 Vendor Specific elements */
2095
2096/**
2097 * enum qca_vendor_element_id - QCA Vendor Specific element types
2098 *
2099 * These values are used to identify QCA Vendor Specific elements. The
2100 * payload of the element starts with the three octet OUI (OUI_QCA) and
2101 * is followed by a single octet type which is defined by this enum.
2102 *
2103 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2104 * This element can be used to specify preference order for supported
2105 * channels. The channels in this list are in preference order (the first
2106 * one has the highest preference) and are described as a pair of
2107 * (global) Operating Class and Channel Number (each one octet) fields.
2108 *
2109 * This extends the standard P2P functionality by providing option to have
2110 * more than one preferred operating channel. When this element is present,
2111 * it replaces the preference indicated in the Operating Channel attribute.
2112 * For supporting other implementations, the Operating Channel attribute is
2113 * expected to be used with the highest preference channel. Similarly, all
2114 * the channels included in this Preferred channel list element are
2115 * expected to be included in the Channel List attribute.
2116 *
2117 * This vendor element may be included in GO Negotiation Request, P2P
2118 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002119 *
2120 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2121 * This element can be used for pre-standard publication testing of HE
2122 * before P802.11ax draft assigns the element ID. The payload of this
2123 * vendor specific element is defined by the latest P802.11ax draft.
2124 * Please note that the draft is still work in progress and this element
2125 * payload is subject to change.
2126 *
2127 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2128 * This element can be used for pre-standard publication testing of HE
2129 * before P802.11ax draft assigns the element ID. The payload of this
2130 * vendor specific element is defined by the latest P802.11ax draft.
2131 * Please note that the draft is still work in progress and this element
2132 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002133 *
2134 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2135 * element).
2136 * This element can be used for pre-standard publication testing of HE
2137 * before P802.11ax draft assigns the element ID extension. The payload of
2138 * this vendor specific element is defined by the latest P802.11ax draft
2139 * (not including the Element ID Extension field). Please note that the
2140 * draft is still work in progress and this element payload is subject to
2141 * change.
2142 *
2143 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2144 * This element can be used for pre-standard publication testing of HE
2145 * before P802.11ax draft assigns the element ID extension. The payload of
2146 * this vendor specific element is defined by the latest P802.11ax draft
2147 * (not including the Element ID Extension field). Please note that the
2148 * draft is still work in progress and this element payload is subject to
2149 * change.
2150 *
2151 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2152 * This element can be used for pre-standard publication testing of HE
2153 * before P802.11ax draft assigns the element ID extension. The payload of
2154 * this vendor specific element is defined by the latest P802.11ax draft
2155 * (not including the Element ID Extension field). Please note that the
2156 * draft is still work in progress and this element payload is subject to
2157 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002158 *
2159 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002160 */
2161enum qca_vendor_element_id {
2162 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002163 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2164 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002165 QCA_VENDOR_ELEM_RAPS = 3,
2166 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2167 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002168 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002169};
2170
2171/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002172 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2173 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2174 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2175 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2176 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2177 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2178 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2179 */
2180enum qca_wlan_vendor_scan_priority {
2181 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2182 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2183 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2184 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2185 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2186};
2187
2188/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002189 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2190 *
2191 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2192 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2193 * with frequencies to be scanned (in MHz)
2194 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2195 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2196 * rates to be included
2197 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002198 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002199 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2200 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002201 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002202 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002203 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002204 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002205 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002206 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002207 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002208 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2209 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002210 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2211 * microseconds. This is a common value which applies across all
2212 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002213 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2214 * other scan requests. It is a u32 attribute and takes values from enum
2215 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2216 * If this attribute is not configured, the driver shall use
2217 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002218 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2219 * alignment.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002220 */
2221enum qca_wlan_vendor_attr_scan {
2222 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002223 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2224 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2225 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2226 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2227 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2228 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2229 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2230 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2231 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2232 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2233 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002234 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002235 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002236 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002237 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2238 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2239 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2240};
2241
2242/**
2243 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002244 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002245 *
2246 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002247 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002248 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2249 */
2250enum scan_status {
2251 VENDOR_SCAN_STATUS_NEW_RESULTS,
2252 VENDOR_SCAN_STATUS_ABORTED,
2253 VENDOR_SCAN_STATUS_MAX,
2254};
2255
2256/**
2257 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2258 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2259 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2260 */
2261enum qca_vendor_attr_ota_test {
2262 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2263 /* 8-bit unsigned value to indicate if OTA test is enabled */
2264 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2265 /* keep last */
2266 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2267 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2268 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2269};
2270
2271/**
2272 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2273 *
2274 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2275 */
2276enum qca_vendor_attr_txpower_scale {
2277 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2278 /* 8-bit unsigned value to indicate the scaling of tx power */
2279 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2280 /* keep last */
2281 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2282 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2283 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2284};
2285
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002286/**
2287 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2288 *
2289 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2290 */
2291enum qca_vendor_attr_txpower_decr_db {
2292 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2293 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002294 * a virtual interface.
2295 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002296 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2297 /* keep last */
2298 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2299 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2300 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2301};
2302
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002303/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002304 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2305 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002306 */
2307enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002308 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002309 /* Unsigned 32-bit value to set the DTIM period.
2310 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2311 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2312 * DTIM beacons.
2313 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002314 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002315 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2316 * used to calculate statistics like average the TSF offset or average
2317 * number of frame leaked.
2318 * For instance, upon Beacon frame reception:
2319 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2320 * For instance, when evaluating leaky APs:
2321 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2322 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002323 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002324 /* Unsigned 32-bit value to configure guard time, i.e., when
2325 * implementing IEEE power management based on frame control PM bit, how
2326 * long the driver waits before shutting down the radio and after
2327 * receiving an ACK frame for a Data frame with PM bit set.
2328 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002329 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002330 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002331 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002332 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002333 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002334 /* Unsigned 32-bit value to configure the number of continuous
2335 * Beacon Miss which shall be used by the firmware to penalize
2336 * the RSSI.
2337 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002338 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002339 /* Unsigned 8-bit value to configure the channel avoidance indication
2340 * behavior. Firmware to send only one indication and ignore duplicate
2341 * indications when set to avoid multiple Apps wakeups.
2342 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002343 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002344 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002345 * aggregation.
2346 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002347 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002348 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002349 * aggregation.
2350 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002351 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002352 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002353 * retry threshold (0 disable, 31 max).
2354 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002355 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002356 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002357 * retry threshold (0 disable, 31 max).
2358 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002359 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002360 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002361 * retry threshold (0 disable, 31 max).
2362 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002363 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002364 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002365 * retry threshold (0 disable, 31 max).
2366 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002367 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002368 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002369 * 2G/5G band (0~63, units in us)
2370 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002371 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002372 /* Unsigned 32-bit value to configure the number of unicast TX fail
2373 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002374 * reached.
2375 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002376 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002377 /* Attribute used to set scan default IEs to the driver.
2378 *
2379 * These IEs can be used by scan operations that will be initiated by
2380 * the driver/firmware.
2381 *
2382 * For further scan requests coming to the driver, these IEs should be
2383 * merged with the IEs received along with scan request coming to the
2384 * driver. If a particular IE is present in the scan default IEs but not
2385 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002386 * sent in the Probe Request frames for that scan request.
2387 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002388 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002389 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002390 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002391 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002392 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002393 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002394 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002395 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002396 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2397 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002398 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002399 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002400 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2401 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002402 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002403 /* Unsigned 32-bit, defining the access policy.
2404 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002405 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2406 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002407 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002408 /* Sets the list of full set of IEs for which a specific access policy
2409 * has to be applied. Used along with
2410 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002411 * Zero length payload can be used to clear this access constraint.
2412 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002413 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002414 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2415 * corresponding configurations are applied. If the interface index is
2416 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002417 * wiphy.
2418 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002419 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002420 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002421 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002422 /* 8-bit unsigned value to configure the driver and below layers to
2423 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002424 * 1-Ignore, 0-Don't ignore
2425 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002426 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002427 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002428 * 1-Enable, 0-Disable
2429 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002430 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002431 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002432 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002433 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002434 * 1-Enable, 0-Disable
2435 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002436 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002437 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002438 * the unit is micro-second
2439 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002440 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2441 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2442 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2443 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2444 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2445 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2446 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2447 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2448 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2449 /* 6-byte MAC address to point out the specific peer */
2450 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2451 /* 32-bit unsigned value to set window size for specific peer */
2452 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002453 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2454 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2455 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2456 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002457 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2458 * station device while in disconnect state. The attribute use the
2459 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2460 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2461 * 10 MHz channel width, the station will not connect to a BSS using 20
2462 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002463 * clear this constraint.
2464 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002465 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2466 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002467 * for 2G/5G band (units in us)
2468 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002469 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2470 /* 32-bit unsigned value to set probe period */
2471 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2472 /* 32-bit unsigned value to set stay period */
2473 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2474 /* 32-bit unsigned value to set snr diff */
2475 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2476 /* 32-bit unsigned value to set probe dwell time */
2477 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2478 /* 32-bit unsigned value to set mgmt snr weight */
2479 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2480 /* 32-bit unsigned value to set data snr weight */
2481 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2482 /* 32-bit unsigned value to set ack snr weight */
2483 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2484 /* 32-bit unsigned value to configure the listen interval.
2485 * This is in units of beacon intervals. This configuration alters
2486 * the negotiated listen interval with the AP during the connection.
2487 * It is highly recommended to configure a value less than or equal to
2488 * the one negotiated during the association. Configuring any greater
2489 * value can have adverse effects (frame loss, AP disassociating STA,
2490 * etc.).
2491 */
2492 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2493 /*
2494 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2495 * disable operations that would cause the AP/GO to leave its operating
2496 * channel.
2497 *
2498 * This will restrict the scans to the AP/GO operating channel and the
2499 * channels of the other band, if DBS is supported.A STA/CLI interface
2500 * brought up after this setting is enabled, will be restricted to
2501 * connecting to devices only on the AP/GO interface's operating channel
2502 * or on the other band in DBS case. P2P supported channel list is
2503 * modified, to only include AP interface's operating-channel and the
2504 * channels of the other band if DBS is supported.
2505 *
2506 * These restrictions are only applicable as long as the AP/GO interface
2507 * is alive. If the AP/GO interface is brought down then this
2508 * setting/restriction is forgotten.
2509 *
2510 * If this variable is set on an AP/GO interface while a multi-channel
2511 * concurrent session is active, it has no effect on the operation of
2512 * the current interfaces, other than restricting the scan to the AP/GO
2513 * operating channel and the other band channels if DBS is supported.
2514 * However, if the STA is brought down and restarted then the new STA
2515 * connection will either be formed on the AP/GO channel or on the
2516 * other band in a DBS case. This is because of the scan being
2517 * restricted on these channels as mentioned above.
2518 *
2519 * 1-Restrict / 0-Don't restrict offchannel operations.
2520 */
2521 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2522 /*
2523 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2524 * on an interface.
2525 * 1 - Enable, 0 - Disable.
2526 */
2527 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2528
2529 /*
2530 * 8 bit unsigned value to globally enable/disable scan
2531 * 1 - Enable, 0 - Disable.
2532 */
2533 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2534
2535 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002536 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002537 */
2538 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2539
2540 /* Unsigned 32-bit value to configure the number of continuous
2541 * Beacon Miss which shall be used by the firmware to penalize
2542 * the RSSI for BTC.
2543 */
2544 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2545
2546 /* 8-bit unsigned value to configure the driver and below layers to
2547 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002548 * 0-enable, 1-disable
2549 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002550 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002551
Roshan Pius3a1667e2018-07-03 15:17:14 -07002552 /* 16-bit unsigned value to configure the level of WLAN latency
2553 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2554 */
2555 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2556
2557 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2558 * the connect interface. Exclusively used for the scenarios where the
2559 * device is used as a test bed device with special functionality and
2560 * not recommended for production. This helps driver to not validate the
2561 * RSNE passed from user space and thus allow arbitrary IE data to be
2562 * used for testing purposes.
2563 * 1-enable, 0-disable.
2564 * Applications set/reset this configuration. If not reset, this
2565 * parameter remains in use until the driver is unloaded.
2566 */
2567 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2568
2569 /* 8-bit unsigned value to trigger green Tx power saving.
2570 * 1-Enable, 0-Disable
2571 */
2572 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2573
Hai Shalomc3565922019-10-28 11:58:20 -07002574 /* Attribute to configure disconnect IEs to the driver.
2575 * This carries an array of unsigned 8-bit characters.
2576 *
2577 * If this is configured, driver shall fill the IEs in disassoc/deauth
2578 * frame.
2579 * These IEs are expected to be considered only for the next
2580 * immediate disconnection (disassoc/deauth frame) originated by
2581 * the DUT, irrespective of the entity (user space/driver/firmware)
2582 * triggering the disconnection.
2583 * The host drivers are not expected to use the IEs set through
2584 * this interface for further disconnections after the first immediate
2585 * disconnection initiated post the configuration.
2586 * If the IEs are also updated through cfg80211 interface (after the
2587 * enhancement to cfg80211_disconnect), host driver is expected to
2588 * take the union of IEs from both of these interfaces and send in
2589 * further disassoc/deauth frames.
2590 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002591 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002592
2593 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002594 * 0 - Disable eLNA bypass.
2595 * 1 - Enable eLNA bypass.
2596 * 2 - Reset eLNA bypass configuration, the driver should
2597 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002598 */
2599 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2600
Hai Shalomfdcde762020-04-02 11:19:20 -07002601 /* 8-bit unsigned value. This attribute enables/disables the host driver
2602 * to send the Beacon Report Response with failure reason for the
2603 * scenarios where STA cannot honor the Beacon Report Request from AP.
2604 * 1-Enable, 0-Disable.
2605 */
2606 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2607
2608 /* 8-bit unsigned value. This attribute enables/disables the host driver
2609 * to send roam reason information in the Reassociation Request frame to
2610 * the target AP when roaming within the same ESS.
2611 * 1-Enable, 0-Disable.
2612 */
2613 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2614
Hai Shalom899fcc72020-10-19 14:38:18 -07002615 /* 32-bit unsigned value to configure different PHY modes to the
2616 * driver/firmware. The possible values are defined in
2617 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2618 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2619 * the driver.
2620 */
2621 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2622
2623 /* 8-bit unsigned value to configure the maximum supported channel width
2624 * for STA mode. If this value is configured when STA is in connected
2625 * state, it should not exceed the negotiated channel width. If it is
2626 * configured when STA is in disconnected state, the configured value
2627 * will take effect for the next immediate connection.
Sunil Ravi036cec52023-03-29 11:35:17 -07002628 *
2629 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07002630 */
2631 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2632
2633 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2634 * This attribute is only applicable for STA mode. When dynamic
2635 * bandwidth adjustment is disabled, STA will use static channel width
2636 * the value of which is negotiated during connection.
2637 * 1-enable (default), 0-disable
2638 */
2639 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2640
2641 /* 8-bit unsigned value to configure the maximum number of subframes of
2642 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2643 * it is decided by the hardware.
2644 */
2645 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2646
2647 /* 8-bit unsigned value to configure the maximum number of subframes of
2648 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2649 * it is decided by the hardware.
2650 */
2651 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2652
2653 /* 8-bit unsigned value. This attribute is used to dynamically
2654 * enable/disable the LDPC capability of the device. When configured in
2655 * the disconnected state, the updated configuration will be considered
2656 * for the immediately following connection attempt. If this
2657 * configuration is modified while the device is in the connected state,
2658 * the LDPC TX will be updated with this configuration immediately,
2659 * while the LDPC RX configuration update will take place starting from
2660 * the subsequent association attempt.
2661 * 1-Enable, 0-Disable.
2662 */
2663 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2664
2665 /* 8-bit unsigned value. This attribute is used to dynamically
2666 * enable/disable the TX STBC capability of the device. When configured
2667 * in the disconnected state, the updated configuration will be
2668 * considered for the immediately following connection attempt. If the
2669 * connection is formed with TX STBC enabled and if this configuration
2670 * is disabled during that association, the TX will be impacted
2671 * immediately. Further connection attempts will disable TX STBC.
2672 * However, enabling the TX STBC for a connected session with disabled
2673 * capability is not allowed and will fail.
2674 * 1-Enable, 0-Disable.
2675 */
2676 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2677
2678 /* 8-bit unsigned value. This attribute is used to dynamically
2679 * enable/disable the RX STBC capability of the device. When configured
2680 * in the disconnected state, the updated configuration will be
2681 * considered for the immediately following connection attempt. If the
2682 * configuration is modified in the connected state, there will be no
2683 * impact for the current association, but further connection attempts
2684 * will use the updated configuration.
2685 * 1-Enable, 0-Disable.
2686 */
2687 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2688
2689 /* 8-bit unsigned value. This attribute is used to dynamically configure
2690 * the number of spatial streams. When configured in the disconnected
2691 * state, the updated configuration will be considered for the
2692 * immediately following connection attempt. If the NSS is updated after
2693 * the connection, the updated NSS value is notified to the peer using
2694 * the Operating Mode Notification/Spatial Multiplexing Power Save
2695 * frame. The updated NSS value after the connection shall not be
2696 * greater than the one negotiated during the connection. Any such
2697 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002698 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2699 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2700 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2701 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002702 */
2703 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2704 /* 8-bit unsigned value to trigger Optimized Power Management:
2705 * 1-Enable, 0-Disable
2706 */
2707 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2708
2709 /* 8-bit unsigned value. This attribute takes the QoS/access category
2710 * value represented by the enum qca_wlan_ac_type and expects the driver
2711 * to upgrade the UDP frames to this access category. The value of
2712 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2713 * DSCP value configured in the frame with the intention to only upgrade
2714 * the access category. That said, it is not intended to downgrade the
2715 * access category for the frames.
2716 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2717 * disabled, as BK is of the lowest priority and an upgrade to it does
2718 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00002719 *
2720 * If only UDP frames of BE or BK access category needs to be upgraded
2721 * without changing the access category of VO or VI UDP frames, refer to
2722 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2723 *
2724 * This attribute is not recommended to be used as it blindly forces all
2725 * UDP packets to a higher access category which could impact the
2726 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07002727 */
2728 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2729
2730 /* 8-bit unsigned value. This attribute is used to dynamically configure
2731 * the number of chains to be used for transmitting data. This
2732 * configuration is allowed only when in connected state and will be
2733 * effective until disconnected. The driver rejects this configuration
2734 * if the number of spatial streams being used in the current connection
2735 * cannot be supported by this configuration.
2736 */
2737 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2738 /* 8-bit unsigned value. This attribute is used to dynamically configure
2739 * the number of chains to be used for receiving data. This
2740 * configuration is allowed only when in connected state and will be
2741 * effective until disconnected. The driver rejects this configuration
2742 * if the number of spatial streams being used in the current connection
2743 * cannot be supported by this configuration.
2744 */
2745 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2746
2747 /* 8-bit unsigned value to configure ANI setting type.
2748 * See &enum qca_wlan_ani_setting for possible values.
2749 */
2750 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2751 /* 32-bit signed value to configure ANI level. This is used when
2752 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2753 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2754 * is invalid, the driver will return a failure.
2755 */
2756 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2757
Hai Shalom60840252021-02-19 19:02:11 -08002758 /* 8-bit unsigned value. This attribute is used to dynamically configure
2759 * the number of spatial streams used for transmitting the data. When
2760 * configured in the disconnected state, the configured value will
2761 * be considered for the following connection attempt.
2762 * If the NSS is updated after the connection, the updated NSS value
2763 * is notified to the peer using the Operating Mode Notification/Spatial
2764 * Multiplexing Power Save frame.
2765 * The TX NSS value configured after the connection shall not be greater
2766 * than the value negotiated during the connection. Any such higher
2767 * value configuration shall be treated as invalid configuration by
2768 * the driver. This attribute shall be configured along with
2769 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2770 * configuration (such as 2X2 or 1X1) or the asymmetric
2771 * configuration (such as 1X2).
2772 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2773 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2774 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2775 */
2776 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2777
2778 /* 8-bit unsigned value. This attribute is used to dynamically configure
2779 * the number of spatial streams used for receiving the data. When
2780 * configured in the disconnected state, the configured value will
2781 * be considered for the following connection attempt.
2782 * If the NSS is updated after the connection, the updated NSS value
2783 * is notified to the peer using the Operating Mode Notification/Spatial
2784 * Multiplexing Power Save frame.
2785 * The RX NSS value configured after the connection shall not be greater
2786 * than the value negotiated during the connection. Any such higher
2787 * value configuration shall be treated as invalid configuration by
2788 * the driver. This attribute shall be configured along with
2789 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2790 * configuration (such as 2X2 or 1X1) or the asymmetric
2791 * configuration (such as 1X2).
2792 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2793 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2794 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2795 */
2796 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2797
Hai Shaloma20dcd72022-02-04 13:43:00 -08002798 /*
2799 * 8-bit unsigned value. This attribute, when set, indicates whether the
2800 * specified interface is the primary STA interface when there are more
2801 * than one STA interfaces concurrently active.
2802 *
2803 * This configuration helps the firmware/hardware to support certain
2804 * features (e.g., roaming) on this primary interface, if the same
2805 * cannot be supported on the concurrent STA interfaces simultaneously.
2806 *
2807 * This configuration is only applicable for a single STA interface on
2808 * a device and gives the priority for it only over other concurrent STA
2809 * interfaces.
2810 *
2811 * If the device is a multi wiphy/soc, this configuration applies to a
2812 * single STA interface across the wiphys.
2813 *
2814 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2815 */
2816 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2817
2818 /*
2819 * 8-bit unsigned value. This attribute can be used to configure the
2820 * driver to enable/disable FT-over-DS feature. Possible values for
2821 * this attribute are 1-Enable and 0-Disable.
2822 */
2823 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2824
2825 /*
2826 * 8-bit unsigned value. This attribute can be used to configure the
2827 * firmware to enable/disable ARP/NS offload feature. Possible values
2828 * for this attribute are 0-Disable and 1-Enable.
2829 *
2830 * This attribute is only applicable for STA/P2P-Client interface,
2831 * and is optional, default behavior is ARP/NS offload enabled.
2832 *
2833 * This attribute can be set in disconnected and connected state, and
2834 * will restore to the default behavior if the interface is closed.
2835 */
2836 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2837
Sunil8cd6f4d2022-06-28 18:40:46 +00002838 /*
2839 * 8-bit unsigned value. This attribute can be used to configure the
2840 * data path mode to be followed for audio traffic. Possible values
2841 * are defined in enum qca_wlan_audio_data_path.
2842 */
2843 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2844
Sunil Ravi89eba102022-09-13 21:04:37 -07002845 /*
2846 * 8-bit unsigned value. This attribute can be used to configure the
2847 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
2848 * this attribute are defined in the enum qca_wlan_dbam_config.
2849 */
2850 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
2851
Sunil Ravi77d572f2023-01-17 23:58:31 +00002852 /* 8-bit unsigned value. This attribute takes the QoS/access category
2853 * value represented by the enum qca_wlan_ac_type and expects the driver
2854 * to upgrade the UDP frames of BE or BK access category to this access
2855 * category. This attribute will not modify UDP frames of VO or VI
2856 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
2857 * attribute.
2858 *
2859 * This will override the DSCP value configured in the frame with the
2860 * intention to only upgrade the access category. That said, it is not
2861 * intended to downgrade the access category for the frames.
2862 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2863 * disabled, as BK is of the lowest priority and an upgrade to it does
2864 * not result in any changes for the frames.
2865 *
2866 * This attribute behavior is similar to
2867 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
2868 * only UDP frames of BE or BK access category are upgraded and not
2869 * UDP frames of VI or VO access category.
2870 *
2871 * This attribute is not recommended to be used as it blindly forces all
2872 * UDP packets of BE or BK access category to a higher access category
2873 * which could impact the traffic pattern of all apps using UDP and can
2874 * cause unknown behavior.
2875 */
2876 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
2877
2878 /* 8-bit unsigned value to configure the driver to enable/disable the
2879 * periodic sounding for Tx beamformer functionality. The default
2880 * behavior uses algorithm to do sounding based on packet stats.
2881 *
2882 * 0 - Default behavior.
2883 * 1 - Enable the periodic sounding for Tx beamformer.
2884 */
2885 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
2886
2887 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
2888 * userspace sends this information to the driver/firmware to configure
2889 * wfc state. The driver/firmware uses this information to
2890 * optimize power savings, rate adaption, roaming, etc.
2891 *
2892 * 1 - wfc is on.
2893 * 0 - wfc is off.
2894 */
2895 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
2896
2897 /* 8-bit unsigned value to configure the driver to enable/disable the
2898 * EHT EML capability in management frame EHT capabilities.
2899 * 1 - Enable, 0 - Disable.
2900 */
2901 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
2902
2903 /* 8-bit unsigned value to configure the driver with EHT MLO max
2904 * simultaneous links to be used for MLO connection.
2905 * The range of the value is 0 to 14.
2906 */
2907 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
2908
2909 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
2910 * number of links to be used for MLO connection.
2911 * The range of the value is 1 to 16.
2912 */
2913 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
2914
2915 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
2916 * Uses enum qca_wlan_eht_mlo_mode values.
2917 */
2918 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
2919
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002920 /* keep last */
2921 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2922 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2923 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2924};
2925
Hai Shalomfdcde762020-04-02 11:19:20 -07002926/* Compatibility defines for previously used incorrect enum
2927 * qca_wlan_vendor_attr_config names. These values should not be used in any
2928 * new implementation. */
2929#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2930 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2931#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2932 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2933
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002934/**
Sunil Ravi89eba102022-09-13 21:04:37 -07002935 * enum qca_dbam_config - Specifies DBAM config mode
2936 * @QCA_DBAM_DISABLE: Firmware disables DBAM
2937 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
2938 * internal criteria are met.
2939 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
2940 */
2941enum qca_dbam_config {
2942 QCA_DBAM_DISABLE = 0,
2943 QCA_DBAM_ENABLE = 1,
2944 QCA_DBAM_FORCE_ENABLE = 2,
2945};
2946
2947/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002948 * enum qca_wlan_ani_setting - ANI setting type
2949 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2950 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2951 */
2952enum qca_wlan_ani_setting {
2953 QCA_WLAN_ANI_SETTING_AUTO = 0,
2954 QCA_WLAN_ANI_SETTING_FIXED = 1,
2955};
2956
2957/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002958 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002959 *
2960 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2961 * Channel number on which Access Point should restart.
2962 * Note: If both the driver and user space application supports the 6 GHz band,
2963 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2964 * should be used.
2965 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2966 * is still used if either of the driver or user space application doesn't
2967 * support the 6 GHz band.
2968 *
2969 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2970 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002971 */
2972enum qca_wlan_vendor_attr_sap_config {
2973 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002974 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2975
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002976 /* List of frequencies on which AP is expected to operate.
2977 * This is irrespective of ACS configuration. This list is a priority
2978 * based one and is looked for before the AP is created to ensure the
2979 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2980 * the system.
2981 */
2982 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002983 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002984
2985 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2986 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2987 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2988};
2989
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002990/**
2991 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2992 * conditional channel switch
2993 */
2994enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2995 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2996 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002997 * order)
2998 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002999 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3000 /* Status of the conditional switch (u32).
3001 * 0: Success, Non-zero: Failure
3002 */
3003 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3004
3005 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3006 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3007 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3008};
3009
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003010/**
3011 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003012 *
3013 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3014 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3015 * for the available values.
3016 *
3017 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3018 * value to specify the GPIO number.
3019 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3020 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3021 *
3022 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3023 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3024 * for the available values.
3025 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3026 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3027 *
Hai Shalom60840252021-02-19 19:02:11 -08003028 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003029 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3030 * for the available values.
3031 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003032 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3033 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3034 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3035 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003036 *
Hai Shalom60840252021-02-19 19:02:11 -08003037 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003038 * value to specify the GPIO interrupt mode. Please refer to enum
3039 * qca_gpio_interrupt_mode for the available values.
3040 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003041 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3042 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3043 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3044 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003045 *
Hai Shalom60840252021-02-19 19:02:11 -08003046 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003047 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3048 * for the available values.
3049 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003050 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3051 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3052 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3053 * attribute is present.
3054 *
3055 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3056 * Value to specify the mux config. Meaning of a given value is dependent
3057 * on the target chipset and GPIO pin. Must be of the range 0-15.
3058 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3059 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3060 *
3061 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3062 * Value to specify the drive, refer to enum qca_gpio_drive.
3063 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3064 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3065 *
3066 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3067 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3068 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3069 * other parameters for the given GPIO will be obtained from internal
3070 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3071 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003072 */
3073enum qca_wlan_gpio_attr {
3074 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3075 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07003076 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003077 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003078 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003079 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003080 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003081 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07003082 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003083 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07003084 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3085 /* Unsigned 32-bit attribute for GPIO direction to configure */
3086 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08003087 /* Unsigned 32-bit attribute for GPIO mux config */
3088 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3089 /* Unsigned 32-bit attribute for GPIO drive */
3090 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3091 /* Flag attribute for using internal GPIO configuration */
3092 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003093
3094 /* keep last */
3095 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3096 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3097 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3098};
3099
3100/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003101 * enum gpio_cmd_type - GPIO configuration command type
3102 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3103 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3104 */
3105enum qca_gpio_cmd_type {
3106 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3107 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3108};
3109
3110/**
3111 * enum qca_gpio_pull_type - GPIO pull type
3112 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3113 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3114 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3115 */
3116enum qca_gpio_pull_type {
3117 QCA_WLAN_GPIO_PULL_NONE = 0,
3118 QCA_WLAN_GPIO_PULL_UP = 1,
3119 QCA_WLAN_GPIO_PULL_DOWN = 2,
3120 QCA_WLAN_GPIO_PULL_MAX,
3121};
3122
3123/**
3124 * enum qca_gpio_direction - GPIO direction
3125 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3126 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3127 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3128 */
3129enum qca_gpio_direction {
3130 QCA_WLAN_GPIO_INPUT = 0,
3131 QCA_WLAN_GPIO_OUTPUT = 1,
3132 QCA_WLAN_GPIO_DIR_MAX,
3133};
3134
3135/**
3136 * enum qca_gpio_value - GPIO Value
3137 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3138 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3139 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3140 */
3141enum qca_gpio_value {
3142 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3143 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3144 QCA_WLAN_GPIO_LEVEL_MAX,
3145};
3146
3147/**
3148 * enum gpio_interrupt_mode - GPIO interrupt mode
3149 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3150 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3151 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3152 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3153 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3154 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3155 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3156 */
3157enum qca_gpio_interrupt_mode {
3158 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3159 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3160 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3161 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3162 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3163 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3164 QCA_WLAN_GPIO_INTMODE_MAX,
3165};
3166
3167/**
Hai Shalom60840252021-02-19 19:02:11 -08003168 * enum qca_gpio_drive - GPIO drive
3169 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3170 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3171 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3172 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3173 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3174 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3175 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3176 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3177 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3178 */
3179enum qca_gpio_drive {
3180 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3181 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3182 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3183 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3184 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3185 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3186 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3187 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3188 QCA_WLAN_GPIO_DRIVE_MAX,
3189};
3190
3191/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003192 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3193 * MSDUQ depth threshold per peer per tid in the target
3194 *
3195 * Associated Vendor Command:
3196 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3197 */
3198enum qca_wlan_set_qdepth_thresh_attr {
3199 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3200 /* 6-byte MAC address */
3201 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3202 /* Unsigned 32-bit attribute for holding the TID */
3203 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3204 /* Unsigned 32-bit attribute for holding the update mask
3205 * bit 0 - Update high priority msdu qdepth threshold
3206 * bit 1 - Update low priority msdu qdepth threshold
3207 * bit 2 - Update UDP msdu qdepth threshold
3208 * bit 3 - Update Non UDP msdu qdepth threshold
3209 * rest of bits are reserved
3210 */
3211 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3212 /* Unsigned 32-bit attribute for holding the threshold value */
3213 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3214
3215 /* keep last */
3216 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3217 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3218 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3219};
3220
3221/**
Hai Shalomc3565922019-10-28 11:58:20 -07003222 * enum qca_acs_dfs_mode - Defines different types of DFS channel
3223 * configurations for ACS operation.
3224 *
3225 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3226 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3227 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3228 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3229 */
3230enum qca_acs_dfs_mode {
3231 QCA_ACS_DFS_MODE_NONE = 0,
3232 QCA_ACS_DFS_MODE_ENABLE = 1,
3233 QCA_ACS_DFS_MODE_DISABLE = 2,
3234 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3235};
3236
3237/**
3238 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3239 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3240 *
3241 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3242 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3243 *
3244 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3245 * channel number hint for ACS operation, if valid channel is specified then
3246 * ACS operation gives priority to this channel.
3247 * Note: If both the driver and user space application supports the 6 GHz band,
3248 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3249 * should be used.
3250 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3251 * is still used if either of the driver or user space application doesn't
3252 * support the 6 GHz band.
3253 *
3254 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3255 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3256 * frequency is specified, ACS operation gives priority to this channel.
3257 */
3258enum qca_wlan_vendor_attr_acs_config {
3259 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3260 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3261 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3262 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3263
3264 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3265 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3266 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3267};
3268
3269/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003270 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3271 */
3272enum qca_wlan_vendor_attr_get_hw_capability {
3273 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3274 /* Antenna isolation
3275 * An attribute used in the response.
3276 * The content of this attribute is encoded in a byte array. Each byte
3277 * value is an antenna isolation value. The array length is the number
3278 * of antennas.
3279 */
3280 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3281 /* Request HW capability
3282 * An attribute used in the request.
3283 * The content of this attribute is a u32 array for one or more of
3284 * hardware capabilities (attribute IDs) that are being requested. Each
3285 * u32 value has a value from this
3286 * enum qca_wlan_vendor_attr_get_hw_capability
3287 * identifying which capabilities are requested.
3288 */
3289 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3290
3291 /* keep last */
3292 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3293 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3294 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3295};
3296
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003297/**
3298 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3299 * offload which is an extension for LL_STATS.
3300 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3301 * If MAC counters do not exceed the threshold, FW will report monitored
3302 * link layer counters periodically as this setting. The first report is
3303 * always triggered by this timer.
3304 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3305 * For each MAC layer counter, FW holds two copies. One is the current value.
3306 * The other is the last report. Once a current counter's increment is larger
3307 * than the threshold, FW will indicate that counter to host even if the
3308 * monitoring timer does not expire.
3309 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3310 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3311 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3312 * failure code.
3313 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3314 * 1: TX packet discarded
3315 * 2: No ACK
3316 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003317 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3318 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3319 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3320 * Threshold for all monitored parameters. If per counter dedicated threshold
3321 * is not enabled, this threshold will take effect.
3322 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3323 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3324 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3325 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3326 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3327 * Bit0: TX counter unit in MSDU
3328 * Bit1: TX counter unit in MPDU
3329 * Bit2: TX counter unit in PPDU
3330 * Bit3: TX counter unit in byte
3331 * Bit4: Dropped MSDUs
3332 * Bit5: Dropped Bytes
3333 * Bit6: MPDU retry counter
3334 * Bit7: MPDU failure counter
3335 * Bit8: PPDU failure counter
3336 * Bit9: MPDU aggregation counter
3337 * Bit10: MCS counter for ACKed MPDUs
3338 * Bit11: MCS counter for Failed MPDUs
3339 * Bit12: TX Delay counter
3340 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3341 * Bit0: MAC RX counter unit in MPDU
3342 * Bit1: MAC RX counter unit in byte
3343 * Bit2: PHY RX counter unit in PPDU
3344 * Bit3: PHY RX counter unit in byte
3345 * Bit4: Disorder counter
3346 * Bit5: Retry counter
3347 * Bit6: Duplication counter
3348 * Bit7: Discard counter
3349 * Bit8: MPDU aggregation size counter
3350 * Bit9: MCS counter
3351 * Bit10: Peer STA power state change (wake to sleep) counter
3352 * Bit11: Peer STA power save counter, total time in PS mode
3353 * Bit12: Probe request counter
3354 * Bit13: Other management frames counter
3355 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3356 * Bit0: Idle time
3357 * Bit1: TX time
3358 * Bit2: time RX in current bss
3359 * Bit3: Out of current bss time
3360 * Bit4: Wireless medium busy time
3361 * Bit5: RX in bad condition time
3362 * Bit6: TX in bad condition time
3363 * Bit7: time wlan card not available
3364 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3365 * Bit0: Per channel SNR counter
3366 * Bit1: Per channel noise floor counter
3367 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3368 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3369 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3370 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3371 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3372 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3373 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3374 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3375 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3376 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3377 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3378 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3379 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3380 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3382 * aggregation stats buffer length
3383 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3384 * buffer for ACKed MPDUs.
3385 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3386 * buffer for failed MPDUs.
3387 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3388 * length of delay stats array.
3389 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3390 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3391 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3392 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3393 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3394 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3395 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3396 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3397 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3398 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3399 * flagged as retransmissions
3400 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3401 * flagged as duplicated
3402 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3403 * packets discarded
3404 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3405 * stats buffer.
3406 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3407 * stats buffer.
3408 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3409 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3410 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3411 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3412 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3413 * requests received
3414 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3415 * frames received
3416 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3417 * there is no TX, nor RX, nor interference.
3418 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3419 * transmitting packets.
3420 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3421 * for receiving.
3422 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3423 * interference detected.
3424 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3425 * receiving packets with errors.
3426 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3427 * TX no-ACK.
3428 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3429 * the chip is unable to work in normal conditions.
3430 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3431 * receiving packets in current BSS.
3432 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3433 * receiving packets not in current BSS.
3434 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3435 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3436 * This is a container for per antenna signal stats.
3437 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3438 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3439 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3440 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003441 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3442 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3443 * message, user layer APP could call gettimeofday to get another
3444 * timestamp and calculate transfer delay for the message.
3445 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3446 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07003447 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
3448 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003449 */
3450enum qca_wlan_vendor_attr_ll_stats_ext {
3451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3452
3453 /* Attributes for configurations */
3454 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3455 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3456
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003457 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003458 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3459
3460 /* TX failure event */
3461 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3462 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3463 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3464
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3466 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3467
3468 /* MAC counters */
3469 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3470 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3471 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3472 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3473 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3474 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3476 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3477 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3478 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3479 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3480 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3481
3482 /* Sub-attributes for PEER_AC_TX */
3483 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3485 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3486 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3487 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3488 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3489 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3490 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3491 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3492 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3493 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3494 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3495 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3496 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3497 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3498 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3499 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3500
3501 /* Sub-attributes for PEER_AC_RX */
3502 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3503 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3504 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3505 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3506 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3507 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3508 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3509 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3510 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3511 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3512 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3513 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3514 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3515 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3516 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3517 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3518
3519 /* Sub-attributes for CCA_BSS */
3520 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3521 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3522 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3523 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3524 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3525 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3526 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3527
3528 /* sub-attribute for BSS_RX_TIME */
3529 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3530 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3531
3532 /* Sub-attributes for PEER_SIGNAL */
3533 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3534 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3535 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3536 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3537
3538 /* Sub-attributes for IFACE_BSS */
3539 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3540 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3541
Roshan Pius3a1667e2018-07-03 15:17:14 -07003542 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3543 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07003544 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003545
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003546 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3547 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3548 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3549};
3550
3551/* Attributes for FTM commands and events */
3552
3553/**
3554 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3555 *
3556 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3557 * enum qca_wlan_vendor_attr_loc_capa_flags.
3558 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3559 * of measurement sessions that can run concurrently.
3560 * Default is one session (no session concurrency).
3561 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3562 * peers that are supported in running sessions. For example,
3563 * if the value is 8 and maximum number of sessions is 2, you can
3564 * have one session with 8 unique peers, or 2 sessions with 4 unique
3565 * peers each, and so on.
3566 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3567 * of bursts per peer, as an exponent (2^value). Default is 0,
3568 * meaning no multi-burst support.
3569 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3570 * of measurement exchanges allowed in a single burst.
3571 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3572 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3573 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3574 */
3575enum qca_wlan_vendor_attr_loc_capa {
3576 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3577 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3578 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3579 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3580 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3581 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3582 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3583 /* keep last */
3584 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3585 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3586 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3587};
3588
3589/**
3590 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3591 *
3592 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3593 * can be configured as an FTM responder (for example, an AP that
3594 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3595 * will be supported if set.
3596 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3597 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3598 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003599 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003600 * supports immediate (ASAP) response.
3601 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3602 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3603 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3604 * requesting AOA measurements as part of an FTM session.
3605 */
3606enum qca_wlan_vendor_attr_loc_capa_flags {
3607 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3608 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3609 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3610 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3611 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3612};
3613
3614/**
3615 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3616 * a single peer in a measurement session.
3617 *
3618 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3619 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3620 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003621 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003622 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3623 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3624 * list of supported attributes.
3625 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3626 * secure measurement.
3627 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3628 * measurement every <value> bursts. If 0 or not specified,
3629 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003630 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3631 * the measurement frames are exchanged. Optional; if not
3632 * specified, try to locate the peer in the kernel scan
3633 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003634 */
3635enum qca_wlan_vendor_attr_ftm_peer_info {
3636 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3637 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3638 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003639 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003640 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3641 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003642 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003643 /* keep last */
3644 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3645 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3646 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3647};
3648
3649/**
3650 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3651 * per-peer
3652 *
3653 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3654 * immediate (ASAP) response from peer.
3655 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3656 * LCI report from peer. The LCI report includes the absolute
3657 * location of the peer in "official" coordinates (similar to GPS).
3658 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3659 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3660 * Location civic report from peer. The LCR includes the location
3661 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3662 * 11.24.6.7 for more information.
3663 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3664 * request a secure measurement.
3665 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3666 */
3667enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3668 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3669 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3670 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3671 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3672};
3673
3674/**
3675 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3676 *
3677 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3678 * to perform in a single burst.
3679 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3680 * perform, specified as an exponent (2^value).
3681 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3682 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3683 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3684 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3685 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3686 */
3687enum qca_wlan_vendor_attr_ftm_meas_param {
3688 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3689 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3690 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3691 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3692 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3693 /* keep last */
3694 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3695 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3696 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3697};
3698
3699/**
3700 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3701 *
3702 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3703 * peer.
3704 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3705 * request for this peer.
3706 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3707 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3708 * to measurement results for this peer.
3709 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3710 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3711 * request failed and peer requested not to send an additional request
3712 * for this number of seconds.
3713 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3714 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3715 * 9.4.2.22.10.
3716 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3717 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3718 * 9.4.2.22.13.
3719 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3720 * overridden some measurement request parameters. See
3721 * enum qca_wlan_vendor_attr_ftm_meas_param.
3722 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3723 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3724 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3725 * results. Each entry is a nested attribute defined
3726 * by enum qca_wlan_vendor_attr_ftm_meas.
3727 */
3728enum qca_wlan_vendor_attr_ftm_peer_result {
3729 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3730 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3731 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3732 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3733 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3734 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3735 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3736 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3737 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3738 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3739 /* keep last */
3740 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3741 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3742 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3743};
3744
3745/**
3746 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3747 *
3748 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3749 * will be provided. Peer may have overridden some measurement parameters,
3750 * in which case overridden parameters will be report by
3751 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3752 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3753 * of performing the measurement request. No more results will be sent
3754 * for this peer in this session.
3755 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3756 * failed, and requested not to send an additional request for number
3757 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3758 * attribute.
3759 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3760 * failed. Request was not sent over the air.
3761 */
3762enum qca_wlan_vendor_attr_ftm_peer_result_status {
3763 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3764 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3765 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3766 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3767};
3768
3769/**
3770 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3771 * for measurement result, per-peer
3772 *
3773 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3774 * measurement completed for this peer. No more results will be reported
3775 * for this peer in this session.
3776 */
3777enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3778 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3779};
3780
3781/**
3782 * enum qca_vendor_attr_loc_session_status: Session completion status code
3783 *
3784 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3785 * successfully.
3786 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3787 * by request.
3788 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3789 * was invalid and was not started.
3790 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3791 * and did not complete normally (for example out of resources).
3792 */
3793enum qca_vendor_attr_loc_session_status {
3794 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3795 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3796 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3797 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3798};
3799
3800/**
3801 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3802 *
3803 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3804 * recorded by responder, in picoseconds.
3805 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3806 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3807 * initiator, in picoseconds.
3808 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3809 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3810 * initiator, in picoseconds.
3811 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3812 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3813 * responder, in picoseconds.
3814 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3815 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3816 * during this measurement exchange. Optional and will be provided if
3817 * the hardware can measure it.
3818 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3819 * responder. Not always provided.
3820 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3821 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3822 * responder. Not always provided.
3823 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3824 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3825 * initiator. Not always provided.
3826 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3827 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3828 * initiator. Not always provided.
3829 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07003830 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
3831 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003832 */
3833enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003834 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003835 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3836 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3837 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3838 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3839 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3840 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3841 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3842 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3843 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3844 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3845 /* keep last */
3846 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3847 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3848 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3849};
3850
3851/**
3852 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3853 *
3854 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3855 * CIR (channel impulse response) path for each antenna.
3856 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3857 * of the strongest CIR path for each antenna.
3858 */
3859enum qca_wlan_vendor_attr_aoa_type {
3860 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3861 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3862 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3863};
3864
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003865/**
3866 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3867 * validate encryption engine
3868 *
3869 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3870 * This will be included if the request is for decryption; if not included,
3871 * the request is treated as a request for encryption by default.
3872 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3873 * indicating the key cipher suite. Takes same values as
3874 * NL80211_ATTR_KEY_CIPHER.
3875 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3876 * Key Id to be used for encryption
3877 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3878 * Key (TK) to be used for encryption/decryption
3879 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3880 * Packet number to be specified for encryption/decryption
3881 * 6 bytes for TKIP/CCMP/GCMP.
3882 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3883 * representing the 802.11 packet (header + payload + FCS) that
3884 * needs to be encrypted/decrypted.
3885 * Encrypted/decrypted response from the driver will also be sent
3886 * to userspace with the same attribute.
3887 */
3888enum qca_wlan_vendor_attr_encryption_test {
3889 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3890 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3891 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3892 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3893 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3894 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3895 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3896
3897 /* keep last */
3898 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3899 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3900 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3901};
3902
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003903/**
3904 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3905 * sector for DMG RF sector operations.
3906 *
3907 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3908 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3909 */
3910enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3911 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3912 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3913 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3914};
3915
3916/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003917 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3918 *
3919 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3920 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3921 */
3922enum qca_wlan_vendor_attr_fw_state {
3923 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3924 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3925 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3926};
3927
3928/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003929 * BRP antenna limit mode
3930 *
3931 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3932 * antenna limit, BRP will be performed as usual.
3933 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3934 * antennas limit. the hardware may use less antennas than the
3935 * maximum limit.
3936 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3937 * use exactly the specified number of antennas for BRP.
3938 */
3939enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3940 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3941 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3942 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3943 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3944};
3945
3946/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003947 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3948 * DMG RF sector configuration for a single RF module.
3949 * The values are defined in a compact way which closely matches
3950 * the way it is stored in HW registers.
3951 * The configuration provides values for 32 antennas and 8 distribution
3952 * amplifiers, and together describes the characteristics of the RF
3953 * sector - such as a beam in some direction with some gain.
3954 *
3955 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3956 * of RF module for this configuration.
3957 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3958 * amplifier gain index. Unsigned 32 bit number containing
3959 * bits for all 32 antennas.
3960 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3961 * amplifier gain index. Unsigned 32 bit number containing
3962 * bits for all 32 antennas.
3963 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3964 * amplifier gain index. Unsigned 32 bit number containing
3965 * bits for all 32 antennas.
3966 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3967 * for first 16 antennas, 2 bits per antenna.
3968 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3969 * for last 16 antennas, 2 bits per antenna.
3970 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3971 * DTYPE values (3 bits) for each distribution amplifier, followed
3972 * by X16 switch bits for each distribution amplifier. There are
3973 * total of 8 distribution amplifiers.
3974 */
3975enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3976 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3977 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3978 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3979 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3980 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3981 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3982 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3983 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3984
3985 /* keep last */
3986 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3987 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3988 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3989};
3990
3991enum qca_wlan_vendor_attr_ll_stats_set {
3992 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3993 /* Unsigned 32-bit value */
3994 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3995 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3996 /* keep last */
3997 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3998 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3999 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4000};
4001
4002enum qca_wlan_vendor_attr_ll_stats_clr {
4003 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
4004 /* Unsigned 32bit bitmap for clearing statistics
4005 * All radio statistics 0x00000001
4006 * cca_busy_time (within radio statistics) 0x00000002
4007 * All channel stats (within radio statistics) 0x00000004
4008 * All scan statistics (within radio statistics) 0x00000008
4009 * All interface statistics 0x00000010
4010 * All tx rate statistics (within interface statistics) 0x00000020
4011 * All ac statistics (with in interface statistics) 0x00000040
4012 * All contention (min, max, avg) statistics (within ac statisctics)
4013 * 0x00000080.
4014 */
4015 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4016 /* Unsigned 8 bit value: Request to stop statistics collection */
4017 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4018
4019 /* Unsigned 32 bit bitmap: Response from the driver
4020 * for the cleared statistics
4021 */
4022 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4023 /* Unsigned 8 bit value: Response from driver/firmware
4024 * for the stop request
4025 */
4026 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4027 /* keep last */
4028 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4029 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4030 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4031};
4032
4033enum qca_wlan_vendor_attr_ll_stats_get {
4034 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4035 /* Unsigned 32 bit value provided by the caller issuing the GET stats
4036 * command. When reporting the stats results, the driver uses the same
4037 * value to indicate which GET request the results correspond to.
4038 */
4039 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4040 /* Unsigned 32 bit value - bit mask to identify what statistics are
4041 * requested for retrieval.
4042 * Radio Statistics 0x00000001
4043 * Interface Statistics 0x00000020
4044 * All Peer Statistics 0x00000040
4045 * Peer Statistics 0x00000080
4046 */
4047 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4048 /* keep last */
4049 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4050 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4051 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4052};
4053
4054enum qca_wlan_vendor_attr_ll_stats_results {
4055 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
4056 /* Unsigned 32bit value. Used by the driver; must match the request id
4057 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4058 */
4059 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4060
4061 /* Unsigned 32 bit value */
4062 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
4063 /* Unsigned 32 bit value */
4064 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
4065 /* Unsigned 32 bit value */
4066 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
4067 /* Unsigned 32 bit value */
4068 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
4069 /* Signed 32 bit value */
4070 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
4071 /* Signed 32 bit value */
4072 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
4073 /* Signed 32 bit value */
4074 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4075
4076 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4077 * nested within the interface stats.
4078 */
4079
4080 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4081 * Type = enum wifi_interface_mode.
4082 */
4083 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4084 /* Interface MAC address. An array of 6 Unsigned int8 */
4085 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4086 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4087 * AUTHENTICATING, etc. valid for STA, CLI only.
4088 */
4089 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4090 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4091 */
4092 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4093 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4094 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4095 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4096 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
4097 /* BSSID. An array of 6 unsigned 8 bit values */
4098 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4099 /* Country string advertised by AP. An array of 3 unsigned 8 bit
4100 * values.
4101 */
4102 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4103 /* Country string for this association. An array of 3 unsigned 8 bit
4104 * values.
4105 */
4106 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4107
4108 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4109 * be nested within the interface stats.
4110 */
4111
4112 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4113 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4114 /* Unsigned int 32 value corresponding to respective AC */
4115 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4116 /* Unsigned int 32 value corresponding to respective AC */
4117 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4118 /* Unsigned int 32 value corresponding to respective AC */
4119 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4120 /* Unsigned int 32 value corresponding to respective AC */
4121 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4122 /* Unsigned int 32 value corresponding to respective AC */
4123 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4124 /* Unsigned int 32 value corresponding to respective AC */
4125 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4126 /* Unsigned int 32 value corresponding to respective AC */
4127 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4128 /* Unsigned int 32 value corresponding to respective AC */
4129 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4130 /* Unsigned int 32 value corresponding to respective AC */
4131 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4132 /* Unsigned int 32 values corresponding to respective AC */
4133 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4134 /* Unsigned int 32 values corresponding to respective AC */
4135 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4136 /* Unsigned int 32 values corresponding to respective AC */
4137 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4138 /* Unsigned int 32 values corresponding to respective AC */
4139 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4140 /* Unsigned int 32 values corresponding to respective AC */
4141 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4142 /* Unsigned 32 bit value. Number of peers */
4143 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4144
4145 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4146 * nested within the interface stats.
4147 */
4148
4149 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4150 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4151 /* MAC addr corresponding to respective peer. An array of 6 unsigned
4152 * 8 bit values.
4153 */
4154 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4155 /* Unsigned int 32 bit value representing capabilities corresponding
4156 * to respective peer.
4157 */
4158 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4159 /* Unsigned 32 bit value. Number of rates */
4160 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4161
4162 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4163 * are nested within the rate stat.
4164 */
4165
4166 /* Wi-Fi Rate - separate attributes defined for individual fields */
4167
4168 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4169 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4170 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4171 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4172 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4173 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4174 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07004175 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4176 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004177 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4178
4179 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4180 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4181
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004182 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4183 * nested within the peer info stats.
4184 */
4185
4186 /* Unsigned int 32 bit value. Number of successfully transmitted data
4187 * packets, i.e., with ACK received corresponding to the respective
4188 * rate.
4189 */
4190 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4191 /* Unsigned int 32 bit value. Number of received data packets
4192 * corresponding to the respective rate.
4193 */
4194 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4195 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4196 * received corresponding to the respective rate.
4197 */
4198 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4199 /* Unsigned int 32 bit value. Total number of data packet retries for
4200 * the respective rate.
4201 */
4202 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4203 /* Unsigned int 32 bit value. Total number of short data packet retries
4204 * for the respective rate.
4205 */
4206 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4207 /* Unsigned int 32 bit value. Total number of long data packet retries
4208 * for the respective rate.
4209 */
4210 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4211
4212 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4213 /* Unsigned 32 bit value. Total number of msecs the radio is awake
4214 * accruing over time.
4215 */
4216 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4217 /* Unsigned 32 bit value. Total number of msecs the radio is
4218 * transmitting accruing over time.
4219 */
4220 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4221 /* Unsigned 32 bit value. Total number of msecs the radio is in active
4222 * receive accruing over time.
4223 */
4224 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4225 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4226 * to all scan accruing over time.
4227 */
4228 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4229 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4230 * to NAN accruing over time.
4231 */
4232 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4233 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4234 * to GSCAN accruing over time.
4235 */
4236 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4237 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4238 * to roam scan accruing over time.
4239 */
4240 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4241 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4242 * to PNO scan accruing over time.
4243 */
4244 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4245 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4246 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4247 */
4248 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4249 /* Unsigned 32 bit value. Number of channels. */
4250 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4251
4252 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4253 * be nested within the channel stats.
4254 */
4255
4256 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4257 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4258 /* Unsigned 32 bit value. Primary 20 MHz channel. */
4259 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4260 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4261 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4262 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4263 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4264
4265 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4266 * nested within the radio stats.
4267 */
4268
4269 /* Unsigned int 32 bit value representing total number of msecs the
4270 * radio is awake on that channel accruing over time, corresponding to
4271 * the respective channel.
4272 */
4273 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4274 /* Unsigned int 32 bit value representing total number of msecs the CCA
4275 * register is busy accruing over time corresponding to the respective
4276 * channel.
4277 */
4278 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4279
4280 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4281
4282 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004283 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004284 */
4285 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4286
4287 /* Signifies the nested list of peer info attributes
4288 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
4289 */
4290 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4291
4292 /* Signifies the nested list of rate info attributes
4293 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4294 */
4295 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4296
4297 /* Signifies the nested list of wmm info attributes
4298 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4299 */
4300 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4301
4302 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4303 * that more stats, e.g., peers or radio, are to follow in the next
4304 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4305 * Otherwise, it is set to 0.
4306 */
4307 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4308
4309 /* Unsigned 64 bit value */
4310 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4311
4312 /* Unsigned 32 bit value */
4313 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4314
4315 /* Unsigned 32 bit value */
4316 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4317
4318 /* Unsigned 32 bit value */
4319 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4320
4321 /* Unsigned 32 bit value */
4322 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4323
4324 /* Unsigned 32 bit value */
4325 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4326
4327 /* Number of msecs the radio spent in transmitting for each power level
4328 */
4329 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4330
4331 /* Unsigned 32 bit value */
4332 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4333 /* Unsigned 32 bit value */
4334 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4335 /* Unsigned 32 bit value */
4336 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4337 /* Unsigned 32 bit value */
4338 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4339
Roshan Pius3a1667e2018-07-03 15:17:14 -07004340 /* Unsigned int 32 value.
4341 * Pending MSDUs corresponding to respective AC.
4342 */
4343 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4344
Hai Shalom899fcc72020-10-19 14:38:18 -07004345 /* u32 value representing total time in milliseconds for which the radio
4346 * is transmitting on this channel. This attribute will be nested
4347 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4348 */
4349 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4350 /* u32 value representing total time in milliseconds for which the radio
4351 * is receiving all 802.11 frames intended for this device on this
4352 * channel. This attribute will be nested within
4353 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4354 */
4355 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004356 /* u8 value representing the channel load percentage. Possible values
4357 * are 0-100.
4358 */
4359 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4360 /* u8 value representing the time slicing duty cycle percentage.
4361 * Possible values are 0-100.
4362 */
4363 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07004364 /* Unsigned 32 bit value. The number of Beacon frames which are received
4365 * from the associated AP and indicate buffered unicast frame(s) for us
4366 * in the TIM element.
4367 */
4368 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4369 /* Unsigned 32 bit value. The total number of Beacon frames received
4370 * from the associated AP that have wrongly indicated buffered unicast
4371 * traffic in the TIM element for us.
4372 * Below scenarios will be considered as wrong TIM element beacon:
4373 * 1) The related TIM element is set in the beacon for STA but STA
4374 * doesn’t receive any unicast data after this beacon.
4375 * 2) The related TIM element is still set in the beacon for STA
4376 * after STA has indicated power save exit by QoS Null Data frame.
4377 */
4378 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07004379 /* Attribute used for padding for 64-bit alignment */
4380 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 90,
4381
4382 /* Signed 32 bit value. It represents the noise floor calibration value.
4383 * Possible values are -120~-50 dBm.
4384 */
4385 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07004386
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004387 /* keep last */
4388 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4389 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4390 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4391};
4392
Roshan Pius3a1667e2018-07-03 15:17:14 -07004393enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004394 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4395 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4396 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4397 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4398
4399 /* keep last */
4400 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4401 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4402 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4403};
4404
4405/**
4406 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4407 * TDLS configuration to the host driver.
4408 *
4409 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4410 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4411 * represents the different TDLS trigger modes.
4412 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4413 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4414 * of packets shall meet the criteria for implicit TDLS setup.
4415 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4416 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4417 * to initiate a TDLS setup.
4418 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4419 * a TDLS Discovery to the peer.
4420 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4421 * discovery attempts to know the TDLS capability of the peer. A peer is
4422 * marked as TDLS not capable if there is no response for all the attempts.
4423 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4424 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4425 * number of TX / RX frames meet the criteria for TDLS teardown.
4426 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4427 * of Tx/Rx packets within a duration
4428 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4429 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4430 * corresponding to the RSSI of the peer below which a TDLS setup is
4431 * triggered.
4432 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4433 * corresponding to the RSSI of the peer above which a TDLS teardown is
4434 * triggered.
4435 */
4436enum qca_wlan_vendor_attr_tdls_configuration {
4437 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4438 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4439
4440 /* Attributes configuring the TDLS Implicit Trigger */
4441 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4442 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4443 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4444 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4445 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4446 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4447 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4448 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4449
4450 /* keep last */
4451 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4452 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4453 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4454};
4455
4456/**
4457 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4458 * the driver
4459 *
4460 * The following are the different values for
4461 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4462 *
4463 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4464 * the TDLS connection to a respective peer comes from the user space.
4465 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4466 * TDLS_DISCOVER to do this.
4467 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4468 * setup/teardown to the eligible peer once the configured criteria
4469 * (such as TX/RX threshold, RSSI) is met. The attributes
4470 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4471 * the different configuration criteria for the TDLS trigger from the
4472 * host driver.
4473 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4474 * the TDLS setup / teardown through the implicit mode only to the
4475 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4476 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4477 * External mode works on top of the implicit mode. Thus the host driver
4478 * is expected to configure in TDLS Implicit mode too to operate in
4479 * External mode.
4480 * Configuring External mode alone without Implicit mode is invalid.
4481 *
4482 * All the above implementations work as expected only when the host driver
4483 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4484 * that the TDLS message exchange is not internal to the host driver, but
4485 * depends on wpa_supplicant to do the message exchange.
4486 */
4487enum qca_wlan_vendor_tdls_trigger_mode {
4488 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4489 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4490 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4491};
4492
Dmitry Shmidt29333592017-01-09 12:27:11 -08004493/**
4494 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4495 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4496 * that is hard-coded in the Board Data File (BDF).
4497 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4498 * that is hard-coded in the Board Data File (BDF).
4499 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4500 * that is hard-coded in the Board Data File (BDF).
4501 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4502 * that is hard-coded in the Board Data File (BDF).
4503 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4504 * that is hard-coded in the Board Data File (BDF).
4505 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4506 * source of SAR power limits, thereby disabling the SAR power
4507 * limit feature.
4508 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4509 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004510 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4511 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004512 *
4513 * This enumerates the valid set of values that may be supplied for
4514 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004515 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4516 * the response to an instance of the
4517 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004518 */
4519enum qca_vendor_attr_sar_limits_selections {
4520 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4521 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4522 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4523 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4524 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4525 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4526 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004527 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004528};
4529
4530/**
4531 * enum qca_vendor_attr_sar_limits_spec_modulations -
4532 * SAR limits specification modulation
4533 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4534 * CCK modulation
4535 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4536 * OFDM modulation
4537 *
4538 * This enumerates the valid set of values that may be supplied for
4539 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4540 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4541 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07004542 * command or in the response to an instance of the
4543 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004544 */
4545enum qca_vendor_attr_sar_limits_spec_modulations {
4546 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4547 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4548};
4549
4550/**
4551 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4552 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004553 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08004554 * select which SAR power limit table should be used. Valid
4555 * values are enumerated in enum
4556 * %qca_vendor_attr_sar_limits_selections. The existing SAR
4557 * power limit selection is unchanged if this attribute is not
4558 * present.
4559 *
4560 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4561 * which specifies the number of SAR power limit specifications
4562 * which will follow.
4563 *
4564 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4565 * limit specifications. The number of specifications is
4566 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4567 * specification contains a set of
4568 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4569 * specification is uniquely identified by the attributes
4570 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4571 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4572 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4573 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004574 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4575 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4576 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4577 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4578 * needed based upon the value of
4579 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004580 *
4581 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4582 * indicate for which band this specification applies. Valid
4583 * values are enumerated in enum %nl80211_band (although not all
4584 * bands may be supported by a given device). If the attribute is
4585 * not supplied then the specification will be applied to all
4586 * supported bands.
4587 *
4588 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4589 * to indicate for which antenna chain this specification
4590 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4591 * attribute is not supplied then the specification will be
4592 * applied to all chains.
4593 *
4594 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4595 * value to indicate for which modulation scheme this
4596 * specification applies. Valid values are enumerated in enum
4597 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4598 * is not supplied then the specification will be applied to all
4599 * modulation schemes.
4600 *
4601 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4602 * value to specify the actual power limit value in units of 0.5
4603 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004604 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4605 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004606 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004607 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4608 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4609 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4610 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4611 *
4612 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4613 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004614 */
4615enum qca_vendor_attr_sar_limits {
4616 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4617 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4618 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4619 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4620 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4621 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4622 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4623 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004624 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004625
4626 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4627 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4628 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4629};
4630
4631/**
4632 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4633 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004634 *
4635 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4636 * should be set to any U8 value to indicate that the driver version
4637 * should be returned. When enabled in this manner, in a response this
4638 * attribute will contain a string representation of the driver version.
4639 *
4640 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4641 * should be set to any U8 value to indicate that the firmware version
4642 * should be returned. When enabled in this manner, in a response this
4643 * attribute will contain a string representation of the firmware version.
4644 *
4645 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4646 * should be set to any U32 value to indicate that the current radio
4647 * index should be returned. When enabled in this manner, in a response
4648 * this attribute will contain a U32 radio index value.
4649 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004650 */
4651enum qca_wlan_vendor_attr_get_wifi_info {
4652 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4653 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4654 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004655 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004656
4657 /* keep last */
4658 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4659 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4660 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4661};
4662
4663/*
4664 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4665 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4666 */
4667enum qca_wlan_vendor_attr_wifi_logger_start {
4668 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4669 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4670 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4671 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4672
4673 /* keep last */
4674 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4675 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4676 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4677};
4678
4679enum qca_wlan_vendor_attr_logger_results {
4680 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4681
4682 /* Unsigned 32-bit value; must match the request Id supplied by
4683 * Wi-Fi HAL in the corresponding subcmd NL msg.
4684 */
4685 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4686
4687 /* Unsigned 32-bit value; used to indicate the size of memory
4688 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004689 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004690 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4691
4692 /* keep last */
4693 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4694 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4695 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4696};
4697
Hai Shalomc3565922019-10-28 11:58:20 -07004698/**
4699 * enum qca_scan_freq_list_type: Frequency list types
4700 *
4701 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4702 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4703 * a preferred frequency list for roaming.
4704 *
4705 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4706 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4707 * a specific frequency list for roaming.
4708 */
4709enum qca_scan_freq_list_type {
4710 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4711 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4712};
4713
4714/**
4715 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4716 *
4717 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4718 * List of frequencies in MHz to be considered for a roam scan.
4719 *
4720 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4721 * Type of frequency list scheme being configured/gotten as defined by the
4722 * enum qca_scan_freq_list_type.
4723 */
4724enum qca_vendor_attr_scan_freq_list_scheme {
4725 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4726 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4727
4728 /* keep last */
4729 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4730 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4731 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4732};
4733
Hai Shalom899fcc72020-10-19 14:38:18 -07004734/**
4735 * enum qca_roam_scan_scheme: Scan scheme
4736 *
4737 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4738 * Indicates the driver to not scan on a Roam Trigger scenario, but
4739 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4740 * disconnect from the current connected AP by notifying a failure
4741 * code in the BTM response.
4742 *
4743 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4744 * trigger partial frequency scans. These frequencies are the ones learned
4745 * or maintained by the driver based on the probability of finding the
4746 * BSSIDs in the ESS for which the roaming is triggered.
4747 *
4748 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4749 * trigger the scan on all the valid frequencies to find better
4750 * candidates to roam.
4751 */
4752enum qca_roam_scan_scheme {
4753 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4754 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4755 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4756};
4757
Hai Shalomc3565922019-10-28 11:58:20 -07004758/*
4759 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4760 *
4761 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4762 * a bad packet error rates (PER).
4763 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4764 * based on beacon misses from the connected AP.
4765 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4766 * due to poor RSSI of the connected AP.
4767 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4768 * upon finding a BSSID with a better RSSI than the connected BSSID.
4769 * Here the RSSI of the current BSSID need not be poor.
4770 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4771 * by triggering a periodic scan to find a better AP to roam.
4772 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4773 * when the connected channel environment is too noisy/congested.
4774 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4775 * when BTM Request frame is received from the connected AP.
4776 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4777 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004778 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4779 * based on the request from the user (space).
4780 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4781 * device receives Deauthentication/Disassociation frame from connected AP.
4782 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4783 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4784 * is determined to be a poor one.
4785 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4786 * based on continuous TX Data frame failures to the connected AP.
4787 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4788 * based on the scan results obtained from an external scan (not triggered
4789 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004790 *
4791 * Set the corresponding roam trigger reason bit to consider it for roam
4792 * trigger.
4793 * Userspace can set multiple bits and send to the driver. The driver shall
4794 * consider all of them to trigger/initiate a roam scan.
4795 */
4796enum qca_vendor_roam_triggers {
4797 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4798 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4799 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4800 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4801 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4802 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4803 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4804 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004805 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4806 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4807 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4808 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4809 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004810};
4811
Hai Shalom60840252021-02-19 19:02:11 -08004812/*
4813 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4814 * fail reasons. This enum value is used in
4815 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4816 *
4817 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4818 * able to trigger the scan.
4819 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4820 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4821 * scan.
4822 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4823 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4824 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4825 * status code.
4826 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4827 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4828 * frame.
4829 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4830 * with error status code.
4831 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4832 * received.
4833 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4834 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4835 * frame.
4836 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4837 * internally before transmission.
4838 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4839 * Request frame.
4840 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4841 * dropped internally.
4842 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4843 * times out.
4844 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4845 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4846 * internally.
4847 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4848 * M2 frame.
4849 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4850 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4851 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4852 * internally.
4853 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4854 * frame.
4855 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4856 * started for final beacon miss case.
4857 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4858 * received from the AP during roaming handoff.
4859 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4860 * or host is suspended and gives the indication of the last roamed AP only
4861 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4862 * progress, this ongoing roaming is aborted and the last roamed AP is
4863 * indicated to host.
4864 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4865 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4866 * out.
4867 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4868 */
4869enum qca_vendor_roam_fail_reasons {
4870 QCA_ROAM_FAIL_REASON_NONE = 0,
4871 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4872 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4873 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4874 QCA_ROAM_FAIL_REASON_HOST = 4,
4875 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4876 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4877 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4878 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4879 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4880 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4881 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4882 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4883 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4884 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4885 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4886 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4887 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4888 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4889 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4890 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4891 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4892 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4893 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4894 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4895 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4896 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4897 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4898 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4899 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4900};
4901
4902/*
4903 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4904 * invoke fail reasons. This enum value is used in
4905 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4906 *
4907 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4908 * in roam invoke command.
4909 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4910 * enabled.
4911 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4912 * length is invalid.
4913 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4914 * in progress.
4915 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4916 * of the AP in the roam invoke command to firmware. This reason is sent by the
4917 * firmware when the given AP is configured to be ignored or SSID/security
4918 * does not match.
4919 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4920 * firmware internal reasons.
4921 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4922 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4923 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4924 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4925 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4926 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4927 */
4928enum qca_vendor_roam_invoke_fail_reasons {
4929 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4930 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4931 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4932 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4933 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4934 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4935 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4936 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4937 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4938 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4939 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4940 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4941 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4942
4943};
4944
Hai Shalomc3565922019-10-28 11:58:20 -07004945/**
4946 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4947 *
4948 * Each attribute carries a weightage in percentage (%).
4949 *
4950 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4951 * Represents the weightage to be given for the RSSI selection
4952 * criteria among other parameters.
4953 *
4954 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4955 * Represents the weightage to be given for the rate selection
4956 * criteria among other parameters.
4957 *
4958 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4959 * Represents the weightage to be given for the band width selection
4960 * criteria among other parameters.
4961 *
4962 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4963 * Represents the weightage to be given for the band selection
4964 * criteria among other parameters.
4965 *
4966 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4967 * Represents the weightage to be given for the NSS selection
4968 * criteria among other parameters.
4969 *
4970 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4971 * Represents the weightage to be given for the channel congestion
4972 * selection criteria among other parameters.
4973 *
4974 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4975 * Represents the weightage to be given for the beamforming selection
4976 * criteria among other parameters.
4977 *
4978 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4979 * Represents the weightage to be given for the OCE selection
4980 * criteria among other parameters.
4981 */
4982enum qca_vendor_attr_roam_candidate_selection_criteria {
4983 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4984 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4985 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4986 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4987 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4988 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4989 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4990 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4991
4992 /* keep last */
4993 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4994 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4995 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4996};
4997
4998/**
4999 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00005000 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07005001 * configurations to/from the driver.
5002 * For the get, the attribute for the configuration to be queried shall
5003 * carry any of its acceptable values to the driver. In return, the driver
5004 * shall send the configured values within the same attribute to the user
5005 * space.
5006 *
5007 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
5008 * Signifies to enable/disable roam control in driver.
5009 * 1-enable, 0-disable
5010 * Enable: Mandates the driver to do the further roams using the
5011 * configuration parameters set through
5012 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
5013 * Disable: Disables the driver/firmware roaming triggered through
5014 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
5015 * expected to continue with the default configurations.
5016 *
5017 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
5018 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
5019 * Roam control status is obtained through this attribute.
5020 *
5021 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
5022 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5023 * is to be cleared in the driver.
5024 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5025 * and shall be ignored if used with other sub commands.
5026 * If this attribute is specified along with subcmd
5027 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5028 * all other attributes, if there are any.
5029 * If this attribute is not specified when the subcmd
5030 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
5031 * clear the data corresponding to the attributes specified.
5032 *
5033 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5034 * list of frequencies and its type, represented by
5035 * enum qca_vendor_attr_scan_freq_list_scheme.
5036 * Frequency list and its type are mandatory for this attribute to set
5037 * the frequencies.
5038 * Frequency type is mandatory for this attribute to get the frequencies
5039 * and the frequency list is obtained through
5040 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5041 * Frequency list type is mandatory for this attribute to clear the
5042 * frequencies.
5043 *
5044 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5045 * Carries the value of scan period in seconds to set.
5046 * The value of scan period is obtained with the same attribute for get.
5047 * Clears the scan period in the driver when specified with clear command.
5048 * Scan period is the idle time in seconds between each subsequent
5049 * channel scans.
5050 *
5051 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5052 * Carries the value of full scan period in seconds to set.
5053 * The value of full scan period is obtained with the same attribute for
5054 * get.
5055 * Clears the full scan period in the driver when specified with clear
5056 * command. Full scan period is the idle period in seconds between two
5057 * successive full channel roam scans.
5058 *
5059 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5060 * Carries a bitmap of the roam triggers specified in
5061 * enum qca_vendor_roam_triggers.
5062 * The driver shall enable roaming by enabling corresponding roam triggers
5063 * based on the trigger bits sent with this attribute.
5064 * If this attribute is not configured, the driver shall proceed with
5065 * default behavior.
5066 * The bitmap configured is obtained with the same attribute for get.
5067 * Clears the bitmap configured in driver when specified with clear
5068 * command.
5069 *
5070 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5071 * weightage in percentage (%) to be given for each selection criteria.
5072 * Different roam candidate selection criteria are represented by
5073 * enum qca_vendor_attr_roam_candidate_selection_criteria.
5074 * The driver shall select the roam candidate based on corresponding
5075 * candidate selection scores sent.
5076 *
5077 * An empty nested attribute is used to indicate that no specific
5078 * preference score/criteria is configured (i.e., to disable this mechanism
5079 * in the set case and to show that the mechanism is disabled in the get
5080 * case).
5081 *
5082 * Userspace can send multiple attributes out of this enum to the driver.
5083 * Since this attribute represents the weight/percentage of preference for
5084 * the respective selection criteria, it is preferred to configure 100%
5085 * total weightage. The value in each attribute or cumulative weight of the
5086 * values in all the nested attributes should not exceed 100%. The driver
5087 * shall reject such configuration.
5088 *
5089 * If the weights configured through this attribute are less than 100%,
5090 * the driver shall honor the weights (x%) passed for the corresponding
5091 * selection criteria and choose/distribute rest of the weight (100-x)%
5092 * for the other selection criteria, based on its internal logic.
5093 *
5094 * The selection criteria configured is obtained with the same
5095 * attribute for get.
5096 *
5097 * Clears the selection criteria configured in the driver when specified
5098 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07005099 *
5100 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5101 * Represents value of the scan frequency scheme from enum
5102 * qca_roam_scan_scheme.
5103 * It's an optional attribute. If this attribute is not configured, the
5104 * driver shall proceed with default behavior.
5105 *
5106 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5107 * signifying the RSSI threshold of the current connected AP, indicating
5108 * the driver to trigger roam only when the current connected AP's RSSI
5109 * is less than this threshold.
5110 *
5111 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5112 * signifying the RSSI threshold of the candidate AP, indicating
5113 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08005114 * better than this threshold. If RSSI thresholds for candidate APs found
5115 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5116 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5117 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5118 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5119 * take precedence over the value configured using the
5120 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07005121 *
5122 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5123 * user defined reason code to be sent to the AP in response to AP's
5124 * request to trigger the roam if the roaming cannot be triggered.
5125 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5126 *
5127 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5128 * Carries a bitmap of the roam triggers specified in
5129 * enum qca_vendor_roam_triggers.
5130 * Represents the roam triggers for which the specific scan scheme from
5131 * enum qca_roam_scan_scheme has to be applied.
5132 * It's an optional attribute. If this attribute is not configured, but
5133 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5134 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5135 * all the roams.
5136 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5137 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5138 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005139 *
5140 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5141 * in dBm, signifying the RSSI threshold of the candidate AP found in the
5142 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5143 * AP found in the 2.4 GHz band only if its RSSI value is better than this
5144 * threshold. Optional attribute. If this attribute is not included, the
5145 * threshold value specified by the
5146 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5147 *
5148 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5149 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
5150 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5151 * found in the 5 GHz band only if its RSSI value is better than this
5152 * threshold. Optional attribute. If this attribute is not included, the
5153 * threshold value specified by tge
5154 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5155 *
5156 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5157 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
5158 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5159 * found in the 6 GHz band only if its RSSI value is better than this
5160 * threshold. Optional attribute. If this attribute is not included, the
5161 * threshold value specified by the
5162 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5163 *
5164 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5165 * Carries bitmask value of bits from &enum qca_set_band and represents
5166 * all the bands in which roaming is allowed. The configuration is valid
5167 * until next disconnection. If this attribute is not present, the
5168 * existing configuration shall be used. By default, roaming is allowed on
5169 * all bands supported by the local device. When the value is set to
5170 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
5171 *
5172 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5173 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5174 * bands. If this attribute is not configured, the driver shall proceed
5175 * with default behavior.
5176 *
5177 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5178 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
5179 * band. If this attribute is not configured, the driver shall proceed with
5180 * default behavior.
5181 *
5182 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5183 * Optional parameter. The minimum duration to stay on the connected AP
5184 * channel during the channel scanning. If this attribute is not
5185 * configured, the driver shall proceed with default behavior.
5186 *
5187 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5188 * Optional parameter. The maximum duration for which the radio can scan
5189 * foreign channels consecutively without coming back to home channel. If
5190 * this attribute is not configured, the driver shall proceed with default
5191 * behavior.
5192 *
5193 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5194 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5195 * If this attribute is not configured, the driver shall proceed with
5196 * default behavior.
5197 *
5198 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5199 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5200 * Channels. If this attribute is not configured, the driver shall proceed
5201 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00005202 *
5203 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5204 * Optional parameter. RX link speed threshold to disable roaming.
5205 * If the current RX link speed is above the threshold, roaming is not
5206 * needed. If this attribute is not configured, or if it is set to 0, the
5207 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00005208 *
5209 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5210 * Optional parameter. This configuration delays hand-off by the
5211 * specified duration to receive pending RX frames from the current BSS.
5212 *
5213 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5214 * value.
5215 * During the roam scan, if there are no desired APs found in the partial
5216 * frequency list, an immediate full scan on all the supported frequencies
5217 * is initiated as a fallback. This flag controls the frequency list
5218 * creation for the full scan on the following lines.
5219 * 1 - Full scan to exclude the frequencies that were already scanned by
5220 * the previous partial scan.
5221 * 0 - Full scan to include all the supported frequencies irrespective of
5222 * the ones part of the earlier partial scan.
5223 * If this flag is not specified, a full scan shall include all the
5224 * supported frequencies irrespective of the ones part of an earlier
5225 * partial scan.
5226 *
5227 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5228 * value.
5229 * During the roam scan, if there are no desired APs found in the partial
5230 * frequency list, an immediate full scan on all the supported frequencies
5231 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5232 * frequencies, including all PSC frequencies by default. This attribute
5233 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
5234 * as following.
5235 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5236 * prior discovery of any 6 GHz frequency support in the environment.
5237 * This discovery can happen through a prior RNR, 11k neighbor
5238 * request, 11v BTM request, host scan, etc.
5239 * 0 - Default behavior. Full scan to include all the supported 6 GHz
5240 * PSC frequencies regardless of whether 6 GHz BSSs have been
5241 * discovered.
5242 * The default behavior if this flag is not specified is to include all
5243 * the supported 6 GHz PSC frequencies in the roam full scan.
Hai Shalomc3565922019-10-28 11:58:20 -07005244 */
5245enum qca_vendor_attr_roam_control {
5246 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5247 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5248 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
5249 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
5250 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5251 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5252 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5253 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005254 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5255 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5256 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5257 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5258 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005259 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5260 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5261 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5262 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5263 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5264 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5265 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5266 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5267 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5268 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00005269 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00005270 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5271 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5272 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Hai Shalomc3565922019-10-28 11:58:20 -07005273
5274 /* keep last */
5275 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5276 QCA_ATTR_ROAM_CONTROL_MAX =
5277 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5278};
5279
5280/*
5281 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5282 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5283 *
5284 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5285 * Represents the different roam sub commands referred by
5286 * enum qca_wlan_vendor_roaming_subcmd.
5287 *
5288 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5289 * Represents the Request ID for the specific set of commands.
5290 * This also helps to map specific set of commands to the respective
5291 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07005292 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07005293 * matching ID.
5294 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005295 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5296 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07005297 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005298 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5299 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005300 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005301 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5302 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07005303 * represent the list of SSIDs to which the firmware/driver can consider
5304 * to roam to.
5305 *
5306 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5307 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5308 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5309 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5310 *
5311 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5312 * value, RSSI threshold above which 5GHz RSSI is favored.
5313 *
5314 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5315 * value, RSSI threshold below which 5GHz RSSI is penalized.
5316 *
5317 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5318 * value, factor by which 5GHz RSSI is boosted.
5319 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5320 *
5321 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5322 * value, factor by which 5GHz RSSI is penalized.
5323 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5324 *
5325 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5326 * value, maximum boost that can be applied to a 5GHz RSSI.
5327 *
5328 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5329 * value, boost applied to current BSSID to ensure the currently
5330 * associated BSSID is favored so as to prevent ping-pong situations.
5331 *
5332 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5333 * value, RSSI below which "Alert" roam is enabled.
5334 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5335 * because the RSSI is low, or because many successive beacons have been
5336 * lost or other bad link conditions.
5337 *
5338 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5339 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08005340 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07005341 * the RSSI of the link is good. The parameters enabling the roaming are
5342 * configured through the PARAM_A_BAND_XX attrbutes.
5343 *
5344 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5345 * represents the BSSIDs preferred over others while evaluating them
5346 * for the roaming.
5347 *
5348 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5349 * 32-bit value. Represents the number of preferred BSSIDs set.
5350 *
5351 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5352 * address representing the BSSID to be preferred.
5353 *
5354 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5355 * 32-bit value, representing the modifier to be applied to the RSSI of
5356 * the BSSID for the purpose of comparing it with other roam candidate.
5357 *
5358 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005359 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07005360 *
5361 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07005362 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005363 *
5364 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07005365 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07005366 *
5367 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005368 * indicates this request to ignore the BSSID as a hint to the driver. The
5369 * driver can select this BSSID in the worst case (when no other BSSIDs are
5370 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07005371 *
5372 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5373 * set/get/clear the roam control config as
5374 * defined @enum qca_vendor_attr_roam_control.
5375 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005376enum qca_wlan_vendor_attr_roaming_config_params {
5377 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5378
5379 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5380 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5381
Hai Shaloma20dcd72022-02-04 13:43:00 -08005382 /* Attributes for wifi_set_ssid_allow_list */
5383 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5384 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5385 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005386
5387 /* Attributes for set_roam_params */
5388 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5389 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5390 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5391 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5392 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5393 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5394 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5395
5396 /* Attribute for set_lazy_roam */
5397 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5398
5399 /* Attribute for set_lazy_roam with preferences */
5400 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5401 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5402 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5403 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5404
Hai Shalom899fcc72020-10-19 14:38:18 -07005405 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005406 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5407 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5408 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07005409 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07005410 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005411
Hai Shalomc3565922019-10-28 11:58:20 -07005412 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5413
Dmitry Shmidt29333592017-01-09 12:27:11 -08005414 /* keep last */
5415 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5416 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5417 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5418};
5419
Hai Shaloma20dcd72022-02-04 13:43:00 -08005420/* old names for API compatibility */
5421#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5422 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5423#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5424 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5425#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5426 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5427
Dmitry Shmidt29333592017-01-09 12:27:11 -08005428/*
Hai Shalomc3565922019-10-28 11:58:20 -07005429 * enum qca_wlan_vendor_roaming_subcmd: Referred by
5430 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5431 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005432 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5433 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07005434 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005435 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5436 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5437 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07005438 *
5439 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5440 * configure the Roam params. These parameters are evaluated on the GScan
5441 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
5442 * params.
5443 *
5444 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5445 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5446 * to enable/disable Lazy roam.
5447 *
5448 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5449 * preference. Contains the attribute
5450 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5451 * preference.
5452 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005453 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07005454 * to ignore in roaming decision. Uses
5455 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07005456 *
5457 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5458 * roam control config to the driver with the attribute
5459 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5460 *
5461 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5462 * roam control config from driver with the attribute
5463 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5464 * For the get, the attribute for the configuration to be queried shall
5465 * carry any of its acceptable value to the driver. In return, the driver
5466 * shall send the configured values within the same attribute to the user
5467 * space.
5468 *
5469 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5470 * roam control config in the driver with the attribute
5471 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5472 * The driver shall continue with its default roaming behavior when data
5473 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005474 */
Hai Shalomc3565922019-10-28 11:58:20 -07005475enum qca_wlan_vendor_roaming_subcmd {
5476 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005477 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07005478 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5479 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5480 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5481 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005482 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07005483 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5484 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5485 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005486};
5487
Hai Shaloma20dcd72022-02-04 13:43:00 -08005488/* old names for API compatibility */
5489#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5490 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5491#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5492 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5493
Dmitry Shmidt29333592017-01-09 12:27:11 -08005494enum qca_wlan_vendor_attr_gscan_config_params {
5495 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5496
5497 /* Unsigned 32-bit value */
5498 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5499
5500 /* Attributes for data used by
5501 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5502 */
5503 /* Unsigned 32-bit value */
5504 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5505 = 2,
5506 /* Unsigned 32-bit value */
5507 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5508 = 3,
5509
5510 /* Attributes for input params used by
5511 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5512 */
5513
5514 /* Unsigned 32-bit value; channel frequency */
5515 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5516 /* Unsigned 32-bit value; dwell time in ms. */
5517 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5518 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5519 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5520 /* Unsigned 8-bit value; channel class */
5521 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5522
5523 /* Unsigned 8-bit value; bucket index, 0 based */
5524 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5525 /* Unsigned 8-bit value; band. */
5526 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5527 /* Unsigned 32-bit value; desired period, in ms. */
5528 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5529 /* Unsigned 8-bit value; report events semantics. */
5530 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5531 /* Unsigned 32-bit value. Followed by a nested array of
5532 * GSCAN_CHANNEL_SPEC_* attributes.
5533 */
5534 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5535
5536 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5537 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5538 */
5539 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5540
5541 /* Unsigned 32-bit value; base timer period in ms. */
5542 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5543 /* Unsigned 32-bit value; number of APs to store in each scan in the
5544 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5545 */
5546 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5547 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5548 * up AP.
5549 */
5550 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5551 = 16,
5552
5553 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
5554 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5555 * of the array is determined by NUM_BUCKETS.
5556 */
5557 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5558
5559 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5560 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5561 */
5562 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5563
5564 /* Unsigned 8-bit value */
5565 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5566 = 19,
5567 /* Unsigned 32-bit value; maximum number of results to be returned. */
5568 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5569 = 20,
5570
5571 /* An array of 6 x unsigned 8-bit value */
5572 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5573 /* Signed 32-bit value */
5574 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5575 /* Signed 32-bit value */
5576 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5577 /* Unsigned 32-bit value */
5578 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5579
5580 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5581 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5582 * array is determined by NUM_AP.
5583 */
5584 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5585
5586 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5587 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5588 */
5589 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5590
5591 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
5592 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5593 = 27,
5594 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5595 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5596 = 28,
5597 /* Unsigned 32-bit value; number of APs breaching threshold. */
5598 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5599 /* Unsigned 32-bit value; number of APs. Followed by an array of
5600 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5601 */
5602 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5603 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5604 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5605 = 31,
5606 /* Unsigned 32-bit value. If max_period is non zero or different than
5607 * period, then this bucket is an exponential backoff bucket.
5608 */
5609 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5610 /* Unsigned 32-bit value. */
5611 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5612 /* Unsigned 32-bit value. For exponential back off bucket, number of
5613 * scans to perform for a given period.
5614 */
5615 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5616 /* Unsigned 8-bit value; in number of scans, wake up AP after these
5617 * many scans.
5618 */
5619 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5620 = 35,
5621
5622 /* Attributes for data used by
5623 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5624 */
5625 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5626 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5627 = 36,
5628 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5629 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5630 * size of the array is determined by NUM_SSID.
5631 */
5632 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5633 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5634 * attributes.
5635 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5636 */
5637 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5638
5639 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5640 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5641 /* Unsigned 8-bit value */
5642 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5643 /* Signed 32-bit value */
5644 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5645 /* Signed 32-bit value */
5646 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5647 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5648 */
5649 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5650
5651 /* keep last */
5652 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5653 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5654 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5655};
5656
5657enum qca_wlan_vendor_attr_gscan_results {
5658 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5659
5660 /* Unsigned 32-bit value; must match the request Id supplied by
5661 * Wi-Fi HAL in the corresponding subcmd NL msg.
5662 */
5663 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5664
5665 /* Unsigned 32-bit value; used to indicate the status response from
5666 * firmware/driver for the vendor sub-command.
5667 */
5668 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5669
5670 /* GSCAN Valid Channels attributes */
5671 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5672 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5673 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
5674 * representing channel numbers.
5675 */
5676 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5677
5678 /* GSCAN Capabilities attributes */
5679 /* Unsigned 32-bit value */
5680 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5681 /* Unsigned 32-bit value */
5682 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5683 /* Unsigned 32-bit value */
5684 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5685 = 7,
5686 /* Unsigned 32-bit value */
5687 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5688 = 8,
5689 /* Signed 32-bit value */
5690 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5691 = 9,
5692 /* Unsigned 32-bit value */
5693 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5694 /* Unsigned 32-bit value */
5695 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5696 = 11,
5697 /* Unsigned 32-bit value */
5698 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5699 = 12,
5700
5701 /* GSCAN Attributes used with
5702 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5703 */
5704
5705 /* Unsigned 32-bit value */
5706 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5707
5708 /* GSCAN attributes used with
5709 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5710 */
5711
5712 /* An array of NUM_RESULTS_AVAILABLE x
5713 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5714 */
5715 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5716
5717 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5718 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5719 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5720 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5721 /* An array of 6 x unsigned 8-bit value */
5722 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5723 /* Unsigned 32-bit value; channel frequency in MHz */
5724 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5725 /* Signed 32-bit value */
5726 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5727 /* Unsigned 32-bit value */
5728 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5729 /* Unsigned 32-bit value */
5730 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5731 /* Unsigned 16-bit value */
5732 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5733 /* Unsigned 16-bit value */
5734 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5735 /* Unsigned 32-bit value; size of the IE DATA blob */
5736 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5737 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5738 * information elements found in the beacon; this data should be a
5739 * packed list of wifi_information_element objects, one after the
5740 * other.
5741 */
5742 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5743
5744 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5745 * available.
5746 */
5747 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5748
5749 /* GSCAN attributes for
5750 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5751 */
5752 /* Unsigned 8-bit value */
5753 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5754 /* Unsigned 32-bit value */
5755 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5756
5757 /* GSCAN attributes for
5758 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5759 */
5760 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5761 * to indicate number of results.
5762 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5763 * list of results.
5764 */
5765
5766 /* GSCAN attributes for
5767 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5768 */
5769 /* An array of 6 x unsigned 8-bit value */
5770 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5771 /* Unsigned 32-bit value */
5772 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5773 = 30,
5774 /* Unsigned 32-bit value. */
5775 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5776 = 31,
5777 /* A nested array of signed 32-bit RSSI values. Size of the array is
5778 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5779 */
5780 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5781 = 32,
5782
5783 /* GSCAN attributes used with
5784 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5785 */
5786 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5787 * to indicate number of gscan cached results returned.
5788 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5789 * the list of gscan cached results.
5790 */
5791
5792 /* An array of NUM_RESULTS_AVAILABLE x
5793 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5794 */
5795 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5796 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5797 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5798 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5799 */
5800 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5801 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5802 * to indicate number of wifi scan results/bssids retrieved by the scan.
5803 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5804 * list of wifi scan results returned for each cached result block.
5805 */
5806
5807 /* GSCAN attributes for
5808 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5809 */
5810 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5811 * number of results.
5812 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5813 * list of wifi scan results returned for each
5814 * wifi_passpoint_match_result block.
5815 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5816 */
5817
5818 /* GSCAN attributes for
5819 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5820 */
5821 /* Unsigned 32-bit value */
5822 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5823 = 36,
5824 /* A nested array of
5825 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5826 * attributes. Array size =
5827 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5828 */
5829 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5830
5831 /* Unsigned 32-bit value; network block id for the matched network */
5832 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5833 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5834 * list of wifi scan results returned for each
5835 * wifi_passpoint_match_result block.
5836 */
5837 /* Unsigned 32-bit value */
5838 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5839 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5840 * ANQP data in the information_element format.
5841 */
5842 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5843
5844 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5845 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5846 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5847 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5848 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5849 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5850 = 43,
5851 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005852 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08005853 = 44,
5854
5855 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5856
Hai Shalomce48b4a2018-09-05 11:41:35 -07005857 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5858 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005859 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08005860 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005861 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5862 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005863 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07005864
Sunil Ravi036cec52023-03-29 11:35:17 -07005865 /* Attribute used for padding for 64-bit alignment */
5866 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
5867
Dmitry Shmidt29333592017-01-09 12:27:11 -08005868 /* keep last */
5869 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5870 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5871 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5872};
5873
Hai Shaloma20dcd72022-02-04 13:43:00 -08005874/* old names for API compatibility */
5875#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5876 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5877#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5878 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5879
Dmitry Shmidt29333592017-01-09 12:27:11 -08005880enum qca_wlan_vendor_attr_pno_config_params {
5881 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5882 /* Attributes for data used by
5883 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5884 */
5885 /* Unsigned 32-bit value */
5886 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5887 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5888 * attributes. Array size =
5889 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5890 */
5891 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5892
5893 /* Unsigned 32-bit value */
5894 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5895 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5896 * realm, 0 if unspecified.
5897 */
5898 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5899 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5900 * match, 0 if unspecified.
5901 */
5902 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5903 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5904 * unspecified.
5905 */
5906 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5907
5908 /* Attributes for data used by
5909 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5910 */
5911 /* Unsigned 32-bit value */
5912 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5913 /* Array of nested
5914 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5915 * attributes. Array size =
5916 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5917 */
5918 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5919 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5920 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5921 /* Signed 8-bit value; threshold for considering this SSID as found,
5922 * required granularity for this threshold is 4 dBm to 8 dBm.
5923 */
5924 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5925 = 10,
5926 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5927 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5928 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5929 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5930 /* Unsigned 8-bit to indicate ePNO type;
5931 * It takes values from qca_wlan_epno_type
5932 */
5933 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5934
5935 /* Nested attribute to send the channel list */
5936 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5937
5938 /* Unsigned 32-bit value; indicates the interval between PNO scan
5939 * cycles in msec.
5940 */
5941 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5942 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5943 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5944 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5945 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5946 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5947 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5948 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005949 /* Unsigned 32-bit value, representing the PNO Request ID */
5950 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005951
5952 /* keep last */
5953 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5954 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5955 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5956};
5957
Paul Stewart092955c2017-02-06 09:13:09 -08005958/**
5959 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5960 * the ACS has to be triggered. These values are used by
5961 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5962 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5963 */
5964enum qca_wlan_vendor_acs_select_reason {
5965 /* Represents the reason that the ACS triggered during the AP start */
5966 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5967 /* Represents the reason that DFS found with the current channel */
5968 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5969 /* Represents the reason that LTE co-exist in the current band. */
5970 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005971 /* Represents the reason that generic, uncategorized interference has
5972 * been found in the current channel.
5973 */
5974 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5975 /* Represents the reason that excessive 802.11 interference has been
5976 * found in the current channel.
5977 */
5978 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5979 /* Represents the reason that generic Continuous Wave (CW) interference
5980 * has been found in the current channel.
5981 */
5982 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5983 /* Represents the reason that Microwave Oven (MWO) interference has been
5984 * found in the current channel.
5985 */
5986 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5987 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5988 * (FHSS) interference has been found in the current channel. This may
5989 * include 802.11 waveforms.
5990 */
5991 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5992 /* Represents the reason that non-802.11 generic Frequency-Hopping
5993 * Spread Spectrum (FHSS) interference has been found in the current
5994 * channel.
5995 */
5996 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5997 /* Represents the reason that generic Wideband (WB) interference has
5998 * been found in the current channel. This may include 802.11 waveforms.
5999 */
6000 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6001 /* Represents the reason that non-802.11 generic Wideband (WB)
6002 * interference has been found in the current channel.
6003 */
6004 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6005 /* Represents the reason that Jammer interference has been found in the
6006 * current channel.
6007 */
6008 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07006009 /* Represents the reason that ACS triggered by AFC */
6010 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08006011};
6012
6013/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006014 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6015 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6016 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6017 * external ACS policies to select the channels w.r.t. the PCL weights.
6018 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6019 * their PCL weights.)
6020 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6021 * select a channel with non-zero PCL weight.
6022 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6023 * channel with non-zero PCL weight.
6024 *
6025 */
6026enum qca_wlan_vendor_attr_external_acs_policy {
6027 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6028 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6029};
6030
6031/**
Paul Stewart092955c2017-02-06 09:13:09 -08006032 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
6033 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
6034 */
6035enum qca_wlan_vendor_channel_prop_flags {
6036 /* Bits 0, 1, 2, and 3 are reserved */
6037
6038 /* Turbo channel */
6039 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
6040 /* CCK channel */
6041 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
6042 /* OFDM channel */
6043 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
6044 /* 2.4 GHz spectrum channel. */
6045 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
6046 /* 5 GHz spectrum channel */
6047 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
6048 /* Only passive scan allowed */
6049 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
6050 /* Dynamic CCK-OFDM channel */
6051 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
6052 /* GFSK channel (FHSS PHY) */
6053 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
6054 /* Radar found on channel */
6055 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
6056 /* 11a static turbo channel only */
6057 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
6058 /* Half rate channel */
6059 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
6060 /* Quarter rate channel */
6061 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
6062 /* HT 20 channel */
6063 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
6064 /* HT 40 with extension channel above */
6065 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
6066 /* HT 40 with extension channel below */
6067 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
6068 /* HT 40 intolerant */
6069 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
6070 /* VHT 20 channel */
6071 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
6072 /* VHT 40 with extension channel above */
6073 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
6074 /* VHT 40 with extension channel below */
6075 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
6076 /* VHT 80 channel */
6077 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
6078 /* HT 40 intolerant mark bit for ACS use */
6079 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6080 /* Channel temporarily blocked due to noise */
6081 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
6082 /* VHT 160 channel */
6083 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
6084 /* VHT 80+80 channel */
6085 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006086 /* HE 20 channel */
6087 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
6088 /* HE 40 with extension channel above */
6089 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
6090 /* HE 40 with extension channel below */
6091 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
6092 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07006093 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006094};
6095
6096/**
6097 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6098 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6099 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6100 */
6101enum qca_wlan_vendor_channel_prop_flags_2 {
6102 /* HE 40 intolerant mark bit for ACS use */
6103 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6104 /* HE 80 channel */
6105 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
6106 /* HE 160 channel */
6107 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
6108 /* HE 80+80 channel */
6109 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006110};
6111
6112/**
6113 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6114 * each channel. This is used by
6115 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6116 */
6117enum qca_wlan_vendor_channel_prop_flags_ext {
6118 /* Radar found on channel */
6119 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
6120 /* DFS required on channel */
6121 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
6122 /* DFS required on channel for 2nd band of 80+80 */
6123 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
6124 /* If channel has been checked for DFS */
6125 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
6126 /* Excluded in 802.11d */
6127 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
6128 /* Channel Switch Announcement received on this channel */
6129 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
6130 /* Ad-hoc is not allowed */
6131 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
6132 /* Station only channel */
6133 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07006134 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006135 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006136 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006137 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
6138};
6139
6140/**
6141 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6142 * information. These attributes are sent as part of
6143 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6144 * attributes correspond to a single channel.
6145 */
6146enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6147 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6148
6149 /* A bitmask (u32) with flags specified in
6150 * enum qca_wlan_vendor_channel_prop_flags.
6151 */
6152 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6153 /* A bitmask (u32) with flags specified in
6154 * enum qca_wlan_vendor_channel_prop_flags_ext.
6155 */
6156 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6157 /* frequency in MHz (u32) */
6158 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6159 /* maximum regulatory transmission power (u32) */
6160 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6161 /* maximum transmission power (u32) */
6162 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6163 /* minimum transmission power (u32) */
6164 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6165 /* regulatory class id (u8) */
6166 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6167 /* maximum antenna gain in (u8) */
6168 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6169 /* VHT segment 0 (u8) */
6170 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6171 /* VHT segment 1 (u8) */
6172 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006173 /* A bitmask (u32) with flags specified in
6174 * enum qca_wlan_vendor_channel_prop_flags_2.
6175 */
6176 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006177
Hai Shalomc3565922019-10-28 11:58:20 -07006178 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006179 * Segment 0 in MHz (u32).
6180 *
6181 * For 20/40/80 MHz bandwidth, this indicates the channel center
6182 * frequency index for the 20/40/80 MHz operating channel.
6183 * For 160 MHz bandwidth, this indicates the channel center
6184 * frequency of the primary 80 MHz channel.
6185 * For 320 MHz bandwidth, indicates the channel center frequency
6186 * of the primary 160 MHz channel.
6187 *
6188 * To maintain backward compatibility,
6189 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6190 * is also maintained.
6191 */
6192 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6193 /* Legacy alias for the Segment 0 attribute.
6194 *
Hai Shalomc3565922019-10-28 11:58:20 -07006195 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6196 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6197 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6198 * along with
6199 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6200 *
6201 * If both the driver and user-space application supports the 6 GHz
6202 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6203 * is deprecated and
6204 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6205 * should be used.
6206 *
6207 * To maintain backward compatibility,
6208 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6209 * is still used if either of the driver or user space application
6210 * doesn't support the 6 GHz band.
6211 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006212 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6213 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07006214
6215 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006216 * Segment 1 in MHz (u32).
6217 *
6218 * For 20/40/80 MHz bandwidth, this is set to 0.
6219 * For 160 MHz bandwidth, indicates the channel center frequency of the
6220 * 160 MHz channel.
6221 * For 320 MHz bandwidth, indicates the channel center frequency of the
6222 * 320 MHz channel.
6223 *
6224 * To maintain backward compatibility,
6225 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6226 * is also maintained.
6227 */
6228 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6229 /* Legacy alias for the Segment 1 attribute.
6230 *
Hai Shalomc3565922019-10-28 11:58:20 -07006231 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6232 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6233 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6234 * along with
6235 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6236 *
6237 * If both the driver and user-space application supports the 6 GHz
6238 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6239 * is deprecated and
6240 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6241 * should be considered.
6242 *
6243 * To maintain backward compatibility,
6244 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6245 * is still used if either of the driver or user space application
6246 * doesn't support the 6 GHz band.
6247 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006248 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6249 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07006250
Sunil Ravia04bd252022-05-02 22:54:18 -07006251 /*
6252 * 16-bit attribute of bits indicating the AP power modes supported by
6253 * the channel (u16).
6254 * Note: Currently, only 3 bits are used in the attribute and each bit
6255 * corresponds to the power mode mentioned in enum
6256 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6257 * set if the associated mode is supported.
6258 */
6259 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6260 = 14,
6261 /* Array of nested attributes for each power mode. It takes attr as
6262 * defined in enum
6263 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6264 */
6265 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006266 /*
6267 * This indicates the overlapping 320 MHz center frequency in MHz
6268 * (u32), if the given primary channel supports more than one
6269 * 320 MHz channel bonding.
6270 *
6271 * Example:
6272 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6273 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6274 * possible segment 2 frequencies for this (320 MHz center
6275 * frequencies):
6276 *
6277 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6278 * from frequency 5945 MHz - 6265 MHz
6279 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6280 * from frequency 6105 MHz - 6425 MHz
6281 *
6282 * In this case,
6283 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6284 * return 6185 MHz.
6285 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6286 * return 6105 MHz.
6287 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6288 * will return 6265 MHz.
6289 */
6290 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6291 = 16,
6292
Paul Stewart092955c2017-02-06 09:13:09 -08006293 /* keep last */
6294 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6295 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6296 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6297};
6298
6299/**
Sunil Ravia04bd252022-05-02 22:54:18 -07006300 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6301 * values that the vendor external ACS channel power attribute
6302 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6303 * take.
6304 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6305 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6306 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6307 */
6308enum qca_wlan_vendor_external_acs_chan_power_level {
6309 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6310 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6311 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6312};
6313
6314/**
6315 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6316 * attributes for power mode type and power values corresponding to that.
6317 * These attributes are sent as part of
6318 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6319 */
6320enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6321 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6322 /*
6323 * Power mode (u8) takes the values defined in enum
6324 * qca_wlan_vendor_external_acs_chan_power_mode
6325 */
6326 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6327 = 1,
6328 /*
6329 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6330 * present, it indicates a PSD value.
6331 */
6332 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6333 /*
6334 * Power value (u32) PSD/EIRP as indicated by
6335 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6336 * for power mode corresponding to the
6337 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6338 * Units for PSD - dBm/MHz
6339 * Units for EIRP - dBm
6340 */
6341 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6342 = 3,
6343 /* keep last */
6344 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6345 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6346 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6347};
6348
6349/**
Paul Stewart092955c2017-02-06 09:13:09 -08006350 * qca_wlan_vendor_attr_pcl: Represents attributes for
6351 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07006352 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6353 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08006354 */
6355enum qca_wlan_vendor_attr_pcl {
6356 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6357
6358 /* Channel number (u8) */
6359 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6360 /* Channel weightage (u8) */
6361 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006362 /* Channel frequency (u32) in MHz */
6363 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6364 /* Channel flags (u32)
6365 * bit 0 set: channel to be used for GO role,
6366 * bit 1 set: channel to be used on CLI role,
6367 * bit 2 set: channel must be considered for operating channel
6368 * selection & peer chosen operating channel should be
6369 * one of the channels with this flag set,
6370 * bit 3 set: channel should be excluded in GO negotiation
6371 */
6372 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07006373
6374 /* Keep last */
6375 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6376 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08006377};
6378
6379/**
6380 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6381 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6382 * host driver.
6383 */
6384enum qca_wlan_vendor_attr_external_acs_event {
6385 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6386
6387 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6388 * This helps ACS module to understand why ACS needs to be started.
6389 */
6390 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6391 /* Flag attribute to indicate if driver supports spectral scanning */
6392 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6393 /* Flag attribute to indicate if 11ac is offloaded to firmware */
6394 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6395 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07006396 * capability as part of scan operation
6397 */
Paul Stewart092955c2017-02-06 09:13:09 -08006398 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6399 /* Flag attribute to indicate interface status is UP */
6400 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6401 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07006402 * values.
6403 */
Paul Stewart092955c2017-02-06 09:13:09 -08006404 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6405 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
6406 * This is the upper bound of channel width. ACS logic should try to get
6407 * a channel with the specified width and if not found, look for lower
6408 * values.
6409 */
6410 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6411 /* This (u8) will hold values of one of enum nl80211_bands */
6412 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6413 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07006414 * values
6415 */
Paul Stewart092955c2017-02-06 09:13:09 -08006416 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6417 /* Array of (u32) supported frequency list among which ACS should choose
6418 * best frequency.
6419 */
6420 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6421 /* Preferred channel list by the driver which will have array of nested
6422 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6423 */
6424 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6425 /* Array of nested attribute for each channel. It takes attr as defined
6426 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6427 */
6428 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006429 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
6430 * It uses values defined in enum
6431 * qca_wlan_vendor_attr_external_acs_policy.
6432 */
6433 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006434 /* Reference RF Operating Parameter (RROP) availability information
6435 * (u16). It uses values defined in enum
6436 * qca_wlan_vendor_attr_rropavail_info.
6437 */
6438 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07006439 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6440 * for External ACS
6441 */
6442 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08006443
6444 /* keep last */
6445 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6446 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6447 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6448};
6449
6450/**
Hai Shalomc3565922019-10-28 11:58:20 -07006451 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08006452 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6453 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07006454 *
6455 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6456 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6457 *
6458 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6459 * Array of nested values for each channel with following attributes:
6460 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6461 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6462 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6463 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6464 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6465 * Note: If both the driver and user-space application supports the 6 GHz band,
6466 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6467 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6468 * To maintain backward compatibility,
6469 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6470 * is still used if either of the driver or user space application doesn't
6471 * support the 6 GHz band.
6472 *
6473 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6474 * Primary channel number
6475 * Note: If both the driver and user-space application supports the 6 GHz band,
6476 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6477 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6478 * To maintain backward compatibility,
6479 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6480 * is still used if either of the driver or user space application doesn't
6481 * support the 6 GHz band.
6482 *
6483 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6484 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6485 * Note: If both the driver and user-space application supports the 6 GHz band,
6486 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6487 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6488 * To maintain backward compatibility,
6489 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6490 * is still used if either of the driver or user space application
6491 * doesn't support the 6 GHz band.
6492 *
6493 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6494 * VHT seg0 channel number
6495 * Note: If both the driver and user-space application supports the 6 GHz band,
6496 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6497 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6498 * To maintain backward compatibility,
6499 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6500 * is still used if either of the driver or user space application
6501 * doesn't support the 6 GHz band.
6502 *
6503 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6504 * VHT seg1 channel number
6505 * Note: If both the driver and user-space application supports the 6 GHz band,
6506 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6507 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6508 * To maintain backward compatibility,
6509 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6510 * is still used if either of the driver or user space application
6511 * doesn't support the 6 GHz band.
6512 *
6513 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6514 * Takes one of enum nl80211_chan_width values.
6515 *
6516 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6517 * Array of nested values for each channel with following attributes:
6518 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6519 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6520 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6521 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6522 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6523 * Note: If user-space application has no support of the 6 GHz band, this
6524 * attribute is optional.
6525 *
6526 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6527 * Primary channel frequency in MHz
6528 * Note: If user-space application has no support of the 6 GHz band, this
6529 * attribute is optional.
6530 *
6531 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6532 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6533 * Note: If user-space application has no support of the 6 GHz band, this
6534 * attribute is optional.
6535 *
6536 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6537 * VHT seg0 channel frequency in MHz
6538 * Note: If user-space application has no support of the 6GHz band, this
6539 * attribute is optional.
6540 *
6541 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6542 * VHT seg1 channel frequency in MHz
6543 * Note: If user-space application has no support of the 6 GHz band, this
6544 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00006545 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
6546 * Puncture Bitmap for selected primary channel. Optional if no support
6547 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
6548 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
6549 * element.
Paul Stewart092955c2017-02-06 09:13:09 -08006550 */
6551enum qca_wlan_vendor_attr_external_acs_channels {
6552 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6553
6554 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6555 */
6556 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6557
6558 /* Array of nested values for each channel with following attributes:
6559 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6560 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6561 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6562 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6563 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6564 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6565 */
6566 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6567 /* This (u8) will hold values of one of enum nl80211_bands */
6568 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6569 /* Primary channel (u8) */
6570 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6571 /* Secondary channel (u8) used for HT 40 MHz channels */
6572 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6573 /* VHT seg0 channel (u8) */
6574 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6575 /* VHT seg1 channel (u8) */
6576 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6577 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6578 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6579
Hai Shalomc3565922019-10-28 11:58:20 -07006580 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6581 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6582 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6583 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6584 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006585 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Hai Shalomc3565922019-10-28 11:58:20 -07006586
Paul Stewart092955c2017-02-06 09:13:09 -08006587 /* keep last */
6588 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6589 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6590 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6591};
6592
6593enum qca_chip_power_save_failure_reason {
6594 /* Indicates if the reason for the failure is due to a protocol
6595 * layer/module.
6596 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006597 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08006598 /* Indicates if the reason for the failure is due to a hardware issue.
6599 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006600 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006601};
6602
6603/**
6604 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6605 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6606 * information leading to the power save failure.
6607 */
6608enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07006609 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6610 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08006611 * These reasons are represented by
6612 * enum qca_chip_power_save_failure_reason.
6613 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006614 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006615
Roshan Pius3a1667e2018-07-03 15:17:14 -07006616 /* keep last */
6617 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6618 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6619 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6620};
6621
6622/**
6623 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6624 * data types for which the stats have to get collected.
6625 */
6626enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6627 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6628 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6629 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6630 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6631 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6632 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6633 * to represent the stats of respective data type.
6634 */
6635 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6636 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6637 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6638};
6639
6640enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6641 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6642 /* Represents the data packet type to be monitored (u32).
6643 * Host driver tracks the stats corresponding to each data frame
6644 * represented by these flags.
6645 * These data packets are represented by
6646 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6647 */
6648 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6649 /* Name corresponding to the DNS frame for which the respective DNS
6650 * stats have to get monitored (string). Max string length 255.
6651 */
6652 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6653 /* source port on which the respective proto stats have to get
6654 * collected (u32).
6655 */
6656 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6657 /* destination port on which the respective proto stats have to get
6658 * collected (u32).
6659 */
6660 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6661 /* IPv4 address for which the destined data packets have to be
6662 * monitored. (in network byte order), u32.
6663 */
6664 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6665 /* IPv6 address for which the destined data packets have to be
6666 * monitored. (in network byte order), 16 bytes array.
6667 */
6668 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6669
6670 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6671 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6672 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006673};
6674
6675/**
6676 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6677 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6678 * information to start/stop the NUD statistics collection.
6679 */
6680enum qca_attr_nud_stats_set {
6681 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6682
6683 /* Flag to start/stop the NUD statistics collection.
6684 * Start - If included, Stop - If not included
6685 */
6686 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006687 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08006688 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006689 /* Represents the list of data packet types to be monitored.
6690 * Host driver tracks the stats corresponding to each data frame
6691 * represented by these flags.
6692 * These data packets are represented by
6693 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6694 */
6695 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006696
6697 /* keep last */
6698 QCA_ATTR_NUD_STATS_SET_LAST,
6699 QCA_ATTR_NUD_STATS_SET_MAX =
6700 QCA_ATTR_NUD_STATS_SET_LAST - 1,
6701};
6702
Roshan Pius3a1667e2018-07-03 15:17:14 -07006703enum qca_attr_nud_data_stats {
6704 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6705 /* Data packet type for which the stats are collected (u32).
6706 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6707 */
6708 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6709 /* Name corresponding to the DNS frame for which the respective DNS
6710 * stats are monitored (string). Max string length 255.
6711 */
6712 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6713 /* source port on which the respective proto stats are collected (u32).
6714 */
6715 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6716 /* destination port on which the respective proto stats are collected
6717 * (u32).
6718 */
6719 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6720 /* IPv4 address for which the destined data packets have to be
6721 * monitored. (in network byte order), u32.
6722 */
6723 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6724 /* IPv6 address for which the destined data packets have to be
6725 * monitored. (in network byte order), 16 bytes array.
6726 */
6727 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6728 /* Data packet Request count received from netdev (u32). */
6729 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6730 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
6731 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6732 /* Data packet Request count received by lower MAC from upper MAC
6733 * (u32)
6734 */
6735 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6736 /* Data packet Request count successfully transmitted by the device
6737 * (u32)
6738 */
6739 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6740 /* Data packet Response count received by lower MAC (u32) */
6741 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6742 /* Data packet Response count received by upper MAC (u32) */
6743 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6744 /* Data packet Response count delivered to netdev (u32) */
6745 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6746 /* Data Packet Response count that are dropped out of order (u32) */
6747 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6748
6749 /* keep last */
6750 QCA_ATTR_NUD_DATA_STATS_LAST,
6751 QCA_ATTR_NUD_DATA_STATS_MAX =
6752 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6753};
6754
Paul Stewart092955c2017-02-06 09:13:09 -08006755/**
6756 * qca_attr_nud_stats_get: Attributes to vendor subcmd
6757 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6758 * NUD statistics collected when queried.
6759 */
6760enum qca_attr_nud_stats_get {
6761 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006762 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006763 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006764 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006765 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006766 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006767 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006768 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006769 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006770 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006771 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006772 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006773 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006774 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006775 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006776 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006777 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6778 /* Flag indicating if the station's link to the AP is active.
6779 * Active Link - If included, Inactive link - If not included
6780 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006781 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08006782 /* Flag indicating if there is any duplicate address detected (DAD).
6783 * Yes - If detected, No - If not detected.
6784 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006785 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006786 /* List of Data packet types for which the stats are requested.
6787 * This list does not carry ARP stats as they are done by the
6788 * above attributes. Represented by enum qca_attr_nud_data_stats.
6789 */
6790 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006791
6792 /* keep last */
6793 QCA_ATTR_NUD_STATS_GET_LAST,
6794 QCA_ATTR_NUD_STATS_GET_MAX =
6795 QCA_ATTR_NUD_STATS_GET_LAST - 1,
6796};
6797
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006798enum qca_wlan_btm_candidate_status {
6799 QCA_STATUS_ACCEPT = 0,
6800 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6801 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6802 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6803 QCA_STATUS_REJECT_LOW_RSSI = 4,
6804 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6805 QCA_STATUS_REJECT_UNKNOWN = 6,
6806};
6807
6808enum qca_wlan_vendor_attr_btm_candidate_info {
6809 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6810
6811 /* 6-byte MAC address representing the BSSID of transition candidate */
6812 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6813 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6814 * returned by the driver. It says whether the BSSID provided in
6815 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6816 * the driver, if not it specifies the reason for rejection.
6817 * Note that the user-space can overwrite the transition reject reason
6818 * codes provided by driver based on more information.
6819 */
6820 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6821
6822 /* keep last */
6823 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6824 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6825 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6826};
6827
6828enum qca_attr_trace_level {
6829 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6830 /*
6831 * Nested array of the following attributes:
6832 * QCA_ATTR_TRACE_LEVEL_MODULE,
6833 * QCA_ATTR_TRACE_LEVEL_MASK.
6834 */
6835 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6836 /*
6837 * Specific QCA host driver module. Please refer to the QCA host
6838 * driver implementation to get the specific module ID.
6839 */
6840 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6841 /* Different trace level masks represented in the QCA host driver. */
6842 QCA_ATTR_TRACE_LEVEL_MASK = 3,
6843
6844 /* keep last */
6845 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6846 QCA_ATTR_TRACE_LEVEL_MAX =
6847 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6848};
6849
6850/**
6851 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6852 */
6853enum qca_wlan_vendor_attr_get_he_capabilities {
6854 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6855 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006856 * (u8 attribute: 0 = not supported, 1 = supported)
6857 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006858 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6859 /* HE PHY capabilities, array of 3 u32 values */
6860 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6861 /* HE MAC capabilities (u32 attribute) */
6862 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6863 /* HE MCS map (u32 attribute) */
6864 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6865 /* Number of SS (u32 attribute) */
6866 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6867 /* RU count (u32 attribute) */
6868 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6869 /* PPE threshold data, array of 8 u32 values */
6870 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6871
6872 /* keep last */
6873 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6874 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6875 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6876};
6877
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006878/**
6879 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6880 */
6881enum qca_wlan_vendor_attr_spectral_scan {
6882 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6883 /* Number of times the chip enters spectral scan mode before
6884 * deactivating spectral scans. When set to 0, chip will enter spectral
6885 * scan mode continuously. u32 attribute.
6886 */
6887 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6888 /* Spectral scan period. Period increment resolution is 256*Tclk,
6889 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6890 */
6891 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6892 /* Spectral scan priority. u32 attribute. */
6893 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6894 /* Number of FFT data points to compute. u32 attribute. */
6895 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6896 /* Enable targeted gain change before starting the spectral scan FFT.
6897 * u32 attribute.
6898 */
6899 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6900 /* Restart a queued spectral scan. u32 attribute. */
6901 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6902 /* Noise floor reference number for the calculation of bin power.
6903 * u32 attribute.
6904 */
6905 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6906 /* Disallow spectral scan triggers after TX/RX packets by setting
6907 * this delay value to roughly SIFS time period or greater.
6908 * u32 attribute.
6909 */
6910 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6911 /* Number of strong bins (inclusive) per sub-channel, below
6912 * which a signal is declared a narrow band tone. u32 attribute.
6913 */
6914 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6915 /* Specify the threshold over which a bin is declared strong (for
6916 * scan bandwidth analysis). u32 attribute.
6917 */
6918 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6919 /* Spectral scan report mode. u32 attribute. */
6920 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6921 /* RSSI report mode, if the ADC RSSI is below
6922 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6923 * then FFTs will not trigger, but timestamps and summaries get
6924 * reported. u32 attribute.
6925 */
6926 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6927 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6928 * to ensure spectral scan reporting with normal error code.
6929 * u32 attribute.
6930 */
6931 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6932 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6933 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6934 * u32 attribute.
6935 */
6936 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6937 /* Format of FFT report to software for spectral scan triggered FFTs.
6938 * 0: No FFT report (only spectral scan summary report)
6939 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6940 * report
6941 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6942 * bins (in-band) per FFT + spectral scan summary report
6943 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6944 * bins (all) per FFT + spectral scan summary report
6945 * u32 attribute.
6946 */
6947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6948 /* Number of LSBs to shift out in order to scale the FFT bins.
6949 * u32 attribute.
6950 */
6951 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6952 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6953 * in dBm power. u32 attribute.
6954 */
6955 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6956 /* Per chain enable mask to select input ADC for search FFT.
6957 * u32 attribute.
6958 */
6959 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6960 /* An unsigned 64-bit integer provided by host driver to identify the
6961 * spectral scan request. This attribute is included in the scan
6962 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6963 * and used as an attribute in
6964 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6965 * specific scan to be stopped.
6966 */
6967 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006968 /* Skip interval for FFT reports. u32 attribute */
6969 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6970 /* Set to report only one set of FFT results.
6971 * u32 attribute.
6972 */
6973 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6974 /* Debug level for spectral module in driver.
6975 * 0 : Verbosity level 0
6976 * 1 : Verbosity level 1
6977 * 2 : Verbosity level 2
6978 * 3 : Matched filterID display
6979 * 4 : One time dump of FFT report
6980 * u32 attribute.
6981 */
6982 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6983 /* Type of spectral scan request. u32 attribute.
6984 * It uses values defined in enum
6985 * qca_wlan_vendor_attr_spectral_scan_request_type.
6986 */
6987 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006988 /* This specifies the frequency span over which spectral
6989 * scan would be carried out. Its value depends on the
6990 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6991 * the relation is as follows.
6992 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6993 * Not applicable. Spectral scan would happen in the
6994 * operating span.
6995 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6996 * Center frequency (in MHz) of the span of interest or
6997 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006998 * in the span of interest. For 80+80 MHz agile spectral scan
6999 * request it represents center frequency (in MHz) of the primary
7000 * 80 MHz span or for convenience, center frequency (in MHz) of any
7001 * channel in the primary 80 MHz span. If agile spectral scan is
7002 * initiated without setting a valid frequency it returns the
7003 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07007004 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7005 * u32 attribute.
7006 */
7007 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7008 /* Spectral scan mode. u32 attribute.
7009 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7010 * If this attribute is not present, it is assumed to be
7011 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7012 */
7013 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7014 /* Spectral scan error code. u32 attribute.
7015 * It uses values defined in enum
7016 * qca_wlan_vendor_spectral_scan_error_code.
7017 * This attribute is included only in failure scenarios.
7018 */
7019 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7020 /* 8-bit unsigned value to enable/disable debug of the
7021 * Spectral DMA ring.
7022 * 1-enable, 0-disable
7023 */
7024 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7025 /* 8-bit unsigned value to enable/disable debug of the
7026 * Spectral DMA buffers.
7027 * 1-enable, 0-disable
7028 */
7029 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007030 /* This specifies the frequency span over which spectral scan would be
7031 * carried out. Its value depends on the value of
7032 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7033 * follows.
7034 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7035 * Not applicable. Spectral scan would happen in the operating span.
7036 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7037 * This attribute is applicable only for agile spectral scan
7038 * requests in 80+80 MHz mode. It represents center frequency (in
7039 * MHz) of the secondary 80 MHz span or for convenience, center
7040 * frequency (in MHz) of any channel in the secondary 80 MHz span.
7041 * u32 attribute.
7042 */
7043 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007044 /* This attribute specifies the bandwidth to be used for spectral scan
7045 * operation. This is an u8 attribute and uses the values in enum
7046 * nl80211_chan_width. This is an optional attribute.
7047 * If this attribute is not populated, the driver should configure the
7048 * spectral scan bandwidth to the maximum value supported by the target
7049 * for the current operating bandwidth.
7050 */
7051 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007052 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
7053 * Recapture can only be enabled for scan period greater than 52 us.
7054 * If this attribute is enabled, re-triggers will be enabled when AGC
7055 * gain changes.
7056 */
7057 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07007058 /* Attribute used for padding for 64-bit alignment */
7059 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007060
7061 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7062 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7063 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7064};
7065
Roshan Pius3a1667e2018-07-03 15:17:14 -07007066/**
7067 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7068 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7069 */
7070enum qca_wlan_vendor_attr_spectral_diag_stats {
7071 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7072 /* Number of spectral TLV signature mismatches.
7073 * u64 attribute.
7074 */
7075 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7076 /* Number of spectral phyerror events with insufficient length when
7077 * parsing for secondary 80 search FFT report. u64 attribute.
7078 */
7079 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7080 /* Number of spectral phyerror events without secondary 80
7081 * search FFT report. u64 attribute.
7082 */
7083 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7084 /* Number of spectral phyerror events with vht operation segment 1 id
7085 * mismatches in search fft report. u64 attribute.
7086 */
7087 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7088 /* Number of spectral phyerror events with vht operation segment 2 id
7089 * mismatches in search fft report. u64 attribute.
7090 */
7091 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07007092 /* Attribute used for padding for 64-bit alignment */
7093 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007094
7095 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7096 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7097 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7098};
7099
7100/**
7101 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7102 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7103 */
7104enum qca_wlan_vendor_attr_spectral_cap {
7105 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7106 /* Flag attribute to indicate phydiag capability */
7107 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7108 /* Flag attribute to indicate radar detection capability */
7109 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7110 /* Flag attribute to indicate spectral capability */
7111 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7112 /* Flag attribute to indicate advanced spectral capability */
7113 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7114 /* Spectral hardware generation. u32 attribute.
7115 * It uses values defined in enum
7116 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7117 */
7118 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007119 /* Spectral bin scaling formula ID. u16 attribute.
7120 * It uses values defined in enum
7121 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7122 */
7123 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7124 /* Spectral bin scaling param - low level offset.
7125 * s16 attribute.
7126 */
7127 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7128 /* Spectral bin scaling param - high level offset.
7129 * s16 attribute.
7130 */
7131 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7132 /* Spectral bin scaling param - RSSI threshold.
7133 * s16 attribute.
7134 */
7135 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7136 /* Spectral bin scaling param - default AGC max gain.
7137 * u8 attribute.
7138 */
7139 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07007140 /* Flag attribute to indicate agile spectral scan capability
7141 * for 20/40/80 MHz modes.
7142 */
Hai Shalom81f62d82019-07-22 12:10:00 -07007143 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07007144 /* Flag attribute to indicate agile spectral scan capability
7145 * for 160 MHz mode.
7146 */
7147 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7148 /* Flag attribute to indicate agile spectral scan capability
7149 * for 80+80 MHz mode.
7150 */
7151 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007152 /* Number of spectral detectors used for scan in 20 MHz.
7153 * u32 attribute.
7154 */
7155 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7156 /* Number of spectral detectors used for scan in 40 MHz.
7157 * u32 attribute.
7158 */
7159 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7160 /* Number of spectral detectors used for scan in 80 MHz.
7161 * u32 attribute.
7162 */
7163 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7164 /* Number of spectral detectors used for scan in 160 MHz.
7165 * u32 attribute.
7166 */
7167 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7168 /* Number of spectral detectors used for scan in 80+80 MHz.
7169 * u32 attribute.
7170 */
7171 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007172 /* Flag attribute to indicate agile spectral scan capability
7173 * for 320 MHz mode.
7174 */
7175 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7176 /* Number of spectral detectors used for scan in 320 MHz.
7177 * u32 attribute.
7178 */
7179 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007180
7181 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7182 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7183 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7184};
7185
7186/**
7187 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7188 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7189 */
7190enum qca_wlan_vendor_attr_spectral_scan_status {
7191 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7192 /* Flag attribute to indicate whether spectral scan is enabled */
7193 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7194 /* Flag attribute to indicate whether spectral scan is in progress*/
7195 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07007196 /* Spectral scan mode. u32 attribute.
7197 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7198 * If this attribute is not present, normal mode
7199 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7200 * requested.
7201 */
7202 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007203
7204 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7205 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7206 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7207};
7208
7209/**
7210 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7211 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7212 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7213 * spectral scan request types.
7214 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7215 * set the spectral parameters and start scan.
7216 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7217 * only set the spectral parameters.
7218 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7219 * only start the spectral scan.
7220 */
7221enum qca_wlan_vendor_attr_spectral_scan_request_type {
7222 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7223 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7224 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7225};
7226
7227/**
Hai Shalom81f62d82019-07-22 12:10:00 -07007228 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7229 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7230 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7231 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7232 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7233 * spectral scan modes.
7234 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7235 * spectral scan in the current operating span.
7236 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7237 * spectral scan in the configured agile span.
7238 */
7239enum qca_wlan_vendor_spectral_scan_mode {
7240 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7241 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7242};
7243
7244/**
7245 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7246 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7247 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7248 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7249 * of a parameter is not supported.
7250 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7251 * mode is not supported.
7252 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7253 * has invalid value.
7254 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7255 * is not initialized.
7256 */
7257enum qca_wlan_vendor_spectral_scan_error_code {
7258 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7259 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7260 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7261 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7262};
7263
7264/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007265 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7266 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7267 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7268 * spectral hardware generation.
7269 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7270 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7271 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7272 */
7273enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7274 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7275 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7276 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7277};
7278
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007279enum qca_wlan_vendor_tos {
7280 QCA_WLAN_VENDOR_TOS_BK = 0,
7281 QCA_WLAN_VENDOR_TOS_BE = 1,
7282 QCA_WLAN_VENDOR_TOS_VI = 2,
7283 QCA_WLAN_VENDOR_TOS_VO = 3,
7284};
7285
7286/**
7287 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7288 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7289 */
7290enum qca_wlan_vendor_attr_active_tos {
7291 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7292 /* Type Of Service - Represented by qca_wlan_vendor_tos */
7293 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7294 /* Flag attribute representing the start (attribute included) or stop
7295 * (attribute not included) of the respective TOS.
7296 */
7297 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7298};
7299
7300enum qca_wlan_vendor_hang_reason {
7301 /* Unspecified reason */
7302 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7303 /* No Map for the MAC entry for the received frame */
7304 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7305 /* Peer deletion timeout happened */
7306 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7307 /* Peer unmap timeout */
7308 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
7309 /* Scan request timed out */
7310 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
7311 /* Consecutive Scan attempt failures */
7312 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
7313 /* Unable to get the message buffer */
7314 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
7315 /* Current command processing is timedout */
7316 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
7317 /* Timeout for an ACK from FW for suspend request */
7318 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
7319 /* Timeout for an ACK from FW for resume request */
7320 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
7321 /* Transmission timeout for consecutive data frames */
7322 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
7323 /* Timeout for the TX completion status of data frame */
7324 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
7325 /* DXE failure for TX/RX, DXE resource unavailability */
7326 QCA_WLAN_HANG_DXE_FAILURE = 12,
7327 /* WMI pending commands exceed the maximum count */
7328 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07007329 /* Timeout for peer STA connection accept command's response from the
7330 * FW in AP mode. This command is triggered when a STA (peer) connects
7331 * to AP (DUT).
7332 */
7333 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
7334 /* Timeout for the AP connection accept command's response from the FW
7335 * in STA mode. This command is triggered when the STA (DUT) connects
7336 * to an AP (peer).
7337 */
7338 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
7339 /* Timeout waiting for the response to the MAC HW mode change command
7340 * sent to FW as a part of MAC mode switch among DBS (Dual Band
7341 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
7342 * Channel Concurrency) mode.
7343 */
7344 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
7345 /* Timeout waiting for the response from FW to configure the MAC HW's
7346 * mode. This operation is to configure the single/two MACs in either
7347 * SCC/MCC/DBS mode.
7348 */
7349 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
7350 /* Timeout waiting for response of VDEV start command from the FW */
7351 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
7352 /* Timeout waiting for response of VDEV restart command from the FW */
7353 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
7354 /* Timeout waiting for response of VDEV stop command from the FW */
7355 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
7356 /* Timeout waiting for response of VDEV delete command from the FW */
7357 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
7358 /* Timeout waiting for response of peer all delete request command to
7359 * the FW on a specific VDEV.
7360 */
7361 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08007362 /* WMI sequence mismatch between WMI command and Tx completion */
7363 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
7364 /* Write to Device HAL register failed */
7365 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
7366 /* No credit left to send the wow_wakeup_from_sleep to firmware */
7367 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
7368 /* Bus failure */
7369 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007370 /* tasklet/credit latency found */
7371 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007372 /* MSDU buffers received in REO error ring, exceeding certain
7373 * threshold
7374 */
7375 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
7376 /* Vdev SM is out of sync and connect req received
7377 * when already connected
7378 */
7379 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
7380 /* Stats request timeout */
7381 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
7382 /* Leak in TX descriptor for a packet */
7383 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
7384 /* Scheduler watchdog timeout */
7385 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
7386 /* Failed to send self peer deletion cmd to firmware */
7387 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
7388 /* Received del self sta without del bss */
7389 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
7390 /* Recovery needed when sending flush completion to userspace */
7391 QCA_WLAN_HANG_FLUSH_LOGS = 35,
7392 /* Host wakeup because of page fault */
7393 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007394};
7395
7396/**
7397 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7398 * QCA_NL80211_VENDOR_SUBCMD_HANG.
7399 */
7400enum qca_wlan_vendor_attr_hang {
7401 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7402 /* Reason for the hang - u32 attribute with a value from enum
7403 * qca_wlan_vendor_hang_reason.
7404 */
7405 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007406 /* The binary blob data associated with the hang reason specified by
7407 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7408 * contain the required dump to analyze the reason for the hang.
7409 * NLA_BINARY attribute, the max size is 1024 bytes.
7410 */
7411 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007412
7413 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7414 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7415 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7416};
7417
Roshan Pius3a1667e2018-07-03 15:17:14 -07007418/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007419 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7420 * the policy to flush pending frames, configured via
7421 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7422 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7423 *
7424 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7425 * the flush policy configured before. This command basically disables the
7426 * flush config set by the user.
7427 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7428 * the flush policy to be immediate. All pending packets for the peer/TID are
7429 * flushed when this command/policy is received.
7430 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7431 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7432 * are flushed when the end of TWT SP is reached.
7433 */
7434enum qca_wlan_vendor_flush_pending_policy {
7435 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7436 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7437 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7438};
7439
7440/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007441 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7442 * flushing pending traffic in firmware.
7443 *
7444 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7445 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7446 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7447 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08007448 * flush packets with access category. This is optional. See below.
7449 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7450 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7451 * bit to 1 to act upon the TID. This is optional. Either this attribute or
7452 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7453 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7454 * it is an error.
7455 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7456 * packets corresponding to the peer/TID provided. It is a u32 value,
7457 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7458 * value is honored only when TID mask is provided. This is not honored when AC
7459 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007460 */
7461enum qca_wlan_vendor_attr_flush_pending {
7462 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7463 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7464 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007465 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7466 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007467
7468 /* keep last */
7469 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7470 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7471 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7472};
7473
7474/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007475 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7476 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7477 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7478 * Spectral bin scaling formula ID.
7479 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7480 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7481 * and RSSI threshold based formula.
7482 */
7483enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7484 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7485 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7486};
7487
7488/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007489 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7490 * RF Operating Parameter (RROP) information is available, and if so, at which
7491 * point in the application-driver interaction sequence it can be retrieved by
7492 * the application from the driver. This point may vary by architecture and
7493 * other factors. This is a u16 value.
7494 */
7495enum qca_wlan_vendor_attr_rropavail_info {
7496 /* RROP information is unavailable. */
7497 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7498 /* RROP information is available and the application can retrieve the
7499 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7500 * event from the driver.
7501 */
7502 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7503 /* RROP information is available only after a vendor specific scan
7504 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7505 * successfully completed. The application can retrieve the information
7506 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7507 * the driver.
7508 */
7509 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7510};
7511
7512/**
7513 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7514 * Representative RF Operating Parameter (RROP) information. It is sent for the
7515 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7516 * intended for use by external Auto Channel Selection applications. It provides
7517 * guidance values for some RF parameters that are used by the system during
7518 * operation. These values could vary by channel, band, radio, and so on.
7519 */
7520enum qca_wlan_vendor_attr_rrop_info {
7521 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7522
7523 /* Representative Tx Power List (RTPL) which has an array of nested
7524 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7525 */
7526 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7527
7528 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7529 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7530 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7531};
7532
7533/**
7534 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7535 * entry instances in the Representative Tx Power List (RTPL). It provides
7536 * simplified power values intended for helping external Auto channel Selection
7537 * applications compare potential Tx power performance between channels, other
7538 * operating conditions remaining identical. These values are not necessarily
7539 * the actual Tx power values that will be used by the system. They are also not
7540 * necessarily the max or average values that will be used. Instead, they are
7541 * relative, summarized keys for algorithmic use computed by the driver or
7542 * underlying firmware considering a number of vendor specific factors.
7543 */
7544enum qca_wlan_vendor_attr_rtplinst {
7545 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7546
Hai Shalomfdcde762020-04-02 11:19:20 -07007547 /* Primary channel number (u8).
7548 * Note: If both the driver and user space application support the
7549 * 6 GHz band, this attribute is deprecated and
7550 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7551 * maintain backward compatibility,
7552 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7553 * driver or user space application or both do not support the 6 GHz
7554 * band.
7555 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007556 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7557 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
7558 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7559 /* Representative Tx power in dBm (s32) with emphasis on range. */
7560 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07007561 /* Primary channel center frequency (u32) in MHz */
7562 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007563
7564 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7565 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7566 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7567};
7568
7569/**
7570 * enum qca_wlan_vendor_attr_config_latency_level - Level for
7571 * wlan latency module.
7572 *
7573 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7574 * power saving which would causing data exchange out of service, this
7575 * would be a big impact on latency. For latency sensitive applications over
7576 * Wi-Fi are intolerant to such operations and thus would configure them
7577 * to meet their respective needs. It is well understood by such applications
7578 * that altering the default behavior would degrade the Wi-Fi functionality
7579 * w.r.t the above pointed WLAN operations.
7580 *
7581 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7582 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007583 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7584 * Use XR level to benefit XR (extended reality) application to achieve
7585 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007586 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07007587 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07007588 * downloading or video streaming via constraint scan/adaptive PS.
7589 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7590 * Use ultra low latency level to benefit for gaming/voice
7591 * application via constraint scan/roaming/adaptive PS.
7592 */
7593enum qca_wlan_vendor_attr_config_latency_level {
7594 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7595 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007596 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7597 /* legacy name */
7598 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7599 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007600 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7601 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7602
7603 /* keep last */
7604 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7605 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7606 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7607};
7608
7609/**
7610 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7611 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7612 */
7613enum qca_wlan_vendor_attr_mac {
7614 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7615
7616 /* MAC mode info list which has an array of nested values as
7617 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7618 */
7619 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7620
7621 /* keep last */
7622 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7623 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7624 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7625};
7626
7627/**
7628 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7629 * Wi-Fi netdev interface on a respective MAC.
7630 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7631 */
7632enum qca_wlan_vendor_attr_mac_iface_info {
7633 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7634 /* Wi-Fi netdev's interface index (u32) */
7635 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7636 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7637 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7638
7639 /* keep last */
7640 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7641 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7642 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7643};
7644
7645/**
7646 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7647 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7648 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7649 */
7650enum qca_wlan_vendor_attr_mac_info {
7651 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7652 /* Hardware MAC ID associated for the MAC (u32) */
7653 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7654 /* Band supported by the MAC at a given point.
7655 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7656 * nl80211_band.
7657 */
7658 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7659 /* Refers to list of WLAN netdev interfaces associated with this MAC.
7660 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7661 */
7662 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7663
7664 /* keep last */
7665 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7666 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7667 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7668};
7669
7670/**
7671 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7672 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7673 */
7674enum qca_wlan_vendor_attr_get_logger_features {
7675 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7676 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
7677 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7678 /* keep last */
7679 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7680 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7681 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7682};
7683
7684/**
7685 * enum wifi_logger_supported_features - Values for supported logger features
7686 */
7687enum wifi_logger_supported_features {
7688 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7689 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7690 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7691 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7692 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7693 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7694 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7695 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7696 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7697};
7698
7699/**
7700 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7701 * capabilities features
7702 */
7703enum qca_wlan_tdls_caps_features_supported {
7704 WIFI_TDLS_SUPPORT = (1 << (0)),
7705 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7706 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7707};
7708
7709/**
7710 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7711 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7712 */
7713enum qca_wlan_vendor_attr_tdls_get_capabilities {
7714 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7715 /* Indicates the max concurrent sessions */
7716 /* Unsigned 32-bit value */
7717 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7718 /* Indicates the support for features */
7719 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7720 */
7721 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7722
7723 /* keep last */
7724 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7725 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7726 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7727};
7728
7729/**
7730 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7731 * command used as value for the attribute
7732 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7733 */
7734enum qca_wlan_offloaded_packets_sending_control {
7735 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7736 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7737 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7738};
7739
7740/**
7741 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7742 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7743 */
7744enum qca_wlan_vendor_attr_offloaded_packets {
7745 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7746 /* Takes valid value from the enum
7747 * qca_wlan_offloaded_packets_sending_control
7748 * Unsigned 32-bit value
7749 */
7750 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7751 /* Unsigned 32-bit value */
7752 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7753 /* array of u8 len: Max packet size */
7754 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7755 /* 6-byte MAC address used to represent source MAC address */
7756 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7757 /* 6-byte MAC address used to represent destination MAC address */
7758 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7759 /* Unsigned 32-bit value, in milli seconds */
7760 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07007761 /* This optional unsigned 16-bit attribute is used for specifying
7762 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7763 */
7764 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007765
7766 /* keep last */
7767 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7768 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7769 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7770};
7771
7772/**
7773 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7774 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7775 */
7776enum qca_wlan_rssi_monitoring_control {
7777 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7778 QCA_WLAN_RSSI_MONITORING_START,
7779 QCA_WLAN_RSSI_MONITORING_STOP,
7780};
7781
7782/**
7783 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7784 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7785 */
7786enum qca_wlan_vendor_attr_rssi_monitoring {
7787 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7788 /* Takes valid value from the enum
7789 * qca_wlan_rssi_monitoring_control
7790 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7791 */
7792 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7793 /* Unsigned 32-bit value */
7794 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7795 /* Signed 8-bit value in dBm */
7796 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7797 /* Signed 8-bit value in dBm */
7798 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7799 /* attributes to be used/received in callback */
7800 /* 6-byte MAC address used to represent current BSSID MAC address */
7801 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7802 /* Signed 8-bit value indicating the current RSSI */
7803 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7804 /* keep last */
7805 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7806 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7807 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7808};
7809
7810/**
7811 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7812 * QCA_NL80211_VENDOR_SUBCMD_NDP.
7813 */
7814enum qca_wlan_vendor_attr_ndp_params {
7815 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7816 /* Unsigned 32-bit value
7817 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7818 */
7819 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7820 /* Unsigned 16-bit value */
7821 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7822 /* NL attributes for data used NDP SUB cmds */
7823 /* Unsigned 32-bit value indicating a service info */
7824 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7825 /* Unsigned 32-bit value; channel frequency in MHz */
7826 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7827 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7828 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7829 /* Interface name on which NDP is being created */
7830 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7831 /* Unsigned 32-bit value for security */
7832 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7833 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7834 /* Unsigned 32-bit value for QoS */
7835 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7836 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7837 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7838 /* Unsigned 32-bit value for NDP instance Id */
7839 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7840 /* Array of instance Ids */
7841 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7842 /* Unsigned 32-bit value for initiator/responder NDP response code
7843 * accept/reject
7844 */
7845 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7846 /* NDI MAC address. An array of 6 Unsigned int8 */
7847 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7848 /* Unsigned 32-bit value errors types returned by driver
7849 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7850 * NanStatusType includes these values.
7851 */
7852 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7853 /* Unsigned 32-bit value error values returned by driver
7854 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7855 * NanInternalStatusType includes these values.
7856 */
7857 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7858 /* Unsigned 32-bit value for Channel setup configuration
7859 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7860 * NanDataPathChannelCfg includes these values.
7861 */
7862 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7863 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7864 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7865 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7866 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7867 /* Security Context Identifier that contains the PMKID
7868 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7869 */
7870 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7871 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7872 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7873 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7874 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7875 /* Unsigned 32-bit bitmap indicating schedule update
7876 * BIT_0: NSS Update
7877 * BIT_1: Channel list update
7878 */
7879 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7880 /* Unsigned 32-bit value for NSS */
7881 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7882 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7883 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7884 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
7885 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7886 */
7887 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7888 /* Array of channel/band width */
7889 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7890 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
7891 * This attribute is used and optional for ndp request, ndp response,
7892 * ndp indication, and ndp confirm.
7893 */
7894 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7895 /* Unsigned 16-bit value indicating transport port used by NDP.
7896 * This attribute is used and optional for ndp response, ndp indication,
7897 * and ndp confirm.
7898 */
7899 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7900 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7901 * the Internet Assigned Numbers Authority (IANA) as per:
7902 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7903 * This attribute is used and optional for ndp response, ndp indication,
7904 * and ndp confirm.
7905 */
7906 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007907 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7908 * 1:support 0:not support
7909 */
7910 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007911 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
7912 * 48 bits of the SHA-256 hash of the Service Name.
7913 * A lower-case representation of the Service Name shall be used to
7914 * calculate the Service ID.
7915 * Array of u8: length is 6 bytes
7916 * This attribute is used and optional for ndp indication.
7917 */
7918 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007919
7920 /* keep last */
7921 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7922 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7923 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7924};
7925
7926enum qca_wlan_ndp_sub_cmd {
7927 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07007928 /* Command to create a NAN data path interface.
7929 * This command was initially designed to both create and start a NAN
7930 * data path interface. However, changes to Linux 5.12 no longer allow
7931 * interface creation via vendor commands. When the driver advertises
7932 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7933 * userspace must explicitly first create the interface using
7934 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
7935 * to start the interface.
7936 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007937 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07007938 /* Command to delete a NAN data path interface.
7939 * This command was initially designed to both stop and delete a NAN
7940 * data path interface. However, changes to Linux 5.12 no longer allow
7941 * interface deletion via vendor commands. When the driver advertises
7942 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7943 * userspace must explicitly delete the interface using
7944 * NL80211_CMD_DEL_INTERFACE after calling this command.
7945 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007946 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7947 /* Command to initiate a NAN data path session */
7948 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7949 /* Command to notify if the NAN data path session was sent */
7950 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7951 /* Command to respond to NAN data path session */
7952 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7953 /* Command to notify on the responder about the response */
7954 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7955 /* Command to initiate a NAN data path end */
7956 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7957 /* Command to notify the if end request was sent */
7958 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7959 /* Command to notify the peer about the end request */
7960 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7961 /* Command to confirm the NAN data path session is complete */
7962 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7963 /* Command to indicate the peer about the end request being received */
7964 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7965 /* Command to indicate the peer of schedule update */
7966 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7967};
7968
7969/**
7970 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7971 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7972 */
7973enum qca_wlan_vendor_attr_nd_offload {
7974 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7975 /* Flag to set Neighbour Discovery offload */
7976 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7977 /* Keep last */
7978 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7979 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7980 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7981};
7982
7983/**
7984 * enum packet_filter_sub_cmd - Packet filter sub commands
7985 */
7986enum packet_filter_sub_cmd {
7987 /**
7988 * Write packet filter program and/or data. The driver/firmware should
7989 * disable APF before writing into local buffer and re-enable APF after
7990 * writing is done.
7991 */
7992 QCA_WLAN_SET_PACKET_FILTER = 1,
7993 /* Get packet filter feature capabilities from driver */
7994 QCA_WLAN_GET_PACKET_FILTER = 2,
7995 /**
7996 * Write packet filter program and/or data. User space will send the
7997 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7998 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7999 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
8000 * enable/disable is given to user space with this command. Also,
8001 * user space sends the length of program portion in the buffer within
8002 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
8003 */
8004 QCA_WLAN_WRITE_PACKET_FILTER = 3,
8005 /* Read packet filter program and/or data */
8006 QCA_WLAN_READ_PACKET_FILTER = 4,
8007 /* Enable APF feature */
8008 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
8009 /* Disable APF feature */
8010 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
8011};
8012
8013/**
8014 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
8015 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
8016 */
8017enum qca_wlan_vendor_attr_packet_filter {
8018 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
8019 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
8020 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
8021 /* Unsigned 32-bit value indicating the packet filter version */
8022 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
8023 /* Unsigned 32-bit value indicating the packet filter id */
8024 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
8025 /**
8026 * Unsigned 32-bit value indicating the packet filter size including
8027 * program + data.
8028 */
8029 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
8030 /* Unsigned 32-bit value indicating the packet filter current offset */
8031 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
8032 /* Program and/or data in bytes */
8033 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
8034 /* Unsigned 32-bit value of the length of the program section in packet
8035 * filter buffer.
8036 */
8037 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
8038
8039 /* keep last */
8040 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
8041 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
8042 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
8043};
8044
8045/**
8046 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
8047 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
8048 */
8049enum qca_wlan_vendor_drv_info {
8050 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
8051 /* Maximum Message size info between firmware & HOST
8052 * Unsigned 32-bit value
8053 */
8054 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
8055 /* keep last */
8056 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
8057 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
8058 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
8059};
8060
8061/**
8062 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8063 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8064 */
8065enum qca_wlan_vendor_attr_wake_stats {
8066 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8067 /* Unsigned 32-bit value indicating the total count of wake event */
8068 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8069 /* Array of individual wake count, each index representing wake reason
8070 */
8071 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8072 /* Unsigned 32-bit value representing wake count array */
8073 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8074 /* Unsigned 32-bit total wake count value of driver/fw */
8075 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8076 /* Array of wake stats of driver/fw */
8077 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8078 /* Unsigned 32-bit total wake count value of driver/fw */
8079 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8080 /* Unsigned 32-bit total wake count value of packets received */
8081 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8082 /* Unsigned 32-bit wake count value unicast packets received */
8083 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8084 /* Unsigned 32-bit wake count value multicast packets received */
8085 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8086 /* Unsigned 32-bit wake count value broadcast packets received */
8087 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8088 /* Unsigned 32-bit wake count value of ICMP packets */
8089 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8090 /* Unsigned 32-bit wake count value of ICMP6 packets */
8091 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8092 /* Unsigned 32-bit value ICMP6 router advertisement */
8093 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8094 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
8095 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8096 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
8097 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8098 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8099 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8100 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8101 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8102 /* Unsigned 32-bit wake count value of receive side multicast */
8103 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8104 /* Unsigned 32-bit wake count value of a given RSSI breach */
8105 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8106 /* Unsigned 32-bit wake count value of low RSSI */
8107 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8108 /* Unsigned 32-bit value GSCAN count */
8109 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8110 /* Unsigned 32-bit value PNO complete count */
8111 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8112 /* Unsigned 32-bit value PNO match count */
8113 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8114 /* keep last */
8115 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8116 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8117 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8118};
8119
8120/**
Hai Shalomfdcde762020-04-02 11:19:20 -07008121 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07008122 * configured by userspace to the driver/firmware.
8123 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8124 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07008125 * The driver/firmware takes actions requested by userspace such as throttling
8126 * wifi TX etc. in order to mitigate high temperature.
8127 *
8128 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8129 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8130 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8131 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8132 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8133 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8134 */
8135enum qca_wlan_vendor_thermal_level {
8136 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8137 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8138 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8139 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8140 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8141 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8142};
8143
8144/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008145 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8146 * cmd value. Used for NL attributes for data used by
8147 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8148 */
8149enum qca_wlan_vendor_attr_thermal_cmd {
8150 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8151 /* The value of command, driver will implement different operations
8152 * according to this value. It uses values defined in
8153 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8154 * u32 attribute.
8155 */
8156 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008157 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07008158 * driver/firmware, or get thermal level from the driver/firmware.
8159 * Used in request or response, u32 attribute,
8160 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07008161 */
8162 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8163 /* Userspace uses this attribute to configure the time in which the
8164 * driver/firmware should complete applying settings it received from
8165 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8166 * command type. Used in request, u32 attribute, value is in
8167 * milliseconds. A value of zero indicates to apply the settings
8168 * immediately. The driver/firmware can delay applying the configured
8169 * thermal settings within the time specified in this attribute if
8170 * there is any critical ongoing operation.
8171 */
8172 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008173 /* Nested attribute, the driver/firmware uses this attribute to report
8174 * thermal statistics of different thermal levels to userspace when
8175 * requested using the
8176 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8177 * type. This attribute contains a nested array of records of thermal
8178 * statistics of multiple levels. The attributes used inside this nested
8179 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8180 */
8181 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008182
8183 /* keep last */
8184 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8185 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8186 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8187};
8188
8189/**
8190 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8191 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8192 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8193 * thermal command types sent to driver.
8194 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8195 * get thermal shutdown configuration parameters for display. Parameters
8196 * responded from driver are defined in
8197 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8198 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8199 * get temperature. Host should respond with a temperature data. It is defined
8200 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8201 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8202 * suspend action.
8203 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8204 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07008205 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8206 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07008207 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8208 * thermal level from the driver/firmware. The driver should respond with a
8209 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008210 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8211 * current thermal statistics from the driver/firmware. The driver should
8212 * respond with statistics of all thermal levels encapsulated in the attribute
8213 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8214 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8215 * the current thermal statistics for all thermal levels maintained in the
8216 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008217 */
8218enum qca_wlan_vendor_attr_thermal_cmd_type {
8219 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8220 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8221 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8222 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07008223 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07008224 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008225 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8226 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008227};
8228
8229/**
8230 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8231 * to get chip temperature by user.
8232 * enum values are used for NL attributes for data used by
8233 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8234 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8235 */
8236enum qca_wlan_vendor_attr_thermal_get_temperature {
8237 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8238 /* Temperature value (degree Celsius) from driver.
8239 * u32 attribute.
8240 */
8241 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8242
8243 /* keep last */
8244 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8245 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
8246 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
8247};
8248
8249/**
8250 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
8251 * to get configuration parameters of thermal shutdown feature. Enum values are
8252 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
8253 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8254 */
8255enum qca_wlan_vendor_attr_get_thermal_params_rsp {
8256 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
8257 /* Indicate if the thermal shutdown feature is enabled.
8258 * NLA_FLAG attribute.
8259 */
8260 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
8261 /* Indicate if the auto mode is enabled.
8262 * Enable: Driver triggers the suspend/resume action.
8263 * Disable: User space triggers the suspend/resume action.
8264 * NLA_FLAG attribute.
8265 */
8266 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
8267 /* Thermal resume threshold (degree Celsius). Issue the resume command
8268 * if the temperature value is lower than this threshold.
8269 * u16 attribute.
8270 */
8271 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
8272 /* Thermal warning threshold (degree Celsius). FW reports temperature
8273 * to driver if it's higher than this threshold.
8274 * u16 attribute.
8275 */
8276 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
8277 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
8278 * if the temperature value is higher than this threshold.
8279 * u16 attribute.
8280 */
8281 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
8282 /* FW reports temperature data periodically at this interval (ms).
8283 * u16 attribute.
8284 */
8285 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
8286
8287 /* keep last */
8288 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
8289 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
8290 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
8291};
8292
8293/**
8294 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
8295 * report thermal events from driver to user space.
8296 * enum values are used for NL attributes for data used by
8297 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
8298 */
8299enum qca_wlan_vendor_attr_thermal_event {
8300 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
8301 /* Temperature value (degree Celsius) from driver.
8302 * u32 attribute.
8303 */
8304 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
8305 /* Indication of resume completion from power save mode.
8306 * NLA_FLAG attribute.
8307 */
8308 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07008309 /* Thermal level from the driver.
8310 * u32 attribute. Possible values are defined in
8311 * enum qca_wlan_vendor_thermal_level.
8312 */
8313 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008314
8315 /* keep last */
8316 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
8317 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
8318 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
8319};
8320
8321/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008322 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8323 * to get thermal status from the driver/firmware.
8324 * enum values are used for NL attributes encapsulated inside the
8325 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8326 *
8327 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8328 * of a thermal level in Celsius. u32 size.
8329 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8330 * of a thermal level in Celsius. u32 size.
8331 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8332 * thermal level in milliseconds. u32 size.
8333 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8334 * of times the temperature crossed into the temperature range defined by the
8335 * thermal level from both higher and lower directions. u32 size.
8336 */
8337enum qca_wlan_vendor_attr_thermal_stats {
8338 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8339 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8340 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8341 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8342 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8343
8344 /* keep last */
8345 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8346 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8347 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8348};
8349
8350/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008351 * enum he_fragmentation_val - HE fragmentation support values
8352 * Indicates level of dynamic fragmentation that is supported by
8353 * a STA as a recipient.
8354 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
8355 * (HE MAC Capabilities Information field) and are used in HE Capabilities
8356 * element to advertise the support. These values are validated in the driver
8357 * to check the device capability and advertised in the HE Capabilities
8358 * element. These values are used to configure testbed device to allow the
8359 * advertised hardware capabilities to be downgraded for testing purposes.
8360 *
8361 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8362 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8363 * contained within an MPDU or S-MPDU, no support for dynamic fragments
8364 * within an A-MPDU that is not an S-MPDU.
8365 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8366 * contained within an MPDU or S-MPDU and support for up to one dynamic
8367 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
8368 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8369 * MPDU or S-MPDU.
8370 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8371 * contained within an MPDU or S-MPDU and support for multiple dynamic
8372 * fragments for each MSDU and for each A-MSDU if supported by the
8373 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8374 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8375 */
8376enum he_fragmentation_val {
8377 HE_FRAG_DISABLE,
8378 HE_FRAG_LEVEL1,
8379 HE_FRAG_LEVEL2,
8380 HE_FRAG_LEVEL3,
8381};
8382
8383/**
8384 * enum he_mcs_config - HE MCS support configuration
8385 *
8386 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8387 * These values are used in driver to configure the HE MCS map to advertise
8388 * Tx/Rx MCS map in HE capability and these values are applied for all the
8389 * streams supported by the device. To configure MCS for different bandwidths,
8390 * vendor command needs to be sent using this attribute with appropriate value.
8391 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8392 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8393 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8394 * These values are used to configure testbed device to allow the advertised
8395 * hardware capabilities to be downgraded for testing purposes. The enum values
8396 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8397 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8398 * These values are validated in the driver before setting the MCS map and
8399 * driver returns error if the input is other than these enum values.
8400 *
8401 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8402 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8403 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8404 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8405 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8406 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8407 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8408 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8409 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8410 */
8411enum he_mcs_config {
8412 HE_80_MCS0_7 = 0,
8413 HE_80_MCS0_9 = 1,
8414 HE_80_MCS0_11 = 2,
8415 HE_160_MCS0_7 = 4,
8416 HE_160_MCS0_9 = 5,
8417 HE_160_MCS0_11 = 6,
8418 HE_80P80_MCS0_7 = 8,
8419 HE_80P80_MCS0_9 = 9,
8420 HE_80P80_MCS0_11 = 10,
8421};
8422
8423/**
8424 * enum qca_wlan_ba_session_config - BA session configuration
8425 *
8426 * Indicates the configuration values for BA session configuration attribute.
8427 *
8428 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8429 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8430 */
8431enum qca_wlan_ba_session_config {
8432 QCA_WLAN_ADD_BA = 1,
8433 QCA_WLAN_DELETE_BA = 2,
8434};
8435
8436/**
8437 * enum qca_wlan_ac_type - Access category type
8438 *
8439 * Indicates the access category type value.
8440 *
8441 * @QCA_WLAN_AC_BE: BE access category
8442 * @QCA_WLAN_AC_BK: BK access category
8443 * @QCA_WLAN_AC_VI: VI access category
8444 * @QCA_WLAN_AC_VO: VO access category
8445 * @QCA_WLAN_AC_ALL: All ACs
8446 */
8447enum qca_wlan_ac_type {
8448 QCA_WLAN_AC_BE = 0,
8449 QCA_WLAN_AC_BK = 1,
8450 QCA_WLAN_AC_VI = 2,
8451 QCA_WLAN_AC_VO = 3,
8452 QCA_WLAN_AC_ALL = 4,
8453};
8454
8455/**
8456 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8457 *
8458 * Indicates the HE LTF configuration value.
8459 *
8460 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8461 * based on the GI setting
8462 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8463 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8464 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8465 */
8466enum qca_wlan_he_ltf_cfg {
8467 QCA_WLAN_HE_LTF_AUTO = 0,
8468 QCA_WLAN_HE_LTF_1X = 1,
8469 QCA_WLAN_HE_LTF_2X = 2,
8470 QCA_WLAN_HE_LTF_4X = 3,
8471};
8472
Hai Shalomc9e41a12018-07-31 14:41:42 -07008473/**
8474 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8475 *
8476 * Indicates the HE trigger frame MAC padding duration value.
8477 *
8478 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8479 * process the trigger frame.
8480 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8481 * trigger frame.
8482 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8483 * trigger frame.
8484 */
8485enum qca_wlan_he_mac_padding_dur {
8486 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8487 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8488 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8489};
8490
Hai Shalom74f70d42019-02-11 14:42:39 -08008491/**
8492 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8493 *
8494 * Indicates the HE Operating mode control channel width setting value.
8495 *
8496 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8497 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8498 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8499 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8500 */
8501enum qca_wlan_he_om_ctrl_ch_bw {
8502 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8503 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8504 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8505 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8506};
8507
8508/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008509 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8510 *
8511 * Indicates the frame types to use for keep alive data.
8512 *
8513 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8514 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8515 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8516 */
8517enum qca_wlan_keep_alive_data_type {
8518 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8519 QCA_WLAN_KEEP_ALIVE_DATA = 1,
8520 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8521};
8522
8523/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00008524 * enum eht_mcs_config - EHT MCS support configuration
8525 *
8526 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
8527 * These values are used in the driver to configure the EHT MCS map to advertise
8528 * Tx/Rx MCS map in EHT capability and these values are applied for all the
8529 * streams supported by the device.
8530 * @EHT_MCS0_7: EHT MCS 0 to 7 support
8531 * @EHT_MCS0_9: EHT MCS 0 to 9 support
8532 * @EHT_MCS0_11: EHT MCS 0 to 11 support
8533 * @EHT_MCS0_13: EHT MCS 0 to 13 support
8534 */
8535enum eht_mcs_config {
8536 EHT_MCS0_7 = 0,
8537 EHT_MCS0_9 = 1,
8538 EHT_MCS0_11 = 2,
8539 EHT_MCS0_13 = 3,
8540};
8541
8542/**
8543 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
8544 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
8545 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
8546 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
8547 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
8548 * multi-link multi radio mode.
8549 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
8550 * multi-link multi radio mode.
8551 */
8552enum qca_wlan_eht_mlo_mode {
8553 QCA_WLAN_EHT_MODE_INVALID = 0,
8554 QCA_WLAN_EHT_MLSR = 1,
8555 QCA_WLAN_EHT_EMLSR = 2,
8556 QCA_WLAN_EHT_NON_STR_MLMR = 3,
8557 QCA_WLAN_EHT_STR_MLMR = 4,
8558};
8559
8560/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008561 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8562 * HE operating mode control transmit request. These attributes are
8563 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8564 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8565 *
8566 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8567 * indicates the maximum number of spatial streams, NSS, that the STA
8568 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8569 * and is set to NSS - 1.
8570 *
8571 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8572 * indicates the operating channel width supported by the STA for both
8573 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8574 *
8575 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8576 * indicates the all trigger based UL MU operations by the STA.
8577 * 0 - UL MU operations are enabled by the STA.
8578 * 1 - All triggered UL MU transmissions are suspended by the STA.
8579 *
8580 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8581 * indicates the maximum number of space-time streams, NSTS, that
8582 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07008583 *
8584 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8585 * combined with the UL MU Disable subfield and the recipient's setting
8586 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8587 * capabilities to determine which HE TB PPDUs are possible by the
8588 * STA to transmit.
8589 * 0 - UL MU data operations are enabled by the STA.
8590 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8591 * bit is not set, else UL MU Tx is suspended.
8592 *
Hai Shalom74f70d42019-02-11 14:42:39 -08008593 */
8594enum qca_wlan_vendor_attr_he_omi_tx {
8595 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8596 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8597 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8598 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8599 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07008600 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008601
8602 /* keep last */
8603 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8604 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8605 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8606};
8607
Hai Shalom899fcc72020-10-19 14:38:18 -07008608 /**
8609 * enum qca_wlan_vendor_phy_mode - Different PHY modes
8610 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8611 *
8612 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8613 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8614 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8615 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8616 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8617 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8618 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8619 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8620 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8621 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8622 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8623 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8624 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8625 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8626 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8627 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8628 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8629 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8630 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8631 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8632 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8633 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8634 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8635 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8636 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8637 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8638 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8639 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8640 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8641 */
8642enum qca_wlan_vendor_phy_mode {
8643 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8644 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8645 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8646 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8647 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8648 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8649 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8650 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8651 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8652 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8653 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8654 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8655 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8656 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8657 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8658 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8659 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8660 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8661 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8662 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8663 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8664 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8665 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8666 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8667 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8668 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8669 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8670 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8671 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8672};
8673
Roshan Pius3a1667e2018-07-03 15:17:14 -07008674/* Attributes for data used by
8675 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8676 */
8677enum qca_wlan_vendor_attr_wifi_test_config {
8678 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8679 /* 8-bit unsigned value to configure the driver to enable/disable
8680 * WMM feature. This attribute is used to configure testbed device.
8681 * 1-enable, 0-disable
8682 */
8683 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8684
8685 /* 8-bit unsigned value to configure the driver to accept/reject
8686 * the addba request from peer. This attribute is used to configure
8687 * the testbed device.
8688 * 1-accept addba, 0-reject addba
8689 */
8690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8691
8692 /* 8-bit unsigned value to configure the driver to send or not to
8693 * send the addba request to peer.
8694 * This attribute is used to configure the testbed device.
8695 * 1-send addba, 0-do not send addba
8696 */
8697 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8698
8699 /* 8-bit unsigned value to indicate the HE fragmentation support.
8700 * Uses enum he_fragmentation_val values.
8701 * This attribute is used to configure the testbed device to
8702 * allow the advertised hardware capabilities to be downgraded
8703 * for testing purposes.
8704 */
8705 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8706
8707 /* 8-bit unsigned value to indicate the HE MCS support.
8708 * Uses enum he_mcs_config values.
8709 * This attribute is used to configure the testbed device to
8710 * allow the advertised hardware capabilities to be downgraded
8711 * for testing purposes.
8712 */
8713 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8714
8715 /* 8-bit unsigned value to configure the driver to allow or not to
8716 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8717 * This attribute is used to configure the testbed device.
8718 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8719 */
8720 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8721
8722 /* 8-bit unsigned value to configure the driver to add a
8723 * new BA session or delete the existing BA session for
8724 * given TID. ADDBA command uses the buffer size and TID
8725 * configuration if user specifies the values else default
8726 * value for buffer size is used for all TIDs if the TID
8727 * also not specified. For DEL_BA command TID value is
8728 * required to process the command.
8729 * Uses enum qca_wlan_ba_session_config values.
8730 * This attribute is used to configure the testbed device.
8731 */
8732 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8733
Hai Shalomce48b4a2018-09-05 11:41:35 -07008734 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07008735 * request and response frames.
8736 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07008737 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008738 */
8739 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8740
8741 /* 8-bit unsigned value to configure the buffer size in addba
8742 * request and response frames.
8743 * This attribute is used to configure the testbed device.
8744 */
8745 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8746
8747 /* 8-bit unsigned value to configure the no ack policy.
8748 * To configure no ack policy, access category value is
8749 * required to process the command.
8750 * This attribute is used to configure the testbed device.
8751 * 1 - enable no ack, 0 - disable no ack.
8752 */
8753 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8754
8755 /* 8-bit unsigned value to configure the AC for no ack policy
8756 * This attribute is used to configure the testbed device.
8757 * Uses the enum qca_wlan_ac_type values.
8758 */
8759 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8760
8761 /* 8-bit unsigned value to configure the HE LTF
8762 * This attribute is used to configure the testbed device.
8763 * Uses the enum qca_wlan_he_ltf_cfg values.
8764 */
8765 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8766
8767 /* 8-bit unsigned value to configure the tx beamformee.
8768 * This attribute is used to configure the testbed device.
8769 * 1-enable, 0-disable.
8770 */
8771 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8772
8773 /* 8-bit unsigned value to configure the tx beamformee number
8774 * of space-time streams.
8775 * This attribute is used to configure the testbed device.
8776 * The range of the value is 0 to 8.
8777 */
8778 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8779
8780 /* 8-bit unsigned value to configure the MU EDCA params for given AC
8781 * This attribute is used to configure the testbed device.
8782 * Uses the enum qca_wlan_ac_type values.
8783 */
8784 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8785
8786 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8787 * To configure MU EDCA AIFSN value, MU EDCA access category value
8788 * is required to process the command.
8789 * This attribute is used to configure the testbed device.
8790 */
8791 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8792
8793 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
8794 * given AC.
8795 * To configure MU EDCA ECW min value, MU EDCA access category value
8796 * is required to process the command.
8797 * This attribute is used to configure the testbed device.
8798 */
8799 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8800
8801 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
8802 * given AC.
8803 * To configure MU EDCA ECW max value, MU EDCA access category value
8804 * is required to process the command.
8805 * This attribute is used to configure the testbed device.
8806 */
8807 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8808
8809 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
8810 * To configure MU EDCA timer value, MU EDCA access category value
8811 * is required to process the command.
8812 * This attribute is used to configure the testbed device.
8813 */
8814 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8815
Hai Shalomc9e41a12018-07-31 14:41:42 -07008816 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
8817 * duration.
8818 * This attribute is used to configure the testbed device.
8819 * Uses the enum qca_wlan_he_mac_padding_dur values.
8820 */
8821 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8822
Hai Shalomce48b4a2018-09-05 11:41:35 -07008823 /* 8-bit unsigned value to override the MU EDCA params to defaults
8824 * regardless of the AP beacon MU EDCA params. If it is enabled use
8825 * the default values else use the MU EDCA params from AP beacon.
8826 * This attribute is used to configure the testbed device.
8827 * 1-enable, 0-disable.
8828 */
8829 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8830
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008831 /* 8-bit unsigned value to configure the support for receiving
8832 * an MPDU that contains an operating mode control subfield.
8833 * This attribute is used to configure the testbed device.
8834 * 1-enable, 0-disable.
8835 */
8836 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8837
8838 /* Nested attribute values required to setup the TWT session.
8839 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8840 * information to set up the session. It contains broadcast flags,
8841 * set_up flags, trigger value, flow type, flow ID, wake interval
8842 * exponent, protection, target wake time, wake duration, wake interval
8843 * mantissa. These nested attributes are used to setup a host triggered
8844 * TWT session.
8845 */
8846 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8847
8848 /* This nested attribute is used to terminate the current TWT session.
8849 * It does not currently carry any attributes.
8850 */
8851 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8852
8853 /* This nested attribute is used to suspend the current TWT session.
8854 * It does not currently carry any attributes.
8855 */
8856 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8857
8858 /* Nested attribute values to indicate the request for resume.
8859 * This attribute is used to resume the TWT session.
8860 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8861 * parameters required to resume the TWT session.
8862 */
8863 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8864
Hai Shalom74f70d42019-02-11 14:42:39 -08008865 /* 8-bit unsigned value to set the HE operating mode control
8866 * (OM CTRL) Channel Width subfield.
8867 * The Channel Width subfield indicates the operating channel width
8868 * supported by the STA for both reception and transmission.
8869 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8870 * This setting is cleared with the
8871 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8872 * flag attribute to reset defaults.
8873 * This attribute is used to configure the testbed device.
8874 */
8875 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8876
8877 /* 8-bit unsigned value to configure the number of spatial
8878 * streams in HE operating mode control field.
8879 * This setting is cleared with the
8880 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8881 * flag attribute to reset defaults.
8882 * This attribute is used to configure the testbed device.
8883 */
8884 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8885
8886 /* Flag attribute to configure the UL MU disable bit in
8887 * HE operating mode control field.
8888 * This setting is cleared with the
8889 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8890 * flag attribute to reset defaults.
8891 * This attribute is used to configure the testbed device.
8892 */
8893 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8894
8895 /* Flag attribute to clear the previously set HE operating mode
8896 * control field configuration.
8897 * This attribute is used to configure the testbed device to reset
8898 * defaults to clear any previously set HE operating mode control
8899 * field configuration.
8900 */
8901 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8902
8903 /* 8-bit unsigned value to configure HE single user PPDU
8904 * transmission. By default this setting is disabled and it
8905 * is disabled in the reset defaults of the device configuration.
8906 * This attribute is used to configure the testbed device.
8907 * 1-enable, 0-disable
8908 */
8909 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8910
8911 /* 8-bit unsigned value to configure action frame transmission
8912 * in HE trigger based PPDU transmission.
8913 * By default this setting is disabled and it is disabled in
8914 * the reset defaults of the device configuration.
8915 * This attribute is used to configure the testbed device.
8916 * 1-enable, 0-disable
8917 */
8918 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8919
8920 /* Nested attribute to indicate HE operating mode control field
8921 * transmission. It contains operating mode control field Nss,
8922 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8923 * These nested attributes are used to send HE operating mode control
8924 * with configured values.
8925 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8926 * This attribute is used to configure the testbed device.
8927 */
8928 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8929
8930 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
8931 * support for the reception of a frame that carries an HE variant
8932 * HT Control field.
8933 * This attribute is used to configure the testbed device.
8934 * 1-enable, 0-disable
8935 */
8936 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8937
Hai Shalom021b0b52019-04-10 11:17:58 -07008938 /* 8-bit unsigned value to configure VHT support in 2.4G band.
8939 * This attribute is used to configure the testbed device.
8940 * 1-enable, 0-disable
8941 */
8942 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8943
8944 /* 8-bit unsigned value to configure HE testbed defaults.
8945 * This attribute is used to configure the testbed device.
8946 * 1-set the device HE capabilities to testbed defaults.
8947 * 0-reset the device HE capabilities to supported config.
8948 */
8949 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8950
8951 /* 8-bit unsigned value to configure TWT request support.
8952 * This attribute is used to configure the testbed device.
8953 * 1-enable, 0-disable.
8954 */
8955 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8956
Hai Shalom899fcc72020-10-19 14:38:18 -07008957 /* 8-bit unsigned value to configure protection for Management
8958 * frames when PMF is enabled for the association.
8959 * This attribute is used to configure the testbed device.
8960 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8961 */
8962 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8963
8964 /* Flag attribute to inject Disassociation frame to the connected AP.
8965 * This attribute is used to configure the testbed device.
8966 */
8967 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8968
8969 /* 8-bit unsigned value to configure an override for the RSNXE Used
8970 * subfield in the MIC control field of the FTE in FT Reassociation
8971 * Request frame.
8972 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8973 * This attribute is used to configure the testbed device.
8974 * This attribute can be configured only when STA is in associated state
8975 * and the configuration is valid until the disconnection.
8976 */
8977 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8978
8979 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8980 * Switch Announcement) when STA is in connected state.
8981 * 0 - Default behavior, 1 - Ignore CSA.
8982 * This attribute is used to configure the testbed device.
8983 * This attribute can be configured only when STA is in associated state
8984 * and the configuration is valid until the disconnection.
8985 */
8986 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8987
8988 /* Nested attribute values required to configure OCI (Operating Channel
8989 * Information). Attributes defined in enum
8990 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8991 * This attribute is used to configure the testbed device.
8992 * This attribute can be configured only when STA is in associated state
8993 * and the configuration is valid until the disconnection.
8994 */
8995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8996
8997 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
8998 * Query timeout. If this configuration is enabled STA shall not send
8999 * Deauthentication frmae when SA Query times out (mainly, after a
9000 * channel switch when OCV is enabled).
9001 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9002 * This attribute is used to configure the testbed device.
9003 * This attribute can be configured only when STA is in associated state
9004 * and the configuration is valid until the disconnection.
9005 */
9006 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9007
9008 /* 8-bit unsigned value to configure the driver/firmware to start or
9009 * stop transmitting FILS discovery frames.
9010 * 0 - Stop transmitting FILS discovery frames
9011 * 1 - Start transmitting FILS discovery frames
9012 * This attribute is used to configure the testbed device.
9013 * This attribute can be configured only in AP mode and the
9014 * configuration is valid until AP restart.
9015 */
9016 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9017
Hai Shalom60840252021-02-19 19:02:11 -08009018 /* 8-bit unsigned value to configure the driver/firmware to enable or
9019 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9020 * information field.
9021 * 0 - Disable full bandwidth UL MU-MIMO subfield
9022 * 1 - Enable full bandwidth UL MU-MIMO subfield
9023 * This attribute is used to configure the testbed device.
9024 */
9025 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9026
9027 /* 16-bit unsigned value to configure the driver with a specific BSS
9028 * max idle period to advertise in the BSS Max Idle Period element
9029 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9030 * This attribute is used to configure the testbed device.
9031 */
9032 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9033
9034 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
9035 * for data transmission.
9036 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9037 * This attribute is used to configure the testbed device.
9038 */
9039 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9040
9041 /* 8-bit unsigned value to configure the driver to disable data and
9042 * management response frame transmission to test the BSS max idle
9043 * feature.
9044 * 0 - Default behavior, 1 - Disable data and management response Tx.
9045 * This attribute is used to configure the testbed device.
9046 */
9047 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9048
9049 /* 8-bit unsigned value to configure the driver/firmware to enable or
9050 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9051 * information field.
9052 * 0 - Disable Punctured Preamble Rx subfield
9053 * 1 - Enable Punctured Preamble Rx subfield
9054 * This attribute is used to configure the testbed device.
9055 */
9056 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9057
Hai Shaloma20dcd72022-02-04 13:43:00 -08009058 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9059 * requirement mismatch for 6 GHz connection.
9060 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9061 * This attribute is used to configure the testbed device.
9062 */
9063 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9064
9065 /* 8-bit unsigned value to configure the driver to allow 6 GHz
9066 * connection with all security modes.
9067 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9068 * modes.
9069 * This attribute is used for testing purposes.
9070 */
9071 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9072
9073 /* 8-bit unsigned value to configure the driver to transmit data with
9074 * ER SU PPDU type.
9075 *
9076 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9077 * This attribute is used for testing purposes.
9078 */
9079 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9080
9081 /* 8-bit unsigned value to configure the driver to use Data or
9082 * Management frame type for keep alive data.
9083 * Uses enum qca_wlan_keep_alive_data_type values.
9084 *
9085 * This attribute is used for testing purposes.
9086 */
9087 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9088
9089 /* 8-bit unsigned value to configure the driver to use scan request
9090 * BSSID value in Probe Request frame RA(A1) during the scan. The
9091 * driver saves this configuration and applies this setting to all user
9092 * space scan requests until the setting is cleared. If this
9093 * configuration is set, the driver uses the BSSID value from the scan
9094 * request to set the RA(A1) in the Probe Request frames during the
9095 * scan.
9096 *
9097 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9098 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9099 * This attribute is used for testing purposes.
9100 */
9101 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9102
9103 /* 8-bit unsigned value to configure the driver to enable/disable the
9104 * BSS max idle period support.
9105 *
9106 * 0 - Disable the BSS max idle support.
9107 * 1 - Enable the BSS max idle support.
9108 * This attribute is used for testing purposes.
9109 */
9110 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9111
9112 /* 8-bit unsigned value to configure the driver/firmware to enable or
9113 * disable Rx control frame to MultiBSS subfield in the HE MAC
9114 * capabilities information field.
9115 * 0 - Disable Rx control frame to MultiBSS subfield
9116 * 1 - Enable Rx control frame to MultiBSS subfield
9117 * This attribute is used to configure the testbed device.
9118 */
9119 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9120
9121 /* 8-bit unsigned value to configure the driver/firmware to enable or
9122 * disable Broadcast TWT support subfield in the HE MAC capabilities
9123 * information field.
9124 * 0 - Disable Broadcast TWT support subfield
9125 * 1 - Enable Broadcast TWT support subfield
9126 * This attribute is used to configure the testbed device.
9127 */
9128 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9129
Sunil Ravia04bd252022-05-02 22:54:18 -07009130 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9131 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9132 * to 1, and if the firmware supports this capability too, the STA
9133 * advertises this capability to the AP over Association Request frame.
9134 * This attribute will not have any effect on legacy devices with no
9135 * IEEE 802.11be support.
9136 * 0 - Default behavior
9137 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9138 * This attribute is used to configure the testbed device.
9139 */
9140 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9141
Sunil Ravi89eba102022-09-13 21:04:37 -07009142 /* 8-bit unsigned value to configure the driver to enable/disable the
9143 * periodic sounding for Tx beamformer functionality. The default
9144 * behavior uses algorithm to do sounding based on packet stats.
9145 *
9146 * 0 - Default behavior.
9147 * 1 - Enable the periodic sounding for Tx beamformer.
9148 * This attribute is used for testing purposes.
9149 */
9150 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9151
Sunil Ravi77d572f2023-01-17 23:58:31 +00009152 /* 8-bit unsigned value to configure beamformee SS EHT capability
9153 * to indicate the maximum number of spatial streams that the STA
9154 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9155 * The range of the value is 3 to 7.
9156 * This attribute is used to configure the testbed device.
9157 */
9158 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9159
9160 /* 8-bit unsigned value to configure beamformee SS EHT capability
9161 * to indicate the maximum number of spatial streams that the STA
9162 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9163 * The range of the value is 3 to 7.
9164 * This attribute is used to configure the testbed device.
9165 */
9166 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9167
9168 /* 8-bit unsigned value to configure beamformee SS EHT capability
9169 * to indicate the maximum number of spatial streams that the STA
9170 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9171 * The range of the value is 3 to 7.
9172 * This attribute is used to configure the testbed device.
9173 */
9174 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9175
9176 /* 8-bit unsigned value to configure the driver to exclude station
9177 * profile in Probe Request frame Multi-Link element.
9178 * 0 - Default behavior, sends the Probe Request frame with station
9179 * profile data included in the Multi-Link element.
9180 * 1 - Exclude station profile in Probe Request frame Multi-Link
9181 * element.
9182 * This attribute is used to configure the testbed device.
9183 */
9184 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
9185
9186 /* 8-bit unsigned value to configure EHT testbed defaults.
9187 * This attribute is used to configure the testbed device.
9188 * 1 - Set the device EHT capabilities to testbed defaults.
9189 * 0 - Reset the device EHT capabilities to supported config.
9190 */
9191 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
9192
9193 /* 8-bit unsigned value to indicate the EHT MCS support.
9194 * Uses enum eht_mcs_config values.
9195 * This attribute is used to configure the testbed device to
9196 * allow the advertised hardware capabilities to be downgraded
9197 * for testing purposes.
9198 */
9199 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
9200
9201 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
9202 * Rate Limit capability.
9203 * This attribute is used to configure the testbed device.
9204 * 0 - Indicates no maximum supported data rate limitation.
9205 * 1 - Indicates the maximum supported data rate is the lower of
9206 * the 1500 Mb/s and the maximum supported data rate.
9207 */
9208 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
9209
Roshan Pius3a1667e2018-07-03 15:17:14 -07009210 /* keep last */
9211 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9212 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9213 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9214};
9215
9216/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009217 * enum qca_wlan_twt_operation - Operation of the config TWT request
9218 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08009219 * The response for the respective operations can be either synchronous or
9220 * asynchronous (wherever specified). If synchronous, the response to this
9221 * operation is obtained in the corresponding vendor command reply to the user
9222 * space. For the asynchronous case the response is obtained as an event with
9223 * the same operation type.
9224 *
9225 * Drivers shall support either of these modes but not both simultaneously.
9226 * This support for asynchronous mode is advertised through the flag
9227 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9228 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07009229 *
9230 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9231 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08009232 * qca_wlan_vendor_attr_twt_setup. Depending upon the
9233 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9234 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009235 *
9236 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9237 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08009238 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009239 *
9240 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9241 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9242 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009243 * This terminate can either get triggered by the user space or can as well be
9244 * a notification from the firmware if it initiates a terminate.
9245 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9246 * the request from user space can either be a synchronous or asynchronous
9247 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009248 *
9249 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9250 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9251 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009252 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9253 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009254 *
9255 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9256 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9257 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009258 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9259 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9260 * capability, this is either a synchronous or asynchronous operation.
9261 *
9262 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9263 * combination of suspend and resume in a single request. Required parameters
9264 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9265 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9266 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9267 * capability, this is either a synchronous or asynchronous operation.
9268 *
9269 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9270 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9271 * session is setup. It's a synchronous operation.
9272 *
9273 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9274 * Valid only after the TWT session is setup. It's a synchronous operation.
9275 *
9276 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9277 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9278 * operation.
9279 *
Sunil Ravia04bd252022-05-02 22:54:18 -07009280 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -08009281 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009282 *
9283 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9284 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9285 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -07009286 *
9287 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9288 * related information for example TWT required bit in AP capabilities etc.
9289 * The reason for the notification is sent using
9290 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -07009291 */
9292enum qca_wlan_twt_operation {
9293 QCA_WLAN_TWT_SET = 0,
9294 QCA_WLAN_TWT_GET = 1,
9295 QCA_WLAN_TWT_TERMINATE = 2,
9296 QCA_WLAN_TWT_SUSPEND = 3,
9297 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08009298 QCA_WLAN_TWT_NUDGE = 5,
9299 QCA_WLAN_TWT_GET_STATS = 6,
9300 QCA_WLAN_TWT_CLEAR_STATS = 7,
9301 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9302 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009303 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -07009304 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07009305};
9306
9307/**
9308 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9309 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9310 *
9311 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
9312 * operation of this request. Possible values are defined in enum
9313 * qca_wlan_twt_operation. The parameters for the respective operation is
9314 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9315 *
9316 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9317 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08009318 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009319 * enum qca_wlan_vendor_attr_twt_set_param, or
9320 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -07009321 *
9322 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9323 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9324 * The values used by this attribute are defined in
9325 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -07009326 */
9327enum qca_wlan_vendor_attr_config_twt {
9328 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9329 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9330 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -07009331 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -07009332
9333 /* keep last */
9334 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9335 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9336 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9337};
9338
9339/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009340 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
9341 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9342 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
9343 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
9344 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
9345 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
9346 * statistics of an unassociated station by specifying the MAC address in
9347 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
9348 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
9349 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
9350 * the statistics of all unassociated stations by specifying the Broadcast MAC
9351 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
9352 * above procedure. In the response, driver shall specify statistics
9353 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
9354 */
9355enum qca_wlan_vendor_attr_bss_filter {
9356 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
9357 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
9358 /* Other BSS filter type, unsigned 8 bit value. One of the values
9359 * in enum qca_wlan_vendor_bss_filter_type.
9360 */
9361 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
9362 /* Other BSS filter action, unsigned 8 bit value. One of the values
9363 * in enum qca_wlan_vendor_bss_filter_action.
9364 */
9365 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
9366 /* Array of nested attributes where each entry is the statistics
9367 * information of the specified station that belong to another BSS.
9368 * Attributes for each entry are taken from enum
9369 * qca_wlan_vendor_bss_filter_sta_stats.
9370 * Other BSS station configured in
9371 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
9372 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
9373 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
9374 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
9375 */
9376 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
9377
9378 /* keep last */
9379 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
9380 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
9381 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
9382};
9383
9384/**
9385 * enum qca_wlan_vendor_bss_filter_type - Type of
9386 * filter used in other BSS filter operations. Used by the vendor command
9387 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9388 *
9389 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
9390 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
9391 */
9392enum qca_wlan_vendor_bss_filter_type {
9393 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
9394 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
9395};
9396
9397/**
9398 * enum qca_wlan_vendor_bss_filter_action - Type of
9399 * action in other BSS filter operations. Used by the vendor command
9400 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9401 *
9402 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
9403 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
9404 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
9405 */
9406enum qca_wlan_vendor_bss_filter_action {
9407 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
9408 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
9409 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
9410};
9411
9412/**
9413 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
9414 * the statistics of a specific unassociated station belonging to another BSS.
9415 * The statistics provides information of the unassociated station
9416 * filtered by other BSS operation - such as MAC, signal value.
9417 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9418 *
9419 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
9420 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
9421 * of the station. Unsigned 8 bit number containing RSSI.
9422 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
9423 * driver for the last received RSSI. Unsigned 64 bit number containing
9424 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -07009425 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
9426 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009427 */
9428enum qca_wlan_vendor_bss_filter_sta_stats {
9429 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
9430 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
9431 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
9432 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -07009433 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009434
9435 /* keep last */
9436 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
9437 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
9438 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
9439};
9440
Hai Shalomce48b4a2018-09-05 11:41:35 -07009441/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9442 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9443 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9444 */
9445enum qca_wlan_nan_ext_subcmd_type {
9446 /* Subcmd of type NAN Enable Request */
9447 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9448 /* Subcmd of type NAN Disable Request */
9449 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9450};
9451
9452/**
9453 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9454 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9455 */
9456enum qca_wlan_vendor_attr_nan_params {
9457 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9458 /* Carries NAN command for firmware component. Every vendor command
9459 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9460 * payload containing the NAN command. NLA_BINARY attribute.
9461 */
9462 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9463 /* Indicates the type of NAN command sent with
9464 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9465 * describes the possible range of values. This attribute is mandatory
9466 * if the command being issued is either
9467 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9468 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9469 */
9470 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9471 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9472 * band. This attribute is mandatory when command type is
9473 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9474 */
9475 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9476 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9477 * band. This attribute is optional and should be included when command
9478 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9479 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9480 */
9481 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9482
9483 /* keep last */
9484 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9485 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9486 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9487};
9488
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009489/**
Hai Shalom60840252021-02-19 19:02:11 -08009490 * qca_wlan_twt_setup_state: Represents the TWT session states.
9491 *
9492 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9493 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9494 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9495 */
9496enum qca_wlan_twt_setup_state {
9497 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9498 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9499 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9500};
9501
9502/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009503 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9504 * TWT (Target Wake Time) setup request. These attributes are sent as part of
9505 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07009506 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9507 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009508 *
9509 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9510 * Disable (flag attribute not present) - Individual TWT
9511 * Enable (flag attribute present) - Broadcast TWT.
9512 * Individual means the session is between the STA and the AP.
9513 * This session is established using a separate negotiation between
9514 * STA and AP.
9515 * Broadcast means the session is across multiple STAs and an AP. The
9516 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009517 * This is used in
9518 * 1. TWT SET Request and Response
9519 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009520 *
9521 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9522 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07009523 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009524 *
9525 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9526 * Enable (flag attribute present) - TWT with trigger support.
9527 * Disable (flag attribute not present) - TWT without trigger support.
9528 * Trigger means the AP will send the trigger frame to allow STA to send data.
9529 * Without trigger, the STA will wait for the MU EDCA timer before
9530 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07009531 * This is used in
9532 * 1. TWT SET Request and Response
9533 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009534 *
9535 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9536 * 0 - Announced TWT - In this mode, STA may skip few service periods to
9537 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9538 * NULL frame to AP.
9539 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009540 * This is a required parameter for
9541 * 1. TWT SET Request and Response
9542 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009543 *
9544 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9545 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07009546 * If not provided then dialog ID will be set to zero.
9547 * This is an optional parameter for
9548 * 1. TWT SET Request and Response
9549 * 2. TWT GET Request and Response
9550 * 3. TWT TERMINATE Request and Response
9551 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08009552 * Flow ID values from 0 to 254 represent a single TWT session
9553 * Flow ID value of 255 represents all TWT sessions for the following
9554 * 1. TWT TERMINATE Request and Response
9555 * 2. TWT SUSPEND Request and Response
9556 * 4. TWT CLEAR STATISTICS request
9557 * 5. TWT GET STATISTICS request and response
9558 * If an invalid dialog ID is provided, status
9559 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009560 *
9561 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9562 * This attribute (exp) is used along with the mantissa to derive the
9563 * wake interval using the following formula:
9564 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9565 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009566 * This is a required parameter for
9567 * 1. TWT SET Request and Response
9568 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009569 *
9570 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9571 * Enable (flag attribute present) - Protection required.
9572 * Disable (flag attribute not present) - Protection not required.
9573 * If protection is enabled, then the AP will use protection
9574 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07009575 * This is used in
9576 * 1. TWT SET Request and Response
9577 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009578 *
9579 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9580 * This attribute is used as the SP offset which is the offset from
9581 * TSF after which the wake happens. The units are in microseconds. If
9582 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07009583 * This is an optional parameter for
9584 * 1. TWT SET Request and Response
9585 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009586 *
9587 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07009588 * This is the duration of the service period. This is specified as
9589 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9590 * This is a required parameter for
9591 * 1. TWT SET Request and Response
9592 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009593 *
9594 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9595 * This attribute is used to configure wake interval mantissa.
9596 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07009597 * This is a required parameter for
9598 * 1. TWT SET Request and Response
9599 * 2. TWT GET Response
9600 *
9601 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9602 * This field is applicable for TWT response only.
9603 * This contains status values in enum qca_wlan_vendor_twt_status
9604 * and is passed to the userspace. This is used in TWT SET operation.
9605 * This is a required parameter for
9606 * 1. TWT SET Response
9607 * 2. TWT TERMINATE Response
9608 * 3. TWT SUSPEND Response
9609 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08009610 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07009611 *
9612 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9613 * This field is applicable for TWT response only.
9614 * This field contains response type from the TWT responder and is
9615 * passed to the userspace. The values for this field are defined in
9616 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9617 * response.
9618 *
9619 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -08009620 * In TWT setup command this field contains absolute TSF that will
9621 * be used by TWT requester during setup.
9622 * In TWT response this field contains absolute TSF value of the
9623 * wake time received from the TWT responder and is passed to
9624 * the userspace.
9625 * This is an optional parameter for
9626 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -07009627 * This is a required parameter for
9628 * 1. TWT SET Response
9629 * 2. TWT GET Response
9630 *
9631 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9632 * Enable (flag attribute present) - Indicates that the TWT responder
9633 * supports reception of TWT information frame from the TWT requestor.
9634 * Disable (flag attribute not present) - Indicates that the responder
9635 * doesn't support reception of TWT information frame from requestor.
9636 * This is used in
9637 * 1. TWT SET Response
9638 * 2. TWT GET Response
9639 *
9640 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9641 * Represents the MAC address of the peer for which the TWT session
9642 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -08009643 * client.
9644 * In AP mode, this is a required parameter in response for
9645 * 1. TWT SET
9646 * 2. TWT GET
9647 * 3. TWT TERMINATE
9648 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -07009649 * In STA mode, this is an optional parameter in request and response for
9650 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009651 * In AP mode, this is a required parameter in request for
9652 * 1. TWT GET
9653 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -08009654 *
9655 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9656 * Minimum tolerance limit of wake interval parameter in microseconds.
9657 *
9658 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9659 * Maximum tolerance limit of wake interval parameter in microseconds.
9660 *
9661 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9662 * Minimum tolerance limit of wake duration parameter in microseconds.
9663 *
9664 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9665 * Maximum tolerance limit of wake duration parameter in microseconds.
9666 *
9667 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9668 * TWT state for the given dialog id. The values for this are represented
9669 * by enum qca_wlan_twt_setup_state.
9670 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009671 *
9672 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9673 * This attribute is used to configure wake interval mantissa.
9674 * The unit is microseconds. This attribute, when specified, takes
9675 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9676 * This parameter is used for
9677 * 1. TWT SET Request and Response
9678 * 2. TWT GET Response
9679 *
9680 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9681 * This attribute is used to configure Broadcast TWT ID.
9682 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9683 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9684 * This parameter is used for
9685 * 1. TWT SET Request
9686 * 2. TWT TERMINATE Request
9687 *
9688 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9689 * This attribute is used to configure Broadcast TWT recommendation.
9690 * The Broadcast TWT Recommendation subfield contains a value that indicates
9691 * recommendations on the types of frames that are transmitted by TWT
9692 * scheduled STAs and scheduling AP during the broadcast TWT SP.
9693 * The allowed values are 0 - 3.
9694 * This parameter is used for
9695 * 1. TWT SET Request
9696 *
9697 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9698 * This attribute is used to configure Broadcast TWT Persistence.
9699 * The Broadcast TWT Persistence subfield indicates the number of
9700 * TBTTs during which the Broadcast TWT SPs corresponding to this
9701 * broadcast TWT Parameter set are present. The number of beacon intervals
9702 * during which the Broadcast TWT SPs are present is equal to the value in the
9703 * Broadcast TWT Persistence subfield plus 1 except that the value 255
9704 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9705 * This parameter is used for
9706 * 1. TWT SET Request
9707 *
9708 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9709 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9710 * from TWT response frame.
9711 * This parameter is used for
9712 * 1. TWT SET Response
9713 * 2. TWT GET Response
9714 *
9715 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9716 * This attribute is used to configure the announce timeout value (in us) in
9717 * the firmware. This timeout value is only applicable for the announced TWT. If
9718 * the timeout value is non-zero the firmware waits up to the timeout value to
9719 * use Data frame as an announcement frame. If the timeout value is 0 the
9720 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9721 * start. The default value in the firmware is 0.
9722 * This parameter is used for
9723 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -07009724 *
9725 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
9726 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009727 */
9728enum qca_wlan_vendor_attr_twt_setup {
9729 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9730 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9731 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9732 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9733 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9734 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9735 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9736 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9737 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9738 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9739 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9740
Hai Shalom899fcc72020-10-19 14:38:18 -07009741 /* TWT Response only attributes */
9742 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9743 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9744 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9745 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9746
9747 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08009748 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9749 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9750 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9751 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9752 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07009753
Hai Shaloma20dcd72022-02-04 13:43:00 -08009754 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9755
9756 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9757 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9758 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9759
9760 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9761 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9762
Sunil Ravi036cec52023-03-29 11:35:17 -07009763 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
9764
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009765 /* keep last */
9766 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9767 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9768 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9769};
9770
9771/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009772 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9773 * TWT operation
9774 *
9775 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9776 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9777 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9778 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9779 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9780 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9781 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9782 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9783 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9784 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9785 * request/response frame
9786 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9787 * frame
9788 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9789 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9790 * unknown reason
9791 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9792 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08009793 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9794 * invalid IE in the received TWT frame
9795 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9796 * the responder are not in the specified range
9797 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9798 * session due to request from the responder. Used on the TWT_TERMINATE
9799 * notification from the firmware.
9800 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9801 * session due to roaming. Used on the TWT_TERMINATE notification from the
9802 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009803 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9804 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9805 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9806 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9807 * request due to roaming in progress.
9808 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9809 * setup request due to channel switch in progress.
9810 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9811 * request due to scan in progress.
9812 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9813 * terminate an existing TWT session on power save exit request from userspace.
9814 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -07009815 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9816 * required bit in its capabilities.
9817 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9818 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -07009819 */
9820enum qca_wlan_vendor_twt_status {
9821 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9822 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9823 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9824 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9825 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9826 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9827 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9828 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9829 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9830 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9831 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9832 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9833 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9834 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08009835 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9836 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9837 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9838 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009839 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9840 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9841 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9842 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9843 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -07009844 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9845 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -07009846};
9847
9848/**
9849 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009850 * TWT (Target Wake Time) resume request. These attributes are sent as part of
9851 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07009852 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9853 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009854 *
9855 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07009856 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9857 * These attributes are used as the SP offset which is the offset from TSF after
9858 * which the wake happens. The units are in microseconds. Please note that
9859 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9860 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9861 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9862 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009863 *
9864 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9865 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07009866 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9867 * and 4 for 64 bits.
9868 *
9869 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9870 * Flow ID is the unique identifier for each TWT session. This attribute
9871 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08009872 * Flow ID values from 0 to 254 represent a single TWT session
9873 * Flow ID value of 255 represents all TWT sessions.
9874 * If an invalid dialog id is provided, status
9875 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07009876 *
9877 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9878 * Represents the MAC address of the peer to which TWT Resume is
9879 * being sent. This is used in AP mode to represent the respective
9880 * client and is a required parameter. In STA mode, this is an optional
9881 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009882 */
9883enum qca_wlan_vendor_attr_twt_resume {
9884 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9885 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9886 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009887 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9888 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9889 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009890
9891 /* keep last */
9892 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9893 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9894 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9895};
9896
9897/**
Hai Shalom60840252021-02-19 19:02:11 -08009898 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9899 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9900 * and resume in a single request. These attributes are sent as part of
9901 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9902 *
9903 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9904 * Flow ID is the unique identifier for each TWT session. This attribute
9905 * represents the respective TWT session to suspend and resume.
9906 * Flow ID values from 0 to 254 represent a single TWT session
9907 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9908 * and response.
9909 * If an invalid dialog id is provided, status
9910 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9911 *
9912 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9913 * This attribute is used as the SP offset which is the offset from
9914 * TSF after which the wake happens. The units are in microseconds.
9915 *
9916 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9917 * This attribute represents the next TWT subfield size.
9918 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9919 * and 4 for 64 bits.
9920 *
9921 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9922 * Represents the MAC address of the peer to which TWT Suspend and Resume is
9923 * being sent. This is used in AP mode to represent the respective
9924 * client and is a required parameter. In STA mode, this is an optional
9925 * parameter.
9926 *
9927 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9928 * This field contains absolute TSF value of the time at which the TWT
9929 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -07009930 *
9931 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9932 * This field will be used when device supports Flexible TWT.
9933 * This field contains an offset value by which to shift the starting time
9934 * of the next service period. The value of offset can be negative or positive.
9935 * If provided, this attribute will override
9936 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
9937 *
Sunil Ravi036cec52023-03-29 11:35:17 -07009938 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
9939 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -08009940 */
9941enum qca_wlan_vendor_attr_twt_nudge {
9942 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9943 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9944 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9945 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9946 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9947 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -07009948 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -07009949 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -08009950
9951 /* keep last */
9952 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9953 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9954 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9955};
9956
9957/**
9958 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9959 * TWT (Target Wake Time) get statistics and clear statistics request.
9960 * These attributes are sent as part of
9961 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9962 *
9963 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9964 * Flow ID is the unique identifier for each TWT session. This attribute
9965 * represents the respective TWT session for get and clear TWT statistics.
9966 * Flow ID values from 0 to 254 represent a single TWT session
9967 * Flow ID value of 255 represents all TWT sessions in
9968 * 1) TWT GET STATISTICS request and response
9969 * 2) TWT CLEAR STATISTICS request
9970 *
9971 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9972 * Represents the MAC address of the peer for which TWT Statistics
9973 * is required.
9974 * In AP mode this is used to represent the respective
9975 * client and is a required parameter for
9976 * 1) TWT GET STATISTICS request and response
9977 * 2) TWT CLEAR STATISTICS request and response
9978 * In STA mode, this is an optional parameter.
9979 *
9980 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9981 * This is the duration of the service period in microseconds.
9982 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9983 *
9984 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9985 * Average of the actual wake duration observed so far. Unit is microseconds.
9986 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9987 *
9988 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9989 * The number of TWT service periods elapsed so far.
9990 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9991 *
9992 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9993 * This is the minimum value of the wake duration observed across
9994 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9995 * microseconds.
9996 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9997 *
9998 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9999 * This is the maximum value of wake duration observed across
10000 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10001 * microseconds.
10002 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10003 *
10004 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10005 * Average number of MPDUs transmitted successfully across
10006 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10007 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10008 *
10009 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10010 * Average number of MPDUs received successfully across
10011 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10012 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10013 *
10014 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10015 * Average number of bytes transmitted successfully across
10016 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10017 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10018 *
10019 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
10020 * Average number of bytes received successfully across
10021 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10022 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10023 *
10024 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10025 * Status of the TWT GET STATISTICS request.
10026 * This contains status values in enum qca_wlan_vendor_twt_status
10027 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10028 */
10029enum qca_wlan_vendor_attr_twt_stats {
10030 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10031 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10032 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10033 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10034 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10035 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10036 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10037 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10038 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10039 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10040 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10041 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10042 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10043
10044 /* keep last */
10045 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10046 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10047 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10048};
10049
10050/**
10051 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
10052 * supported by the device and the peer.
10053 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10054 *
10055 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10056 * TWT non-scheduling STA. This capability is advertised in the HE
10057 * Capability/Extended Capabilities information element in the
10058 * Association Request frame by the device.
10059 *
10060 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
10061 * the TWT scheduling AP. This capability is advertised in the Extended
10062 * Capabilities/HE Capabilities information element.
10063 *
10064 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
10065 * for the broadcast TWT functionality. On the responder side, this indicates
10066 * support for the role of broadcast TWT scheduling functionality. This
10067 * capability is advertised in the HE Capabilities information element.
10068 *
10069 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
10070 * This capability is advertised in the HE Capabilities information element.
10071 *
10072 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10073 * that it mandates the associated HE STAs to support TWT. This capability is
10074 * advertised by AP in the HE Operation Parameters field of the HE Operation
10075 * information element.
10076 */
10077enum qca_wlan_twt_capa {
10078 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10079 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10080 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10081 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
10082 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
10083};
10084
10085/**
10086 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
10087 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10088 * operation.
10089 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10090 * Represents the MAC address of the peer for which the TWT capabilities
10091 * are being queried. This is used in AP mode to represent the respective
10092 * client. In STA mode, this is an optional parameter.
10093 *
10094 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10095 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10096 * enum qca_wlan_twt_capa.
10097 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10098 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10099 * enum qca_wlan_twt_capa.
10100 */
10101enum qca_wlan_vendor_attr_twt_capability {
10102 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10103 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10104 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10105 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10106
10107 /* keep last */
10108 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10109 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10110 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10111};
10112
10113/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010114 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10115 * TWT (Target Wake Time) related parameters. It is used when
10116 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10117 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10118 *
10119 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10120 * This attribute configures AC parameters to be used for all TWT
10121 * sessions in AP mode.
10122 * Uses the enum qca_wlan_ac_type values.
10123 */
10124enum qca_wlan_vendor_attr_twt_set_param {
10125 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10126 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10127
10128 /* keep last */
10129 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10130 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10131 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10132};
10133
10134/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010135 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10136 * the TWT responder
10137 *
10138 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10139 * parameters that are different from TWT requesting STA suggested
10140 * or demanded TWT parameters
10141 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10142 * parameters that are different from TWT requesting STA TWT suggested
10143 * or demanded parameters
10144 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10145 * setup
10146 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10147 * setup.
10148 */
10149enum qca_wlan_vendor_twt_setup_resp_type {
10150 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10151 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10152 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10153 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10154};
10155
10156/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010157 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10158 * Represents the setup type being requested for TWT.
10159 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10160 * parameters but relying on AP to fill the parameters during the negotiation.
10161 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10162 * values which the AP may accept or AP may provide alternative parameters
10163 * which the STA may accept.
10164 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10165 * alternate parameters than the requested ones.
10166 */
10167enum qca_wlan_vendor_twt_setup_req_type {
10168 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10169 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10170 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10171};
10172
10173/**
10174 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
10175 *
10176 * Indicates the type of roam scan event sent by firmware/driver.
10177 *
10178 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
10179 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
10180 */
10181enum qca_wlan_roam_scan_event_type {
10182 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
10183 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
10184};
10185
10186/**
10187 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
10188 *
10189 * Indicates the reason for triggering roam scan by firmware/driver.
10190 *
10191 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
10192 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
10193 */
10194enum qca_wlan_roam_scan_trigger_reason {
10195 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
10196 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
10197};
10198
10199/**
10200 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
10201 * roam scan related details from driver/firmware to user space. enum values
10202 * are used for NL attributes sent with
10203 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
10204 */
10205enum qca_wlan_vendor_attr_roam_scan {
10206 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
10207 /* Encapsulates type of roam scan event being reported. enum
10208 * qca_wlan_roam_scan_event_type describes the possible range of
10209 * values. u32 attribute.
10210 */
10211 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
10212 /* Encapsulates reason for triggering roam scan. enum
10213 * qca_wlan_roam_scan_trigger_reason describes the possible range of
10214 * values. u32 attribute.
10215 */
10216 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
10217
10218 /* keep last */
10219 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
10220 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
10221 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
10222};
10223
10224/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010225 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10226 * transport modes and is used by the attribute
10227 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
10228 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10229 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
10230 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10231 * data. The data shall be encapsulated within
10232 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
10233 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10234 */
10235enum qca_wlan_vendor_cfr_data_transport_modes {
10236 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10237 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10238};
10239
10240/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010241 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10242 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10243 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070010244 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
10245 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
10246 * with phase
10247 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010248 */
10249enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010250 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070010251 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10252 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10253};
10254
10255/**
10256 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10257 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10258 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10259 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10260 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10261 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10262 * is provided by one or more of below attributes:
10263 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10264 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10265 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10266 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10267 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10268 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10269 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10270 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10271 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10272 */
10273enum qca_wlan_vendor_cfr_capture_type {
10274 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10275 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10276 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10277 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10278 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10279 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010280};
10281
10282/**
10283 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10284 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10285 * Channel Frequency Response capture parameters and enable periodic CFR
10286 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070010287 *
10288 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10289 * MAC address of peer. This is for CFR version 1 only.
10290 *
10291 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10292 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
10293 * capture. If this attribute is not present, peer CFR capture is disabled.
10294 *
10295 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10296 * BW of measurement, attribute uses the values in enum nl80211_chan_width
10297 * Supported values: 20, 40, 80, 80+80, 160.
10298 * Note that all targets may not support all bandwidths.
10299 * This attribute is mandatory for version 1 if attribute
10300 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10301 *
10302 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10303 * Periodicity of CFR measurement in milliseconds.
10304 * Periodicity should be a multiple of Base timer.
10305 * Current Base timer value supported is 10 milliseconds (default).
10306 * 0 for one shot capture.
10307 * This attribute is mandatory for version 1 if attribute
10308 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10309 *
10310 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10311 * Method used to capture Channel Frequency Response.
10312 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10313 * This attribute is mandatory for version 1 if attribute
10314 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10315 *
10316 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10317 * Enable periodic CFR capture.
10318 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10319 * If this attribute is not present, periodic CFR capture is disabled.
10320 *
10321 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
10322 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10323 * can't be enabled at same time. This attribute is mandatory if target
10324 * support both versions and use one of them.
10325 *
10326 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10327 * This attribute is mandatory for version 2 if
10328 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10329 * Bits 15:0 bitfield indicates which group is to be enabled.
10330 * Bits 31:16 Reserved for future use.
10331 *
10332 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10333 * CFR capture duration in microsecond. This attribute is mandatory for
10334 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10335 *
10336 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10337 * CFR capture interval in microsecond. This attribute is mandatory for
10338 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10339 *
10340 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10341 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10342 * This attribute is mandatory for version 2.
10343 *
10344 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10345 * Bitfield indicating which user in the current UL MU transmissions are
10346 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
10347 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
10348 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
10349 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
10350 * reserved for future use. This is for CFR version 2 only.
10351 *
10352 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10353 * Indicates the number of consecutive RX frames to be skipped before CFR
10354 * capture is enabled again. This is for CFR version 2 only.
10355 *
10356 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10357 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10358 *
10359 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10360 * the following group attributes:
10361 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10362 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10363 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10364 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10365 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10366 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10367 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10368 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10369 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10370 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10371 *
10372 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10373 * Target supports multiple groups for some configurations. The group number
10374 * can be any value between 0 and 15. This is for CFR version 2 only.
10375 *
10376 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10377 * Transmitter address which is used to filter frames. This MAC address takes
10378 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
10379 * version 2 only.
10380 *
10381 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10382 * Receiver address which is used to filter frames. This MAC address takes
10383 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
10384 * version 2 only.
10385 *
10386 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10387 * Mask of transmitter address which is used to filter frames. This is for CFR
10388 * version 2 only.
10389 *
10390 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10391 * Mask of receiver address which is used to filter frames. This is for CFR
10392 * version 2 only.
10393 *
10394 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10395 * Indicates frames with a specific NSS will be filtered for CFR capture.
10396 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
10397 * capture to be done for frames matching the NSS specified within this bitmask.
10398 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
10399 * bit 0 : NSS 1
10400 * bit 1 : NSS 2
10401 * ...
10402 * bit 7 : NSS 8
10403 *
10404 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10405 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
10406 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
10407 * capture to be done for frames matching the bandwidths specified within this
10408 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
10409 * numerated in enum nl80211_band (although not all bands may be supported
10410 * by a given device).
10411 *
10412 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10413 * Management frames matching the subtype filter categories will be filtered in
10414 * by MAC for CFR capture. This is a bitmask in which each bit represents the
10415 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
10416 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
10417 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
10418 *
10419 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10420 * Control frames matching the subtype filter categories will be filtered in by
10421 * MAC for CFR capture. This is a bitmask in which each bit represents the
10422 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
10423 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10424 *
10425 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10426 * Data frames matching the subtype filter categories will be filtered in by
10427 * MAC for CFR capture. This is a bitmask in which each bit represents the
10428 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
10429 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010430 *
10431 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10432 * Userspace can use this attribute to specify the driver about which transport
10433 * mode shall be used by the driver to send CFR data to userspace. Uses values
10434 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10435 * not present, the driver shall use the default transport mechanism which is
10436 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10437 *
10438 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10439 * Userspace can use this attribute to specify the nl port id of the application
10440 * which receives the CFR data and processes it further so that the drivers can
10441 * unicast the netlink events to a specific application. Optionally included
10442 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10443 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10444 * shall multicast the netlink events when this attribute is not included.
10445 *
10446 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10447 * This attribute will be used by the driver to encapsulate and send CFR data
10448 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10449 * asynchronous event when the driver is configured to send CFR data using
10450 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070010451 *
10452 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
10453 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010454 */
10455enum qca_wlan_vendor_peer_cfr_capture_attr {
10456 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010457 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010458 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010459 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010460 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010461 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010462 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070010463 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10464 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10465 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10466 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10467 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10468 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10469 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10470 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10471 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10472 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10473 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10474 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10475 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10476 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10477 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10478 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10479 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10480 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10481 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010482 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10483 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10484 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070010485 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010486
10487 /* Keep last */
10488 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10489 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10490 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10491};
10492
Hai Shalom74f70d42019-02-11 14:42:39 -080010493/**
10494 * enum qca_wlan_throughput_level - Current throughput level
10495 *
10496 * Indicates the current level of throughput calculated by the driver. The
10497 * driver may choose different thresholds to decide whether the throughput level
10498 * is low or medium or high based on variety of parameters like physical link
10499 * capacity of the current connection, the number of packets being dispatched
10500 * per second, etc. The throughput level events might not be consistent with the
10501 * actual current throughput value being observed.
10502 *
10503 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10504 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10505 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10506 */
10507enum qca_wlan_throughput_level {
10508 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10509 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10510 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10511};
10512
10513/**
10514 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10515 * report throughput changes from the driver to user space. enum values are used
10516 * for netlink attributes sent with
10517 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10518 */
10519enum qca_wlan_vendor_attr_throughput_change {
10520 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10521 /* Indicates the direction of throughput in which the change is being
10522 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10523 */
10524 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10525 /* Indicates the newly observed throughput level. enum
10526 * qca_wlan_throughput_level describes the possible range of values.
10527 * u8 attribute.
10528 */
10529 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10530 /* Indicates the driver's guidance on the new value to be set to
10531 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10532 * driver may optionally include this attribute.
10533 */
10534 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10535 /* Indicates the driver's guidance on the new value to be set to
10536 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10537 * values are from -31 to 31. The driver may optionally include this
10538 * attribute.
10539 */
10540 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10541 /* Indicates the driver's guidance on the new value to be set to
10542 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10543 * optionally include this attribute.
10544 */
10545 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10546
10547 /* keep last */
10548 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10549 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10550 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10551};
10552
10553/**
10554 * enum qca_coex_config_profiles - This enum defines different types of
10555 * traffic streams that can be prioritized one over the other during coex
10556 * scenarios.
10557 * The types defined in this enum are categorized in the below manner.
10558 * 0 - 31 values corresponds to WLAN
10559 * 32 - 63 values corresponds to BT
10560 * 64 - 95 values corresponds to Zigbee
10561 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10562 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10563 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10564 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10565 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10566 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10567 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10568 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10569 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10570 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10571 * @QCA_BT_A2DP: Prioritize BT A2DP
10572 * @QCA_BT_BLE: Prioritize BT BLE
10573 * @QCA_BT_SCO: Prioritize BT SCO
10574 * @QCA_ZB_LOW: Prioritize Zigbee Low
10575 * @QCA_ZB_HIGH: Prioritize Zigbee High
10576 */
10577enum qca_coex_config_profiles {
10578 /* 0 - 31 corresponds to WLAN */
10579 QCA_WIFI_STA_DISCOVERY = 0,
10580 QCA_WIFI_STA_CONNECTION = 1,
10581 QCA_WIFI_STA_CLASS_3_MGMT = 2,
10582 QCA_WIFI_STA_DATA = 3,
10583 QCA_WIFI_STA_ALL = 4,
10584 QCA_WIFI_SAP_DISCOVERY = 5,
10585 QCA_WIFI_SAP_CONNECTION = 6,
10586 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10587 QCA_WIFI_SAP_DATA = 8,
10588 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070010589 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080010590 /* 32 - 63 corresponds to BT */
10591 QCA_BT_A2DP = 32,
10592 QCA_BT_BLE = 33,
10593 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070010594 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080010595 /* 64 - 95 corresponds to Zigbee */
10596 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070010597 QCA_ZB_HIGH = 65,
10598 QCA_ZB_CASE_MAX = 95,
10599 /* 0xff is default value if the u8 profile value is not set. */
10600 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10601};
10602
10603/**
10604 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10605 * This enum defines the valid set of values of coex configuration types. These
10606 * values may used by attribute
10607 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10608 *
10609 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10610 * weights to default values.
10611 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10612 * weights with configurability value.
10613 */
10614enum qca_vendor_attr_coex_config_types {
10615 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10616 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10617 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080010618};
10619
10620/**
10621 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
10622 *
10623 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
10624 * length array of 8-bit values from enum qca_coex_config_profiles.
10625 * FW will prioritize the profiles in the order given in the array encapsulated
10626 * in this attribute.
10627 * For example:
10628 * -----------------------------------------------------------------------
10629 * | 1 | 34 | 32 | 65 |
10630 * -----------------------------------------------------------------------
10631 * If the attribute contains the values defined in above array then it means
10632 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
10633 * 2) BT_SCO has priority over BT_A2DP.
10634 * 3) BT_A2DP has priority over ZIGBEE HIGH.
10635 * Profiles which are not listed in this array shall not be preferred over the
10636 * profiles which are listed in the array as a part of this attribute.
10637 */
10638enum qca_vendor_attr_coex_config {
10639 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10640 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
10641
10642 /* Keep last */
10643 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
10644 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
10645 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
10646};
10647
10648/**
Hai Shalom021b0b52019-04-10 11:17:58 -070010649 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10650 * attributes
10651 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10652 *
10653 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10654 * Indicate config type.
10655 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
10656 *
10657 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10658 * Indicate the Priority 1 profiles.
10659 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10660 * In same priority level, maximum to 4 profiles can be set here.
10661 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10662 * Indicate the Priority 2 profiles.
10663 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10664 * In same priority level, maximum to 4 profiles can be set here.
10665 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10666 * Indicate the Priority 3 profiles.
10667 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10668 * In same priority level, maximum to 4 profiles can be set here.
10669 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10670 * Indicate the Priority 4 profiles.
10671 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10672 * In same priority level, maximum to 4 profiles can be set here.
10673 * NOTE:
10674 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10675 * arrangement:
10676 * 1: In the same u32 attribute (priority x), the profiles enum values own
10677 * same priority level.
10678 * 2: 0xff is default value if the u8 profile value is not set.
10679 * 3: max to 4 rules/profiles in same priority level.
10680 * 4: max to 4 priority level (priority 1 - priority 4)
10681 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
10682 * hybrid rules not support.
10683 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10684 * remain blank to reset all parameters.
10685 * For example:
10686 *
10687 * If the attributes as follow:
10688 * priority 1:
10689 * ------------------------------------
10690 * | 0xff | 0 | 1 | 2 |
10691 * ------------------------------------
10692 * priority 2:
10693 * -------------------------------------
10694 * | 0xff | 0xff | 0xff | 32 |
10695 * -------------------------------------
10696 * priority 3:
10697 * -------------------------------------
10698 * | 0xff | 0xff | 0xff | 65 |
10699 * -------------------------------------
10700 * then it means:
10701 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10702 * owns same priority level.
10703 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10704 * has priority over BT_A2DP and ZB_HIGH.
10705 * 3: BT_A2DP has priority over ZB_HIGH.
10706 */
Hai Shalom021b0b52019-04-10 11:17:58 -070010707enum qca_vendor_attr_coex_config_three_way {
10708 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10709 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10710 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10711 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10712 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10713 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10714
10715 /* Keep last */
10716 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10717 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10718 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10719};
10720
10721/**
Hai Shalom74f70d42019-02-11 14:42:39 -080010722 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
10723 *
10724 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
10725 * (STA/AP) for the connected link.
10726 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
10727 * &struct nl80211_sta_flag_update for the respective connected link. MAC
10728 * address of the peer represented by
10729 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
10730 */
10731enum qca_wlan_vendor_attr_link_properties {
10732 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
10733 /* 1 - 3 are reserved */
10734 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10735 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10736
10737 /* Keep last */
10738 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10739 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10740 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10741};
10742
Hai Shalom021b0b52019-04-10 11:17:58 -070010743/**
10744 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10745 * This enum defines the valid set of values of peer stats cache types. These
10746 * values are used by attribute
10747 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10748 *
10749 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10750 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10751 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10752 * statistics
10753 */
10754enum qca_vendor_attr_peer_stats_cache_type {
10755 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10756
10757 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10758 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10759 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10760};
10761
10762/**
10763 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10764 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10765 * Information in these attributes is used to flush peer rate statistics from
10766 * the driver to user application.
10767 *
10768 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10769 * Indicate peer statistics cache type.
10770 * The statistics types are 32-bit values from
10771 * enum qca_vendor_attr_peer_stats_cache_type.
10772 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10773 * of size 6 octets, representing the peer MAC address.
10774 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10775 * containing buffer of statistics to send to application layer entity.
10776 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10777 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070010778 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
10779 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070010780 */
10781enum qca_wlan_vendor_attr_peer_stats_cache_params {
10782 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10783
10784 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10785 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10786 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10787 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070010788 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070010789
10790 /* Keep last */
10791 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10792 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10793 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10794};
10795
10796/**
10797 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10798 * This enum defines all the possible states of Zigbee, which can be
10799 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10800 *
10801 * @ZIGBEE_IDLE: Zigbee in idle state
10802 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10803 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10804 * @ZIGBEE_JOIN: Zigbee joining network
10805 * @ZIGBEE_NETWORK_UP: Zigbee network is up
10806 * @ZIGBEE_HMI: Zigbee in HMI mode
10807 */
10808enum qca_mpta_helper_attr_zigbee_state {
10809 ZIGBEE_IDLE = 0,
10810 ZIGBEE_FORM_NETWORK = 1,
10811 ZIGBEE_WAIT_JOIN = 2,
10812 ZIGBEE_JOIN = 3,
10813 ZIGBEE_NETWORK_UP = 4,
10814 ZIGBEE_HMI = 5,
10815};
10816
10817/*
10818 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10819 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10820 */
10821enum qca_mpta_helper_vendor_attr {
10822 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10823 /* Optional attribute used to update Zigbee state.
10824 * enum qca_mpta_helper_attr_zigbee_state.
10825 * NLA_U32 attribute.
10826 */
10827 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10828 /* Optional attribute used to configure WLAN duration for Shape-OCS
10829 * during interrupt.
10830 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10831 * Value range 0 ~ 300 (ms).
10832 * NLA_U32 attribute.
10833 */
10834 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10835 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10836 * during interrupt.
10837 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10838 * Value range 0 ~ 300 (ms).
10839 * NLA_U32 attribute.
10840 */
10841 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10842 /* Optional attribute used to configure WLAN duration for Shape-OCS
10843 * monitor period.
10844 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10845 * Value range 0 ~ 300 (ms)
10846 * NLA_U32 attribute
10847 */
10848 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10849 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10850 * monitor period.
10851 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10852 * Value range 0 ~ 300 (ms)
10853 * NLA_U32 attribute
10854 */
10855 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10856 /* Optional attribute used to configure OCS interrupt duration.
10857 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10858 * Value range 1000 ~ 20000 (ms)
10859 * NLA_U32 attribute
10860 */
10861 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10862 /* Optional attribute used to configure OCS monitor duration.
10863 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10864 * Value range 1000 ~ 20000 (ms)
10865 * NLA_U32 attribute
10866 */
10867 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10868 /* Optional attribute used to notify WLAN firmware the current Zigbee
10869 * channel.
10870 * Value range 11 ~ 26
10871 * NLA_U32 attribute
10872 */
10873 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10874 /* Optional attribute used to configure WLAN mute duration.
10875 * Value range 0 ~ 400 (ms)
10876 * NLA_U32 attribute
10877 */
10878 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10879
10880 /* keep last */
10881 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10882 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10883 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10884};
10885
Hai Shalom81f62d82019-07-22 12:10:00 -070010886/**
10887 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10888 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10889 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10890 *
10891 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10892 * to request the driver to start reporting Beacon frames.
10893 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10894 * request the driver to stop reporting Beacon frames.
10895 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10896 * userspace to report received Beacon frames.
10897 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10898 * to indicate that the driver is going to pause reporting Beacon frames.
10899 */
10900enum qca_wlan_vendor_beacon_reporting_op_types {
10901 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10902 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10903 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10904 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10905};
10906
10907/**
10908 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10909 * of reasons for which the driver is pausing reporting Beacon frames. Will be
10910 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10911 *
10912 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10913 * reasons.
10914 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10915 * driver/firmware is starting a scan.
10916 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10917 * driver/firmware disconnects from the ESS and indicates the disconnection to
10918 * userspace (non-seamless roaming case). This reason code will be used by the
10919 * driver/firmware to indicate stopping of beacon report events. Userspace will
10920 * need to start beacon reporting again (if desired) by sending vendor command
10921 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10922 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10923 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10924 * completed.
10925 */
10926enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10927 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10928 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10929 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10930};
10931
10932/*
10933 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10934 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10935 */
10936enum qca_wlan_vendor_attr_beacon_reporting_params {
10937 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10938 /* Specifies the type of operation that the vendor command/event is
10939 * intended for. Possible values for this attribute are defined in
10940 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10941 */
10942 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10943 /* Optionally set by userspace to request the driver to report Beacon
10944 * frames using asynchronous vendor events when the
10945 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10946 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10947 * If this flag is not set, the driver will only update Beacon frames in
10948 * cfg80211 scan cache but not send any vendor events.
10949 */
10950 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10951 /* Optionally used by userspace to request the driver/firmware to report
10952 * Beacon frames periodically when the
10953 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10954 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10955 * u32 attribute, indicates the period of Beacon frames to be reported
10956 * and in the units of beacon interval.
10957 * If this attribute is missing in the command, then the default value
10958 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10959 * Zero is an invalid value.
10960 * If a valid value is received for this attribute, the driver will
10961 * update the cfg80211 scan cache periodically as per the value received
10962 * in this attribute in addition to updating the cfg80211 scan cache
10963 * when there is significant change in Beacon frame IEs.
10964 */
10965 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10966 /* Used by the driver to encapsulate the SSID when the
10967 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10968 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10969 * u8 array with a maximum size of 32.
10970 *
10971 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10972 * will be taken from the SSID element of the received Beacon frame.
10973 *
10974 * When generating beacon report from Multiple BSSID Beacon frame and if
10975 * the BSSID of the current connected BSS matches the BSSID of the
10976 * transmitting BSS, the SSID will be taken from the SSID element of the
10977 * received Beacon frame.
10978 *
10979 * When generating beacon report from Multiple BSSID Beacon frame and if
10980 * the BSSID of the current connected BSS matches the BSSID of one of
10981 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10982 * included in the nontransmitted BSS profile whose derived BSSID is
10983 * same as the BSSID of the current connected BSS. When there is no
10984 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10985 * of current connected* BSS, this attribute will not be present.
10986 */
10987 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10988 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
10989 * currently connected to when the
10990 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10991 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10992 * fixed size of 6 bytes.
10993 *
10994 * When generating beacon report from a Multiple BSSID beacon and the
10995 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10996 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10997 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10998 * of the Beacon frame).
10999 */
11000 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11001 /* Used by the driver to encapsulate the frequency in MHz on which
11002 * the Beacon frame was received when the
11003 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11004 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11005 * u32 attribute.
11006 */
11007 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11008 /* Used by the driver to encapsulate the Beacon interval
11009 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11010 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11011 * u16 attribute. The value will be copied from the Beacon frame and the
11012 * units are TUs.
11013 */
11014 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11015 /* Used by the driver to encapsulate the Timestamp field from the Beacon
11016 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
11017 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11018 * u64 attribute.
11019 */
11020 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11021 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11022 * Beacon frame is received in the driver when the
11023 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11024 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11025 * the units of nanoseconds. This value is expected to have accuracy of
11026 * about 10 ms.
11027 */
11028 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11029 /* Used by the driver to encapsulate the IEs of the Beacon frame from
11030 * which this event is generated when the
11031 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11032 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11033 */
11034 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11035 /* Used by the driver to specify the reason for the driver/firmware to
11036 * pause sending beacons to userspace when the
11037 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11038 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11039 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11040 * attribute.
11041 */
11042 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11043 /* Used by the driver to specify whether the driver will automatically
11044 * resume reporting beacon events to userspace later (for example after
11045 * the ongoing off-channel activity is completed etc.) when the
11046 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11047 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11048 */
11049 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11050 /* Optionally set by userspace to request the driver not to resume
11051 * beacon reporting after a pause is completed, when the
11052 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11053 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11054 * If this flag is set, the driver will not resume beacon reporting
11055 * after any pause in beacon reporting is completed. Userspace has to
11056 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11057 * to initiate beacon reporting again. If this flag is set in the recent
11058 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11059 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11060 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11061 * set by the driver. Setting this flag until and unless there is a
11062 * specific need is not recommended as there is a chance of some beacons
11063 * received after pause command and next start command being not
11064 * reported.
11065 */
11066 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070011067 /* Attribute used for padding for 64-bit alignment */
11068 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070011069
11070 /* Keep last */
11071 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11072 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11073 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11074};
11075
11076/**
11077 * enum qca_vendor_interop_issues_ap_type - Interop issue types
11078 * This enum defines the valid set of values of interop issue types. These
11079 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
11080 *
11081 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
11082 * when the STA's Qpower feature is enabled.
11083 */
11084enum qca_vendor_interop_issues_ap_type {
11085 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
11086 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
11087};
11088
11089/**
11090 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
11091 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
11092 *
11093 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
11094 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
11095 * 32-bit unsigned value. The values defined in enum
11096 * qca_vendor_interop_issues_ap_type are used.
11097 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
11098 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
11099 * It is present and mandatory for the command but is not used for the event
11100 * since only a single BSSID is reported in an event.
11101 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
11102 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
11103 * attribute in command case and without such encapsulation in the event case.
11104 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
11105 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
11106 */
11107enum qca_vendor_attr_interop_issues_ap {
11108 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
11109 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
11110 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
11111 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
11112 /* keep last */
11113 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
11114 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
11115 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
11116};
11117
Hai Shalomc3565922019-10-28 11:58:20 -070011118/**
11119 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11120 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11121 *
11122 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11123 * a virtual device.
11124 *
11125 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11126 * a physical device.
11127 */
11128enum qca_vendor_oem_device_type {
11129 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11130 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11131};
11132
11133/**
11134 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
11135 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11136 *
Hai Shalom899fcc72020-10-19 14:38:18 -070011137 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11138 * used to set/query the data to/from the firmware. On query, the same
11139 * attribute is used to carry the respective data in the reply sent by the
11140 * driver to userspace. The request to set/query the data and the format of the
11141 * respective data from the firmware are embedded in the attribute. The
11142 * maximum size of the attribute payload is 1024 bytes.
11143 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11144 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070011145 *
11146 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11147 * based on this field. This optional attribute is included to specify whether
11148 * the device type is a virtual device or a physical device for the
11149 * command/event. This attribute can be omitted for a virtual device (default)
11150 * command/event.
11151 * This u8 attribute is used to carry information for the device type using
11152 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070011153 *
11154 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11155 * is set when the userspace queries data from the firmware. This attribute
11156 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070011157 */
11158enum qca_wlan_vendor_attr_oem_data_params {
11159 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11160 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11161 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070011162 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070011163
11164 /* keep last */
11165 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11166 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11167 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11168};
11169
11170/**
11171 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11172 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11173 *
11174 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11175 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080011176 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11177 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11178 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070011179 *
11180 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11181 * Starting center frequency in MHz.
11182 *
11183 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11184 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011185 *
11186 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11187 * s32 attribute, optional. It is a per frequency range attribute.
11188 * The maximum TX power limit from user space is to be applied on an
11189 * unrestricted interface for corresponding frequency range. It is also
11190 * possible that the actual TX power may be even lower than this cap due to
11191 * other considerations such as regulatory compliance, SAR, etc. In absence of
11192 * this attribute the driver shall follow current behavior which means
11193 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11194 * power derived by the driver based on regulatory/SAR during interface up.
11195 *
11196 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11197 * u32 attribute, optional. Indicates all the interface types which are
11198 * restricted for all frequency ranges provided in
11199 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11200 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11201 * This attribute encapsulates bitmasks of interface types defined in
11202 * enum nl80211_iftype. If an interface is marked as restricted the driver must
11203 * move to a safe channel and if no safe channel is available the driver shall
11204 * terminate that interface functionality. In absence of this attribute,
11205 * interface (SAP/P2P) can still continue operating on an unsafe channel with
11206 * TX power limit derived from either
11207 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11208 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11209 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070011210 */
11211enum qca_wlan_vendor_attr_avoid_frequency_ext {
11212 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11213 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11214 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11215 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011216 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11217 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070011218
11219 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11220 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11221 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11222};
11223
11224/*
11225 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11226 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11227 */
11228enum qca_wlan_vendor_attr_add_sta_node_params {
11229 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11230 /* 6 byte MAC address of STA */
11231 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11232 /* Authentication algorithm used by the station of size u16;
11233 * defined in enum nl80211_auth_type.
11234 */
11235 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11236
11237 /* keep last */
11238 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11239 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11240 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11241};
11242
11243/**
11244 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11245 * This enum defines the valid set of values of BT coex chain mode.
11246 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11247 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11248 *
Sunil Ravi89eba102022-09-13 21:04:37 -070011249 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11250 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11251 * separated, hybrid mode.
11252 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11253 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070011254 */
11255enum qca_btc_chain_mode {
11256 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070011257 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11258 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070011259};
11260
Sunil Ravi89eba102022-09-13 21:04:37 -070011261/* deprecated legacy name */
11262#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11263
Hai Shalomc3565922019-10-28 11:58:20 -070011264/**
11265 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11266 * chain mode.
11267 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11268 *
11269 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11270 * Indicates the BT coex chain mode, are 32-bit values from
11271 * enum qca_btc_chain_mode. This attribute is mandatory.
11272 *
11273 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11274 * If set, vdev should be restarted when BT coex chain mode is updated.
11275 * This attribute is optional.
11276 */
11277enum qca_vendor_attr_btc_chain_mode {
11278 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11279 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11280 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11281
11282 /* Keep last */
11283 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11284 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11285 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11286};
11287
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011288/**
11289 * enum qca_vendor_wlan_sta_flags - Station feature flags
11290 * Bits will be set to 1 if the corresponding features are enabled.
11291 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11292 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11293 for the station
11294 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11295 for the station
11296 */
11297enum qca_vendor_wlan_sta_flags {
11298 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11299 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11300 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11301};
11302
11303/**
11304 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11305 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11306 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11307 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11308 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11309 */
11310enum qca_vendor_wlan_sta_guard_interval {
11311 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11312 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11313 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11314 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11315};
11316
11317/**
11318 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11319 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11320 *
11321 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070011322 * Required attribute in request for AP mode only, 6-byte MAC address,
11323 * corresponding to the station's MAC address for which information is
11324 * requested. For STA mode this is not required as the info always correspond
11325 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011326 *
11327 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11328 * Optionally used in response, u32 attribute, contains a bitmap of different
11329 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11330 *
11331 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11332 * Optionally used in response, u32 attribute, possible values are defined in
11333 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11334 * Guard interval used by the station.
11335 *
11336 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11337 * Optionally used in response, u32 attribute, used in AP mode only.
11338 * Value indicates the number of data frames received from station with retry
11339 * bit set to 1 in FC.
11340 *
11341 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11342 * Optionally used in response, u32 attribute, used in AP mode only.
11343 * Counter for number of data frames with broadcast or multicast address in
11344 * the destination address received from the station.
11345 *
11346 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11347 * Optionally used in response, u32 attribute, used in both STA and AP modes.
11348 * Value indicates the number of data frames successfully transmitted only
11349 * after retrying the packets and for which the TX status has been updated
11350 * back to host from target.
11351 *
11352 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070011353 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011354 * Value indicates the number of data frames not transmitted successfully even
11355 * after retrying the packets for the number of times equal to the total number
11356 * of retries allowed for that packet and for which the TX status has been
11357 * updated back to host from target.
11358 *
11359 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11360 * Optionally used in response, u32 attribute, used in AP mode only.
11361 * Counter in the target for the number of data frames successfully transmitted
11362 * to the station.
11363 *
11364 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11365 * Optionally used in response, u32 attribute, used in AP mode only.
11366 * Value indicates the number of data frames successfully transmitted only
11367 * after retrying the packets.
11368 *
11369 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070011370 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011371 * Value indicates the number of data frames not transmitted successfully even
11372 * after retrying the packets for the number of times equal to the total number
11373 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070011374 *
11375 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11376 * the STA mode only. Represent the number of probe requests sent by the STA
11377 * while attempting to roam on missing certain number of beacons from the
11378 * connected AP. If queried in the disconnected state, this represents the
11379 * count for the last connected state.
11380 *
11381 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11382 * the STA mode. Represent the number of probe responses received by the station
11383 * while attempting to roam on missing certain number of beacons from the
11384 * connected AP. When queried in the disconnected state, this represents the
11385 * count when in last connected state.
11386 *
11387 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11388 * STA mode only. Represents the total number of frames sent out by STA
11389 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11390 * only for the connect session. Represents the count of last connected session,
11391 * when queried in the disconnected state.
11392 *
11393 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11394 * Total number of RTS sent out by the STA. This data is maintained per connect
11395 * session. Represents the count of last connected session, when queried in the
11396 * disconnected state.
11397 *
11398 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11399 * STA mode.Represent the number of RTS transmission failure that reach retry
11400 * limit. This data is maintained per connect session. Represents the count of
11401 * last connected session, when queried in the disconnected state.
11402 *
11403 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11404 * the STA mode. Represent the total number of non aggregated frames transmitted
11405 * by the STA. This data is maintained per connect session. Represents the count
11406 * of last connected session, when queried in the disconnected state.
11407 *
11408 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11409 * STA mode. Represent the total number of aggregated frames transmitted by the
11410 * STA. This data is maintained per connect session. Represents the count of
11411 * last connected session, when queried in the disconnected state.
11412 *
11413 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11414 * the STA mode. Represents the number of received frames with a good PLCP. This
11415 * data is maintained per connect session. Represents the count of last
11416 * connected session, when queried in the disconnected state.
11417 *
11418 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11419 * used in the STA mode. Represents the number of occasions that no valid
11420 * delimiter is detected by A-MPDU parser. This data is maintained per connect
11421 * session. Represents the count of last connected session, when queried in the
11422 * disconnected state.
11423 *
11424 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11425 * STA mode. Represents the number of frames for which CRC check failed in the
11426 * MAC. This data is maintained per connect session. Represents the count of
11427 * last connected session, when queried in the disconnected state.
11428 *
11429 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11430 * STA mode. Represents the number of unicast ACKs received with good FCS. This
11431 * data is maintained per connect session. Represents the count of last
11432 * connected session, when queried in the disconnected state.
11433 *
11434 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11435 * mode. Represents the number of received Block Acks. This data is maintained
11436 * per connect session. Represents the count of last connected session, when
11437 * queried in the disconnected state.
11438 *
11439 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11440 * mode. Represents the number of beacons received from the connected BSS. This
11441 * data is maintained per connect session. Represents the count of last
11442 * connected session, when queried in the disconnected state.
11443 *
11444 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11445 * STA mode. Represents the number of beacons received by the other BSS when in
11446 * connected state (through the probes done by the STA). This data is maintained
11447 * per connect session. Represents the count of last connected session, when
11448 * queried in the disconnected state.
11449 *
11450 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11451 * the STA mode. Represents the number of received DATA frames with good FCS and
11452 * matching Receiver Address when in connected state. This data is maintained
11453 * per connect session. Represents the count of last connected session, when
11454 * queried in the disconnected state.
11455 *
11456 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11457 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11458 * when in the connected state. This data is maintained per connect session.
11459 * Represents the count of last connected session, when queried in the
11460 * disconnected state.
11461 *
11462 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11463 * STA mode. This represents the target power in dBm for the transmissions done
11464 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11465 * connect session. Represents the count of last connected session, when
11466 * queried in the disconnected state.
11467 *
11468 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11469 * STA mode. This represents the Target power in dBm for transmissions done to
11470 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11471 * session. Represents the count of last connected session, when queried in the
11472 * disconnected state.
11473 *
11474 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11475 * STA mode. This represents the Target power in dBm for transmissions done to
11476 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11477 * Represents the count of last connected session, when queried in the
11478 * disconnected state.
11479 *
11480 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11481 * STA mode. This represents the Target power in dBm for transmissions done to
11482 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11483 * session. Represents the count of last connected session, when queried in
11484 * the disconnected state.
11485 *
11486 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11487 * STA mode. This represents the Target power in dBm for for transmissions done
11488 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11489 * Represents the count of last connected session, when queried in the
11490 * disconnected state.
11491 *
11492 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11493 * in the STA mode. This represents the Nested attribute representing the
11494 * overflow counts of each receive buffer allocated to the hardware during the
11495 * STA's connection. The number of hw buffers might vary for each WLAN
11496 * solution and hence this attribute represents the nested array of all such
11497 * HW buffer count. This data is maintained per connect session. Represents
11498 * the count of last connected session, when queried in the disconnected state.
11499 *
11500 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11501 * allowed as per the regulatory requirements for the current or last connected
11502 * session. Used in the STA mode.
11503 *
11504 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11505 * (dBm) used by the station in its latest unicast frame while communicating
11506 * to the AP in the connected state. When queried in the disconnected state,
11507 * this represents the TX power used by the STA with last AP communication
11508 * when in connected state.
11509 *
11510 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11511 * level used to adjust the RX sensitivity. Represents the current ANI level
11512 * when queried in the connected state. When queried in the disconnected
11513 * state, this corresponds to the latest ANI level at the instance of
11514 * disconnection.
11515 *
11516 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
11517 * the raw information elements from Beacon frames. Represents the Beacon frames
11518 * of the current BSS in the connected state. When queried in the disconnected
11519 * state, these IEs correspond to the last connected BSSID.
11520 *
11521 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
11522 * containing the raw information elements from Probe Response frames.
11523 * Represents the Probe Response frames of the current BSS in the connected
11524 * state. When queried in the disconnected state, these IEs correspond to the
11525 * last connected BSSID.
11526 *
11527 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
11528 * disconnect reason for the last disconnection if the disconnection is
11529 * triggered from the host driver. The values are referred from
11530 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070011531 *
11532 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11533 * only. This represents the number of group addressed robust management frames
11534 * received from this station with an invalid MIC or a missing MME when PMF is
11535 * enabled.
11536 *
11537 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11538 * only. This represents the number of group addressed robust management frames
11539 * received from this station with the packet number less than or equal to the
11540 * last received packet number when PMF is enabled.
11541 *
11542 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11543 * mode only. This represents the number of Beacon frames received from this
11544 * station with an invalid MIC or a missing MME when beacon protection is
11545 * enabled.
11546 *
11547 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11548 * only. This represents number of Beacon frames received from this station with
11549 * the packet number less than or equal to the last received packet number when
11550 * beacon protection is enabled.
11551 *
11552 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11553 * STA mode only. The driver uses this attribute to populate the connection
11554 * failure reason codes and the values are defined in
11555 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11556 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11557 * a connection failure indication from the driver. The driver shall not
11558 * include this attribute in response to the
11559 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11560 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080011561 *
11562 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11563 * used by the station in its last TX frame while communicating to the AP in the
11564 * connected state. When queried in the disconnected state, this represents the
11565 * rate used by the STA in the last TX frame to the AP when it was connected.
11566 * This attribute is used for STA mode only.
11567 *
11568 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11569 * This represents the rate index used by the STA for the last TX frame to the
11570 * AP. When queried in the disconnected state, this gives the last RIX used by
11571 * the STA in the last TX frame to the AP when it was connected.
11572 *
11573 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11574 * mode only. This represents the number of times the STA TSF goes out of sync
11575 * from the AP after the connection. If queried in the disconnected state, this
11576 * gives the count of TSF out of sync for the last connection.
11577 *
11578 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11579 * mode only. This represents the roam trigger reason for the last roaming
11580 * attempted by the firmware. This can be queried either in connected state or
11581 * disconnected state. Each bit of this attribute represents the different
11582 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11583 *
11584 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11585 * only. This represents the roam fail reason for the last failed roaming
11586 * attempt by the firmware. Different roam failure reason codes are specified
11587 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11588 * connected state or disconnected state.
11589 *
11590 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11591 * STA mode only. This represents the roam invoke fail reason for the last
11592 * failed roam invoke. Different roam invoke failure reason codes
11593 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11594 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011595 *
11596 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11597 * This represents the average congestion duration of uplink frames in MAC
11598 * queue in unit of ms. This can be queried either in connected state or
11599 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070011600 *
11601 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
11602 * values, used in AP mode. This represents the MPDU packet count per MCS
11603 * rate value of TX packets. Every index of this nested attribute corresponds
11604 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
11605 * queried in connected state.
11606 *
11607 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
11608 * values, used in AP mode. This represents the MPDU packet count per MCS
11609 * rate value of RX packets. Every index of this nested attribute corresponds
11610 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
11611 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070011612 *
11613 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
11614 * 64-bit alignment.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011615 */
11616enum qca_wlan_vendor_attr_get_sta_info {
11617 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11618 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11619 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11620 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11621 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11622 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11623 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11624 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11625 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11626 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11627 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070011628 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11629 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11630 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11631 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11632 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11633 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11634 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11635 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11636 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11637 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11638 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11639 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11640 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11641 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11642 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11643 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11644 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11645 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11646 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11647 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11648 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11649 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11650 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11651 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11652 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11653 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
11654 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
11655 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070011656 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11657 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11658 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11659 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11660 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080011661 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11662 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11663 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11664 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11665 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11666 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011667 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070011668 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11669 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070011670 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011671
11672 /* keep last */
11673 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11674 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11675 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11676};
11677
Hai Shalomfdcde762020-04-02 11:19:20 -070011678/**
11679 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
11680 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
11681 *
11682 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
11683 * Used in STA mode. This attribute represents the list of channel center
11684 * frequencies in MHz (u32) the station has learnt during the last connection
11685 * or roaming attempt. This information shall not signify the channels for
11686 * an explicit scan request from the user space. Host drivers can update this
11687 * information to the user space in both connected and disconnected state.
11688 * In the disconnected state this information shall signify the channels
11689 * scanned in the last connection/roam attempt that lead to the disconnection.
11690 */
11691enum qca_wlan_vendor_attr_update_sta_info {
11692 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
11693 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
11694
11695 /* keep last */
11696 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
11697 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
11698 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
11699};
11700
11701/**
11702 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11703 * Used when the driver triggers the STA to disconnect from the AP.
11704 *
11705 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11706 * disconnection with the AP due to unspecified reasons.
11707 *
11708 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11709 * disconnection with the AP due to a roaming failure. This roaming is triggered
11710 * internally (host driver/firmware).
11711 *
11712 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11713 * the AP when the user/external triggered roaming fails.
11714 *
11715 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11716 * by the host driver whenever gateway reachability failure is detected and the
11717 * driver disconnects with AP.
11718 *
11719 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11720 * the AP on a channel switch announcement from it with an unsupported channel.
11721 *
11722 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11723 * with indoor channels disabled and if the STA is connected on one of these
11724 * disabled channels, the host driver disconnected the STA with this reason
11725 * code.
11726 *
11727 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11728 * explicit request from the user to disable the current operating channel.
11729 *
11730 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11731 * the internal host driver/firmware recovery.
11732 *
11733 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11734 * a timeout for the key installations from the user space.
11735 *
11736 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11737 * STA on a band change request from the user space to a different band from the
11738 * current operation channel/band.
11739 *
11740 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11741 * interface down trigger from the user space.
11742 *
11743 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11744 * STA on getting continuous transmission failures for multiple Data frames.
11745 *
11746 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11747 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11748 * represents inactivity from AP on such transmissions.
11749
11750 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11751 * disconnection when SA Query times out (AP does not respond to SA Query).
11752 *
11753 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11754 * STA on missing the beacons continuously from the AP.
11755 *
11756 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11757 * able to move to the channel mentioned by the AP in CSA.
11758 *
11759 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11760 */
11761enum qca_disconnect_reason_codes {
11762 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11763 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11764 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11765 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11766 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11767 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11768 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11769 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11770 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11771 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11772 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11773 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11774 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11775 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11776 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11777 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11778 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11779};
11780
11781/**
11782 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11783 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11784 *
11785 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11786 * This attribute represents the driver specific reason codes (local
11787 * driver/firmware initiated reasons for disconnection) defined
11788 * in enum qca_disconnect_reason_codes.
11789 */
11790enum qca_wlan_vendor_attr_driver_disconnect_reason {
11791 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11792 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11793
11794 /* keep last */
11795 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11796 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11797 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11798};
11799
Hai Shalom899fcc72020-10-19 14:38:18 -070011800/**
11801 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11802 *
11803 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11804 */
11805enum qca_wlan_tspec_operation {
11806 QCA_WLAN_TSPEC_ADD = 0,
11807 QCA_WLAN_TSPEC_DEL = 1,
11808 QCA_WLAN_TSPEC_GET = 2,
11809};
11810
11811/**
11812 * enum qca_wlan_tspec_direction - Direction in TSPEC
11813 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11814 *
11815 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11816 */
11817enum qca_wlan_tspec_direction {
11818 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11819 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11820 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11821 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11822};
11823
11824/**
11825 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11826 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11827 *
11828 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11829 */
11830enum qca_wlan_tspec_ack_policy {
11831 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11832 QCA_WLAN_TSPEC_NO_ACK = 1,
11833 /* Reserved */
11834 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11835};
11836
11837/**
11838 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11839 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11840 *
11841 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11842 * u8 attribute. Specify the TSPEC operation of this request. Possible values
11843 * are defined in enum qca_wlan_tspec_operation.
11844 * Mandatory attribute for all kinds of config TSPEC requests.
11845 *
11846 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11847 * u8 attribute. TS ID. Possible values are 0-7.
11848 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11849 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11850 *
11851 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11852 * u8 attribute. Direction of data carried by the TS. Possible values are
11853 * defined in enum qca_wlan_tspec_direction.
11854 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11855 *
11856 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11857 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11858 * with the TS. set - enabled, not set - disabled.
11859 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11860 *
11861 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11862 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11863 * belonging to this TS. Possible values are 0-7.
11864 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11865 *
11866 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11867 * u8 attribute. Indicate whether MAC acknowledgements are required for
11868 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11869 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11870 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11871 *
11872 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11873 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11874 * belonging to this TS.
11875 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11876 *
11877 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11878 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11879 * belonging to this TS.
11880 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11881 *
11882 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11883 * u32 attribute. Specify the minimum interval in microseconds between the
11884 * start of two successive SPs.
11885 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11886 *
11887 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11888 * u32 attribute. Specify the maximum interval in microseconds between the
11889 * start of two successive SPs.
11890 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11891 *
11892 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11893 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11894 * without arrival or transfer of an MPDU belonging to the TS before this TS
11895 * is deleted by the MAC entity at the HC.
11896 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11897 *
11898 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11899 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11900 * without arrival or transfer of an MSDU belonging to the TS before the
11901 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11902 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11903 * interval is always less than or equal to the inactivity interval.
11904 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11905 *
11906 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11907 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11908 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11909 * bounds of this TSPEC.
11910 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11911 *
11912 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11913 * u32 attribute. Indicate the average data rate in bps specified at the MAC
11914 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11915 * bounds of this TSPEC.
11916 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11917 *
11918 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11919 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11920 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11921 * the bounds of this TSPEC.
11922 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11923 *
11924 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11925 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11926 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11927 * value of 0 indicates that there are no bursts.
11928 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11929 *
11930 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11931 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11932 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11933 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11934 *
11935 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11936 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11937 * and above the stated application rates required to transport an MSDU/A-MSDU
11938 * belonging to the TS in this TSPEC.
11939 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11940 */
11941enum qca_wlan_vendor_attr_config_tspec {
11942 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11943 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11944 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11945 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11946 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11947 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11948 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11949 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11950 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11951 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11952 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11953 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11954 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11955 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11956 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11957 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11958 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11959 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11960 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11961
11962 /* keep last */
11963 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11964 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11965 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11966};
11967
11968/**
11969 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11970 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11971 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11972 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11973 * frame
11974 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11975 * Request frame.
11976 */
11977enum qca_wlan_vendor_oci_override_frame_type {
11978 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11979 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11980 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11981 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11982};
11983
11984/**
11985 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11986 * OCI override request. These attributes are used inside nested attribute
11987 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11988 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11989 *
11990 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11991 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11992 * attribute to specify the frame type in which the OCI is to be overridden.
11993 *
11994 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11995 * OCI frequency (in MHz) to override in the specified frame type.
11996 */
11997enum qca_wlan_vendor_attr_oci_override {
11998 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11999 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12000 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12001
12002 /* keep last */
12003 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12004 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12005 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12006};
12007
12008/**
12009 * enum qca_wlan_medium_assess_type - Type of medium assess request
12010 *
12011 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12012 */
12013enum qca_wlan_medium_assess_type {
12014 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12015 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12016};
12017
12018/**
12019 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12020 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12021 *
12022 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12023 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12024 * Specify the type of medium assess request and indicate its type in response.
12025 * Possible values are defined in enum qca_wlan_medium_assess_type.
12026 *
12027 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12028 * u32 attribute. Mandatory in CCA request.
12029 * Specify the assessment period in terms of seconds. Assessment result will be
12030 * sent as the response to the CCA request after the assessment period.
12031 *
12032 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12033 * u32 attribute. Mandatory in response to CCA request.
12034 * Total timer tick count of the assessment cycle.
12035 *
12036 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12037 * u32 attribute. Mandatory in response to CCA request.
12038 * Timer tick count of idle time in the assessment cycle.
12039 *
12040 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12041 * u32 attribute. Mandatory in response to CCA request.
12042 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12043 *
12044 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12045 * u32 attribute. Mandatory in response to CCA request.
12046 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12047 *
12048 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12049 * s32 attribute. Mandatory in response to CCA request.
12050 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12051 *
12052 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12053 * s32 attribute. Mandatory in response to CCA request.
12054 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12055 *
12056 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12057 * u8 attribute. Mandatory in congestion report request.
12058 * 1-enable 0-disable.
12059 *
12060 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12061 * u8 attribute. Mandatory in congestion report enable request and will be
12062 * ignored if present in congestion report disable request. Possible values are
12063 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12064 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12065 * congestion percentage reaches the configured threshold.
12066 *
12067 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12068 * u8 attribute. Optional in congestion report enable request and will be
12069 * ignored if present in congestion report disable request.
12070 * Specify the interval of congestion report event in terms of seconds. Possible
12071 * values are 1-255. Default value 1 will be used if this attribute is omitted
12072 * or using invalid values.
12073 *
12074 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12075 * u8 attribute. Mandatory in congestion report event.
12076 * Indicate the actual congestion percentage. Possible values are 0-100.
12077 */
12078enum qca_wlan_vendor_attr_medium_assess {
12079 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12080 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12081
12082 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12083 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12084 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12085 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12086 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12087 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12088 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12089
12090 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12091 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12092 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12093 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12094
12095 /* keep last */
12096 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12097 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12098 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12099};
12100
12101/**
12102 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12103 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12104 *
12105 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12106 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12107 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12108 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012109 *
12110 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12111 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
12112 *
12113 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12114 * u8 attribute, required. Indicates group id of Tx VDEV.
12115 *
12116 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12117 * Nested attribute. This attribute shall be used by the driver to send
12118 * group information. The attributes defined in enum
12119 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12120 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070012121 */
12122enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12123 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12124 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012125 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12126 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12127 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070012128
12129 /* keep last */
12130 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12131 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12132 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12133};
12134
12135/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080012136 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12137 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12138 *
12139 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12140 * u32 attribute, required. Contains interface index.
12141 *
12142 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12143 * u8 attribute, required. 0 - means vdev is in down state.
12144 * 1 - means vdev is in up state.
12145 */
12146enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12147 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12148 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12149 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12150
12151 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12152 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12153 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12154};
12155
12156/**
12157 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12158 *
12159 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12160 * STA interface has to be given while selecting the connection policies
12161 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12162 * An interface is set as primary through the attribute
12163 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12164 * applicable if the primary interface has not been set earlier.
12165 *
12166 * The intention is not to downgrade the primary STA performance, such as:
12167 * - Do not reduce the number of TX/RX chains of primary connection.
12168 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12169 * chains.
12170 * - If using MCC, should set the MCC duty cycle of the primary connection to
12171 * be higher than the secondary connection.
12172 *
12173 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12174 * subsequent STA connection shall be chosen to balance with the existing
12175 * concurrent STA's performance.
12176 * Such as
12177 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12178 * capability.
12179 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12180 * to the secondary.
12181 * - Prefer BSSID candidates which will help provide the best "overall"
12182 * performance for all the STA connections.
12183 */
12184enum qca_wlan_concurrent_sta_policy_config {
12185 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12186 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12187};
12188
12189/**
Sunil8cd6f4d2022-06-28 18:40:46 +000012190 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080012191 *
Sunil8cd6f4d2022-06-28 18:40:46 +000012192 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12193 * interface.
12194 *
12195 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12196 * to meet gaming audio latency requirements.
12197 *
12198 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12199 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi77d572f2023-01-17 23:58:31 +000012200 *
12201 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12202 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000012203 */
12204enum qca_wlan_concurrent_ap_policy_config {
12205 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12206 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12207 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000012208 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000012209};
12210
12211/**
12212 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12213 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12214 *
12215 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012216 * u8 attribute. Configures the concurrent STA policy configuration.
12217 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000012218
12219 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12220 * u8 attribute. Configures the concurrent AP policy configuration.
12221 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012222 */
Sunil8cd6f4d2022-06-28 18:40:46 +000012223enum qca_wlan_vendor_attr_concurrent_policy {
12224 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12225 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12226 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012227
12228 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000012229 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12230 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12231 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012232
12233};
12234
Sunil8cd6f4d2022-06-28 18:40:46 +000012235/* Compatibility defines for previously used enum
12236 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12237 * in any new implementation.
12238 */
12239#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12240 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12241#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12242 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12243#define qca_wlan_vendor_attr_concurrent_sta_policy \
12244 qca_wlan_vendor_attr_concurrent_policy
12245
Hai Shaloma20dcd72022-02-04 13:43:00 -080012246/**
Hai Shalom899fcc72020-10-19 14:38:18 -070012247 * enum qca_sta_connect_fail_reason_codes - Defines values carried
12248 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12249 * attribute.
12250 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
12251 * for unicast Probe Request frame.
12252 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12253 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12254 * auth request.
12255 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12256 * received from AP.
12257 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
12258 * Association Request frame.
12259 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12260 * Association Request frame.
12261 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
12262 * frame is not received from AP.
12263 */
12264enum qca_sta_connect_fail_reason_codes {
12265 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12266 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12267 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12268 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12269 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12270 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12271 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12272};
12273
Hai Shaloma20dcd72022-02-04 13:43:00 -080012274/**
12275 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12276 * filters defined in this enum are used in attribute
12277 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12278 *
12279 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12280 * shall filter the channels which are not usable because of coexistence with
12281 * cellular radio.
12282 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12283 * shall filter the channels which are not usable because of existing active
12284 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12285 *
12286 */
12287enum qca_wlan_vendor_usable_channels_filter {
12288 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12289 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12290};
12291
12292/**
12293 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12294 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12295 *
12296 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12297 * u32 attribute, required. Indicates the center frequency of the primary
12298 * channel in MHz.
12299 *
12300 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12301 * u32 attribute. Indicates the center frequency of the primary segment of the
12302 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12303 * 160 MHz, and 320 MHz channels.
12304 *
12305 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12306 * u32 attribute. Indicates the center frequency of the secondary segment of
12307 * 80+80 channel in MHz. This attribute is required only when
12308 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12309 *
12310 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12311 * u32 attribute, required. Indicates the bandwidth of the channel, possible
12312 * values are defined in enum nl80211_chan_width.
12313 *
12314 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12315 * u32 attribute, required. Indicates all the interface types for which this
12316 * channel is usable. This attribute encapsulates bitmasks of interface types
12317 * defined in enum nl80211_iftype.
12318 *
12319 */
12320enum qca_wlan_vendor_attr_chan_info {
12321 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12322 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12323 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12324 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12325 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12326 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12327
12328 /* keep last */
12329 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12330 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12331 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12332};
12333
12334/**
12335 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12336 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12337 *
12338 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12339 * u32 attribute. Indicates the bands from which the channels should be reported
12340 * in response. This attribute encapsulates bit masks of bands defined in enum
12341 * nl80211_band. Optional attribute, if not present in the request the driver
12342 * shall return channels from all supported bands.
12343 *
12344 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12345 * u32 attribute. Indicates all the interface types for which the usable
12346 * channels information is requested. This attribute encapsulates bitmasks of
12347 * interface types defined in enum nl80211_iftype. Optional attribute, if not
12348 * present in the request the driver shall send information of all supported
12349 * interface modes.
12350 *
12351 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12352 * u32 attribute. This attribute carries information of all filters that shall
12353 * be applied while populating usable channels information by the driver. This
12354 * attribute carries bit masks of different filters defined in enum
12355 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12356 * in the request the driver shall send information of channels without applying
12357 * any of the filters that can be configured through this attribute.
12358 *
12359 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12360 * Nested attribute. This attribute shall be used by the driver to send
12361 * usability information of each channel. The attributes defined in enum
12362 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12363 */
12364enum qca_wlan_vendor_attr_usable_channels {
12365 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12366 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12367 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12368 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12369 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12370
12371 /* keep last */
12372 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12373 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12374 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12375};
12376
12377/**
12378 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12379 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12380 *
12381 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12382 * the list of radar history entries.
12383 * Each entry contains freq, timestamp, and radar signal detect flag.
12384 * The driver shall add an entry when CAC has finished, or radar signal
12385 * has been detected post AP beaconing. The driver shall maintain at least
12386 * 8 entries in order to save CAC result for a 160 MHz channel.
12387 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12388 * Channel frequency in MHz.
12389 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12390 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12391 * or radar detection.
12392 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12393 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070012394 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
12395 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012396 */
12397enum qca_wlan_vendor_attr_radar_history {
12398 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12399
12400 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12401 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12402 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12403 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070012404 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012405
12406 /* keep last */
12407 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12408 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12409 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12410};
12411
12412/**
12413 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12414 *
12415 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12416 * target exited MCC state and cleared the quota information. In the
12417 * command it clears MCC quota setting and restores adaptive scheduling.
12418 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12419 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070012420 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012421 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12422 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070012423 * This quota type is only present in event.
12424 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
12425 * by the target for low latency.
12426 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012427 */
12428enum qca_wlan_vendor_mcc_quota_type {
12429 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12430 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12431 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070012432 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012433};
12434
12435/**
12436 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12437 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12438 * quota information or as a command to set the required MCC quota for an
12439 * interface.
12440 *
12441 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12442 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12443 * In a command this specifies the MCC quota type to be set for the interface.
12444 * In an event this provides the current quota type in force.
12445 * This is required in a command and an event.
12446 *
12447 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12448 * the list of channel quota entries.
12449 * In an event each entry contains the frequency and respective time quota for
12450 * all the MCC interfaces.
12451 * In a command it specifies the interface index and respective time quota.
12452 * In a command only one entry (ifindex, quota pair) may be specified.
12453 *
12454 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12455 * Channel frequency in MHz. This is present only in an event.
12456 *
12457 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12458 * Channel time quota expressed as percentage.
12459 * This is present in an event and a command.
12460 * In an command, the user shall specify the quota to be allocated for the
12461 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12462 * In an event this provides the existing quota for the channel.
12463 *
12464 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12465 * Specifies the interface index (netdev) for which the corresponding
12466 * configurations are applied. This is required in a command only. Only one
12467 * interface index may be specified. If not specified, the configuration is
12468 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070012469 *
12470 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
12471 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
12472 * low latency mode. The firmware will do optimization for low
12473 * latency in Multi-Channel concurrency state if enabled. And all existing
12474 * user quota setting will be overwritten by the target.
12475 * 0 - disable(default), 1 - enable.
12476 * It is only present in a command with quota type of
12477 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012478 */
12479enum qca_wlan_vendor_attr_mcc_quota {
12480 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12481 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12482 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12483 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12484 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12485 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070012486 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012487
12488 /* keep last */
12489 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12490 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12491 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12492};
12493
12494/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000012495 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
12496 * are used by the attribute
12497 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
12498 *
12499 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
12500 * invoke roam.
12501 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
12502 * detection failed when the roam trigger.
12503 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
12504 */
12505
12506enum qca_wlan_roam_stats_invoke_reason {
12507 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
12508 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
12509 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
12510};
12511
12512/**
12513 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
12514 * values are used by the attribute
12515 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
12516 *
12517 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
12518 * roam by kickout.
12519 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
12520 * trigger by kickout.
12521 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
12522 * roam trigger by kickout.
12523 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
12524 * roam trigger by kickout.
12525 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
12526 * disappeared, and all TX is failing when roam trigger by kickout.
12527 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
12528 * timeout when roam trigger by kickout.
12529 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
12530 * peer has roamed to a repeater.
12531 */
12532enum qca_wlan_roam_stats_tx_failures_reason {
12533 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
12534 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
12535 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
12536 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
12537 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
12538 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
12539 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
12540};
12541
12542/**
12543 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
12544 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
12545 *
12546 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
12547 * detailed reason for roam scan being aborted.
12548 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
12549 * started due to high data RSSI during LOW-RSSI roaming.
12550 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
12551 * started due to good link speed during LOW-RSSI roaming.
12552 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
12553 * due to high data RSSI during background roaming.
12554 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
12555 * started due to high beacon RSSI during background roaming
12556 */
12557enum qca_wlan_roam_stats_abort_reason {
12558 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
12559 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
12560 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
12561 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
12562 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
12563};
12564
12565/**
Sunil Ravi036cec52023-03-29 11:35:17 -070012566 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
12567 * These values are used by the attribute
12568 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
12569 *
12570 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
12571 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
12572 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
12573 * This is generally used in BTM events to indicate BTM frame exchange logs.
12574 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
12575 * from 2.4 GHz to 5 GHz or 6 GHz
12576 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
12577 * 5 GHz to 6 GHz
12578 */
12579enum qca_wlan_roam_stats_scan_type {
12580 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
12581 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
12582 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
12583 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
12584 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
12585};
12586
12587/**
12588 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
12589 * These values are used by the attribute
12590 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
12591 *
12592 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
12593 * detailed roam scan type.
12594 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
12595 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
12596 */
12597enum qca_wlan_roam_stats_scan_dwell_type {
12598 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
12599 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
12600 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
12601};
12602
12603/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000012604 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
12605 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
12606 */
12607enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
12608 /* 32-bit unsigned value to indicate center frequency of the primary
12609 * channel in MHz for each roam scan channel.
12610 */
12611 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
12612 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070012613 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000012614 */
12615 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
12616 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
12617 * for each roam scan channel.
12618 */
12619 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
12620
12621 /* keep last */
12622 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
12623 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
12624 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
12625};
12626
12627/**
12628 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
12629 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
12630 *
12631 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
12632 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
12633 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
12634 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
12635 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
12636 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
12637 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
12638 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
12639 */
12640enum qca_wlan_roam_stats_frame_subtype {
12641 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
12642 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
12643 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
12644 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
12645 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
12646 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
12647 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
12648 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
12649};
12650
12651/**
12652 * enum roam_frame_status - Specifies the valid values the vendor roam frame
12653 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
12654 *
12655 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
12656 * sent or received successfully.
12657 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
12658 * receiving failed.
12659 */
12660enum qca_wlan_roam_stats_frame_status {
12661 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
12662 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
12663};
12664
12665/**
12666 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
12667 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
12668 */
12669enum qca_wlan_vendor_attr_roam_stats_frame_info {
12670 /* 8-bit unsigned value to indicate the frame subtype during
12671 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
12672 */
12673 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
12674 /* 8-bit unsigned value to indicate the frame is successful or failed
12675 * during roaming, one of the values in
12676 * qca_wlan_roam_stats_frame_status.
12677 */
12678 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
12679 /* 64-bit unsigned value to indicate the timestamp for frame of
12680 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
12681 * when sent or received during roaming, timestamp in milliseconds
12682 * from system boot.
12683 */
12684 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070012685 /* Attribute used for padding for 64-bit alignment */
12686 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi77d572f2023-01-17 23:58:31 +000012687
12688 /* keep last */
12689 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
12690 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
12691 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
12692};
12693
12694/**
12695 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
12696 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
12697 */
12698enum qca_wlan_vendor_attr_roam_stats_info {
12699 /* 64-bit unsigned value to indicate the timestamp when roam was
12700 * triggered by the firmware, timestamp in milliseconds from system
12701 * boot.
12702 */
12703 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
12704 /* 32-bit unsigned value to indicate the roam trigger reason for the
12705 * last roaming attempted by the firmware. This can be queried either
12706 * in a connected state or disconnected state. The values of this
12707 * attribute represent the roam trigger reason codes, which
12708 * are defined in enum qca_roam_reason.
12709 */
12710 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
12711 /* 8-bit unsigned value to indicate percentage of packets for which
12712 * the RX rate is lower than the RX rate threshold in total RX packets,
12713 * used for roaming trigger by per.
12714 */
12715 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
12716 /* 8-bit unsigned value to indicate percentage of packets for which
12717 * the TX rate is lower than TX rate threshold in total TX packets,
12718 * used for roaming trigger by per.
12719 */
12720 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
12721 /* 32-bit unsigned value to indicate final beacon miss count for
12722 * trigger reason of beacon miss.
12723 */
12724 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
12725 /* 32-bit unsigned value to indicate consecutive beacon miss count
12726 * for trigger reason of beacon miss.
12727 */
12728 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
12729 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
12730 * reason of beacon miss, 0 - success, 1 - fail.
12731 * If QOS-NULL TX status is successful, beacon miss final count and
12732 * consecutive beacon miss count will be reset to zero, and roam will
12733 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
12734 * count and consecutive beacon miss count continue to calculate until
12735 * roaming trigger by beacon miss.
12736 */
12737 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070012738 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000012739 * for trigger reason of poor RSSI.
12740 */
12741 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070012742 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000012743 * for trigger reason of poor RSSI.
12744 */
12745 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
12746 /* 8-bit unsigned value to indicate RX link speed status
12747 * for trigger reason of poor RSSI, 0 - good link speed,
12748 * 1 - bad link speed.
12749 */
12750 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070012751 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000012752 * for trigger reason of better RSSI.
12753 */
12754 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070012755 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000012756 * for trigger reason of better RSSI.
12757 */
12758 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
12759 /* 32-bit unsigned value to indicate RX throughput in bytes per second
12760 * for trigger reason of congestion.
12761 */
12762 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
12763 /* 32-bit unsigned value to indicate TX throughput in bytes per second
12764 * for trigger reason of congestion.
12765 */
12766 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
12767 /* 8-bit unsigned value to indicate roamable AP count
12768 * for trigger reason of congestion.
12769 */
12770 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
12771 /* 8-bit unsigned value to indicate invoke reason, one of the values
12772 * defined in qca_wlan_roam_stats_invoke_reason.
12773 */
12774 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
12775 /* 8-bit unsigned value to indicate request mode for trigger reason
12776 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
12777 */
12778 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
12779 /* 32-bit unsigned value to indicate disassociate time in milliseconds
12780 * for trigger reason of BTM.
12781 */
12782 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
12783 /* 32-bit unsigned value to indicate preferred candidate list valid
12784 * interval in milliseconds for trigger reason of BTM.
12785 */
12786 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
12787 /* 8-bit unsigned value to indicate the number of preferred
12788 * candidates for trigger reason of BTM.
12789 */
12790 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
12791 /* 8-bit unsigned value to indicate response status for trigger
12792 * reason of BTM, values are defined in IEEE Std 802.11-2020,
12793 * Table 9-428 (BTM status code definitions).
12794 */
12795 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
12796 /* 32-bit unsigned value to indicate BSS termination timeout value
12797 * in milliseconds for trigger reason of BTM.
12798 */
12799 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
12800 /* 32-bit unsigned value to indicate MBO associate retry timeout
12801 * value in milliseconds for trigger reason of BTM.
12802 */
12803 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
12804 /* 8-bit unsigned value to indicate dialog token number
12805 * for trigger reason of BTM.
12806 */
12807 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
12808 /* 8-bit unsigned value to indicate percentage of connected AP
12809 * channel congestion utilization for trigger reason of BSS load.
12810 */
12811 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
12812 /* 8-bit unsigned value to indicate disconnection type
12813 * for trigger reason of disconnection. 1 - Deauthentication,
12814 * 2 - Disassociation.
12815 */
12816 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
12817 /* 16-bit unsigned value to indicate deauthentication or disassociation
12818 * reason for trigger reason of disconnection, values are defined
12819 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
12820 */
12821 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
12822 /* 32-bit unsigned value to indicate milliseconds of roam scan
12823 * periodicity when needing to roam to find a better AP for trigger
12824 * reason of periodic timer.
12825 */
12826 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070012827 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000012828 * trigger reason of background scan.
12829 */
12830 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070012831 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000012832 * of background scan.
12833 */
12834 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070012835 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000012836 * for trigger reason of background scan.
12837 */
12838 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
12839 /* 32-bit unsigned value to indicate consecutive TX failure threshold
12840 * for trigger reason of TX failures.
12841 */
12842 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
12843 /* 8-bit unsigned value to indicate TX failure reason for trigger
12844 * reason of TX failures, one of the values defined in
12845 * qca_wlan_roam_stats_tx_failures_reason.
12846 */
12847 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
12848 /* 8-bit unsigned value to indicate detail abort reason. One of the
12849 * values in enum qca_wlan_roam_stats_abort_reason.
12850 */
12851 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070012852 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000012853 * roam scan.
12854 */
12855 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070012856 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000012857 * aborting the roam scan.
12858 */
12859 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
12860 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
12861 * speed status when aborting the roam scan.
12862 * 0 - good link speed, 1 - bad link speed
12863 */
12864 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
12865 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070012866 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000012867 */
12868 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
12869 /* 8-bit unsigned value to indicate roaming result, used in STA mode
12870 * only.
12871 * 0-Roaming is successful, 1-Roaming is failed
12872 */
12873 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
12874 /* 8-bit unsigned value to indicate the roam fail reason for the
12875 * last failed roaming attempt by the firmware. Different roam failure
12876 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
12877 * This can be queried either in connected state or disconnected state.
12878 */
12879 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
12880 /* Nested attribute. Indicate roam scan info for each channel, the
12881 * attributes defined in enum
12882 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
12883 * this attribute.
12884 */
12885 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
12886 /* 32-bit unsigned value to indicate total scan time during roam scan
12887 * all channels, time in milliseconds.
12888 */
12889 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
12890 /* Nested attribute. This attribute shall be used by the driver to
12891 * send roam information of each subtype. The attributes defined in
12892 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
12893 * this attribute.
12894 */
12895 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070012896 /* Attribute used for padding for 64-bit alignment */
12897 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi77d572f2023-01-17 23:58:31 +000012898
12899 /* keep last */
12900 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
12901 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
12902 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
12903};
12904
12905/**
12906 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
12907 * report cached roam info from the driver to user space, enum values are used
12908 * for netlink attributes sent with the
12909 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
12910 */
12911enum qca_wlan_vendor_attr_roam_cached_stats {
12912 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
12913 /* Nested attribute, this attribute contains nested array roam info
12914 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
12915 */
12916 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
12917
12918 /* keep last */
12919 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
12920 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
12921 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
12922};
12923
12924/**
Sunil8cd6f4d2022-06-28 18:40:46 +000012925 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12926 * radio configurations present in each radio combination.
12927 *
12928 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12929 * the band info in the radio configuration. Uses the enum qca_set_band values.
12930 *
12931 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12932 * the number of antennas info in the radio configuration.
12933 */
12934enum qca_wlan_vendor_attr_supported_radio_cfg {
12935 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12936 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12937 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12938
12939 /* keep last */
12940 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12941 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12942 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12943};
12944
12945/**
12946 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12947 * radio combinations supported by the device.
12948 *
12949 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12950 * provides the radio configurations present in the radio combination.
12951 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12952 * This attribute provides the values for radio combination matrix.
12953 * For standalone config, the number of config values is one and the config
12954 * carries the band and antenna information for standalone configuration. For
12955 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12956 * configuration the number of config values is two and the config carries the
12957 * band and antenna information for each simultaneous radio.
12958 */
12959enum qca_wlan_vendor_attr_radio_combination {
12960 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12961 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12962
12963 /* keep last */
12964 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12965 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12966 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12967};
12968
12969/**
12970 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12971 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12972 *
12973 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12974 * provides the radio combinations supported by the device.
12975 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12976 * For example, in the radio combination matrix for a device which has two
12977 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12978 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12979 * combinations is 5 and the radio combinations are
12980 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12981 * {{5 GHz 2X2}}, //Standalone 5 GHz
12982 * {{6 GHz 2X2}}, //Standalone 6 GHz
12983 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12984 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12985 * The band and antenna info together as nested data provides one radio config.
12986 * Standalone configuration has one config with band and antenna nested data.
12987 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12988 * have two nested band and antenna info data.
12989 */
12990enum qca_wlan_vendor_attr_radio_combination_matrix {
12991 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12992 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12993
12994 /* keep last */
12995 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12996 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12997 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12998};
12999
13000/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013001 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13002 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13003 *
13004 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13005 * Enable mDNS offload. This attribute is mandatory to enable
13006 * mDNS offload feature. If this attribute is not present, mDNS offload
13007 * is disabled.
13008 *
13009 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13010 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13011 * attribute is mandatory when enabling the feature, and not required when
13012 * disabling the feature.
13013 *
13014 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13015 * the following attributes:
13016 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13017 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13018 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13019 *
13020 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13021 * It consists of a hostname and ".local" as the domain name. The character
13022 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13023 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
13024 * supported per vdev.
13025 * For example: myphone.local
13026 *
13027 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13028 * u16 attribute. It specifies the total number of resource records present
13029 * in the answer section of the answer payload. This attribute is needed by the
13030 * firmware to populate the mDNS response frame for mDNS queries without having
13031 * to parse the answer payload.
13032 *
13033 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
13034 * attribute sent by the mdnsResponder from userspace. It contains resource
13035 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
13036 * payload is passed down to the firmware and is transmitted in response to
13037 * mDNS queries.
13038 * The maximum supported size of the answer payload is 512 bytes.
13039 */
13040enum qca_wlan_vendor_attr_mdns_offload {
13041 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13042 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13043 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13044 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13045 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13046 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13047 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13048
13049 /* keep last */
13050 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13051 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13052 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13053};
13054
13055/**
13056 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13057 * Data frame types to be sent over the monitor interface.
13058 */
13059enum qca_wlan_vendor_monitor_data_frame_type {
13060 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13061 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
13062 */
13063 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13064 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13065 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13066 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13067 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13068 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13069 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13070 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13071 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13072 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13073 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13074 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13075 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13076 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13077 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13078 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13079 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13080};
13081
13082/**
13083 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13084 * Management frame types to be sent over the monitor interface.
13085 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
13086 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
13087 * except the Beacon frame.
13088 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13089 * BSSID Beacon frames. Valid only in the connected state.
13090 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13091 * the Beacon frames obtained during the scan (off channel and connected
13092 * channel), when in connected state.
13093 */
13094enum qca_wlan_vendor_monitor_mgmt_frame_type {
13095 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13096 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
13097 */
13098 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
13099 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13100 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13101};
13102
13103/**
13104 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13105 * Control frame types to be sent over the monitor interface.
13106 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
13107 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
13108 */
13109enum qca_wlan_vendor_monitor_ctrl_frame_type {
13110 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13111 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
13112 */
13113 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13114};
13115
13116/**
13117 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13118 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13119 * monitor mode.
13120 *
13121 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
13122 * Represents the TX Data frame types to be monitored (u32). These Data frames
13123 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13124 *
13125 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
13126 * Represents the RX Data frame types to be monitored (u32). These Data frames
13127 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13128 *
13129 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
13130 * Represents the TX Management frame types to be monitored (u32). These
13131 * Management frames are represented by
13132 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13133 *
13134 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
13135 * Represents the RX Management frame types to be monitored (u32). These
13136 * Management frames are represented by
13137 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13138 *
13139 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
13140 * Represents the TX Control frame types to be monitored (u32). These Control
13141 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13142 *
13143 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
13144 * Represents the RX Control frame types to be monitored (u32). These Control
13145 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13146 *
13147 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
13148 * attribute.
13149 * Represents the interval in milliseconds only for the connected Beacon frames,
13150 * expecting the connected BSS's Beacon frames to be sent on the monitor
13151 * interface at this specific interval.
13152 */
13153enum qca_wlan_vendor_attr_set_monitor_mode {
13154 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13155 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13156 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13157 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13158 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13159 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13160 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13161 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13162
13163 /* keep last */
13164 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13165 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13166 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13167};
13168
13169/**
13170 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13171 * Bits will be set to 1 if the corresponding state is enabled.
13172 *
13173 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13174 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13175 */
13176enum qca_wlan_vendor_roam_scan_state {
13177 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13178 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13179};
13180
13181/**
13182 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13183 * Bits will be set to 1 if the corresponding event is notified.
13184 *
13185 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13186 * carries the trigger reason. When set, it is expected that the roam event
13187 * carries the respective reason via the attribute
13188 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13189 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13190 *
13191 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13192 * carries the roam fail reason. When set, it is expected that the roam event
13193 * carries the respective reason via the attribute
13194 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13195 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13196 *
13197 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13198 * event carries the roam invoke fail reason. When set, it is expected that
13199 * the roam event carries the respective reason via the attribute
13200 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13201 *
13202 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13203 * carries the roam scan state. When set, it is expected that the roam event
13204 * carries the respective scan state via the attribute
13205 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13206 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13207 */
13208enum qca_wlan_vendor_roam_event_type {
13209 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13210 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13211 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13212 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13213};
13214
13215/**
13216 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13217 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13218 *
13219 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13220 * representing the BSSID of the AP to which the roam is attempted.
13221 *
13222 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13223 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13224 * attempted.
13225 *
13226 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
13227 * on which the roam is attempted.
13228 *
13229 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13230 * STA mode only. This represents the roam fail reason for the last failed
13231 * roaming attempt by the firmware for the specific BSSID. Different roam
13232 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13233 */
13234enum qca_wlan_vendor_attr_roam_events_candidate_info {
13235 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13236 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13237 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13238 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13239 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13240
13241 /* keep last */
13242 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13243 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13244 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13245};
13246
13247/**
13248 * enum qca_wlan_vendor_attr_roam_events - Used by the
13249 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13250 * roam events to the driver or notify these events from the driver.
13251 *
13252 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13253 * driver/firmware to enable/disable the notification of roam events. It's a
13254 * mandatory attribute and used only in the request from the userspace to the
13255 * host driver. 1-Enable, 0-Disable.
13256 * If the roaming is totally offloaded to the firmware, this request when
13257 * enabled shall mandate the firmware to notify all the relevant roam events
13258 * represented by the below attributes. If the host is in the suspend mode,
13259 * the behavior of the firmware to notify these events is guided by
13260 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13261 * these events in the suspend state, the firmware is expected to wake up the
13262 * host before the respective events are notified. Please note that such a
13263 * request to get the events in the suspend state will have a definite power
13264 * implication.
13265 *
13266 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13267 * that the roam events need to be notified in the suspend state too. By
13268 * default, these roam events are notified in the resume state. With this flag,
13269 * the roam events are notified in both resume and suspend states.
13270 * This attribute is used in the request from the userspace to the host driver.
13271 *
13272 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13273 * Represents the different roam event types, signified by the enum
13274 * qca_wlan_vendor_roam_event_type.
13275 * Each bit of this attribute represents the different roam even types reported
13276 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13277 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13278 *
13279 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13280 * mode only. This represents the roam trigger reason for the last roaming
13281 * attempted by the firmware. Each bit of this attribute represents the
13282 * different roam trigger reason code which are defined in enum
13283 * qca_vendor_roam_triggers.
13284 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13285 *
13286 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13287 * STA mode only. This represents the roam invoke fail reason for the last
13288 * failed roam invoke. Different roam invoke failure reason codes
13289 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13290 *
13291 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13292 * for which the roam is attempted. Each entry is a nested attribute defined
13293 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13294 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13295 *
13296 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13297 * the scan state on which the roam events need to be notified. The values for
13298 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13299 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13300 *
13301 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13302 * u32 values. List of frequencies in MHz considered for a roam scan.
13303 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13304 */
13305enum qca_wlan_vendor_attr_roam_events {
13306 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13307 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13308 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13309 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13310 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13311 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13312 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13313 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13314 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13315
13316 /* keep last */
13317 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13318 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13319 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
13320};
13321
13322/**
13323 * enum qca_wlan_ratemask_params_type - Rate mask config type
13324 *
13325 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
13326 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13327 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13328 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13329 */
13330enum qca_wlan_ratemask_params_type {
13331 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13332 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13333 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13334 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13335};
13336
13337/**
13338 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
13339 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13340 * This is used to set the rate mask value to be used in rate selection.
13341 *
13342 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13343 * Array of nested containing attributes
13344 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13345 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13346 *
13347 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13348 * the different PHY types to which the rate mask config is to be applied.
13349 * The values for this attribute are referred from enum
13350 * qca_wlan_vendor_ratemask_params_type.
13351 *
13352 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13353 * A bit value of 1 represents rate is enabled and a value of 0
13354 * represents rate is disabled.
13355 * For HE targets, 12 bits correspond to one NSS setting.
13356 * b0-13 => NSS1, MCS 0-13
13357 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13358 * For VHT targets, 10 bits correspond to one NSS setting.
13359 * b0-9 => NSS1, MCS 0-9
13360 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13361 * For HT targets, 8 bits correspond to one NSS setting.
13362 * b0-7 => NSS1, MCS 0-7
13363 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13364 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13365 */
13366enum qca_wlan_vendor_attr_ratemask_params {
13367 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
13368 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13369 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13370 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13371
13372 /* keep last */
13373 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13374 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13375 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13376};
13377
Sunil8cd6f4d2022-06-28 18:40:46 +000013378/**
13379 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
13380 * traffic.
13381 *
13382 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
13383 * Send audio traffic through the host processor.
13384 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
13385 * Send audio traffic using the low power DSP to/from the encoder.
13386 */
13387enum qca_wlan_audio_data_path {
13388 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
13389 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
13390};
13391
13392/**
13393 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13394 * for) or drop existing PASN security association for the listed the
13395 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13396 * to userspace.
13397 *
13398 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13399 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13400 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13401 * the driver to userspace to inform that the existing PASN keys of the
13402 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13403 * not valid anymore.
13404 */
13405enum qca_wlan_vendor_pasn_action {
13406 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13407 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13408};
13409
13410/**
13411 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13412 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13413 *
13414 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13415 * event from the driver to userspace and represents the local MAC address
13416 * to be used for PASN handshake. When this attribute is present, userspace
13417 * shall use the source address specified in this attribute by the driver
13418 * for PASN handshake with peer device.
13419 * This attribute is required in a command response from userspace to the
13420 * driver and represents the MAC address that was used in PASN handshake
13421 * with the peer device.
13422 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13423 * peer device to which PASN handshake is requested in an event from the
13424 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13425 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13426 * Indicates the MAC address of the peer device for which the keys are to
13427 * be invalidated in an event from the driver to userspace when
13428 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13429 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13430 * Indicates the MAC address of the peer device for which the status is
13431 * being sent in a status report from userspace to the driver.
13432 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13433 * in the event from the driver to userspace. When set, userspace is
13434 * required to derive LTF key seed from KDK and set it to the driver.
13435 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13436 * attribute is used in the command response from userspace to the driver.
13437 * If present, it indicates the successful PASN handshake with the peer. If
13438 * this flag is not present, it indicates that the PASN handshake with the
13439 * peer device failed.
13440 */
13441enum qca_wlan_vendor_attr_pasn_peer {
13442 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13443 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13444 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13445 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13446 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13447
13448 /* keep last */
13449 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13450 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13451 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13452};
13453
13454/**
13455 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13456 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
13457 *
13458 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13459 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
13460 * from the driver to userspace.
13461 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13462 * details for each peer and used in both an event and a command response.
13463 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13464 * defined in enum qca_wlan_vendor_attr_pasn_peer.
13465 */
13466enum qca_wlan_vendor_attr_pasn {
13467 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13468 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13469 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13470
13471 /* keep last */
13472 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13473 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13474 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13475};
13476
13477/**
13478 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13479 * the ranging security context derived from PASN for each peer. Used in
13480 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13481 *
13482 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13483 * context for the peer.
13484 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13485 * context for the peer.
13486 */
13487enum qca_wlan_vendor_secure_ranging_ctx_action {
13488 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13489 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13490};
13491
13492/**
13493 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13494 * used for deriving PASN keys to the driver. Used in
13495 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13496 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13497 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13498 */
13499enum qca_wlan_vendor_sha_type {
13500 QCA_WLAN_VENDOR_SHA_256,
13501 QCA_WLAN_VENDOR_SHA_384,
13502};
13503
13504/**
13505 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13506 * to set security context for the PASN peer from userspace to the driver.
13507 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13508 *
13509 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13510 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13511 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13512 * was used during the PASN handshake.
13513 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13514 * the peer device for which secure ranging context is being configured.
13515 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13516 * hash algorithm to be used, possible values are defined in enum
13517 * qca_wlan_vendor_sha_type.
13518 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13519 * the temporal key generated from the PASN handshake. The length of this
13520 * attribute is dependent on the value of
13521 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13522 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13523 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13524 * (e.g., 0x000FAC04).
13525 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13526 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13527 * The length of this attribute is dependent on the value of
13528 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13529
13530 */
13531enum qca_wlan_vendor_attr_secure_ranging_ctx {
13532 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13533 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13534 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13535 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13536 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13537 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13538 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13539 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13540
13541 /* keep last */
13542 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13543 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13544 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13545};
13546
Sunil Ravi89eba102022-09-13 21:04:37 -070013547/**
13548 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13549 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13550 * nested attribute. The packets that match a filter will be replied with
13551 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13552 *
13553 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13554 * u32 attribute. Destination IPv4 address in network byte order, the
13555 * IPv4 packets with different address will be filtered out.
13556 * This attribute is optional.
13557 *
13558 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13559 * Flag attribute. If it's present, indicates that
13560 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13561 * address; while if not, indicates that the address is a unicast/multicast
13562 * address.
13563 * This attribute is optional.
13564 *
13565 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13566 * NLA_BINARY attribute, length is 16 bytes.
13567 * Destination IPv6 address in network byte order, the IPv6 packets
13568 * with different destination address will be filtered out.
13569 * This attribute is optional.
13570 *
13571 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13572 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13573 * Packets on both IPv4 and IPv6 will be processed if both are configured.
13574 *
13575 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13576 * u16 attribute. Destination UDP port, the packets with different destination
13577 * UDP port will be filtered out.
13578 * This attribute is mandatory.
13579 *
13580 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13581 * u32 attribute. Represents the offset (in UDP payload) of the data
13582 * to be matched.
13583 * This attribute is mandatory.
13584 *
13585 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13586 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13587 * Binary data that is compared bit-by-bit against the data (specified
13588 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13589 * payload, the packets don't match will be filtered out.
13590 * This attribute is mandatory.
13591 */
13592enum qca_wlan_vendor_attr_coap_offload_filter {
13593 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13594 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13595 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13596 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13597 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13598 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13599 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13600
13601 /* keep last */
13602 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13603 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13604 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13605};
13606
13607/**
13608 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13609 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13610 *
13611 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13612 * u32 attribute. Source address (in network byte order) for replying
13613 * the matching broadcast/multicast IPv4 packets.
13614 * This attribute is optional.
13615 *
13616 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13617 * NLA_BINARY attribute, length is 16 bytes.
13618 * Source address (in network byte order) for replying the matching
13619 * multicast IPv6 packets.
13620 * This attribute is optional.
13621 *
13622 * For broadcast/multicast offload reply, one of
13623 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13624 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13625 * configured according to version of the IP address(es) configured in
13626 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13627 * while for unicast case, firmware will take the destination IP address
13628 * in the received matching packet as the source address for replying.
13629 *
13630 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13631 * Nested attribute. Filter for the received UDP packets, only the matching
13632 * packets will be replied and cached.
13633 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13634 * attributes.
13635 * This attribute is mandatory.
13636 *
13637 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13638 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13639 * CoAP message (UDP payload) to be sent upon receiving matching packets.
13640 * Firmware is responsible for adding any necessary protocol headers.
13641 * This attribute is mandatory.
13642 *
13643 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13644 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13645 * A cached message will be dropped by firmware if it's expired.
13646 * This attribute is optional. A default value of 40000 will be used in the
13647 * absence of it.
13648 */
13649enum qca_wlan_vendor_attr_coap_offload_reply {
13650 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13651 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13652 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13653 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13654 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13655 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13656
13657 /* keep last */
13658 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13659 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13660 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13661};
13662
13663/**
13664 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13665 * CoAP message (UDP) transmitting on IPv4.
13666 *
13667 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13668 * u32 attribute. Source address (in network byte order) for transmitting
13669 * packets on IPv4.
13670 * This attribute is mandatory.
13671 *
13672 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13673 * u16 attribute. Source UDP port.
13674 * This attribute is optional, a random port is taken if it's not present.
13675 *
13676 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13677 * u32 attribute. Destination IPv4 address (in network byte order).
13678 * This attribute is mandatory.
13679 *
13680 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13681 * Flag attribute. If it's present, indicates that
13682 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13683 * address; while if not, indicates that the address is unicast/multicast
13684 * address.
13685 * This attribute is optional.
13686 *
13687 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13688 * u16 attribute. Destination UDP port.
13689 * This attribute is mandatory.
13690 */
13691enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13692 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13693 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13694 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13695 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13696 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13697 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13698
13699 /* keep last */
13700 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13701 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13702 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13703};
13704
13705/**
13706 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13707 * CoAP message (UDP) transmitting on IPv6.
13708 *
13709 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13710 * NLA_BINARY attribute, length is 16 bytes.
13711 * Source address (in network byte order) for transmitting packets on IPv6.
13712 * This attribute is mandatory.
13713 *
13714 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13715 * u16 attribute. Source UDP port.
13716 * This attribute is optional, a random port is taken if it's not present.
13717 *
13718 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13719 * NLA_BINARY attribute, length is 16 bytes.
13720 * Destination IPv6 address (in network byte order).
13721 * This attribute is mandatory.
13722 *
13723 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13724 * u16 attribute. Destination UDP port.
13725 * This attribute is mandatory.
13726 */
13727enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13728 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13729 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13730 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13731 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13732 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13733
13734 /* keep last */
13735 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13736 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13737 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13738};
13739
13740/**
13741 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13742 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13743 *
13744 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13745 * Nested attribute. The IPv4 source/destination address/port for offload
13746 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13747 * of supported attributes.
13748 * This attribute is optional.
13749 *
13750 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13751 * Nested attribute. The IPv6 source/destination address/port for offload
13752 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13753 * of supported attributes.
13754 * This attribute is optional.
13755 *
13756 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13757 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13758 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13759 * configured.
13760 *
13761 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13762 * u32 attribute. Period in milliseconds for the periodic transmitting.
13763 * This attribute is mandatory.
13764 *
13765 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13766 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13767 * CoAP message (UDP payload) to be periodically transmitted. Firmware
13768 * is responsible for adding any necessary protocol headers.
13769 * This attribute is mandatory.
13770 */
13771enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13772 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13773 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13774 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13775 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13776 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13777
13778 /* keep last */
13779 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13780 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13781 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13782};
13783
13784/**
13785 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13786 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13787 *
13788 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13789 * u64 attribute. Received time (since system booted in microseconds) of
13790 * the cached CoAP message.
13791 * This attribute is mandatory.
13792 *
13793 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13794 * u32 attribute. Source IPv4 address (in network byte order) of the cached
13795 * CoAP message.
13796 * This attribute is optional.
13797 *
13798 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13799 * NLA_BINARY attribute, length is 16 bytes.
13800 * Source IPv6 address (in network byte order) of the cached CoAP message.
13801 * This attribute is optional.
13802 *
13803 * At most and at least one of
13804 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13805 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13806 * an entry.
13807 *
13808 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13809 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13810 * The cached CoAP message (UDP payload). If the actual message size is
13811 * greater than the maximum size, it will be truncated and leaving only
13812 * the first 1152 bytes.
13813 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070013814 *
13815 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
13816 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070013817 */
13818enum qca_wlan_vendor_attr_coap_offload_cache_info {
13819 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13820 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13821 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13822 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13823 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070013824 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070013825
13826 /* keep last */
13827 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13828 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13829 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13830};
13831
13832/**
13833 * enum qca_wlan_vendor_coap_offload_action - Actions for
13834 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13835 *
13836 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13837 * Enable CoAP offload reply.
13838 * If it's enabled, firmware will start offload processing on each suspend
13839 * and stop on each resume.
13840 *
13841 * Offload reply on match works as follows:
13842 * Reply the packets that match the filter with the given CoAP
13843 * message (with necessary protocol headers), increase the CoAP message
13844 * ID in the given CoAP message by one for the next use after each successful
13845 * transmission, and try to store the information of the received packet,
13846 * including the received time, source IP address, and CoAP message (UDP
13847 * payload).
13848 *
13849 * Firmware has a limit to the maximum stored entries, it takes the source IP
13850 * address as the key of an entry, and keeps at most one entry for each key.
13851 * A packet won't be stored if no entry for the same key is present and the
13852 * total number of the existing unexpired entries reaches the maximum value.
13853 *
13854 * If any configured item is changed, user space should disable offload reply
13855 * first and then issue a new enable request.
13856 *
13857 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13858 * Disable CoAP offload reply and return information of any cached CoAP
13859 * messages.
13860 *
13861 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13862 * Enable CoAP offload periodic transmitting.
13863 * If it's enabled, firmware will start offload periodic transmitting on
13864 * each suspend and stop on each resume.
13865 *
13866 * Offload periodic transmitting works as follows:
13867 * Send the given CoAP message (with necessary protocol headers) with the given
13868 * source/destination IP address/UDP port periodically based on the given
13869 * period and increase the CoAP message ID in the given CoAP message by one
13870 * for the next use after each successful transmission.
13871 *
13872 * If any configured item is changed, user space should disable offload
13873 * periodic transmitting first and then issue a new enable request.
13874 *
13875 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13876 * Disable CoAP offload periodic transmitting.
13877 *
13878 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13879 * Get information of the CoAP messages cached during offload reply
13880 * processing. The cache is cleared after retrieval.
13881 */
13882enum qca_wlan_vendor_coap_offload_action {
13883 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13884 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13885 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13886 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13887 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13888};
13889
13890/**
13891 * enum qca_wlan_vendor_attr_coap_offload - Used by the
13892 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13893 * This is used to set parameters for CoAP offload processing, or get
13894 * cached CoAP messages from firmware.
13895 *
13896 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13897 * u32 attribute. Action to take in this vendor command.
13898 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13899 * This attribute is mandatory.
13900 *
13901 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13902 * u32 attribute. Represents the Request ID for the CoAP offload
13903 * configuration, which can help to identify the user entity starting
13904 * the CoAP offload processing and accordingly stop the respective
13905 * ones/get the cached CoAP messages with the matching ID.
13906 * This attribute is mandatory.
13907 *
13908 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13909 * Nested attribute. Parameters for offload reply.
13910 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13911 * supported attributes.
13912 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13913 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13914 * otherwise.
13915 *
13916 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13917 * Nested attribute. Parameters for offload periodic transmitting.
13918 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13919 * supported attributes.
13920 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13921 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13922 * otherwise.
13923 *
13924 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13925 * Array of nested attributes. Information of the cached CoAP messages,
13926 * where each entry is taken from
13927 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13928 * This attribute is used for reporting the cached CoAP messages
13929 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13930 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13931 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13932 * cached item if this attribute is not present.
13933 */
13934enum qca_wlan_vendor_attr_coap_offload {
13935 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13936 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13937 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13938 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13939 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13940 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13941
13942 /* keep last */
13943 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13944 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13945 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13946};
13947
13948/**
13949 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13950 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13951 * Service (SCS) rule.
13952 *
13953 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13954 * Represents the unique id of SCS rule to be configured.
13955
13956 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13957 * Represents the request type: add, remove, or change.
13958 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13959 * Type definitions).
13960 *
13961 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13962 * in case of add/change request type.
13963 * Represents the output traffic identifier (TID) to be assigned to the flow
13964 * matching the rule.
13965 *
13966 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13967 * attribute in case of add/change request type.
13968 * Represents type of classifier parameters present in SCS rule.
13969 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13970 * Only classifier types 4 and 10 are supported for SCS.
13971 *
13972 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13973 * in case of add/change request type when classifier type is TCLAS4.
13974 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13975 *
13976 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13977 * attribute in case of add/change request type when classifier type is TCLAS4
13978 * and version attribute is IPv4.
13979 * Represents the source IPv4 address in the rule which is to be compared
13980 * against the source IP address in the IPv4 header.
13981 *
13982 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13983 * attribute in case of add/change request type when classifier type is TCLAS4
13984 * and version attribute is IPv4.
13985 * Represents the destination IPv4 address in the rule which is to be compared
13986 * against the destination IP address in the IPv4 header.
13987 *
13988 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13989 * attribute in case of add/change request type when classifier type is TCLAS4
13990 * and version attribute is IPv6.
13991 * Represents the source IPv6 address in the rule which is to be compared
13992 * against the source IP address in the IPv6 header.
13993 *
13994 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
13995 * attribute in case of add/change request type when classifier type is TCLAS4
13996 * and version attribute is IPv6.
13997 * Represents the destination IPv6 address in the rule which is to be compared
13998 * against the destination IP address in the IPv6 header.
13999 *
14000 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14001 * in case of add/change request type when classifier type is TCLAS4.
14002 * Represents the source port number in the rule which is to be compared against
14003 * the source port number in the protocol header.
14004 *
14005 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14006 * in case of add/change request type when classifier type is TCLAS4.
14007 * Represents the destination port number in the rule which is to be compared
14008 * against the destination port number in the protocol header.
14009 *
14010 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14011 * in case of add/change request type when classifier type is TCLAS4.
14012 * Represents the DSCP value in the rule which is to be compared against the
14013 * DSCP field present in the IP header.
14014 *
14015 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14016 * attribute in case of add/change request type when classifier type is TCLAS4.
14017 * Represents the protocol/next header in the rule which is to be compared
14018 * against the protocol/next header field present in the IPv4/IPv6 header.
14019 *
14020 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14021 * attribute of size 3 bytes present in case of add/change request type
14022 * when classifier type is TCLAS4 and version is IPv6.
14023 * Represents the flow label value in the rule which is to be compared against
14024 * the flow label field present in the IPv6 header.
14025 *
14026 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14027 * attribute in case of add/change request type when classifier type is TCLAS10.
14028 * Represents the protocol instance number in the rule.
14029 *
14030 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14031 * attribute in case of add/change request type when classifier type is TCLAS10.
14032 * Represents the protocol/next header in the rule which is to be compared
14033 * against the protocol/next header field present in the IPv4/IPv6 header.
14034 *
14035 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14036 * attribute of variable length present when request type is add/change and
14037 * classifier type is TCLAS10.
14038 * Represents the mask to be used for masking the header contents of the header
14039 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14040 * attribute.
14041 *
14042 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14043 * attribute of variable length present when request type is add/change and
14044 * classifier type is TCLAS10.
14045 * Represents the value to be compared against after masking the header contents
14046 * of the header specified by the
14047 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14048 * filter mask specified by the
14049 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014050 *
14051 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14052 * attribute.
14053 * Represents the service class id of the configured SCS rule.
14054 *
14055 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14056 * MAC address.
14057 * Represents the destination MAC address in the rule.
14058 *
14059 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14060 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070014061 */
14062enum qca_wlan_vendor_attr_scs_rule_config {
14063 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14064 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14065 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14066 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14067 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14068 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14069 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14070 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14071 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14072 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14073 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14074 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14075 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14076 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14077 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14078 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14079 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14080 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14081 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014082 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14083 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14084 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070014085
14086 /* Keep last */
14087 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14088 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14089 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14090};
14091
14092/**
14093 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
14094 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
14095 *
14096 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
14097 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
14098 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
14099 */
14100enum qca_wlan_vendor_attr_mlo_links {
14101 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
14102 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
14103 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
14104 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
14105
14106 /* Keep last */
14107 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
14108 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
14109 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
14110};
14111
14112/**
14113 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14114 * used in the firmware.
14115 *
14116 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14117 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14118 *
14119 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14120 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14121 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14122 * groups.
14123 *
14124 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14125 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14126 * CTL group but user can choose up to 3 SAR set index only, as the top half
14127 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14128 * the SAR index (3 to 5) is used for DBS mode.
14129 */
14130enum qca_wlan_vendor_sar_version {
14131 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14132 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14133 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14134 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14135};
14136
14137/**
14138 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14139 * CTL grouping is enabled or disabled in the firmware.
14140 *
14141 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14142 * is enabled in firmware.
14143 *
14144 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14145 * is disabled in firmware.
14146 *
14147 */
14148enum qca_wlan_vendor_sar_ctl_group_state {
14149 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14150 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14151 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14152};
14153
14154/**
14155 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14156 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14157 * supported by the firmware.
14158
14159 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14160 * u32 attribute. This field describes current SAR version supported by the
14161 * firmware.
14162 * See enum qca_wlan_vendor_sar_version for more information.
14163 * This attribute is mandatory.
14164
14165 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14166 * u32 attribute. This field describes whether CTL groups are enabled
14167 * or disabled in the firmware.
14168 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14169 * This attribute is optional.
14170 */
14171
14172enum qca_wlan_vendor_attr_sar_capability {
14173 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14174 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14175 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14176
14177 /* Keep last */
14178 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14179 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14180 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14181};
14182
14183/**
14184 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14185 * These statistics are sent from the driver in a response when userspace
14186 * queries to get the statistics using the operation
14187 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14188 * by the driver when the SR feature is enabled, when the driver receives
14189 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14190 *
14191 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14192 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14193 * This represents the number of non-SRG TX opportunities.
14194 *
14195 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14196 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14197 * This represents the number of non-SRG PPDUs tried to transmit.
14198 *
14199 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14200 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14201 * This represents the number of non-SRG PPDUs successfully transmitted.
14202 *
14203 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14204 * Mandatory only when SRG is supported by the AP and optional otherwise.
14205 * This represents the number of SRG TX opportunities.
14206 *
14207 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14208 * Mandatory only when SRG is supported by the AP and optional otherwise.
14209 * This represents the number of SRG PPDUs tried to transmit.
14210 *
14211 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14212 * Mandatory only when SRG is supported by the AP and optional otherwise.
14213 * This represents the number of SRG PPDUs successfully transmitted.
14214 */
14215enum qca_wlan_vendor_attr_sr_stats {
14216 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14217 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14218 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14219 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14220 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14221 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14222 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14223
14224 /* Keep last */
14225 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14226 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14227 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14228};
14229
14230/**
14231 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14232 * Spatial Reuse feature.
14233 *
14234 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14235 * roaming to an AP that doesn't support/supports SR feature, respectively.
14236 *
14237 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14238 * to change in concurrent interfaces that are supported by the driver.
14239 */
14240enum qca_wlan_sr_reason_code {
14241 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14242 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14243};
14244
14245/**
14246 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14247 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14248 *
14249 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14250 * driver to enable the Spatial Reuse feature. Attributes
14251 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14252 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14253 * operation.
14254 *
14255 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14256 * driver to disable the Spatial Reuse feature.
14257 *
14258 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14259 * asynchronous event sent to userspace when the SR feature is disabled.
14260 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14261 * and sent along with the asynchronous event.
14262 *
14263 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14264 * asynchronous event when the SR feature is enabled again after the SR feature
14265 * was suspended by the driver earlier. The enable reason is
14266 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14267 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14268 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14269 *
14270 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14271 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14272 * reuse transmissions. Userspace sends this operation to the driver.
14273 * The driver/firmware upon receiving this operation shall prohibit PSR-based
14274 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14275 *
14276 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14277 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14278 * reuse transmissions. Userspace sends this operation to the driver.
14279 * The driver/firmware upon receiving this operation shall allow PSR-based
14280 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14281 *
14282 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14283 * driver to get the SR statistics and the driver sends a synchronous response
14284 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14285 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14286 *
14287 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14288 * driver to clear the SR statistics and upon receiving this operation
14289 * the driver/firmware shall clear the SR statistics.
14290 *
14291 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14292 * driver to get the SR parameters and the driver sends the synchronous response
14293 * with the following required attributes:
14294 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14295 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14296 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14297 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14298 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14299 *
14300 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14301 * asynchronous event to userspace to update any changes in SR parameters.
14302 * The following attributes are used with this operation:
14303 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14304 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14305 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14306 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14307 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14308 */
14309enum qca_wlan_sr_operation {
14310 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14311 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14312 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14313 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14314 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14315 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14316 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14317 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14318 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14319 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14320};
14321
14322/**
14323 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14324 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14325 *
14326 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14327 * This attribute is optionally set in response to
14328 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14329 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14330 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14331 * about HESIGA_Spatial_reuse_value15_allowed.
14332 *
14333 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14334 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14335 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14336 * allowed or not at non-AP STAs that are associated with the AP. If present
14337 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14338 *
14339 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14340 * attribute. This attribute is used in response to
14341 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14342 * Min Offset field which contains an unsigned integer that is added to -82 dBm
14343 * to generate the value of the SRG OBSS PD Min parameter.
14344 *
14345 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14346 * attribute. This attribute is used in response to
14347 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14348 * Max Offset field which contains an unsigned integer that is added to -82 dBm
14349 * to generate the value of the SRG OBSS PD Max parameter.
14350 *
14351 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14352 * attribute. This attribute is used in response to
14353 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
14354 * PD Max Offset field which contains an unsigned integer that is added to -82
14355 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
14356 *
14357 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14358 * Userspace optionally sends this attribute with
14359 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14360 * preferred SRG PD threshold. The driver shall send this attribute to
14361 * userspace in SR resume event to indicate the PD threshold being used for SR.
14362 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
14363 * the driver shall indicate the userspace the newly configured SRG PD threshold
14364 * using an asynchronous event.
14365 *
14366 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14367 * Userspace optionally sends this attribute with
14368 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14369 * preferred non-SRG PD threshold. The driver shall send this attribute to
14370 * userspace in SR resume event to indicate the PD threshold being used for SR.
14371 * When there is change in non-SRG PD threshold (for example, due to roaming,
14372 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
14373 * threshold using an asynchronous event.
14374 *
14375 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
14376 * values are defined in enum qca_wlan_sr_reason_code. This
14377 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
14378 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
14379 */
14380enum qca_wlan_vendor_attr_sr_params {
14381 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
14382 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
14383 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
14384 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
14385 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
14386 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
14387 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
14388 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
14389 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
14390
14391 /* keep last */
14392 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
14393 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
14394 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
14395};
14396
14397/**
14398 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
14399 * command QCA_NL80211_VENDOR_SUBCMD_SR.
14400 *
14401 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
14402 * from userspace to the driver. Possible values are defined in enum
14403 * qca_wlan_sr_operation.
14404 *
14405 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
14406 * configuration parameters. The possible attributes inside this attribute are
14407 * defined in enum qca_wlan_vendor_attr_sr_params.
14408 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14409 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
14410 * also in response from the driver to userspace when the response is sent for
14411 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
14412 * The driver uses this attribute in asynchronous events in which the operation
14413 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
14414 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
14415 *
14416 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
14417 * statistics. These attributes used inside this are defined in enum
14418 * qca_wlan_vendor_attr_sr_stats.
14419 * This attribute is used in response from the driver to a command in which
14420 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14421 * %QCA_WLAN_SR_OPERATION_GET_STATS.
14422 */
14423enum qca_wlan_vendor_attr_sr {
14424 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
14425 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
14426 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
14427 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
14428
14429 /* Keep last */
14430 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
14431 QCA_WLAN_VENDOR_ATTR_SR_MAX =
14432 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
14433};
14434
Sunil Ravi77d572f2023-01-17 23:58:31 +000014435/**
14436 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
14437 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
14438 *
14439 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
14440 * used by the peer on the link that corresponds to the link used for sending
14441 * the event notification.
14442 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
14443 * MLD MAC address of the peer.
14444 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
14445 * used to pass ifindex of the primary netdev.
14446 */
14447enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
14448 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
14449 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
14450 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
14451 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
14452
14453 /* keep last */
14454 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
14455 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
14456 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
14457};
14458
14459/**
14460 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
14461 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
14462 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
14463 * and PSD information.
14464 *
14465 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
14466 * u32. This attribute is used to indicate the start of the queried frequency
14467 * range in MHz.
14468 *
14469 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
14470 * This attribute is used to indicate the end of the queried frequency range
14471 * in MHz.
14472 *
14473 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
14474 * This attribute will contain the PSD information for a single range as
14475 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
14476 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
14477 *
14478 * The PSD power info (dBm/MHz) from user space should be multiplied
14479 * by a factor of 100 when sending to the driver to preserve granularity
14480 * up to 2 decimal places.
14481 * Example:
14482 * PSD power value: 10.21 dBm/MHz
14483 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
14484 *
14485 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
14486 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
14487 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
14488 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14489 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14490 *
14491 * The following set of attributes will be used to exchange frequency and
14492 * corresponding PSD information for AFC between the user space and the driver.
14493 */
14494enum qca_wlan_vendor_attr_afc_freq_psd_info {
14495 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
14496 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
14497 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
14498 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
14499
14500 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
14501 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
14502 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
14503};
14504
14505/**
14506 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
14507 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
14508 * channel list and corresponding EIRP information.
14509 *
14510 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
14511 * This attribute is used to indicate queried channel from
14512 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
14513 *
14514 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
14515 * This attribute is used to configure the EIRP power info corresponding
14516 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
14517 * The EIRP power info(dBm) from user space should be multiplied
14518 * by a factor of 100 when sending to Driver to preserve granularity up to
14519 * 2 decimal places.
14520 * Example:
14521 * EIRP power value: 34.23 dBm
14522 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
14523 *
14524 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
14525 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14526 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
14527 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14528 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
14529 *
14530 * The following set of attributes will be used to exchange Channel and
14531 * corresponding EIRP information for AFC between the user space and Driver.
14532 */
14533enum qca_wlan_vendor_attr_afc_chan_eirp_info {
14534 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
14535 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
14536 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
14537
14538 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
14539 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
14540 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
14541};
14542
14543/**
14544 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
14545 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14546 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
14547 * channel, and EIRP related information.
14548 *
14549 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
14550 * This attribute is used to indicate the operating class, as listed under
14551 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
14552 *
14553 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
14554 * for updating the channel number and EIRP power information.
14555 * It uses the attributes defined in
14556 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
14557 *
14558 * Operating class information packing format for
14559 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14560 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14561 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
14562 *
14563 * m - Total number of operating classes.
14564 * n, j - Number of queried channels for the corresponding operating class.
14565 *
14566 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14567 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14568 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14569 * .....
14570 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14571 * ....
14572 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14573 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14574 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14575 * ....
14576 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14577 *
14578 * Operating class information packing format for
14579 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14580 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14581 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14582 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14583 *
14584 * m - Total number of operating classes.
14585 * n, j - Number of channels for the corresponding operating class.
14586 *
14587 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14588 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14589 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14590 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14591 * .....
14592 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14593 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
14594 * ....
14595 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14596 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14597 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14598 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14599 * ....
14600 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14601 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
14602 *
14603 * The following set of attributes will be used to exchange operating class
14604 * information for AFC between the user space and the driver.
14605 */
14606enum qca_wlan_vendor_attr_afc_opclass_info {
14607 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
14608 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
14609 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
14610
14611 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
14612 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
14613 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
14614};
14615
14616/**
14617 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
14618 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
14619 *
14620 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
14621 * driver to userspace in order to query the new AFC power values.
14622 *
14623 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
14624 * complete event will be sent from the driver to userspace to indicate
14625 * processing of the AFC response.
14626 *
14627 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
14628 * will be sent from the driver to userspace to indicate last received
14629 * AFC response data has been cleared on the AP due to invalid data
14630 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
14631 *
14632 * The following enum defines the different event types that will be
14633 * used by the driver to help trigger corresponding AFC functionality in user
14634 * space.
14635 */
14636enum qca_wlan_vendor_afc_event_type {
14637 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
14638 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
14639 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
14640};
14641
14642/**
14643 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
14644 * deployment type.
14645 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
14646 *
14647 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
14648 *
14649 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
14650 *
14651 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
14652 *
14653 * The following enum defines different deployment modes that the AP might
14654 * come up in. This information will be essential to retrieve deployment-type
14655 * specific SP power values for AFC operation.
14656 */
14657enum qca_wlan_vendor_afc_ap_deployment_type {
14658 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
14659 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
14660 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
14661};
14662
14663/**
14664 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
14665 * indicate AFC response status.
14666 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
14667 *
14668 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
14669 *
14670 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
14671 * command was not received within the expected time of the AFC expiry event
14672 * being triggered.
14673 *
14674 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
14675 * parsing error by the driver.
14676 *
14677 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
14678 * error.
14679 *
14680 * The following enum defines the status codes that the driver will use to
14681 * indicate whether the AFC data is valid or not.
14682 */
14683enum qca_wlan_vendor_afc_evt_status_code {
14684 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
14685 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
14686 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
14687 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
14688};
14689
14690/**
14691 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
14692 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
14693 * support sending only a single request to the user space at a time.
14694 *
14695 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
14696 * Used with event to notify the type of AFC event received.
14697 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
14698 *
14699 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
14700 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14701 * otherwise unused.
14702 *
14703 * This attribute is used to indicate the AP deployment type in the AFC request.
14704 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
14705 *
14706 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
14707 * Unique request identifier generated by the AFC client for every
14708 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
14709 * The user space application is responsible for ensuring no duplicate values
14710 * are in-flight with the server, e.g., by delaying a request, should the same
14711 * value be received from different radios in parallel.
14712 *
14713 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
14714 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14715 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
14716 *
14717 * This attribute indicates the AFC spec version information. This will
14718 * indicate the AFC version AFC client must use to query the AFC data.
14719 * Bits 15:0 - Minor version
14720 * Bits 31:16 - Major version
14721 *
14722 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
14723 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14724 * otherwise unused.
14725 * This attribute indicates the minimum desired power (in dBm) for
14726 * the queried spectrum.
14727 *
14728 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
14729 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14730 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14731 *
14732 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
14733 * This attribute is used to indicate if there were any errors parsing the
14734 * AFC response.
14735 *
14736 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
14737 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14738 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14739 *
14740 * This attribute indicates the AFC response code. The AFC response codes are
14741 * in the following categories:
14742 * -1: General Failure.
14743 * 0: Success.
14744 * 100 - 199: General errors related to protocol.
14745 * 300 - 399: Error events specific to message exchange
14746 * for the Available Spectrum Inquiry.
14747 *
14748 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
14749 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14750 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14751 *
14752 * This attribute indicates the date until which the current response is
14753 * valid for in UTC format.
14754 * Date format: bits 7:0 - DD (Day 1-31)
14755 * bits 15:8 - MM (Month 1-12)
14756 * bits 31:16 - YYYY (Year)
14757 *
14758 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
14759 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14760 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14761 *
14762 * This attribute indicates the time until which the current response is
14763 * valid for in UTC format.
14764 * Time format: bits 7:0 - SS (Seconds 0-59)
14765 * bits 15:8 - MM (Minutes 0-59)
14766 * bits 23:16 - HH (Hours 0-23)
14767 * bits 31:24 - Reserved
14768 *
14769 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
14770 * for updating the list of frequency ranges to be queried.
14771 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14772 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14773 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14774 * It uses the attributes defined in
14775 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
14776 *
14777 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
14778 * for updating the list of operating classes and corresponding channels to be
14779 * queried.
14780 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14781 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14782 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14783 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
14784 */
14785enum qca_wlan_vendor_attr_afc_event {
14786 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
14787 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
14788 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
14789 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
14790 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
14791 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
14792 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
14793 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
14794 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
14795 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
14796 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
14797 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
14798
14799 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
14800 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
14801 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
14802};
14803
14804/**
14805 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
14806 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
14807 * will support sending only a single AFC response to the driver at a time.
14808 *
14809 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
14810 * This attribute will be used to send a single Spectrum Inquiry response object
14811 * from the 'availableSpectrumInquiryResponses' array object from the response
14812 * JSON.
14813 *
14814 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
14815 *
14816 * This attribute indicates the period (in seconds) for which the response
14817 * data received is valid for.
14818 *
14819 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
14820 *
14821 * This attribute indicates the request ID for which the corresponding
14822 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
14823 *
14824 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
14825 *
14826 * This attribute indicates the date until which the current response is
14827 * valid for in UTC format.
14828 * Date format: bits 7:0 - DD (Day 1-31)
14829 * bits 15:8 - MM (Month 1-12)
14830 * bits 31:16 - YYYY (Year)
14831 *
14832 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
14833 *
14834 * This attribute indicates the time until which the current response is
14835 * valid for in UTC format.
14836 * Time format: bits 7:0 - SS (Seconds 0-59)
14837 * bits 15:8 - MM (Minutes 0-59)
14838 * bits 23:16 - HH (Hours 0-23)
14839 * bits 31:24 - Reserved
14840 *
14841 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
14842 *
14843 * This attribute indicates the AFC response code. The AFC response codes are
14844 * in the following categories:
14845 * -1: General Failure.
14846 * 0: Success.
14847 * 100 - 199: General errors related to protocol.
14848 * 300 - 399: Error events specific to message exchange
14849 * for the Available Spectrum Inquiry.
14850 *
14851 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
14852 * for PSD info of all the queried frequency ranges. It uses the attributes
14853 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
14854 *
14855 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
14856 * attributes for EIRP info of all queried operating class/channels. It uses
14857 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
14858 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
14859 *
14860 */
14861enum qca_wlan_vendor_attr_afc_response {
14862 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
14863 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
14864 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
14865 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
14866 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
14867 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
14868 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
14869 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
14870 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
14871
14872 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
14873 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
14874 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
14875};
14876
14877/**
14878 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
14879 *
14880 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
14881 *
14882 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
14883 * beaconing at higher beacon interval with Rx disabled.
14884 */
14885enum qca_wlan_dozed_ap_state {
14886 QCA_WLAN_DOZED_AP_DISABLE = 0,
14887 QCA_WLAN_DOZED_AP_ENABLE = 1,
14888};
14889
14890/**
14891 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
14892 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
14893 * configuration.
14894 *
14895 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
14896 * Configures the doze state for an AP interface. Possible values are defined
14897 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
14898 * gets triggered asynchronously to provide updated AP interface configuration.
14899 *
14900 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
14901 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
14902 * command, which is used later to maintain synchronization between commands
14903 * and asynchronous events.
14904 *
14905 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
14906 * Used in event to indicate the next TBTT TSF timer value after applying the
14907 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
14908 * the first beacon after entering or exiting dozed mode.
14909 *
14910 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
14911 * Used with event to inform the periodicity of beacon transmission that would
14912 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070014913 *
14914 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
14915 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014916 */
14917enum qca_wlan_vendor_attr_dozed_ap {
14918 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
14919 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
14920 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
14921 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
14922 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070014923 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014924
14925 /* Keep last */
14926 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
14927 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
14928 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
14929};
14930
14931/**
14932 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
14933 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
14934 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
14935 * capture running status.
14936 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
14937 * capture running status.
14938 **/
14939
14940enum qca_wlan_vendor_monitor_mode_status {
14941 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
14942 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
14943};
14944
14945/**
14946 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
14947 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
14948 * information regarding the local packet capture over the monitor mode.
14949 *
14950 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
14951 * represents the status of the start capture commands. The values used with
14952 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
14953 * is returned by the driver in the response to the command.
14954 */
14955
14956enum qca_wlan_vendor_attr_get_monitor_mode {
14957 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
14958 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
14959
14960 /* Keep last */
14961 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
14962 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
14963 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
14964};
14965
Sunil Ravi036cec52023-03-29 11:35:17 -070014966/**
14967 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
14968 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
14969 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
14970 *
14971 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
14972 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
14973 */
14974enum qca_wlan_vendor_link_state_op_types {
14975 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
14976 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
14977};
14978
14979/**
14980 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
14981 * links state control modes. This enum is used by
14982 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
14983 *
14984 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
14985 * by the driver.
14986 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
14987 * user space.
14988 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
14989 * desired number of MLO links to operate in active state at any given time.
14990 * The driver will choose which MLO links should operate in the active state.
14991 * See enum qca_wlan_vendor_link_state for active state definition.
14992 */
14993enum qca_wlan_vendor_link_state_control_modes {
14994 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
14995 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
14996 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
14997};
14998
14999/**
15000 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
15001 * links state operation modes. This enum is used by
15002 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
15003 *
15004 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
15005 * mode, the driver selects the operating mode of the links, without any
15006 * guidance from the user space.
15007 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
15008 * operation mode the driver should select MLO links that will achieve low
15009 * latency.
15010 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
15011 * throughput operation mode the driver should select MLO links that will
15012 * achieve higher throughput.
15013 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
15014 * operation mode the driver should select MLO links that will achieve low
15015 * power.
15016 */
15017enum qca_wlan_vendor_link_state_operation_modes {
15018 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
15019 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
15020 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
15021 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
15022};
15023
15024/**
15025 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
15026 * MLO link.
15027 *
15028 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
15029 * be used for data transmission but it can have TIDs mapped to it. It will be
15030 * in doze state always and does not monitor the beacons.
15031 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
15032 * used for data TX/RX and monitors the beacons to check TIM bit indication.
15033 * It may enter doze state and comes out based on the transmit data traffic and
15034 * TIM bit indication in the beacon.
15035 */
15036enum qca_wlan_vendor_link_state {
15037 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
15038 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
15039};
15040
15041/**
15042 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
15043 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
15044 *
15045 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
15046 * MLO link.
15047 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
15048 * enum qca_wlan_vendor_link_state for possible MLO link states.
15049 */
15050
15051enum qca_wlan_vendor_attr_link_state_config {
15052 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
15053 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
15054 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
15055
15056 /* Keep last */
15057 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
15058 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
15059 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
15060};
15061
15062/**
15063 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
15064 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
15065 *
15066 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
15067 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
15068 * Required only in a command. Possible values for this attribute are defined in
15069 * enum qca_wlan_vendor_link_state_op_types.
15070 *
15071 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
15072 * links control mode type. Optional attribute in a command when
15073 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15074 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
15075 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15076 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15077 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
15078 *
15079 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
15080 * Indicates the state of the each MLO link affiliated with the interface.
15081 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
15082 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
15083 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
15084 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
15085 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15086 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15087 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
15088 *
15089 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
15090 * Represents the number of active state links. See enum
15091 * qca_wlan_vendor_link_state for active state definition.
15092 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
15093 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
15094 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
15095 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
15096 *
15097 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
15098 * links operation mode type. Optional attribute in a command when
15099 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15100 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
15101 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15102 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15103 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
15104 * modes.
15105 */
15106enum qca_wlan_vendor_attr_mlo_link_state {
15107 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
15108 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
15109 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
15110 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
15111 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
15112 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
15113
15114 /* keep last */
15115 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
15116 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
15117 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
15118};
15119
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080015120#endif /* QCA_VENDOR_H */